import {z} from 'zod' export type Amount = {amountLocalCurrency?: (string | null) | undefined, amountUSD?: (string | null) | undefined, currency?: (string | null) | undefined}; export type BasicItemData = {category?: (string | null) | undefined, discount?: ({couponCodeUsed: string, couponDiscountAmount?: ({amountLocalCurrency?: (string | null) | undefined, amountUSD?: (string | null) | undefined, currency?: (string | null) | undefined} | null) | undefined, couponDiscountPercent?: (string | null) | undefined} | null) | undefined, name: string, price: Amount, productId?: (string | null) | undefined, quantity: number, type: 'TANGIBLE' | 'NON_TANGIBLE'}; export type LoyaltyProgram = {accountNumber?: (string | null) | undefined, loyaltyPointsValue?: ({amountLocalCurrency?: (string | null) | undefined, amountUSD?: (string | null) | undefined, currency?: (string | null) | undefined} | null) | undefined, programName?: (string | null) | undefined, programPoints?: (number | null) | undefined, tier?: (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 Beneficiary = {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, 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, bankAccount?: ({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, comments?: ({merchantComments?: (string | null) | undefined, messageToBeneficiary?: (string | null) | undefined, userCommentsToMerchant?: (string | null) | undefined} | null) | undefined, cryptoWallet?: ({cryptoWalletName?: (string | null) | undefined, cryptoWalletPaymentId?: (string | null) | undefined, cryptoWalletType: 'INTERNAL' | 'EXTERNAL'} | null) | undefined, identityCard?: (string | null) | undefined, loyaltyProgram?: (Array | null) | undefined, personalDetails: PersonalDetails, phone?: (Array | null) | undefined}; export type Rating = {score?: (string | null) | undefined, source?: (string | null) | undefined, type?: ('INTERNAL_PEERS' | 'INTERNAL_MERCHANT' | 'EXTERNAL_PEERS' | 'EXTERNAL_INDEPENDENT' | null) | undefined}; export type Location = {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, exactLocation?: ({latitude?: (number | null) | undefined, longitude?: (number | null) | undefined, source?: (string | null) | undefined} | null) | undefined, locationName?: ({isTextSearchResult?: (boolean | null) | undefined, specificLocationName?: (string | null) | undefined, specificLocationType?: (string | null) | undefined} | null) | undefined, roughLocation?: ({airportCode?: (string | null) | undefined, city?: (string | null) | undefined, country?: (string | null) | undefined, region?: (string | null) | undefined, seaportCode?: (string | null) | undefined} | null) | undefined, savedLocation?: ({choseToSaveData?: (boolean | null) | undefined, usedSavedData?: (boolean | null) | undefined} | null) | undefined}; export type TransportItem = {bookingSource?: (string | null) | undefined, carrier?: (string | null) | undefined, class?: (string | null) | undefined, driverDetails?: ({availableFundsForWithdrawal?: ({amountLocalCurrency?: (string | null) | undefined, amountUSD?: (string | null) | undefined, currency?: (string | null) | undefined} | null) | undefined, dateOfFirstSale?: (number | null) | undefined, ratingAsBuyer?: ({score?: (string | null) | undefined, source?: (string | null) | undefined, type?: ('INTERNAL_PEERS' | 'INTERNAL_MERCHANT' | 'EXTERNAL_PEERS' | 'EXTERNAL_INDEPENDENT' | null) | undefined} | null) | undefined, ratingAsSeller?: ({score?: (string | null) | undefined, source?: (string | null) | undefined, type?: ('INTERNAL_PEERS' | 'INTERNAL_MERCHANT' | 'EXTERNAL_PEERS' | 'EXTERNAL_INDEPENDENT' | null) | undefined} | null) | undefined, sellerAccountCreationDate: number, sellerLastLoginIP?: ({ip: string, updateTimes?: ({creationTime?: (number | null) | undefined, lastModifiedTime?: (number | null) | undefined, lastUsed?: (number | null) | undefined, removalTime?: (number | null) | undefined} | null) | undefined} | null) | undefined, sellerPastSalesCount?: (number | null) | undefined, sellerPersonalDetails?: ({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, sellerRegistrationIP?: ({ip: string, updateTimes?: ({creationTime?: (number | null) | undefined, lastModifiedTime?: (number | null) | undefined, lastUsed?: (number | null) | undefined, removalTime?: (number | null) | undefined} | null) | undefined} | null) | undefined} | null) | undefined, duration?: ({endTime: number, startTime: number} | null) | undefined, endPoint?: ({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, exactLocation?: ({latitude?: (number | null) | undefined, longitude?: (number | null) | undefined, source?: (string | null) | undefined} | null) | undefined, locationName?: ({isTextSearchResult?: (boolean | null) | undefined, specificLocationName?: (string | null) | undefined, specificLocationType?: (string | null) | undefined} | null) | undefined, roughLocation?: ({airportCode?: (string | null) | undefined, city?: (string | null) | undefined, country?: (string | null) | undefined, region?: (string | null) | undefined, seaportCode?: (string | null) | undefined} | null) | undefined, savedLocation?: ({choseToSaveData?: (boolean | null) | undefined, usedSavedData?: (boolean | null) | undefined} | null) | undefined} | null) | undefined, expeditedBoarding?: (boolean | null) | undefined, extraBaggage?: (boolean | null) | undefined, leg?: (number | null) | undefined, locationAtTimeOfReservation?: ({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, exactLocation?: ({latitude?: (number | null) | undefined, longitude?: (number | null) | undefined, source?: (string | null) | undefined} | null) | undefined, locationName?: ({isTextSearchResult?: (boolean | null) | undefined, specificLocationName?: (string | null) | undefined, specificLocationType?: (string | null) | undefined} | null) | undefined, roughLocation?: ({airportCode?: (string | null) | undefined, city?: (string | null) | undefined, country?: (string | null) | undefined, region?: (string | null) | undefined, seaportCode?: (string | null) | undefined} | null) | undefined, savedLocation?: ({choseToSaveData?: (boolean | null) | undefined, usedSavedData?: (boolean | null) | undefined} | null) | undefined} | null) | undefined, passengers?: (number | null) | undefined, purchasedMeals?: (boolean | null) | undefined, selectSeat?: (boolean | null) | undefined, startPoint: Location, type: 'PRIVATE_TAXI' | 'PRIVATE_VIP_TAXI' | 'PRIVATE_LARGE_TAXI' | 'SHARED_RIDE' | 'SHARED_RIDE_DISCOUNT' | 'AIR_TRAVEL' | 'RAIL' | 'FERRY' | 'BUS' | 'CAR_RENTAL' | 'PARKING' | 'CRUISE_LINE'}; export type BasicSellerData = {availableFundsForWithdrawal?: ({amountLocalCurrency?: (string | null) | undefined, amountUSD?: (string | null) | undefined, currency?: (string | null) | undefined} | null) | undefined, dateOfFirstSale?: (number | null) | undefined, ratingAsBuyer?: ({score?: (string | null) | undefined, source?: (string | null) | undefined, type?: ('INTERNAL_PEERS' | 'INTERNAL_MERCHANT' | 'EXTERNAL_PEERS' | 'EXTERNAL_INDEPENDENT' | null) | undefined} | null) | undefined, ratingAsSeller?: ({score?: (string | null) | undefined, source?: (string | null) | undefined, type?: ('INTERNAL_PEERS' | 'INTERNAL_MERCHANT' | 'EXTERNAL_PEERS' | 'EXTERNAL_INDEPENDENT' | null) | undefined} | null) | undefined, sellerAccountCreationDate: number, sellerLastLoginIP?: ({ip: string, updateTimes?: ({creationTime?: (number | null) | undefined, lastModifiedTime?: (number | null) | undefined, lastUsed?: (number | null) | undefined, removalTime?: (number | null) | undefined} | null) | undefined} | null) | undefined, sellerPastSalesCount?: (number | null) | undefined, sellerPersonalDetails?: ({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, sellerRegistrationIP?: ({ip: string, updateTimes?: ({creationTime?: (number | null) | undefined, lastModifiedTime?: (number | null) | undefined, lastUsed?: (number | null) | undefined, removalTime?: (number | null) | undefined} | null) | undefined} | null) | undefined}; export type Item = {basicItemData: BasicItemData, beneficiaries?: (Array | null) | undefined, deliveryDetails?: ({delayedDeliveryDate?: (string | null) | undefined, delayedDeliveryTime?: (number | null) | undefined, deliveryComments?: (string | null) | undefined, deliveryMethod: string, deliveryPrice?: ({amountLocalCurrency?: (string | null) | undefined, amountUSD?: (string | null) | undefined, currency?: (string | null) | undefined} | null) | undefined, deliveryType: 'DIGITAL' | 'PHYSICAL' | 'HYBRID'} | null) | undefined, itemReturnData?: ({posDetails?: ({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, cardEntryMethod: 'SCANNED' | 'HAND_KEYED' | 'CHIP_READ' | 'UNKNOWN' | 'SAVED_IN_ACCOUNT' | 'SWIPED', cashierId: string, departmentId: string, storeBusinessUnit: string, storeId: string, storeName: string, workStationId: string} | null) | undefined, returnCondition?: (string | null) | undefined, returnInternalReasonCategory?: (string | null) | undefined, returnMethod?: ('ONLINE' | 'IN-STORE' | null) | undefined, returnReasonCategory?: ('CHANGED_MY_MIND' | 'DOES_NOT_FIT' | 'NOT_AS_DESCRIBED' | 'WRONG_ITEM' | 'ARRIVED_TOO_LATE' | 'LOW_QUALITY' | 'DAMAGED_GOODS' | 'GIFT_RETURN' | 'RETURN_TO_SENDER' | 'RETURN_POLICY_EXCEPTION' | 'OTHER' | 'UNKNOWN' | 'ENTIRE_ORDER_NOT_RECEIVED' | 'OUTBOUND_ISSUE_CARRIER' | 'OUTBOUND_ISSUE_MERCHANT' | 'FAILED_DELIVERY' | 'INBOUND_LOSS' | 'INBOUND_ISSUE_CARRIER' | null) | undefined, returnSegment?: (string | null) | undefined, returnStatusLog?: ({arrivedToWarehouse?: (boolean | null) | undefined, arrivedToWarehouseTime?: (number | null) | undefined, returnInitiated?: (boolean | null) | undefined, returnInitiationTime?: (number | null) | undefined, shippedByCustomer?: (boolean | null) | undefined, shippedByCustomerTime?: (number | null) | undefined} | null) | undefined, typeOfCompensationRequested?: ('REPLACEMENT' | 'REFUND' | 'REFUND_UPON_RETURN' | 'CREDIT' | 'MIXED' | 'UNKNOWN' | 'NO_COMPENSATION' | null) | undefined, updatedReturnStatus?: ('ACCEPTED_BY_MERCHANT' | 'REJECTED_BY_MERCHANT' | 'PARTIALLY_ACCEPTED_BY_MERCHANT' | null) | undefined} | null) | undefined, itemSpecificData?: ({accommodation?: ({accommodationAddress?: ({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, accommodationName?: (string | null) | undefined, duration?: ({endDate: string, startDate: string} | null) | undefined, housingType?: (string | null) | undefined, isRefundable?: (boolean | null) | undefined, location?: ({airportCode?: (string | null) | undefined, city?: (string | null) | undefined, country?: (string | null) | undefined, region?: (string | null) | undefined, seaportCode?: (string | null) | undefined} | null) | undefined, numberOfGuests: number, rating?: (Array | null) | undefined, type?: ('HOTEL' | 'APARTMENT' | 'CRUISE' | 'STUDIO' | 'EVENT_VENUE' | null) | undefined} | null) | undefined, cryptocurrency?: ({destinationWallet?: (string | null) | undefined} | null) | undefined, digitalGoodsAndServices?: ({automaticRenewal?: (boolean | null) | undefined, billingFrequency?: ('DAILY' | 'WEEKLY' | 'MONTHLY' | 'QUARTERLY' | 'SEMI_ANNUAL' | 'ANNUAL' | 'MULTI_ANNUAL' | 'OTHER' | null) | undefined, duration?: ({endDate: string, startDate: string} | null) | undefined, isTrial?: (boolean | null) | undefined, webHosting?: ({SSLcertificates?: (boolean | null) | undefined, domains?: (Array | null) | undefined, emailService?: (boolean | null) | undefined, privateRegistration?: (boolean | null) | undefined, sercurityUpgrades?: (boolean | null) | undefined, webPromotion?: (boolean | null) | undefined, websiteBuilder?: (boolean | null) | undefined} | null) | undefined} | null) | undefined, food?: ({restaurantAddress?: ({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, restaurantId?: (string | null) | undefined, restaurantName?: (string | null) | undefined, tipAmount?: ({amountLocalCurrency?: (string | null) | undefined, amountUSD?: (string | null) | undefined, currency?: (string | null) | undefined} | null) | undefined} | null) | undefined, gaming?: ({characterName?: (string | null) | undefined, characterRole?: (string | null) | undefined, gameGenre?: (string | null) | undefined, gameItemAmount?: (number | null) | undefined, gameName: string, gamePlatform?: (string | null) | undefined, gameServerCountry?: (string | null) | undefined, gameServerName?: (string | null) | undefined, inGameTradeLocation?: (string | null) | undefined, playerFaction?: (string | null) | undefined, playerLeague?: (string | null) | undefined, playerLevel?: (string | null) | undefined, playerPosition?: (string | null) | undefined} | null) | undefined, personNameRecord?: (string | null) | undefined, physicalGoods?: ({wrapAsGift?: (boolean | null) | undefined} | null) | undefined, professionalServices?: ({numberOfParticipatingClients?: (number | null) | undefined, numberOfParticipatingVendors?: (number | null) | undefined, tipAmount?: ({amountLocalCurrency?: (string | null) | undefined, amountUSD?: (string | null) | undefined, currency?: (string | null) | undefined} | null) | undefined} | null) | undefined, ticketsAndEvents?: ({eventLocation?: ({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, eventName: string, eventTime?: (number | null) | undefined, eventType?: (string | null) | undefined, eventVenueName?: (string | null) | undefined, ticketCategory?: ('ADULT' | 'CHILD' | 'ENFANT' | 'SENIOR' | 'STUDENT' | 'VETERAN' | 'OTHER' | null) | undefined, ticketClass?: (string | null) | undefined} | null) | undefined, transport?: (Array | null) | undefined} | null) | undefined, pendingAddition?: (boolean | null) | undefined, seller?: ({sellerBusinessWebsite?: (string | null) | undefined, sellerCategory?: (string | null) | undefined, sellerDetails: BasicSellerData, sellerVendorName?: (string | null) | undefined} | null) | undefined, shopifyAdditionalItemData?: ({properties?: ({[key: string]: unknown} | null) | undefined} | null) | undefined}; export type ItemCompensationStatusData = {compensationTypeGranted: 'REPLACEMENT' | 'REFUND' | 'REFUND_UPON_RETURN' | 'CREDIT' | 'MIXED' | 'UNKNOWN' | 'NO_COMPENSATION', internalReasonCategory?: (string | null) | undefined, reasonCategory: 'CHANGED_MY_MIND' | 'DOES_NOT_FIT' | 'NOT_AS_DESCRIBED' | 'WRONG_ITEM' | 'ARRIVED_TOO_LATE' | 'LOW_QUALITY' | 'DAMAGED_GOODS' | 'GIFT_RETURN' | 'RETURN_TO_SENDER' | 'RETURN_POLICY_EXCEPTION' | 'OTHER' | 'UNKNOWN' | 'ITEM_NOT_RECEIVED' | 'ENTIRE_ORDER_NOT_RECEIVED' | 'OUTBOUND_ISSUE_CARRIER' | 'OUTBOUND_ISSUE_MERCHANT' | 'FAILED_DELIVERY' | 'INBOUND_LOSS' | 'INBOUND_ISSUE_CARRIER', returnCondition?: ('GOOD_CONDITION' | 'DAMAGED' | 'WRONG_ITEM' | 'NO_ITEM' | 'NOT_ARRIVED' | 'NO_RETURN' | null) | undefined, returnMethodGranted: 'SHIP_TO_WAREHOUSE' | 'IN_STORE' | 'NO_RETURN', statusLog?: ({arrivedToWarehouseTime?: (number | null) | undefined, initiationTime?: (number | null) | undefined, initiationType?: ('CALL_CENTER' | 'IN_STORE' | 'CHAT' | 'ONLINE' | 'SELF_SERVICE' | null) | undefined, shippedByCustomerTime?: (number | null) | undefined} | null) | undefined, updatedStatus: 'ACCEPTED_BY_MERCHANT' | 'REJECTED_BY_MERCHANT' | 'WITHDRAWN_BY_CUSTOMER'}; export type ItemCompensationStatus = {basicItemData: BasicItemData, statusData: ItemCompensationStatusData}; 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 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 StatusRequest = {additionalInformation?: ({[key: string]: unknown} | null) | undefined, additionalOrderId?: (string | null) | undefined, cartItems?: (Array | null) | undefined, compensationStatus?: ({hasProofOfPurchase?: (boolean | null) | undefined, itemStatus: Array, merchantAgentData?: ({merchantAgentId?: (string | null) | undefined, merchantAgentName?: (string | null) | undefined} | null) | undefined, replacementOrderId?: (string | null) | undefined, shippingRefunded?: (boolean | null) | undefined, shippingRefundedAmount?: ({amountLocalCurrency?: (string | null) | undefined, amountUSD?: (string | null) | undefined, currency?: (string | null) | undefined} | null) | undefined, statusData?: ({compensationTypeGranted: 'REPLACEMENT' | 'REFUND' | 'REFUND_UPON_RETURN' | 'CREDIT' | 'MIXED' | 'UNKNOWN' | 'NO_COMPENSATION', internalReasonCategory?: (string | null) | undefined, reasonCategory: 'CHANGED_MY_MIND' | 'DOES_NOT_FIT' | 'NOT_AS_DESCRIBED' | 'WRONG_ITEM' | 'ARRIVED_TOO_LATE' | 'LOW_QUALITY' | 'DAMAGED_GOODS' | 'GIFT_RETURN' | 'RETURN_TO_SENDER' | 'RETURN_POLICY_EXCEPTION' | 'OTHER' | 'UNKNOWN' | 'ITEM_NOT_RECEIVED' | 'ENTIRE_ORDER_NOT_RECEIVED' | 'OUTBOUND_ISSUE_CARRIER' | 'OUTBOUND_ISSUE_MERCHANT' | 'FAILED_DELIVERY' | 'INBOUND_LOSS' | 'INBOUND_ISSUE_CARRIER', returnCondition?: ('GOOD_CONDITION' | 'DAMAGED' | 'WRONG_ITEM' | 'NO_ITEM' | 'NOT_ARRIVED' | 'NO_RETURN' | null) | undefined, returnMethodGranted: 'SHIP_TO_WAREHOUSE' | 'IN_STORE' | 'NO_RETURN', statusLog?: ({arrivedToWarehouseTime?: (number | null) | undefined, initiationTime?: (number | null) | undefined, initiationType?: ('CALL_CENTER' | 'IN_STORE' | 'CHAT' | 'ONLINE' | 'SELF_SERVICE' | null) | undefined, shippedByCustomerTime?: (number | null) | undefined} | null) | undefined, updatedStatus: 'ACCEPTED_BY_MERCHANT' | 'REJECTED_BY_MERCHANT' | 'WITHDRAWN_BY_CUSTOMER'} | null) | undefined, totalGrantedAmount: Amount} | null) | undefined, correlationId?: (string | null) | undefined, deliveryStatusInfo?: ({additionalShippingInfo?: (string | null) | undefined, carrier?: (string | null) | undefined, customerOpenedEmail?: (boolean | null) | undefined, downloadTime?: (number | null) | undefined, proofOfShippingURL?: (string | null) | undefined, signedProofOfShipping?: (boolean | null) | undefined, trackingNumber?: (string | null) | undefined} | null) | undefined, endPointLocation?: ({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, exactLocation?: ({latitude?: (number | null) | undefined, longitude?: (number | null) | undefined, source?: (string | null) | undefined} | null) | undefined, locationName?: ({isTextSearchResult?: (boolean | null) | undefined, specificLocationName?: (string | null) | undefined, specificLocationType?: (string | null) | undefined} | null) | undefined, roughLocation?: ({airportCode?: (string | null) | undefined, city?: (string | null) | undefined, country?: (string | null) | undefined, region?: (string | null) | undefined, seaportCode?: (string | null) | undefined} | null) | undefined, savedLocation?: ({choseToSaveData?: (boolean | null) | undefined, usedSavedData?: (boolean | null) | undefined} | null) | undefined} | null) | undefined, eventId?: (string | null) | undefined, eventTime: number, itemIds?: (Array | null) | undefined, orderId: string, payment?: (Array | null) | undefined, refundInformation?: ({isAutomatedRefund?: (boolean | null) | undefined, isFullRefund?: (boolean | null) | undefined, refundAmount?: ({amountLocalCurrency?: (string | null) | undefined, amountUSD?: (string | null) | undefined, currency?: (string | null) | undefined} | null) | undefined, refundAuthorizationCode?: (string | null) | undefined, refundDate?: (string | null) | undefined, refundInitiatedBy?: ('MERCHANT' | 'CUSTOMER' | null) | undefined, refundMethod?: ('BANK' | 'PAYPAL' | 'STORE_CREDIT' | 'ORIGINAL_PAYMENT_METHOD' | 'DIFFERENT_PAYMENT_METHOD' | null) | undefined, refundStatus?: ('REQUESTED' | 'DECLINED' | 'COMPLETED' | null) | undefined} | null) | undefined, returnedCartItems?: (Array | null) | undefined, statusChangeReason?: (string | null) | undefined, updatedMerchantStatus?: (string | null) | undefined, updatedStatus: 'PROCESSING' | 'SENT' | 'COMPLETED' | 'CANCELED_BY_MERCHANT' | 'CANCELED_BY_CUSTOMER' | 'RETURNED' | 'NO_SHOW' | 'REPLACED', updatedTotalAmount?: ({amountLocalCurrency?: (string | null) | undefined, amountUSD?: (string | null) | undefined, currency?: (string | null) | undefined} | null) | undefined, updatedTotalDiscount?: ({couponCodeUsed: string, couponDiscountAmount?: ({amountLocalCurrency?: (string | null) | undefined, amountUSD?: (string | null) | undefined, currency?: (string | null) | undefined} | null) | undefined, couponDiscountPercent?: (string | null) | undefined} | null) | undefined, updatedTryOutStatus?: ('NONE' | 'EMAIL_SENT_TO_CUSTOMER' | 'CALLED_TO_CUSTOMER' | 'CUSTOMER_VISITED_PAGE' | 'CUSTOMER_DECLARED_SENDBACK' | 'SHIPPING_REPORTED_SENDBACK' | 'RETURNED_ITEMS_ARRIVED_PENDING' | 'MISSING_ITEMS' | 'MANUAL_RESOLUTION' | 'CHARGE_ATTEMPT' | 'FORFEIT' | 'COMPLETED' | null) | undefined, verificationResults?: ({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} | null) | undefined}; export type CreateApiV2StatusIdArgs = {id: string, 'api-version': string, 'x-forter-siteid': string, Authorization: string, body: StatusRequest}; export type CreateApiV2StatusIdOptions = {baseUrl?: string | undefined, basicAuth?: {username: string, password: string} | undefined, fetch?: typeof fetch | undefined}; export const statusResponse = z.object({message: z.string().max(1000), status: z.string().max(50)}); 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 }; /** * Order status * * POST /v2/status/{id} */ export const createApiV2StatusId = async (args: CreateApiV2StatusIdArgs, options?: CreateApiV2StatusIdOptions) => { 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/status/${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(statusResponse, await res.json()) };