import {z} from 'zod' export type Address = {address1?: (string | null) | undefined, address2?: (string | null) | undefined, city?: (string | null) | undefined, company?: (string | null) | undefined, country: string, region?: (string | null) | undefined, savedData?: ({choseToSaveData?: (boolean | null) | undefined, usedSavedData?: (boolean | null) | undefined} | null) | undefined, zip?: (string | null) | undefined}; export type Invite = {invitationCounterpartyPhone?: (string | null) | undefined, sent?: (number | null) | undefined, type?: ('SENT' | 'RECEIVED' | null) | undefined}; export type ExactLocation = {latitude?: (number | null) | undefined, longitude?: (number | null) | undefined, source?: (string | null) | undefined}; export type Email = {email: string, emailVerification?: ({sent?: (boolean | null) | undefined, timeSent?: (number | null) | undefined, verified: boolean} | null) | undefined}; export type CreditCardVerification = {authorizationCode?: (string | null) | undefined, authorizationProcessedWith3DS?: (boolean | null) | undefined, avsFullResult?: (string | null) | undefined, avsNameResult?: (string | null) | undefined, avsStreetResult?: (string | null) | undefined, avsZipResult?: (string | null) | undefined, cavvResult?: (string | null) | undefined, cvvResult?: (string | null) | undefined, eciValue?: (string | null) | undefined, exemptionStatus?: (string | null) | undefined, external3dsVendorPayload?: ({[key: string]: unknown} | null) | undefined, issuerResponseCode?: (string | null) | undefined, issuerResponseText?: (string | null) | undefined, liabilityShift?: (boolean | null) | undefined, partyExecuted3DS?: ('PSP' | 'FORTER' | 'BOTH' | null) | undefined, processorResponseCode?: (string | null) | undefined, processorResponseText?: (string | null) | undefined, threeDsInteractionMode?: ('FRICTIONLESS' | 'CHALLENGED' | null) | undefined, threeDsStatus?: (string | null) | undefined, threeDsVersion?: (string | null) | undefined}; export type AdditionalVerificationDocuments = {address?: ({address1?: (string | null) | undefined, address2?: (string | null) | undefined, city?: (string | null) | undefined, company?: (string | null) | undefined, country: string, region?: (string | null) | undefined, savedData?: ({choseToSaveData?: (boolean | null) | undefined, usedSavedData?: (boolean | null) | undefined} | null) | undefined, zip?: (string | null) | undefined} | null) | undefined, documentDateOfBirth?: (string | null) | undefined, documentExpiration?: (string | null) | undefined, documentFirstName?: (string | null) | undefined, documentIssuingState?: (string | null) | undefined, documentLastName?: (string | null) | undefined, documentNumber?: (string | null) | undefined, documentSource: 'CAMERA_CAPTURED' | 'UPLOADED_FILE' | 'TYPED' | 'OTHER', documentStatus?: ('SENT_TO_CLIENT' | 'RECEIVED_FROM_CLIENT' | 'ABANDONED_BY_CLIENT' | 'RECEIVED_FROM_CLIENT_FAULTY' | null) | undefined, documentType: string, documentVerificationServiceAnswer?: (string | null) | undefined, documentVerificationServiceName?: (string | null) | undefined, documentVerificationServiceResponsePayload?: ({[key: string]: unknown} | null) | undefined, documentVerified?: (boolean | null) | undefined, eventTime?: (number | null) | undefined, nationality?: (string | null) | undefined}; export type EmploymentInformation = {employerAddress?: ({address1?: (string | null) | undefined, address2?: (string | null) | undefined, city?: (string | null) | undefined, company?: (string | null) | undefined, country: string, region?: (string | null) | undefined, savedData?: ({choseToSaveData?: (boolean | null) | undefined, usedSavedData?: (boolean | null) | undefined} | null) | undefined, zip?: (string | null) | undefined} | null) | undefined, employerCompanySizeRange?: (string | null) | undefined, employerIndustry?: (string | null) | undefined, employerName?: (string | null) | undefined, employerPhone?: (string | null) | undefined, income?: ({amountLocalCurrency?: (string | null) | undefined, amountUSD?: (string | null) | undefined, currency?: (string | null) | undefined} | null) | undefined, jobTitle?: (string | null) | undefined}; export type PersonalDetails = {birthdate?: (string | null) | undefined, email?: (string | null) | undefined, firstName?: (string | null) | undefined, fullName?: (string | null) | undefined, gender?: ('MALE' | 'FEMALE' | 'CHOSE_NOT_TO_SPECIFY' | 'NONE' | null) | undefined, lastName?: (string | null) | undefined}; export type Phone = {phone: string, smsVerified?: ({sent?: (boolean | null) | undefined, timeSent?: (number | null) | undefined, verified: boolean} | null) | undefined}; export type Person = {address?: ({address1?: (string | null) | undefined, address2?: (string | null) | undefined, city?: (string | null) | undefined, company?: (string | null) | undefined, country: string, region?: (string | null) | undefined, savedData?: ({choseToSaveData?: (boolean | null) | undefined, usedSavedData?: (boolean | null) | undefined} | null) | undefined, zip?: (string | null) | undefined} | null) | undefined, allAdditionalVerificationDocuments?: (Array | null) | undefined, employmentInformation?: (Array | null) | undefined, personalDetails: PersonalDetails, phone?: (Array | null) | undefined}; export type UnderlyingPaymentMethod = {bankTransfer?: ({accountHolderFirstName?: (string | null) | undefined, accountHolderLastName?: (string | null) | undefined, achProcessingType?: (string | null) | undefined, bankAccountIdentifier: string, bankAccountType?: (string | null) | undefined, bankName?: (string | null) | undefined, paymentGatewayData?: ({gatewayName?: (string | null) | undefined, gatewayTransactionId?: (string | null) | undefined} | null) | undefined, paymentSuccessStatus?: (string | null) | undefined, serviceName?: (string | null) | undefined} | null) | undefined, bitcoin?: (boolean | null) | undefined, cash?: (boolean | null) | undefined, creditCard?: ({bin?: (string | null) | undefined, cardBank?: (string | null) | undefined, cardBrand?: (string | null) | undefined, cardType?: ('CREDIT' | 'DEBIT' | 'PREPAID' | 'UNKNOWN' | null) | undefined, countryOfIssuance?: (string | null) | undefined, creationTime?: (number | null) | undefined, creditCardCorrelationId?: (string | null) | undefined, expirationMonth: string, expirationYear: string, fullResponsePayload?: ({[key: string]: unknown} | null) | undefined, lastFourDigits?: (string | null) | undefined, nameOnCard?: (string | null) | undefined, paymentProcessorData?: ({processorName?: (string | null) | undefined, processorTransactionId?: (string | null) | undefined} | null) | undefined, threeDSecure?: ({acquirerData?: ({acquirerBIN?: (string | null) | undefined, acquirerCountry?: ('AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CK' | 'CR' | 'HR' | 'CU' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'TP' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'CI' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MK' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'AN' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'KP' | 'GB' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'KR' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TJ' | 'TZ' | 'TH' | 'CD' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'YU' | 'ZM' | 'ZW' | null) | undefined, acquirerMerchantId?: (string | null) | undefined, acquirerMerchantName?: (string | null) | undefined, acquirerName?: (string | null) | undefined, merchantCategoryCode?: (number | null) | undefined, merchantCountryCode?: (number | null) | undefined} | null) | undefined, challengeIndicator?: ('NO_PREFERENCE' | 'NO_CHALLENGE' | 'CHALLENGE' | 'CHALLENGE_AS_MANDATE' | null) | undefined, execute3ds?: ('FORCE_3DS' | 'FORCE_DATA_ONLY' | 'NOT_SUPPORTED_BY_MERCHANT' | 'DYNAMIC_FORTER_DECISION' | null) | undefined, forcePsd2Exemption?: ({channel: 'THREEDS_RAILS' | 'AUTHORIZATION', type: 'LOW_VALUE' | 'TRANSACTION_RISK_ANALYSIS' | 'SECURE_CORPORATE' | 'TRUSTED_BENEFICIARY'} | null) | undefined, requestChallenge?: (boolean | null) | undefined, threeDSServerTransID: string, threeDsExecutor?: ('FORTER' | 'MERCHANT' | null) | undefined} | null) | undefined, token: string, tokenType?: ('PSP' | 'EMV_PAYMENT_TOKEN' | 'MERCHANT_GENERATED' | 'FORTER_TOKEN' | 'OTHER' | null) | undefined, verificationResults: CreditCardVerification} | null) | undefined, underlyingPaymentMethodType: 'UNKNOWN' | 'CREDITCARD' | 'BANKTRANSFER' | 'CASH' | 'BITCOIN'}; export type Payment = {allowedMerchantInitiatedTransactions?: (boolean | null) | undefined, amount?: ({amountLocalCurrency?: (string | null) | undefined, amountUSD?: (string | null) | undefined, currency?: (string | null) | undefined} | null) | undefined, androidPay?: ({bin?: (string | null) | undefined, cardBank?: (string | null) | undefined, cardBrand?: (string | null) | undefined, cardType?: ('CREDIT' | 'DEBIT' | 'PREPAID' | 'UNKNOWN' | null) | undefined, countryOfIssuance?: (string | null) | undefined, creationTime?: (number | null) | undefined, creditCardCorrelationId?: (string | null) | undefined, expirationMonth: string, expirationYear: string, fullResponsePayload?: ({[key: string]: unknown} | null) | undefined, lastFourDigits?: (string | null) | undefined, nameOnCard?: (string | null) | undefined, paymentProcessorData?: ({processorName?: (string | null) | undefined, processorTransactionId?: (string | null) | undefined} | null) | undefined, threeDSecure?: ({acquirerData?: ({acquirerBIN?: (string | null) | undefined, acquirerCountry?: ('AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CK' | 'CR' | 'HR' | 'CU' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'TP' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'CI' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MK' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'AN' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'KP' | 'GB' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'KR' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TJ' | 'TZ' | 'TH' | 'CD' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'YU' | 'ZM' | 'ZW' | null) | undefined, acquirerMerchantId?: (string | null) | undefined, acquirerMerchantName?: (string | null) | undefined, acquirerName?: (string | null) | undefined, merchantCategoryCode?: (number | null) | undefined, merchantCountryCode?: (number | null) | undefined} | null) | undefined, challengeIndicator?: ('NO_PREFERENCE' | 'NO_CHALLENGE' | 'CHALLENGE' | 'CHALLENGE_AS_MANDATE' | null) | undefined, execute3ds?: ('FORCE_3DS' | 'FORCE_DATA_ONLY' | 'NOT_SUPPORTED_BY_MERCHANT' | 'DYNAMIC_FORTER_DECISION' | null) | undefined, forcePsd2Exemption?: ({channel: 'THREEDS_RAILS' | 'AUTHORIZATION', type: 'LOW_VALUE' | 'TRANSACTION_RISK_ANALYSIS' | 'SECURE_CORPORATE' | 'TRUSTED_BENEFICIARY'} | null) | undefined, requestChallenge?: (boolean | null) | undefined, threeDSServerTransID: string, threeDsExecutor?: ('FORTER' | 'MERCHANT' | null) | undefined} | null) | undefined, token: string, tokenType?: ('PSP' | 'EMV_PAYMENT_TOKEN' | 'MERCHANT_GENERATED' | 'FORTER_TOKEN' | 'OTHER' | null) | undefined, verificationResults: CreditCardVerification} | null) | undefined, applePay?: ({bin?: (string | null) | undefined, cardBank?: (string | null) | undefined, cardBrand?: (string | null) | undefined, cardType?: ('CREDIT' | 'DEBIT' | 'PREPAID' | 'UNKNOWN' | null) | undefined, countryOfIssuance?: (string | null) | undefined, creationTime?: (number | null) | undefined, creditCardCorrelationId?: (string | null) | undefined, expirationMonth: string, expirationYear: string, fullResponsePayload?: ({[key: string]: unknown} | null) | undefined, lastFourDigits?: (string | null) | undefined, nameOnCard?: (string | null) | undefined, paymentProcessorData?: ({processorName?: (string | null) | undefined, processorTransactionId?: (string | null) | undefined} | null) | undefined, threeDSecure?: ({acquirerData?: ({acquirerBIN?: (string | null) | undefined, acquirerCountry?: ('AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CK' | 'CR' | 'HR' | 'CU' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'TP' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'CI' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MK' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'AN' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'KP' | 'GB' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'KR' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TJ' | 'TZ' | 'TH' | 'CD' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'YU' | 'ZM' | 'ZW' | null) | undefined, acquirerMerchantId?: (string | null) | undefined, acquirerMerchantName?: (string | null) | undefined, acquirerName?: (string | null) | undefined, merchantCategoryCode?: (number | null) | undefined, merchantCountryCode?: (number | null) | undefined} | null) | undefined, challengeIndicator?: ('NO_PREFERENCE' | 'NO_CHALLENGE' | 'CHALLENGE' | 'CHALLENGE_AS_MANDATE' | null) | undefined, execute3ds?: ('FORCE_3DS' | 'FORCE_DATA_ONLY' | 'NOT_SUPPORTED_BY_MERCHANT' | 'DYNAMIC_FORTER_DECISION' | null) | undefined, forcePsd2Exemption?: ({channel: 'THREEDS_RAILS' | 'AUTHORIZATION', type: 'LOW_VALUE' | 'TRANSACTION_RISK_ANALYSIS' | 'SECURE_CORPORATE' | 'TRUSTED_BENEFICIARY'} | null) | undefined, requestChallenge?: (boolean | null) | undefined, threeDSServerTransID: string, threeDsExecutor?: ('FORTER' | 'MERCHANT' | null) | undefined} | null) | undefined, token: string, tokenType?: ('PSP' | 'EMV_PAYMENT_TOKEN' | 'MERCHANT_GENERATED' | 'FORTER_TOKEN' | 'OTHER' | null) | undefined, verificationResults: CreditCardVerification} | null) | undefined, bankTransfer?: ({accountHolderFirstName?: (string | null) | undefined, accountHolderLastName?: (string | null) | undefined, achProcessingType?: (string | null) | undefined, bankAccountIdentifier: string, bankAccountType?: (string | null) | undefined, bankName?: (string | null) | undefined, paymentGatewayData?: ({gatewayName?: (string | null) | undefined, gatewayTransactionId?: (string | null) | undefined} | null) | undefined, paymentSuccessStatus?: (string | null) | undefined, serviceName?: (string | null) | undefined} | null) | undefined, billingDetails: Person, cameraCaptured?: (boolean | null) | undefined, cash?: (boolean | null) | undefined, creditCard?: ({bin: string, cardBank?: (string | null) | undefined, cardBrand?: (string | null) | undefined, cardType?: ('CREDIT' | 'DEBIT' | 'PREPAID' | 'UNKNOWN' | null) | undefined, countryOfIssuance?: (string | null) | undefined, creditCardCorrelationId?: (string | null) | undefined, expirationMonth: string, expirationYear: string, fingerprint?: (string | null) | undefined, fullCreditCard?: (string | null) | undefined, fullResponsePayload?: ({[key: string]: unknown} | null) | undefined, lastFourDigits: string, nameOnCard: string, paymentGatewayData?: ({gatewayName?: (string | null) | undefined, gatewayTransactionId?: (string | null) | undefined} | null) | undefined, paymentProcessorData?: ({processorName?: (string | null) | undefined, processorTransactionId?: (string | null) | undefined} | null) | undefined, threeDSecure?: ({acquirerData?: ({acquirerBIN?: (string | null) | undefined, acquirerCountry?: ('AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CK' | 'CR' | 'HR' | 'CU' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'TP' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'CI' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MK' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'AN' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'KP' | 'GB' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'KR' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TJ' | 'TZ' | 'TH' | 'CD' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'YU' | 'ZM' | 'ZW' | null) | undefined, acquirerMerchantId?: (string | null) | undefined, acquirerMerchantName?: (string | null) | undefined, acquirerName?: (string | null) | undefined, merchantCategoryCode?: (number | null) | undefined, merchantCountryCode?: (number | null) | undefined} | null) | undefined, challengeIndicator?: ('NO_PREFERENCE' | 'NO_CHALLENGE' | 'CHALLENGE' | 'CHALLENGE_AS_MANDATE' | null) | undefined, execute3ds?: ('FORCE_3DS' | 'FORCE_DATA_ONLY' | 'NOT_SUPPORTED_BY_MERCHANT' | 'DYNAMIC_FORTER_DECISION' | null) | undefined, forcePsd2Exemption?: ({channel: 'THREEDS_RAILS' | 'AUTHORIZATION', type: 'LOW_VALUE' | 'TRANSACTION_RISK_ANALYSIS' | 'SECURE_CORPORATE' | 'TRUSTED_BENEFICIARY'} | null) | undefined, requestChallenge?: (boolean | null) | undefined, threeDSServerTransID: string, threeDsExecutor?: ('FORTER' | 'MERCHANT' | null) | undefined} | null) | undefined, verificationResults: CreditCardVerification} | null) | undefined, creditLineDetails?: ({askedToIncreaseCreditLineLimit?: (boolean | null) | undefined, creditLineLimitIncreaseMethod?: ('PRE_APPROVAL' | 'AT_PURCHASE' | null) | undefined, currentCreditLineLimit?: ({amountLocalCurrency?: (string | null) | undefined, amountUSD?: (string | null) | undefined, currency?: (string | null) | undefined} | null) | undefined, originalCreditLineLimit?: ({amountLocalCurrency?: (string | null) | undefined, amountUSD?: (string | null) | undefined, currency?: (string | null) | undefined} | null) | undefined} | null) | undefined, cryptoWallet?: ({cryptoWalletName?: (string | null) | undefined, cryptoWalletPaymentId?: (string | null) | undefined, cryptoWalletType: 'INTERNAL' | 'EXTERNAL'} | null) | undefined, digitalWallet?: ({digitalWalletName: 'AMAZONPAY' | 'FACEBOOKPAY' | 'ALIPAY' | 'WECHAT' | 'AMEDIGITAL' | 'MERCADOPAGO' | 'DUE' | 'ZELLE' | 'PAYONEER' | 'ALLIEDWALLET' | 'KONBINI' | 'UNIONPAY' | 'IYZICO' | 'VENMO' | 'BARTER' | 'PAYNOW' | 'PAYCO' | 'KAKAOPAY' | 'NAVERPAY' | 'LINEPAY' | 'BANCONTACT' | 'MBWAY' | 'AIIA' | 'BLIK' | 'EPS' | 'OVO' | 'DANA' | 'GCASH' | 'GOPAY' | 'RAKUTENPAY' | 'APLAZO' | 'GRABPAY' | 'TWINT' | 'TRUEMONEY' | 'SWISH' | 'KLARNA' | 'SHOPBACK' | 'OTHER' | 'PAYPAY' | 'TRUSTLY' | 'PIX' | 'PAYCONIQ' | 'QRIS', digitalWalletPayerEmail?: (string | null) | undefined, digitalWalletPayerId?: (string | null) | undefined, digitalWalletpaymentId?: (string | null) | undefined, freeTextDigitalWalletName?: (string | null) | undefined, fullDigitalWalletResponsePayload?: ({[key: string]: unknown} | null) | undefined, payerAccountCountry?: (string | null) | undefined, paymentSuccessStatus?: (string | null) | undefined, underlyingPaymentMethod: UnderlyingPaymentMethod} | null) | undefined, giftCard?: ({activationTime?: (number | null) | undefined, creditCurrency?: (string | null) | undefined, creditOrigin?: (string | null) | undefined, merchantPaymentId?: (string | null) | undefined, value?: ({amountLocalCurrency?: (string | null) | undefined, amountUSD?: (string | null) | undefined, currency?: (string | null) | undefined} | null) | undefined} | null) | undefined, installmentService?: ({firstName?: (string | null) | undefined, fullResponsePayload?: ({[key: string]: unknown} | null) | undefined, lastName?: (string | null) | undefined, paymentId?: (string | null) | undefined, serviceName?: (string | null) | undefined, serviceResponseCode?: (string | null) | undefined} | null) | undefined, loyaltyPoints?: ({loyaltyPointsCount?: (number | null) | undefined, loyaltyPointsSource?: ('REFERRAL' | 'IN_ACCOUNT_PURCHASES' | 'PROMOTION' | 'COMPENSATION' | 'CARD_SCHEME_POINTS' | null) | undefined, loyaltyPointsValue?: ({amountLocalCurrency?: (string | null) | undefined, amountUSD?: (string | null) | undefined, currency?: (string | null) | undefined} | null) | undefined, merchantPaymentId?: (string | null) | undefined} | null) | undefined, merchantInitiated?: ({initialOrderId?: (string | null) | undefined, type?: ('RECURRING_TRANSACTION' | 'INSTALMENT_TRANSACTION' | 'ADD_CARD' | 'MAINTAIN_CARD_INFORMATION' | 'ACCOUNT_VERIFICATION' | 'SPLIT_OR_DELAYED_SHIPMENT' | 'TOP_UP' | 'MAIL_ORDER' | 'TELEPHONE_ORDER' | 'WHITELIST_STATUS_CHECK' | 'OTHER_PAYMENT' | null) | undefined} | null) | undefined, mobileMoney?: ({fullResponsePayload?: ({[key: string]: unknown} | null) | undefined, mobileMoneyNetwork: 'MPESA' | 'MTN' | 'MPAWA' | 'MSHWAEI' | 'SAFARICOM' | 'DASH', paymentAcquirerData?: ({acquirerBIN?: (string | null) | undefined, acquirerCountry?: ('AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CK' | 'CR' | 'HR' | 'CU' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'TP' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'CI' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MK' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'AN' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'KP' | 'GB' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'KR' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TJ' | 'TZ' | 'TH' | 'CD' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'YU' | 'ZM' | 'ZW' | null) | undefined, acquirerMerchantId?: (string | null) | undefined, acquirerMerchantName?: (string | null) | undefined, acquirerName?: (string | null) | undefined, merchantCategoryCode?: (number | null) | undefined, merchantCountryCode?: (number | null) | undefined} | null) | undefined, paymentGatewayData?: ({gatewayName?: (string | null) | undefined, gatewayTransactionId?: (string | null) | undefined} | null) | undefined, paymentSuccessStatus: string, phoneNumber: string} | null) | undefined, numberOfInstallments?: (number | null) | undefined, paymentMethodNickname?: (string | null) | undefined, paypal?: ({authorizationId?: (string | null) | undefined, fullPaypalResponsePayload?: ({[key: string]: unknown} | null) | undefined, payerAccountCountry?: (string | null) | undefined, payerAddressStatus?: (string | null) | undefined, payerEmail: string, payerId: string, payerStatus?: (string | null) | undefined, paymentGatewayData?: ({gatewayName?: (string | null) | undefined, gatewayTransactionId?: (string | null) | undefined} | null) | undefined, paymentId?: (string | null) | undefined, paymentStatus: string, protectionEligibility?: (string | null) | undefined} | null) | undefined, recurringPayment?: ({currentPaymentNumber?: (number | null) | undefined, initialPaymentOrderId: string, isPaymentAmountIdenticalForAllPayments?: (boolean | null) | undefined, recurringPaymentExpirationDate?: (string | null) | undefined, recurringPaymentFrequency: string, totalNumberOfPayments?: (number | null) | undefined} | null) | undefined, samsungPay?: ({bin?: (string | null) | undefined, cardBank?: (string | null) | undefined, cardBrand?: (string | null) | undefined, cardType?: ('CREDIT' | 'DEBIT' | 'PREPAID' | 'UNKNOWN' | null) | undefined, countryOfIssuance?: (string | null) | undefined, creationTime?: (number | null) | undefined, creditCardCorrelationId?: (string | null) | undefined, expirationMonth: string, expirationYear: string, fullResponsePayload?: ({[key: string]: unknown} | null) | undefined, lastFourDigits?: (string | null) | undefined, nameOnCard?: (string | null) | undefined, paymentProcessorData?: ({processorName?: (string | null) | undefined, processorTransactionId?: (string | null) | undefined} | null) | undefined, threeDSecure?: ({acquirerData?: ({acquirerBIN?: (string | null) | undefined, acquirerCountry?: ('AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CK' | 'CR' | 'HR' | 'CU' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'TP' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'CI' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MK' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'AN' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'KP' | 'GB' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'KR' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TJ' | 'TZ' | 'TH' | 'CD' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'YU' | 'ZM' | 'ZW' | null) | undefined, acquirerMerchantId?: (string | null) | undefined, acquirerMerchantName?: (string | null) | undefined, acquirerName?: (string | null) | undefined, merchantCategoryCode?: (number | null) | undefined, merchantCountryCode?: (number | null) | undefined} | null) | undefined, challengeIndicator?: ('NO_PREFERENCE' | 'NO_CHALLENGE' | 'CHALLENGE' | 'CHALLENGE_AS_MANDATE' | null) | undefined, execute3ds?: ('FORCE_3DS' | 'FORCE_DATA_ONLY' | 'NOT_SUPPORTED_BY_MERCHANT' | 'DYNAMIC_FORTER_DECISION' | null) | undefined, forcePsd2Exemption?: ({channel: 'THREEDS_RAILS' | 'AUTHORIZATION', type: 'LOW_VALUE' | 'TRANSACTION_RISK_ANALYSIS' | 'SECURE_CORPORATE' | 'TRUSTED_BENEFICIARY'} | null) | undefined, requestChallenge?: (boolean | null) | undefined, threeDSServerTransID: string, threeDsExecutor?: ('FORTER' | 'MERCHANT' | null) | undefined} | null) | undefined, token: string, tokenType?: ('PSP' | 'EMV_PAYMENT_TOKEN' | 'MERCHANT_GENERATED' | 'FORTER_TOKEN' | 'OTHER' | null) | undefined, verificationResults: CreditCardVerification} | null) | undefined, savedData?: ({choseToSaveData?: (boolean | null) | undefined, usedSavedData?: (boolean | null) | undefined} | null) | undefined, storeCreditUsed?: ({activationTime?: (number | null) | undefined, creditCurrency?: (string | null) | undefined, creditOrigin?: (string | null) | undefined, merchantPaymentId?: (string | null) | undefined, value?: ({amountLocalCurrency?: (string | null) | undefined, amountUSD?: (string | null) | undefined, currency?: (string | null) | undefined} | null) | undefined} | null) | undefined, tokenizedCard?: ({bin?: (string | null) | undefined, cardBank?: (string | null) | undefined, cardBrand?: (string | null) | undefined, cardType?: ('CREDIT' | 'DEBIT' | 'PREPAID' | 'UNKNOWN' | null) | undefined, countryOfIssuance?: (string | null) | undefined, creationTime?: (number | null) | undefined, creditCardCorrelationId?: (string | null) | undefined, expirationMonth: string, expirationYear: string, fullResponsePayload?: ({[key: string]: unknown} | null) | undefined, lastFourDigits?: (string | null) | undefined, nameOnCard?: (string | null) | undefined, paymentProcessorData?: ({processorName?: (string | null) | undefined, processorTransactionId?: (string | null) | undefined} | null) | undefined, threeDSecure?: ({acquirerData?: ({acquirerBIN?: (string | null) | undefined, acquirerCountry?: ('AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CK' | 'CR' | 'HR' | 'CU' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'TP' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'CI' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MK' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'AN' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'KP' | 'GB' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'KR' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TJ' | 'TZ' | 'TH' | 'CD' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'YU' | 'ZM' | 'ZW' | null) | undefined, acquirerMerchantId?: (string | null) | undefined, acquirerMerchantName?: (string | null) | undefined, acquirerName?: (string | null) | undefined, merchantCategoryCode?: (number | null) | undefined, merchantCountryCode?: (number | null) | undefined} | null) | undefined, challengeIndicator?: ('NO_PREFERENCE' | 'NO_CHALLENGE' | 'CHALLENGE' | 'CHALLENGE_AS_MANDATE' | null) | undefined, execute3ds?: ('FORCE_3DS' | 'FORCE_DATA_ONLY' | 'NOT_SUPPORTED_BY_MERCHANT' | 'DYNAMIC_FORTER_DECISION' | null) | undefined, forcePsd2Exemption?: ({channel: 'THREEDS_RAILS' | 'AUTHORIZATION', type: 'LOW_VALUE' | 'TRANSACTION_RISK_ANALYSIS' | 'SECURE_CORPORATE' | 'TRUSTED_BENEFICIARY'} | null) | undefined, requestChallenge?: (boolean | null) | undefined, threeDSServerTransID: string, threeDsExecutor?: ('FORTER' | 'MERCHANT' | null) | undefined} | null) | undefined, token: string, tokenType?: ('PSP' | 'EMV_PAYMENT_TOKEN' | 'MERCHANT_GENERATED' | 'FORTER_TOKEN' | 'OTHER' | null) | undefined, verificationResults: CreditCardVerification} | null) | undefined, venmo?: ({fullVenmoResponsePayload?: ({[key: string]: unknown} | null) | undefined, paymentId?: (string | null) | undefined, token: string, userId: string, userName: string} | null) | undefined}; export type ConnectionInformation = {checkoutToolsSessionId?: (string | null) | undefined, customerIP: string, forterMobileUID?: (string | null) | undefined, forterTokenCookie?: (string | null) | undefined, merchantDeviceIdentifier?: (string | null) | undefined, merchantProvidedSessionId?: (string | null) | undefined, userAgent: string}; export type AccountSignupRequest = {accountData?: ({additionalVerificationDocuments?: ({address?: ({address1?: (string | null) | undefined, address2?: (string | null) | undefined, city?: (string | null) | undefined, company?: (string | null) | undefined, country: string, region?: (string | null) | undefined, savedData?: ({choseToSaveData?: (boolean | null) | undefined, usedSavedData?: (boolean | null) | undefined} | null) | undefined, zip?: (string | null) | undefined} | null) | undefined, documentDateOfBirth?: (string | null) | undefined, documentExpiration?: (string | null) | undefined, documentFirstName?: (string | null) | undefined, documentIssuingState?: (string | null) | undefined, documentLastName?: (string | null) | undefined, documentNumber?: (string | null) | undefined, documentSource: 'CAMERA_CAPTURED' | 'UPLOADED_FILE' | 'TYPED' | 'OTHER', documentStatus?: ('SENT_TO_CLIENT' | 'RECEIVED_FROM_CLIENT' | 'ABANDONED_BY_CLIENT' | 'RECEIVED_FROM_CLIENT_FAULTY' | null) | undefined, documentType: string, documentVerificationServiceAnswer?: (string | null) | undefined, documentVerificationServiceName?: (string | null) | undefined, documentVerificationServiceResponsePayload?: ({[key: string]: unknown} | null) | undefined, documentVerified?: (boolean | null) | undefined, eventTime?: (number | null) | undefined, nationality?: (string | null) | undefined} | null) | undefined, addressesInAccount?: (Array
| null) | undefined, customerEngagement?: ({aboutMe?: (boolean | null) | undefined, communityPostsWritten?: ({inUse?: (boolean | null) | undefined, itemInListCount?: (number | null) | undefined, updateTimes?: ({creationTime?: (number | null) | undefined, lastModifiedTime?: (number | null) | undefined, lastUsed?: (number | null) | undefined, removalTime?: (number | null) | undefined} | null) | undefined} | null) | undefined, enableDeviceLocation?: (boolean | null) | undefined, extendedBioOrDescription?: (boolean | null) | undefined, followersCount?: (number | null) | undefined, followingCount?: (number | null) | undefined, invites?: (Array | null) | undefined, likedItems?: ({inUse?: (boolean | null) | undefined, itemInListCount?: (number | null) | undefined, updateTimes?: ({creationTime?: (number | null) | undefined, lastModifiedTime?: (number | null) | undefined, lastUsed?: (number | null) | undefined, removalTime?: (number | null) | undefined} | null) | undefined} | null) | undefined, messagesReceived?: ({inUse?: (boolean | null) | undefined, itemInListCount?: (number | null) | undefined, updateTimes?: ({creationTime?: (number | null) | undefined, lastModifiedTime?: (number | null) | undefined, lastUsed?: (number | null) | undefined, removalTime?: (number | null) | undefined} | null) | undefined} | null) | undefined, messagesSent?: ({inUse?: (boolean | null) | undefined, itemInListCount?: (number | null) | undefined, updateTimes?: ({creationTime?: (number | null) | undefined, lastModifiedTime?: (number | null) | undefined, lastUsed?: (number | null) | undefined, removalTime?: (number | null) | undefined} | null) | undefined} | null) | undefined, newsletters?: ({inUse?: (boolean | null) | undefined, itemInListCount?: (number | null) | undefined, updateTimes?: ({creationTime?: (number | null) | undefined, lastModifiedTime?: (number | null) | undefined, lastUsed?: (number | null) | undefined, removalTime?: (number | null) | undefined} | null) | undefined} | null) | undefined, profileLogo?: (boolean | null) | undefined, profilePicture?: (boolean | null) | undefined, requestedDemo?: (boolean | null) | undefined, reviewsWritten?: ({inUse?: (boolean | null) | undefined, itemInListCount?: (number | null) | undefined, updateTimes?: ({creationTime?: (number | null) | undefined, lastModifiedTime?: (number | null) | undefined, lastUsed?: (number | null) | undefined, removalTime?: (number | null) | undefined} | null) | undefined} | null) | undefined, savedLocations?: (Array | null) | undefined, sharedItems?: ({inUse?: (boolean | null) | undefined, itemInListCount?: (number | null) | undefined, updateTimes?: ({creationTime?: (number | null) | undefined, lastModifiedTime?: (number | null) | undefined, lastUsed?: (number | null) | undefined, removalTime?: (number | null) | undefined} | null) | undefined} | null) | undefined, signedUpForPushNotifications?: (boolean | null) | undefined, signedUpForSMSUpdates?: (boolean | null) | undefined, wishlist?: ({inUse?: (boolean | null) | undefined, itemInListCount?: (number | null) | undefined, updateTimes?: ({creationTime?: (number | null) | undefined, lastModifiedTime?: (number | null) | undefined, lastUsed?: (number | null) | undefined, removalTime?: (number | null) | undefined} | null) | undefined} | null) | undefined} | null) | undefined, emailsInAccount?: (Array | null) | undefined, paymentMethodsInAccount?: (Array | null) | undefined, personalDetails?: ({birthdate?: (string | null) | undefined, email?: (string | null) | undefined, firstName?: (string | null) | undefined, fullName?: (string | null) | undefined, gender?: ('MALE' | 'FEMALE' | 'CHOSE_NOT_TO_SPECIFY' | 'NONE' | null) | undefined, lastName?: (string | null) | undefined} | null) | undefined, phonesInAccount?: (Array | null) | undefined, ratingAsBuyer?: ({score?: (string | null) | undefined, source?: (string | null) | undefined, type?: ('INTERNAL_PEERS' | 'INTERNAL_MERCHANT' | 'EXTERNAL_PEERS' | 'EXTERNAL_INDEPENDENT' | null) | undefined} | null) | undefined, registrationIP?: (string | null) | undefined, type?: ('GUEST' | 'PRIVATE' | 'BUSINESS' | 'VIP' | 'MERCHANT_OPERATED' | 'TRIAL' | 'MERCHANT_EMPLOYEE' | 'PREMIUM_PAID' | 'SMALL_BUSINESS' | 'AGENT' | 'BUSINESS_PRIVATE' | 'BUSINESS_PREMIUM_PAID' | null) | undefined} | null) | undefined, accountId: string, additionalAccountEventIdentifiers?: (Record | null) | undefined, additionalInformation?: ({[key: string]: unknown} | null) | undefined, channelType?: ('WEB' | 'PHONE' | 'DYNAMIC_PHONE' | 'MOBILE' | 'MOBILE_IN_STORE' | 'IOS' | 'ANDROID' | 'WAP' | 'STORE' | 'MERCHANT_EMPLOYEE' | 'MAIL_ORDER' | 'AUTOMATIC_RENEWAL_OR_INSTALLMENT_PAYMENT' | 'MERCHANT_INITIATED' | 'UNKNOWN' | 'POS' | 'API_ONLY' | 'PERSONAL_POS' | 'PHONE_LINK' | 'AI_AGENT' | null) | undefined, connectionInformation: ConnectionInformation, customerSignedInUsingSocialNetworkAccount?: ({facebook?: (boolean | null) | undefined, google?: (boolean | null) | undefined, linkedin?: (boolean | null) | undefined, otherSocialNetwork?: (string | null) | undefined, paypal?: (boolean | null) | undefined, twitter?: (boolean | null) | undefined} | null) | undefined, eventTime: number, merchantIdentifiers?: ({merchantDomain?: (string | null) | undefined, merchantName?: (string | null) | undefined} | null) | undefined, promotions?: ({couponCodeUsed: string, couponDiscountAmount?: ({amountLocalCurrency?: (string | null) | undefined, amountUSD?: (string | null) | undefined, currency?: (string | null) | undefined} | null) | undefined, couponDiscountPercent?: (string | null) | undefined} | null) | undefined, signupStatus?: ('SUCCESS' | 'FAILED' | 'BLOCKED_BY_MERCHANT' | null) | undefined}; export type CreateApiV2AccountsSignupIdArgs = {id: string, 'api-version': string, 'x-forter-siteid': string, Authorization: string, body: AccountSignupRequest}; export type CreateApiV2AccountsSignupIdOptions = {baseUrl?: string | undefined, basicAuth?: {username: string, password: string} | undefined, fetch?: typeof fetch | undefined}; export const verificationData = z.object({ThreeDS: z.object({ACSUrl: z.string().max(2048), ECIValue: z.string().max(300), acsChallengeMandated: z.string().max(1), acsReferenceNumber: z.string().max(32), acsSignedContent: z.string().max(1000), acsTransID: z.string().max(36), authenticationType: z.string().max(2), authenticationValue: z.string().max(28), bankLiabilityShift: z.boolean(), cardEnrolled: z.string().max(1), cavvAlgorithm: z.string().max(1), challengeCancel: z.string().max(2), challengeStatus: z.string().max(1), dsTransID: z.string().max(100), encodedChallengeRequest: z.string(), exemption: z.enum(["LOW_VALUE", "TRANSACTION_RISK_ANALYSIS", "SECURE_CORPORATE", "TRUSTED_BENEFICIARY"]).nullable().optional(), interactionCounter: z.string().max(2), isFallback: z.boolean(), messageCategory: z.string().max(2), outOfScopeForPSD2: z.enum(["ANONYMOUS_PREPAID_CARD", "MERCHANT_INITIATED_TRANSACTIONS", "ONE_LEG_OUT_EEA", "MAIL_ORDER_TELEPHONE_ORDER"]).nullable().optional(), threeDSServerTransID: z.string().max(100), threeDSecureMode: z.string().max(15), threeDSecurePreference: z.string().max(15), threeDSecureResult: z.string().max(6), transStatus: z.string().max(1), transStatusReason: z.string().max(2), verifyStatus: z.string().max(1), version: z.string().max(50)}).nullable().optional(), email: z.object({email: z.string().max(256), emailVerification: z.object({sent: z.boolean().nullable().optional(), timeSent: z.number().nullable().optional(), verified: z.boolean()}).nullable().optional()}).nullable().optional(), phone: z.object({phone: z.string().max(25), smsVerified: z.object({sent: z.boolean().nullable().optional(), timeSent: z.number().nullable().optional(), verified: z.boolean()}).nullable().optional()}).nullable().optional()}); export const verificationMethod = z.object({correlationId: z.string(), status: z.string().max(50), statusCode: z.string().max(50), statusMessage: z.string().max(50), type: z.enum(["OTP_SMS", "OTP_EMAIL", "THREE_DS"]).max(50), verificationId: z.string(), verificationSpecificData: verificationData}); export const adaptiveAuthAccountsResponse = z.object({accountId: z.string(), correlationId: z.string(), decisionReason: z.string().max(1000), forterDecision: z.enum(["APPROVE", "DECLINE", "VERIFICATION_REQUIRED", "NOT_REVIEWED"]), merchantPolicyId: z.string(), recommendation: z.string().max(1000), verificationMethod: verificationMethod}); export const validateResponse = async ( schema: { readonly '~standard': { readonly validate: (value: unknown) => ({ readonly value: Output; readonly issues?: undefined } | { readonly issues: ReadonlyArray<{ readonly message: string; readonly path?: ReadonlyArray | undefined }> }) | Promise<{ readonly value: Output; readonly issues?: undefined } | { readonly issues: ReadonlyArray<{ readonly message: string; readonly path?: ReadonlyArray | undefined }> }> } }, value: unknown ): Promise => { const result = await schema['~standard'].validate(value) if (result.issues !== undefined) { const detail = result.issues .map(({ message, path }) => path?.length ? `${path.map((segment) => String(typeof segment === 'object' ? segment.key : segment)).join('.')}: ${message}` : message ) .join('; ') throw new Error(`Response does not match the schema: ${detail}`, { cause: { issues: result.issues } }) } return result.value }; /** * Signup * * POST /v2/accounts/signup/{id} */ export const createApiV2AccountsSignupId = async (args: CreateApiV2AccountsSignupIdArgs, options?: CreateApiV2AccountsSignupIdOptions) => { const {baseUrl = "https://api.forter-secure.com", fetch: fetchFn = fetch, basicAuth} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") headers.set('accept', "application/json") if (args['api-version'] != null) headers.set("api-version", String(args['api-version'])) if (args['x-forter-siteid'] != null) headers.set("x-forter-siteid", String(args['x-forter-siteid'])) if (args.Authorization != null) headers.set("Authorization", String(args.Authorization)) if (basicAuth !== undefined) headers.set('authorization', `Basic ${btoa(`${basicAuth.username}:${basicAuth.password}`)}`) const url = `${baseUrl.replace(/\/+$/, '')}/v2/accounts/signup/${encodeURIComponent(String(args.id))}${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "POST", headers, body: JSON.stringify(args.body)}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return validateResponse(adaptiveAuthAccountsResponse, await res.json()) };