/** * PagarmeApiSDKLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { lazy, nullable, object, optional, Schema, string } from '../schema'; import { CreateGooglePayIntermediateSigningKeyRequest, createGooglePayIntermediateSigningKeyRequestSchema, } from './createGooglePayIntermediateSigningKeyRequest'; /** The GooglePay Token Payment Request */ export interface CreateGooglePayRequest { /** Informação sobre a versão do token. Único valor aceito é EC_v2 */ version?: string | null; /** Dados de pagamento criptografados. Corresponde ao encryptedMessage do token Google. */ data?: string | null; /** The GooglePay intermediate signing key request */ intermediateSigningKey?: CreateGooglePayIntermediateSigningKeyRequest | null; /** Assinatura dos dados de pagamento. Verifica se a origem da mensagem é o Google. Corresponde ao signature do token Google. */ signature?: string | null; signedMessage?: string | null; merchantIdentifier?: string | null; } export const createGooglePayRequestSchema: Schema = object( { version: ['version', optional(nullable(string()))], data: ['data', optional(nullable(string()))], intermediateSigningKey: [ 'intermediate_signing_key', optional( nullable(lazy(() => createGooglePayIntermediateSigningKeyRequestSchema)) ), ], signature: ['signature', optional(nullable(string()))], signedMessage: ['signed_message', optional(nullable(string()))], merchantIdentifier: ['merchant_identifier', optional(nullable(string()))], } );