diff --git a/src/typings/checkout/accountInfo.ts b/src/typings/checkout/accountInfo.ts index 7550c3e..9542949 100644 --- a/src/typings/checkout/accountInfo.ts +++ b/src/typings/checkout/accountInfo.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AccountInfo { /** * Indicator for the length of time since this shopper account was created in the merchant\'s environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days @@ -103,6 +85,109 @@ export class AccountInfo { * Shopper\'s work phone number (including the country code). */ 'workPhone'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountAgeIndicator", + "baseName": "accountAgeIndicator", + "type": "AccountInfo.AccountAgeIndicatorEnum" + }, + { + "name": "accountChangeDate", + "baseName": "accountChangeDate", + "type": "Date" + }, + { + "name": "accountChangeIndicator", + "baseName": "accountChangeIndicator", + "type": "AccountInfo.AccountChangeIndicatorEnum" + }, + { + "name": "accountCreationDate", + "baseName": "accountCreationDate", + "type": "Date" + }, + { + "name": "accountType", + "baseName": "accountType", + "type": "AccountInfo.AccountTypeEnum" + }, + { + "name": "addCardAttemptsDay", + "baseName": "addCardAttemptsDay", + "type": "number" + }, + { + "name": "deliveryAddressUsageDate", + "baseName": "deliveryAddressUsageDate", + "type": "Date" + }, + { + "name": "deliveryAddressUsageIndicator", + "baseName": "deliveryAddressUsageIndicator", + "type": "AccountInfo.DeliveryAddressUsageIndicatorEnum" + }, + { + "name": "homePhone", + "baseName": "homePhone", + "type": "string" + }, + { + "name": "mobilePhone", + "baseName": "mobilePhone", + "type": "string" + }, + { + "name": "passwordChangeDate", + "baseName": "passwordChangeDate", + "type": "Date" + }, + { + "name": "passwordChangeIndicator", + "baseName": "passwordChangeIndicator", + "type": "AccountInfo.PasswordChangeIndicatorEnum" + }, + { + "name": "pastTransactionsDay", + "baseName": "pastTransactionsDay", + "type": "number" + }, + { + "name": "pastTransactionsYear", + "baseName": "pastTransactionsYear", + "type": "number" + }, + { + "name": "paymentAccountAge", + "baseName": "paymentAccountAge", + "type": "Date" + }, + { + "name": "paymentAccountIndicator", + "baseName": "paymentAccountIndicator", + "type": "AccountInfo.PaymentAccountIndicatorEnum" + }, + { + "name": "purchasesLast6Months", + "baseName": "purchasesLast6Months", + "type": "number" + }, + { + "name": "suspiciousActivity", + "baseName": "suspiciousActivity", + "type": "boolean" + }, + { + "name": "workPhone", + "baseName": "workPhone", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AccountInfo.attributeTypeMap; + } } export namespace AccountInfo { diff --git a/src/typings/checkout/acctInfo.ts b/src/typings/checkout/acctInfo.ts index b43771d..c7d2cf4 100644 --- a/src/typings/checkout/acctInfo.ts +++ b/src/typings/checkout/acctInfo.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AcctInfo { /** * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days @@ -91,6 +73,94 @@ export class AcctInfo { * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. Max length: 3 characters. */ 'txnActivityYear'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "chAccAgeInd", + "baseName": "chAccAgeInd", + "type": "AcctInfo.ChAccAgeIndEnum" + }, + { + "name": "chAccChange", + "baseName": "chAccChange", + "type": "string" + }, + { + "name": "chAccChangeInd", + "baseName": "chAccChangeInd", + "type": "AcctInfo.ChAccChangeIndEnum" + }, + { + "name": "chAccPwChange", + "baseName": "chAccPwChange", + "type": "string" + }, + { + "name": "chAccPwChangeInd", + "baseName": "chAccPwChangeInd", + "type": "AcctInfo.ChAccPwChangeIndEnum" + }, + { + "name": "chAccString", + "baseName": "chAccString", + "type": "string" + }, + { + "name": "nbPurchaseAccount", + "baseName": "nbPurchaseAccount", + "type": "string" + }, + { + "name": "paymentAccAge", + "baseName": "paymentAccAge", + "type": "string" + }, + { + "name": "paymentAccInd", + "baseName": "paymentAccInd", + "type": "AcctInfo.PaymentAccIndEnum" + }, + { + "name": "provisionAttemptsDay", + "baseName": "provisionAttemptsDay", + "type": "string" + }, + { + "name": "shipAddressUsage", + "baseName": "shipAddressUsage", + "type": "string" + }, + { + "name": "shipAddressUsageInd", + "baseName": "shipAddressUsageInd", + "type": "AcctInfo.ShipAddressUsageIndEnum" + }, + { + "name": "shipNameIndicator", + "baseName": "shipNameIndicator", + "type": "AcctInfo.ShipNameIndicatorEnum" + }, + { + "name": "suspiciousAccActivity", + "baseName": "suspiciousAccActivity", + "type": "AcctInfo.SuspiciousAccActivityEnum" + }, + { + "name": "txnActivityDay", + "baseName": "txnActivityDay", + "type": "string" + }, + { + "name": "txnActivityYear", + "baseName": "txnActivityYear", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AcctInfo.attributeTypeMap; + } } export namespace AcctInfo { diff --git a/src/typings/checkout/achDetails.ts b/src/typings/checkout/achDetails.ts index 8cebe11..2f13797 100644 --- a/src/typings/checkout/achDetails.ts +++ b/src/typings/checkout/achDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AchDetails { /** * The bank account number (without separators). @@ -59,6 +41,54 @@ export class AchDetails { * **ach** */ 'type'?: AchDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "bankAccountNumber", + "baseName": "bankAccountNumber", + "type": "string" + }, + { + "name": "bankLocationId", + "baseName": "bankLocationId", + "type": "string" + }, + { + "name": "encryptedBankAccountNumber", + "baseName": "encryptedBankAccountNumber", + "type": "string" + }, + { + "name": "encryptedBankLocationId", + "baseName": "encryptedBankLocationId", + "type": "string" + }, + { + "name": "ownerName", + "baseName": "ownerName", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "AchDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return AchDetails.attributeTypeMap; + } } export namespace AchDetails { diff --git a/src/typings/checkout/additionalData3DSecure.ts b/src/typings/checkout/additionalData3DSecure.ts index f433c8f..b88ea49 100644 --- a/src/typings/checkout/additionalData3DSecure.ts +++ b/src/typings/checkout/additionalData3DSecure.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AdditionalData3DSecure { /** * Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen still selects the version of 3D Secure based on configuration to optimize authorisation rates and improve the shopper\'s experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen will not offer 3D Secure 2 to your shopper regardless of your configuration. @@ -47,5 +29,38 @@ export class AdditionalData3DSecure { * Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen\'s Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **1.0.2**: Apply 3D Secure version 1.0.2. * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. For example, if the configuration is to fall back to 3D Secure 1, we will apply version 1.0.2. * If you prefer 2.1.0 or 2.2.0 but the BIN is not enrolled, you will receive an error. */ 'threeDSVersion'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "allow3DS2", + "baseName": "allow3DS2", + "type": "string" + }, + { + "name": "executeThreeD", + "baseName": "executeThreeD", + "type": "string" + }, + { + "name": "mpiImplementationType", + "baseName": "mpiImplementationType", + "type": "string" + }, + { + "name": "scaExemption", + "baseName": "scaExemption", + "type": "string" + }, + { + "name": "threeDSVersion", + "baseName": "threeDSVersion", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalData3DSecure.attributeTypeMap; + } } diff --git a/src/typings/checkout/additionalDataAirline.ts b/src/typings/checkout/additionalDataAirline.ts index b6c820c..42b97d9 100644 --- a/src/typings/checkout/additionalDataAirline.ts +++ b/src/typings/checkout/additionalDataAirline.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AdditionalDataAirline { /** * Reference number for the invoice, issued by the agency. * minLength: 1 * maxLength: 6 @@ -139,5 +121,153 @@ export class AdditionalDataAirline { * The name of the travel agency. * minLength: 1 * maxLength: 25 */ 'airlineTravelAgencyName'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "airlineAgencyInvoiceNumber", + "baseName": "airline.agency_invoice_number", + "type": "string" + }, + { + "name": "airlineAgencyPlanName", + "baseName": "airline.agency_plan_name", + "type": "string" + }, + { + "name": "airlineAirlineCode", + "baseName": "airline.airline_code", + "type": "string" + }, + { + "name": "airlineAirlineDesignatorCode", + "baseName": "airline.airline_designator_code", + "type": "string" + }, + { + "name": "airlineBoardingFee", + "baseName": "airline.boarding_fee", + "type": "string" + }, + { + "name": "airlineComputerizedReservationSystem", + "baseName": "airline.computerized_reservation_system", + "type": "string" + }, + { + "name": "airlineCustomerReferenceNumber", + "baseName": "airline.customer_reference_number", + "type": "string" + }, + { + "name": "airlineDocumentType", + "baseName": "airline.document_type", + "type": "string" + }, + { + "name": "airlineFlightDate", + "baseName": "airline.flight_date", + "type": "string" + }, + { + "name": "airlineLegCarrierCode", + "baseName": "airline.leg.carrier_code", + "type": "string" + }, + { + "name": "airlineLegClassOfTravel", + "baseName": "airline.leg.class_of_travel", + "type": "string" + }, + { + "name": "airlineLegDateOfTravel", + "baseName": "airline.leg.date_of_travel", + "type": "string" + }, + { + "name": "airlineLegDepartAirport", + "baseName": "airline.leg.depart_airport", + "type": "string" + }, + { + "name": "airlineLegDepartTax", + "baseName": "airline.leg.depart_tax", + "type": "string" + }, + { + "name": "airlineLegDestinationCode", + "baseName": "airline.leg.destination_code", + "type": "string" + }, + { + "name": "airlineLegFareBaseCode", + "baseName": "airline.leg.fare_base_code", + "type": "string" + }, + { + "name": "airlineLegFlightNumber", + "baseName": "airline.leg.flight_number", + "type": "string" + }, + { + "name": "airlineLegStopOverCode", + "baseName": "airline.leg.stop_over_code", + "type": "string" + }, + { + "name": "airlinePassengerDateOfBirth", + "baseName": "airline.passenger.date_of_birth", + "type": "string" + }, + { + "name": "airlinePassengerFirstName", + "baseName": "airline.passenger.first_name", + "type": "string" + }, + { + "name": "airlinePassengerLastName", + "baseName": "airline.passenger.last_name", + "type": "string" + }, + { + "name": "airlinePassengerTelephoneNumber", + "baseName": "airline.passenger.telephone_number", + "type": "string" + }, + { + "name": "airlinePassengerTravellerType", + "baseName": "airline.passenger.traveller_type", + "type": "string" + }, + { + "name": "airlinePassengerName", + "baseName": "airline.passenger_name", + "type": "string" + }, + { + "name": "airlineTicketIssueAddress", + "baseName": "airline.ticket_issue_address", + "type": "string" + }, + { + "name": "airlineTicketNumber", + "baseName": "airline.ticket_number", + "type": "string" + }, + { + "name": "airlineTravelAgencyCode", + "baseName": "airline.travel_agency_code", + "type": "string" + }, + { + "name": "airlineTravelAgencyName", + "baseName": "airline.travel_agency_name", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataAirline.attributeTypeMap; + } } diff --git a/src/typings/checkout/additionalDataCarRental.ts b/src/typings/checkout/additionalDataCarRental.ts index e16ed2a..eaaa95f 100644 --- a/src/typings/checkout/additionalDataCarRental.ts +++ b/src/typings/checkout/additionalDataCarRental.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AdditionalDataCarRental { /** * Pick-up date. * Date format: `yyyyMMdd` @@ -119,5 +101,128 @@ export class AdditionalDataCarRental { * Indicates what market-specific dataset will be submitted or is being submitted. Value should be \"A\" for Car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 */ 'travelEntertainmentAuthDataMarket'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "carRentalCheckOutDate", + "baseName": "carRental.checkOutDate", + "type": "string" + }, + { + "name": "carRentalCustomerServiceTollFreeNumber", + "baseName": "carRental.customerServiceTollFreeNumber", + "type": "string" + }, + { + "name": "carRentalDaysRented", + "baseName": "carRental.daysRented", + "type": "string" + }, + { + "name": "carRentalFuelCharges", + "baseName": "carRental.fuelCharges", + "type": "string" + }, + { + "name": "carRentalInsuranceCharges", + "baseName": "carRental.insuranceCharges", + "type": "string" + }, + { + "name": "carRentalLocationCity", + "baseName": "carRental.locationCity", + "type": "string" + }, + { + "name": "carRentalLocationCountry", + "baseName": "carRental.locationCountry", + "type": "string" + }, + { + "name": "carRentalLocationStateProvince", + "baseName": "carRental.locationStateProvince", + "type": "string" + }, + { + "name": "carRentalNoShowIndicator", + "baseName": "carRental.noShowIndicator", + "type": "string" + }, + { + "name": "carRentalOneWayDropOffCharges", + "baseName": "carRental.oneWayDropOffCharges", + "type": "string" + }, + { + "name": "carRentalRate", + "baseName": "carRental.rate", + "type": "string" + }, + { + "name": "carRentalRateIndicator", + "baseName": "carRental.rateIndicator", + "type": "string" + }, + { + "name": "carRentalRentalAgreementNumber", + "baseName": "carRental.rentalAgreementNumber", + "type": "string" + }, + { + "name": "carRentalRentalClassId", + "baseName": "carRental.rentalClassId", + "type": "string" + }, + { + "name": "carRentalRenterName", + "baseName": "carRental.renterName", + "type": "string" + }, + { + "name": "carRentalReturnCity", + "baseName": "carRental.returnCity", + "type": "string" + }, + { + "name": "carRentalReturnCountry", + "baseName": "carRental.returnCountry", + "type": "string" + }, + { + "name": "carRentalReturnDate", + "baseName": "carRental.returnDate", + "type": "string" + }, + { + "name": "carRentalReturnLocationId", + "baseName": "carRental.returnLocationId", + "type": "string" + }, + { + "name": "carRentalReturnStateProvince", + "baseName": "carRental.returnStateProvince", + "type": "string" + }, + { + "name": "carRentalTaxExemptIndicator", + "baseName": "carRental.taxExemptIndicator", + "type": "string" + }, + { + "name": "travelEntertainmentAuthDataDuration", + "baseName": "travelEntertainmentAuthData.duration", + "type": "string" + }, + { + "name": "travelEntertainmentAuthDataMarket", + "baseName": "travelEntertainmentAuthData.market", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataCarRental.attributeTypeMap; + } } diff --git a/src/typings/checkout/additionalDataCommon.ts b/src/typings/checkout/additionalDataCommon.ts index d8f83d4..b2fe414 100644 --- a/src/typings/checkout/additionalDataCommon.ts +++ b/src/typings/checkout/additionalDataCommon.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AdditionalDataCommon { /** * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn\'t a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. @@ -83,6 +65,84 @@ export class AdditionalDataCommon { * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters. */ 'subMerchantTaxId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "requestedTestErrorResponseCode", + "baseName": "RequestedTestErrorResponseCode", + "type": "string" + }, + { + "name": "authorisationType", + "baseName": "authorisationType", + "type": "string" + }, + { + "name": "customRoutingFlag", + "baseName": "customRoutingFlag", + "type": "string" + }, + { + "name": "industryUsage", + "baseName": "industryUsage", + "type": "AdditionalDataCommon.IndustryUsageEnum" + }, + { + "name": "networkTxReference", + "baseName": "networkTxReference", + "type": "string" + }, + { + "name": "overwriteBrand", + "baseName": "overwriteBrand", + "type": "string" + }, + { + "name": "subMerchantCity", + "baseName": "subMerchantCity", + "type": "string" + }, + { + "name": "subMerchantCountry", + "baseName": "subMerchantCountry", + "type": "string" + }, + { + "name": "subMerchantID", + "baseName": "subMerchantID", + "type": "string" + }, + { + "name": "subMerchantName", + "baseName": "subMerchantName", + "type": "string" + }, + { + "name": "subMerchantPostalCode", + "baseName": "subMerchantPostalCode", + "type": "string" + }, + { + "name": "subMerchantState", + "baseName": "subMerchantState", + "type": "string" + }, + { + "name": "subMerchantStreet", + "baseName": "subMerchantStreet", + "type": "string" + }, + { + "name": "subMerchantTaxId", + "baseName": "subMerchantTaxId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataCommon.attributeTypeMap; + } } export namespace AdditionalDataCommon { diff --git a/src/typings/checkout/additionalDataLevel23.ts b/src/typings/checkout/additionalDataLevel23.ts index f482bbf..a4be2ba 100644 --- a/src/typings/checkout/additionalDataLevel23.ts +++ b/src/typings/checkout/additionalDataLevel23.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AdditionalDataLevel23 { /** * Customer code, if supplied by a customer. Encoding: ASCII. Max length: 25 characters. > Required for Level 2 and Level 3 data. @@ -95,5 +77,98 @@ export class AdditionalDataLevel23 { * Total tax amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. > Required for Level 2 and Level 3 data. */ 'enhancedSchemeDataTotalTaxAmount'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "enhancedSchemeDataCustomerReference", + "baseName": "enhancedSchemeData.customerReference", + "type": "string" + }, + { + "name": "enhancedSchemeDataDestinationCountryCode", + "baseName": "enhancedSchemeData.destinationCountryCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataDestinationPostalCode", + "baseName": "enhancedSchemeData.destinationPostalCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataDestinationStateProvinceCode", + "baseName": "enhancedSchemeData.destinationStateProvinceCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataDutyAmount", + "baseName": "enhancedSchemeData.dutyAmount", + "type": "string" + }, + { + "name": "enhancedSchemeDataFreightAmount", + "baseName": "enhancedSchemeData.freightAmount", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrCommodityCode", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].commodityCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrDescription", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].description", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrDiscountAmount", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].discountAmount", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrProductCode", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].productCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrQuantity", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].quantity", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrTotalAmount", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].totalAmount", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].unitOfMeasure", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrUnitPrice", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].unitPrice", + "type": "string" + }, + { + "name": "enhancedSchemeDataOrderDate", + "baseName": "enhancedSchemeData.orderDate", + "type": "string" + }, + { + "name": "enhancedSchemeDataShipFromPostalCode", + "baseName": "enhancedSchemeData.shipFromPostalCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataTotalTaxAmount", + "baseName": "enhancedSchemeData.totalTaxAmount", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataLevel23.attributeTypeMap; + } } diff --git a/src/typings/checkout/additionalDataLodging.ts b/src/typings/checkout/additionalDataLodging.ts index 7aba653..97feb4e 100644 --- a/src/typings/checkout/additionalDataLodging.ts +++ b/src/typings/checkout/additionalDataLodging.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AdditionalDataLodging { /** * The arrival date. * Date format: `yyyyMMdd` @@ -95,5 +77,98 @@ export class AdditionalDataLodging { * Indicates what market-specific dataset will be submitted or is being submitted. Value should be \"H\" for Hotel. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 */ 'travelEntertainmentAuthDataMarket'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "lodgingCheckInDate", + "baseName": "lodging.checkInDate", + "type": "string" + }, + { + "name": "lodgingCheckOutDate", + "baseName": "lodging.checkOutDate", + "type": "string" + }, + { + "name": "lodgingCustomerServiceTollFreeNumber", + "baseName": "lodging.customerServiceTollFreeNumber", + "type": "string" + }, + { + "name": "lodgingFireSafetyActIndicator", + "baseName": "lodging.fireSafetyActIndicator", + "type": "string" + }, + { + "name": "lodgingFolioCashAdvances", + "baseName": "lodging.folioCashAdvances", + "type": "string" + }, + { + "name": "lodgingFolioNumber", + "baseName": "lodging.folioNumber", + "type": "string" + }, + { + "name": "lodgingFoodBeverageCharges", + "baseName": "lodging.foodBeverageCharges", + "type": "string" + }, + { + "name": "lodgingNoShowIndicator", + "baseName": "lodging.noShowIndicator", + "type": "string" + }, + { + "name": "lodgingPrepaidExpenses", + "baseName": "lodging.prepaidExpenses", + "type": "string" + }, + { + "name": "lodgingPropertyPhoneNumber", + "baseName": "lodging.propertyPhoneNumber", + "type": "string" + }, + { + "name": "lodgingRoom1NumberOfNights", + "baseName": "lodging.room1.numberOfNights", + "type": "string" + }, + { + "name": "lodgingRoom1Rate", + "baseName": "lodging.room1.rate", + "type": "string" + }, + { + "name": "lodgingRoom1Tax", + "baseName": "lodging.room1.tax", + "type": "string" + }, + { + "name": "lodgingTotalRoomTax", + "baseName": "lodging.totalRoomTax", + "type": "string" + }, + { + "name": "lodgingTotalTax", + "baseName": "lodging.totalTax", + "type": "string" + }, + { + "name": "travelEntertainmentAuthDataDuration", + "baseName": "travelEntertainmentAuthData.duration", + "type": "string" + }, + { + "name": "travelEntertainmentAuthDataMarket", + "baseName": "travelEntertainmentAuthData.market", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataLodging.attributeTypeMap; + } } diff --git a/src/typings/checkout/additionalDataOpenInvoice.ts b/src/typings/checkout/additionalDataOpenInvoice.ts index 062cd05..956c40b 100644 --- a/src/typings/checkout/additionalDataOpenInvoice.ts +++ b/src/typings/checkout/additionalDataOpenInvoice.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AdditionalDataOpenInvoice { /** * Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it\'s not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. @@ -91,5 +73,93 @@ export class AdditionalDataOpenInvoice { * URI where the customer can track their shipment. */ 'openinvoicedataLineItemNrTrackingUri'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "openinvoicedataMerchantData", + "baseName": "openinvoicedata.merchantData", + "type": "string" + }, + { + "name": "openinvoicedataNumberOfLines", + "baseName": "openinvoicedata.numberOfLines", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrCurrencyCode", + "baseName": "openinvoicedataLine[itemNr].currencyCode", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrDescription", + "baseName": "openinvoicedataLine[itemNr].description", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrItemAmount", + "baseName": "openinvoicedataLine[itemNr].itemAmount", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrItemId", + "baseName": "openinvoicedataLine[itemNr].itemId", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrItemVatAmount", + "baseName": "openinvoicedataLine[itemNr].itemVatAmount", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrItemVatPercentage", + "baseName": "openinvoicedataLine[itemNr].itemVatPercentage", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrNumberOfItems", + "baseName": "openinvoicedataLine[itemNr].numberOfItems", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrReturnShippingCompany", + "baseName": "openinvoicedataLine[itemNr].returnShippingCompany", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrReturnTrackingNumber", + "baseName": "openinvoicedataLine[itemNr].returnTrackingNumber", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrReturnTrackingUri", + "baseName": "openinvoicedataLine[itemNr].returnTrackingUri", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrShippingCompany", + "baseName": "openinvoicedataLine[itemNr].shippingCompany", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrShippingMethod", + "baseName": "openinvoicedataLine[itemNr].shippingMethod", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrTrackingNumber", + "baseName": "openinvoicedataLine[itemNr].trackingNumber", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrTrackingUri", + "baseName": "openinvoicedataLine[itemNr].trackingUri", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataOpenInvoice.attributeTypeMap; + } } diff --git a/src/typings/checkout/additionalDataOpi.ts b/src/typings/checkout/additionalDataOpi.ts index d4c12b6..ab85126 100644 --- a/src/typings/checkout/additionalDataOpi.ts +++ b/src/typings/checkout/additionalDataOpi.ts @@ -1,35 +1,30 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AdditionalDataOpi { /** * Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). */ 'opiIncludeTransToken'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "opiIncludeTransToken", + "baseName": "opi.includeTransToken", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataOpi.attributeTypeMap; + } } diff --git a/src/typings/checkout/additionalDataRatepay.ts b/src/typings/checkout/additionalDataRatepay.ts index 9629bbb..6295e67 100644 --- a/src/typings/checkout/additionalDataRatepay.ts +++ b/src/typings/checkout/additionalDataRatepay.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AdditionalDataRatepay { /** * Amount the customer has to pay each month. @@ -59,5 +41,53 @@ export class AdditionalDataRatepay { * Identification name or number for the invoice, defined by the merchant. */ 'ratepaydataInvoiceId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "ratepayInstallmentAmount", + "baseName": "ratepay.installmentAmount", + "type": "string" + }, + { + "name": "ratepayInterestRate", + "baseName": "ratepay.interestRate", + "type": "string" + }, + { + "name": "ratepayLastInstallmentAmount", + "baseName": "ratepay.lastInstallmentAmount", + "type": "string" + }, + { + "name": "ratepayPaymentFirstday", + "baseName": "ratepay.paymentFirstday", + "type": "string" + }, + { + "name": "ratepaydataDeliveryDate", + "baseName": "ratepaydata.deliveryDate", + "type": "string" + }, + { + "name": "ratepaydataDueDate", + "baseName": "ratepaydata.dueDate", + "type": "string" + }, + { + "name": "ratepaydataInvoiceDate", + "baseName": "ratepaydata.invoiceDate", + "type": "string" + }, + { + "name": "ratepaydataInvoiceId", + "baseName": "ratepaydata.invoiceId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataRatepay.attributeTypeMap; + } } diff --git a/src/typings/checkout/additionalDataRetry.ts b/src/typings/checkout/additionalDataRetry.ts index d36ae7e..63d3ebc 100644 --- a/src/typings/checkout/additionalDataRetry.ts +++ b/src/typings/checkout/additionalDataRetry.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AdditionalDataRetry { /** * The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. @@ -39,5 +21,28 @@ export class AdditionalDataRetry { * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. */ 'retrySkipRetry'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "retryChainAttemptNumber", + "baseName": "retry.chainAttemptNumber", + "type": "string" + }, + { + "name": "retryOrderAttemptNumber", + "baseName": "retry.orderAttemptNumber", + "type": "string" + }, + { + "name": "retrySkipRetry", + "baseName": "retry.skipRetry", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataRetry.attributeTypeMap; + } } diff --git a/src/typings/checkout/additionalDataRisk.ts b/src/typings/checkout/additionalDataRisk.ts index ae6bdd0..5dd4da9 100644 --- a/src/typings/checkout/additionalDataRisk.ts +++ b/src/typings/checkout/additionalDataRisk.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AdditionalDataRisk { /** * The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). @@ -111,5 +93,118 @@ export class AdditionalDataRisk { * If this parameter is provided with the value **true**, risk checks for the payment request are skipped and the transaction will not get a risk score. */ 'riskdataSkipRisk'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "riskdataCustomFieldName", + "baseName": "riskdata.[customFieldName]", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrAmountPerItem", + "baseName": "riskdata.basket.item[itemNr].amountPerItem", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrBrand", + "baseName": "riskdata.basket.item[itemNr].brand", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrCategory", + "baseName": "riskdata.basket.item[itemNr].category", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrColor", + "baseName": "riskdata.basket.item[itemNr].color", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrCurrency", + "baseName": "riskdata.basket.item[itemNr].currency", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrItemID", + "baseName": "riskdata.basket.item[itemNr].itemID", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrManufacturer", + "baseName": "riskdata.basket.item[itemNr].manufacturer", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrProductTitle", + "baseName": "riskdata.basket.item[itemNr].productTitle", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrQuantity", + "baseName": "riskdata.basket.item[itemNr].quantity", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrReceiverEmail", + "baseName": "riskdata.basket.item[itemNr].receiverEmail", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrSize", + "baseName": "riskdata.basket.item[itemNr].size", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrSku", + "baseName": "riskdata.basket.item[itemNr].sku", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrUpc", + "baseName": "riskdata.basket.item[itemNr].upc", + "type": "string" + }, + { + "name": "riskdataPromotionsPromotionItemNrPromotionCode", + "baseName": "riskdata.promotions.promotion[itemNr].promotionCode", + "type": "string" + }, + { + "name": "riskdataPromotionsPromotionItemNrPromotionDiscountAmount", + "baseName": "riskdata.promotions.promotion[itemNr].promotionDiscountAmount", + "type": "string" + }, + { + "name": "riskdataPromotionsPromotionItemNrPromotionDiscountCurrency", + "baseName": "riskdata.promotions.promotion[itemNr].promotionDiscountCurrency", + "type": "string" + }, + { + "name": "riskdataPromotionsPromotionItemNrPromotionDiscountPercentage", + "baseName": "riskdata.promotions.promotion[itemNr].promotionDiscountPercentage", + "type": "string" + }, + { + "name": "riskdataPromotionsPromotionItemNrPromotionName", + "baseName": "riskdata.promotions.promotion[itemNr].promotionName", + "type": "string" + }, + { + "name": "riskdataRiskProfileReference", + "baseName": "riskdata.riskProfileReference", + "type": "string" + }, + { + "name": "riskdataSkipRisk", + "baseName": "riskdata.skipRisk", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataRisk.attributeTypeMap; + } } diff --git a/src/typings/checkout/additionalDataRiskStandalone.ts b/src/typings/checkout/additionalDataRiskStandalone.ts index a8d52cd..914a281 100644 --- a/src/typings/checkout/additionalDataRiskStandalone.ts +++ b/src/typings/checkout/additionalDataRiskStandalone.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AdditionalDataRiskStandalone { /** * Shopper\'s country of residence in the form of ISO standard 3166 2-character country codes. @@ -87,5 +69,88 @@ export class AdditionalDataRiskStandalone { * Required for PayPal payments only. The only supported value is: **paypal**. */ 'tokenDataType'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "payPalCountryCode", + "baseName": "PayPal.CountryCode", + "type": "string" + }, + { + "name": "payPalEmailId", + "baseName": "PayPal.EmailId", + "type": "string" + }, + { + "name": "payPalFirstName", + "baseName": "PayPal.FirstName", + "type": "string" + }, + { + "name": "payPalLastName", + "baseName": "PayPal.LastName", + "type": "string" + }, + { + "name": "payPalPayerId", + "baseName": "PayPal.PayerId", + "type": "string" + }, + { + "name": "payPalPhone", + "baseName": "PayPal.Phone", + "type": "string" + }, + { + "name": "payPalProtectionEligibility", + "baseName": "PayPal.ProtectionEligibility", + "type": "string" + }, + { + "name": "payPalTransactionId", + "baseName": "PayPal.TransactionId", + "type": "string" + }, + { + "name": "avsResultRaw", + "baseName": "avsResultRaw", + "type": "string" + }, + { + "name": "bin", + "baseName": "bin", + "type": "string" + }, + { + "name": "cvcResultRaw", + "baseName": "cvcResultRaw", + "type": "string" + }, + { + "name": "riskToken", + "baseName": "riskToken", + "type": "string" + }, + { + "name": "threeDAuthenticated", + "baseName": "threeDAuthenticated", + "type": "string" + }, + { + "name": "threeDOffered", + "baseName": "threeDOffered", + "type": "string" + }, + { + "name": "tokenDataType", + "baseName": "tokenDataType", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataRiskStandalone.attributeTypeMap; + } } diff --git a/src/typings/checkout/additionalDataSubMerchant.ts b/src/typings/checkout/additionalDataSubMerchant.ts index 7f61a75..0cc8c1c 100644 --- a/src/typings/checkout/additionalDataSubMerchant.ts +++ b/src/typings/checkout/additionalDataSubMerchant.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AdditionalDataSubMerchant { /** * Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. @@ -67,5 +49,63 @@ export class AdditionalDataSubMerchant { * Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ */ 'subMerchantSubSellerSubSellerNrTaxId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "subMerchantNumberOfSubSellers", + "baseName": "subMerchant.numberOfSubSellers", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrCity", + "baseName": "subMerchant.subSeller[subSellerNr].city", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrCountry", + "baseName": "subMerchant.subSeller[subSellerNr].country", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrId", + "baseName": "subMerchant.subSeller[subSellerNr].id", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrMcc", + "baseName": "subMerchant.subSeller[subSellerNr].mcc", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrName", + "baseName": "subMerchant.subSeller[subSellerNr].name", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrPostalCode", + "baseName": "subMerchant.subSeller[subSellerNr].postalCode", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrState", + "baseName": "subMerchant.subSeller[subSellerNr].state", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrStreet", + "baseName": "subMerchant.subSeller[subSellerNr].street", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrTaxId", + "baseName": "subMerchant.subSeller[subSellerNr].taxId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataSubMerchant.attributeTypeMap; + } } diff --git a/src/typings/checkout/additionalDataTemporaryServices.ts b/src/typings/checkout/additionalDataTemporaryServices.ts index 0a03849..f137cad 100644 --- a/src/typings/checkout/additionalDataTemporaryServices.ts +++ b/src/typings/checkout/additionalDataTemporaryServices.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AdditionalDataTemporaryServices { /** * Customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 @@ -63,5 +45,58 @@ export class AdditionalDataTemporaryServices { * Total tax amount, in minor units. For example, 2000 means USD 20.00 * maxLength: 12 */ 'enhancedSchemeDataTotalTaxAmount'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "enhancedSchemeDataCustomerReference", + "baseName": "enhancedSchemeData.customerReference", + "type": "string" + }, + { + "name": "enhancedSchemeDataEmployeeName", + "baseName": "enhancedSchemeData.employeeName", + "type": "string" + }, + { + "name": "enhancedSchemeDataJobDescription", + "baseName": "enhancedSchemeData.jobDescription", + "type": "string" + }, + { + "name": "enhancedSchemeDataRegularHoursRate", + "baseName": "enhancedSchemeData.regularHoursRate", + "type": "string" + }, + { + "name": "enhancedSchemeDataRegularHoursWorked", + "baseName": "enhancedSchemeData.regularHoursWorked", + "type": "string" + }, + { + "name": "enhancedSchemeDataRequestName", + "baseName": "enhancedSchemeData.requestName", + "type": "string" + }, + { + "name": "enhancedSchemeDataTempStartDate", + "baseName": "enhancedSchemeData.tempStartDate", + "type": "string" + }, + { + "name": "enhancedSchemeDataTempWeekEnding", + "baseName": "enhancedSchemeData.tempWeekEnding", + "type": "string" + }, + { + "name": "enhancedSchemeDataTotalTaxAmount", + "baseName": "enhancedSchemeData.totalTaxAmount", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataTemporaryServices.attributeTypeMap; + } } diff --git a/src/typings/checkout/additionalDataWallets.ts b/src/typings/checkout/additionalDataWallets.ts index eb61af4..5398276 100644 --- a/src/typings/checkout/additionalDataWallets.ts +++ b/src/typings/checkout/additionalDataWallets.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AdditionalDataWallets { /** * The Android Pay token retrieved from the SDK. @@ -51,5 +33,43 @@ export class AdditionalDataWallets { * The Visa Checkout Call ID retrieved from the SDK. */ 'visacheckoutCallId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "androidpayToken", + "baseName": "androidpay.token", + "type": "string" + }, + { + "name": "masterpassTransactionId", + "baseName": "masterpass.transactionId", + "type": "string" + }, + { + "name": "paymentToken", + "baseName": "payment.token", + "type": "string" + }, + { + "name": "paywithgoogleToken", + "baseName": "paywithgoogle.token", + "type": "string" + }, + { + "name": "samsungpayToken", + "baseName": "samsungpay.token", + "type": "string" + }, + { + "name": "visacheckoutCallId", + "baseName": "visacheckout.callId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataWallets.attributeTypeMap; + } } diff --git a/src/typings/checkout/address.ts b/src/typings/checkout/address.ts index dba92e3..be8a94b 100644 --- a/src/typings/checkout/address.ts +++ b/src/typings/checkout/address.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Address { /** * The name of the city. Maximum length: 3000 characters. @@ -51,5 +33,43 @@ export class Address { * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. */ 'street': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "city", + "baseName": "city", + "type": "string" + }, + { + "name": "country", + "baseName": "country", + "type": "string" + }, + { + "name": "houseNumberOrName", + "baseName": "houseNumberOrName", + "type": "string" + }, + { + "name": "postalCode", + "baseName": "postalCode", + "type": "string" + }, + { + "name": "stateOrProvince", + "baseName": "stateOrProvince", + "type": "string" + }, + { + "name": "street", + "baseName": "street", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Address.attributeTypeMap; + } } diff --git a/src/typings/checkout/afterpayDetails.ts b/src/typings/checkout/afterpayDetails.ts index bcb6416..cbc6149 100644 --- a/src/typings/checkout/afterpayDetails.ts +++ b/src/typings/checkout/afterpayDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AfterpayDetails { /** * The address where to send the invoice. @@ -51,6 +33,44 @@ export class AfterpayDetails { * **afterpay_default** */ 'type': AfterpayDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "string" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "string" + }, + { + "name": "personalDetails", + "baseName": "personalDetails", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "AfterpayDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return AfterpayDetails.attributeTypeMap; + } } export namespace AfterpayDetails { diff --git a/src/typings/checkout/amazonPayDetails.ts b/src/typings/checkout/amazonPayDetails.ts index 44dc6a9..5ddcc04 100644 --- a/src/typings/checkout/amazonPayDetails.ts +++ b/src/typings/checkout/amazonPayDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AmazonPayDetails { /** * This is the `amazonPayToken` that you obtained from the [Get Checkout Session](https://amazon-pay-acquirer-guide.s3-eu-west-1.amazonaws.com/v1/amazon-pay-api-v2/checkout-session.html#get-checkout-session) response. @@ -35,6 +17,24 @@ export class AmazonPayDetails { * **amazonpay** */ 'type'?: AmazonPayDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amazonPayToken", + "baseName": "amazonPayToken", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "AmazonPayDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return AmazonPayDetails.attributeTypeMap; + } } export namespace AmazonPayDetails { diff --git a/src/typings/checkout/amount.ts b/src/typings/checkout/amount.ts index 49aa9d2..5aaece7 100644 --- a/src/typings/checkout/amount.ts +++ b/src/typings/checkout/amount.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Amount { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). @@ -35,5 +17,23 @@ export class Amount { * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ 'value': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "currency", + "baseName": "currency", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return Amount.attributeTypeMap; + } } diff --git a/src/typings/checkout/androidPayDetails.ts b/src/typings/checkout/androidPayDetails.ts index 8696095..397e83c 100644 --- a/src/typings/checkout/androidPayDetails.ts +++ b/src/typings/checkout/androidPayDetails.ts @@ -1,36 +1,31 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AndroidPayDetails { /** * **androidpay** */ 'type'?: AndroidPayDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "AndroidPayDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return AndroidPayDetails.attributeTypeMap; + } } export namespace AndroidPayDetails { diff --git a/src/typings/checkout/applePayDetails.ts b/src/typings/checkout/applePayDetails.ts index 5833ee3..c5287c4 100644 --- a/src/typings/checkout/applePayDetails.ts +++ b/src/typings/checkout/applePayDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ApplePayDetails { /** * The stringified and base64 encoded `paymentData` you retrieved from the Apple framework. @@ -47,6 +29,39 @@ export class ApplePayDetails { * **applepay** */ 'type'?: ApplePayDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "applePayToken", + "baseName": "applePayToken", + "type": "string" + }, + { + "name": "fundingSource", + "baseName": "fundingSource", + "type": "ApplePayDetails.FundingSourceEnum" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "ApplePayDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return ApplePayDetails.attributeTypeMap; + } } export namespace ApplePayDetails { diff --git a/src/typings/checkout/applicationInfo.ts b/src/typings/checkout/applicationInfo.ts index 6dce7be..782d485 100644 --- a/src/typings/checkout/applicationInfo.ts +++ b/src/typings/checkout/applicationInfo.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { CommonField } from './commonField'; import { ExternalPlatform } from './externalPlatform'; import { MerchantDevice } from './merchantDevice'; @@ -37,5 +19,43 @@ export class ApplicationInfo { 'merchantApplication'?: CommonField; 'merchantDevice'?: MerchantDevice; 'shopperInteractionDevice'?: ShopperInteractionDevice; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "adyenLibrary", + "baseName": "adyenLibrary", + "type": "CommonField" + }, + { + "name": "adyenPaymentSource", + "baseName": "adyenPaymentSource", + "type": "CommonField" + }, + { + "name": "externalPlatform", + "baseName": "externalPlatform", + "type": "ExternalPlatform" + }, + { + "name": "merchantApplication", + "baseName": "merchantApplication", + "type": "CommonField" + }, + { + "name": "merchantDevice", + "baseName": "merchantDevice", + "type": "MerchantDevice" + }, + { + "name": "shopperInteractionDevice", + "baseName": "shopperInteractionDevice", + "type": "ShopperInteractionDevice" + } ]; + + static getAttributeTypeMap() { + return ApplicationInfo.attributeTypeMap; + } } diff --git a/src/typings/checkout/authenticationData.ts b/src/typings/checkout/authenticationData.ts index 9a2c42a..ca120e7 100644 --- a/src/typings/checkout/authenticationData.ts +++ b/src/typings/checkout/authenticationData.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { ThreeDSRequestData } from './threeDSRequestData'; export class AuthenticationData { @@ -37,6 +19,29 @@ export class AuthenticationData { */ 'authenticationOnly'?: boolean; 'threeDSRequestData'?: ThreeDSRequestData; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "attemptAuthentication", + "baseName": "attemptAuthentication", + "type": "AuthenticationData.AttemptAuthenticationEnum" + }, + { + "name": "authenticationOnly", + "baseName": "authenticationOnly", + "type": "boolean" + }, + { + "name": "threeDSRequestData", + "baseName": "threeDSRequestData", + "type": "ThreeDSRequestData" + } ]; + + static getAttributeTypeMap() { + return AuthenticationData.attributeTypeMap; + } } export namespace AuthenticationData { diff --git a/src/typings/checkout/avs.ts b/src/typings/checkout/avs.ts index d2543bb..69a56be 100644 --- a/src/typings/checkout/avs.ts +++ b/src/typings/checkout/avs.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Avs { /** * Indicates whether the shopper is allowed to modify the billing address for the current payment request. @@ -35,6 +17,24 @@ export class Avs { * Specifies whether the shopper should enter their billing address during checkout. Allowed values: * yes — Perform AVS checks for every card payment. * automatic — Perform AVS checks only when required to optimize the conversion rate. * no — Do not perform AVS checks. */ 'enabled'?: Avs.EnabledEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "addressEditable", + "baseName": "addressEditable", + "type": "boolean" + }, + { + "name": "enabled", + "baseName": "enabled", + "type": "Avs.EnabledEnum" + } ]; + + static getAttributeTypeMap() { + return Avs.attributeTypeMap; + } } export namespace Avs { diff --git a/src/typings/checkout/bacsDirectDebitDetails.ts b/src/typings/checkout/bacsDirectDebitDetails.ts index 32da986..7838468 100644 --- a/src/typings/checkout/bacsDirectDebitDetails.ts +++ b/src/typings/checkout/bacsDirectDebitDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class BacsDirectDebitDetails { /** * The bank account number (without separators). @@ -51,10 +33,48 @@ export class BacsDirectDebitDetails { * **directdebit_GB** */ 'type'?: BacsDirectDebitDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "bankAccountNumber", + "baseName": "bankAccountNumber", + "type": "string" + }, + { + "name": "bankLocationId", + "baseName": "bankLocationId", + "type": "string" + }, + { + "name": "holderName", + "baseName": "holderName", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "BacsDirectDebitDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return BacsDirectDebitDetails.attributeTypeMap; + } } export namespace BacsDirectDebitDetails { export enum TypeEnum { - DirectdebitGB = 'directdebit_GB' + DirectdebitGb = 'directdebit_GB' } } diff --git a/src/typings/checkout/bankAccount.ts b/src/typings/checkout/bankAccount.ts index a7465ab..9457bef 100644 --- a/src/typings/checkout/bankAccount.ts +++ b/src/typings/checkout/bankAccount.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class BankAccount { /** * The bank account number (without separators). @@ -63,5 +45,58 @@ export class BankAccount { * The bank account holder\'s tax ID. */ 'taxId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "bankAccountNumber", + "baseName": "bankAccountNumber", + "type": "string" + }, + { + "name": "bankCity", + "baseName": "bankCity", + "type": "string" + }, + { + "name": "bankLocationId", + "baseName": "bankLocationId", + "type": "string" + }, + { + "name": "bankName", + "baseName": "bankName", + "type": "string" + }, + { + "name": "bic", + "baseName": "bic", + "type": "string" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "iban", + "baseName": "iban", + "type": "string" + }, + { + "name": "ownerName", + "baseName": "ownerName", + "type": "string" + }, + { + "name": "taxId", + "baseName": "taxId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return BankAccount.attributeTypeMap; + } } diff --git a/src/typings/checkout/billDeskDetails.ts b/src/typings/checkout/billDeskDetails.ts index b62b942..bfb4972 100644 --- a/src/typings/checkout/billDeskDetails.ts +++ b/src/typings/checkout/billDeskDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class BillDeskDetails { /** * The issuer id of the shopper\'s selected bank. @@ -35,13 +17,31 @@ export class BillDeskDetails { * **billdesk** */ 'type': BillDeskDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "issuer", + "baseName": "issuer", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "BillDeskDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return BillDeskDetails.attributeTypeMap; + } } export namespace BillDeskDetails { export enum TypeEnum { BilldeskOnline = 'billdesk_online', BilldeskWallet = 'billdesk_wallet', - OnlinebankingIN = 'onlinebanking_IN', - WalletIN = 'wallet_IN' + OnlinebankingIn = 'onlinebanking_IN', + WalletIn = 'wallet_IN' } } diff --git a/src/typings/checkout/blikDetails.ts b/src/typings/checkout/blikDetails.ts index d7b2e31..5d2f9c2 100644 --- a/src/typings/checkout/blikDetails.ts +++ b/src/typings/checkout/blikDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class BlikDetails { /** * BLIK code consisting of 6 digits. @@ -43,6 +25,34 @@ export class BlikDetails { * **blik** */ 'type'?: BlikDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "blikCode", + "baseName": "blikCode", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "BlikDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return BlikDetails.attributeTypeMap; + } } export namespace BlikDetails { diff --git a/src/typings/checkout/browserInfo.ts b/src/typings/checkout/browserInfo.ts index 76f806e..32a2bcf 100644 --- a/src/typings/checkout/browserInfo.ts +++ b/src/typings/checkout/browserInfo.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class BrowserInfo { /** * The accept header value of the shopper\'s browser. @@ -63,5 +45,58 @@ export class BrowserInfo { * The user agent value of the shopper\'s browser. */ 'userAgent': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acceptHeader", + "baseName": "acceptHeader", + "type": "string" + }, + { + "name": "colorDepth", + "baseName": "colorDepth", + "type": "number" + }, + { + "name": "javaEnabled", + "baseName": "javaEnabled", + "type": "boolean" + }, + { + "name": "javaScriptEnabled", + "baseName": "javaScriptEnabled", + "type": "boolean" + }, + { + "name": "language", + "baseName": "language", + "type": "string" + }, + { + "name": "screenHeight", + "baseName": "screenHeight", + "type": "number" + }, + { + "name": "screenWidth", + "baseName": "screenWidth", + "type": "number" + }, + { + "name": "timeZoneOffset", + "baseName": "timeZoneOffset", + "type": "number" + }, + { + "name": "userAgent", + "baseName": "userAgent", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return BrowserInfo.attributeTypeMap; + } } diff --git a/src/typings/checkout/card.ts b/src/typings/checkout/card.ts index 680f39c..1b01fa1 100644 --- a/src/typings/checkout/card.ts +++ b/src/typings/checkout/card.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Card { /** * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. @@ -59,5 +41,53 @@ export class Card { * The year component of the start date (for some UK debit cards only). */ 'startYear'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cvc", + "baseName": "cvc", + "type": "string" + }, + { + "name": "expiryMonth", + "baseName": "expiryMonth", + "type": "string" + }, + { + "name": "expiryYear", + "baseName": "expiryYear", + "type": "string" + }, + { + "name": "holderName", + "baseName": "holderName", + "type": "string" + }, + { + "name": "issueNumber", + "baseName": "issueNumber", + "type": "string" + }, + { + "name": "number", + "baseName": "number", + "type": "string" + }, + { + "name": "startMonth", + "baseName": "startMonth", + "type": "string" + }, + { + "name": "startYear", + "baseName": "startYear", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Card.attributeTypeMap; + } } diff --git a/src/typings/checkout/cardBrandDetails.ts b/src/typings/checkout/cardBrandDetails.ts index 87b25e3..09c2df8 100644 --- a/src/typings/checkout/cardBrandDetails.ts +++ b/src/typings/checkout/cardBrandDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CardBrandDetails { /** * Indicates if you support the card brand. @@ -35,5 +17,23 @@ export class CardBrandDetails { * The name of the card brand. */ 'type'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "supported", + "baseName": "supported", + "type": "boolean" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CardBrandDetails.attributeTypeMap; + } } diff --git a/src/typings/checkout/cardDetails.ts b/src/typings/checkout/cardDetails.ts index 543d959..2b92b67 100644 --- a/src/typings/checkout/cardDetails.ts +++ b/src/typings/checkout/cardDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CardDetails { /** * Secondary brand of the card. For example: **plastix**, **hmclub**. @@ -96,6 +78,104 @@ export class CardDetails { * Default payment method details. Common for scheme payment methods, and for simple payment method details. */ 'type'?: CardDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "brand", + "baseName": "brand", + "type": "string" + }, + { + "name": "cupsecureplusSmscode", + "baseName": "cupsecureplus.smscode", + "type": "string" + }, + { + "name": "cvc", + "baseName": "cvc", + "type": "string" + }, + { + "name": "encryptedCardNumber", + "baseName": "encryptedCardNumber", + "type": "string" + }, + { + "name": "encryptedExpiryMonth", + "baseName": "encryptedExpiryMonth", + "type": "string" + }, + { + "name": "encryptedExpiryYear", + "baseName": "encryptedExpiryYear", + "type": "string" + }, + { + "name": "encryptedSecurityCode", + "baseName": "encryptedSecurityCode", + "type": "string" + }, + { + "name": "expiryMonth", + "baseName": "expiryMonth", + "type": "string" + }, + { + "name": "expiryYear", + "baseName": "expiryYear", + "type": "string" + }, + { + "name": "fundingSource", + "baseName": "fundingSource", + "type": "CardDetails.FundingSourceEnum" + }, + { + "name": "holderName", + "baseName": "holderName", + "type": "string" + }, + { + "name": "networkPaymentReference", + "baseName": "networkPaymentReference", + "type": "string" + }, + { + "name": "number", + "baseName": "number", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "shopperNotificationReference", + "baseName": "shopperNotificationReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "threeDS2SdkVersion", + "baseName": "threeDS2SdkVersion", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "CardDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return CardDetails.attributeTypeMap; + } } export namespace CardDetails { diff --git a/src/typings/checkout/cardDetailsRequest.ts b/src/typings/checkout/cardDetailsRequest.ts index a7a607e..4ec8275 100644 --- a/src/typings/checkout/cardDetailsRequest.ts +++ b/src/typings/checkout/cardDetailsRequest.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CardDetailsRequest { /** * A minimum of the first 8 digits of the card number and a maximum of the full card number. 11 digits gives the best result. You must be [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect raw card data. @@ -43,5 +25,33 @@ export class CardDetailsRequest { * The card brands you support. This is the [`brands`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods__resParam_paymentMethods-brands) array from your [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. If not included, our API uses the ones configured for your merchant account and, if provided, the country code. */ 'supportedBrands'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cardNumber", + "baseName": "cardNumber", + "type": "string" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "supportedBrands", + "baseName": "supportedBrands", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return CardDetailsRequest.attributeTypeMap; + } } diff --git a/src/typings/checkout/cardDetailsResponse.ts b/src/typings/checkout/cardDetailsResponse.ts index 77c6bea..7f919ed 100644 --- a/src/typings/checkout/cardDetailsResponse.ts +++ b/src/typings/checkout/cardDetailsResponse.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { CardBrandDetails } from './cardBrandDetails'; export class CardDetailsResponse { @@ -32,5 +14,18 @@ export class CardDetailsResponse { * The list of brands identified for the card. */ 'brands'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "brands", + "baseName": "brands", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return CardDetailsResponse.attributeTypeMap; + } } diff --git a/src/typings/checkout/cellulantDetails.ts b/src/typings/checkout/cellulantDetails.ts index 33eed70..a02bd4d 100644 --- a/src/typings/checkout/cellulantDetails.ts +++ b/src/typings/checkout/cellulantDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CellulantDetails { /** * The Cellulant issuer. @@ -35,6 +17,24 @@ export class CellulantDetails { * **Cellulant** */ 'type'?: CellulantDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "issuer", + "baseName": "issuer", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "CellulantDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return CellulantDetails.attributeTypeMap; + } } export namespace CellulantDetails { diff --git a/src/typings/checkout/checkoutAwaitAction.ts b/src/typings/checkout/checkoutAwaitAction.ts index 1a1a263..9a7675e 100644 --- a/src/typings/checkout/checkoutAwaitAction.ts +++ b/src/typings/checkout/checkoutAwaitAction.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CheckoutAwaitAction { /** * A value that must be submitted to the `/payments/details` endpoint to verify this payment. @@ -43,6 +25,34 @@ export class CheckoutAwaitAction { * Specifies the URL to redirect to. */ 'url'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "paymentData", + "baseName": "paymentData", + "type": "string" + }, + { + "name": "paymentMethodType", + "baseName": "paymentMethodType", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "CheckoutAwaitAction.TypeEnum" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CheckoutAwaitAction.attributeTypeMap; + } } export namespace CheckoutAwaitAction { diff --git a/src/typings/checkout/checkoutBalanceCheckRequest.ts b/src/typings/checkout/checkoutBalanceCheckRequest.ts index 5aeaad4..8fbcf5e 100644 --- a/src/typings/checkout/checkoutBalanceCheckRequest.ts +++ b/src/typings/checkout/checkoutBalanceCheckRequest.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { AccountInfo } from './accountInfo'; import { Address } from './address'; import { Amount } from './amount'; @@ -172,6 +154,229 @@ export class CheckoutBalanceCheckRequest { * Set to true if the payment should be routed to a trusted MID. */ 'trustedShopper'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountInfo", + "baseName": "accountInfo", + "type": "AccountInfo" + }, + { + "name": "additionalAmount", + "baseName": "additionalAmount", + "type": "Amount" + }, + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "applicationInfo", + "baseName": "applicationInfo", + "type": "ApplicationInfo" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "browserInfo", + "baseName": "browserInfo", + "type": "BrowserInfo" + }, + { + "name": "captureDelayHours", + "baseName": "captureDelayHours", + "type": "number" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "dccQuote", + "baseName": "dccQuote", + "type": "ForexQuote" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "Address" + }, + { + "name": "deliveryDate", + "baseName": "deliveryDate", + "type": "Date" + }, + { + "name": "deviceFingerprint", + "baseName": "deviceFingerprint", + "type": "string" + }, + { + "name": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "name": "installments", + "baseName": "installments", + "type": "Installments" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "merchantOrderReference", + "baseName": "merchantOrderReference", + "type": "string" + }, + { + "name": "merchantRiskIndicator", + "baseName": "merchantRiskIndicator", + "type": "MerchantRiskIndicator" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "{ [key: string]: string; }" + }, + { + "name": "orderReference", + "baseName": "orderReference", + "type": "string" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "{ [key: string]: string; }" + }, + { + "name": "recurring", + "baseName": "recurring", + "type": "Recurring" + }, + { + "name": "recurringProcessingModel", + "baseName": "recurringProcessingModel", + "type": "CheckoutBalanceCheckRequest.RecurringProcessingModelEnum" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "selectedBrand", + "baseName": "selectedBrand", + "type": "string" + }, + { + "name": "selectedRecurringDetailReference", + "baseName": "selectedRecurringDetailReference", + "type": "string" + }, + { + "name": "sessionId", + "baseName": "sessionId", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperIP", + "baseName": "shopperIP", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "CheckoutBalanceCheckRequest.ShopperInteractionEnum" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "threeDS2RequestData", + "baseName": "threeDS2RequestData", + "type": "ThreeDS2RequestData" + }, + { + "name": "threeDSAuthenticationOnly", + "baseName": "threeDSAuthenticationOnly", + "type": "boolean" + }, + { + "name": "totalsGroup", + "baseName": "totalsGroup", + "type": "string" + }, + { + "name": "trustedShopper", + "baseName": "trustedShopper", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return CheckoutBalanceCheckRequest.attributeTypeMap; + } } export namespace CheckoutBalanceCheckRequest { @@ -184,6 +389,6 @@ export namespace CheckoutBalanceCheckRequest { Ecommerce = 'Ecommerce', ContAuth = 'ContAuth', Moto = 'Moto', - POS = 'POS' + Pos = 'POS' } } diff --git a/src/typings/checkout/checkoutBalanceCheckResponse.ts b/src/typings/checkout/checkoutBalanceCheckResponse.ts index 299cc75..2a361e5 100644 --- a/src/typings/checkout/checkoutBalanceCheckResponse.ts +++ b/src/typings/checkout/checkoutBalanceCheckResponse.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; import { FraudResult } from './fraudResult'; @@ -48,6 +30,49 @@ export class CheckoutBalanceCheckResponse { */ 'resultCode': CheckoutBalanceCheckResponse.ResultCodeEnum; 'transactionLimit'?: Amount; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "balance", + "baseName": "balance", + "type": "Amount" + }, + { + "name": "fraudResult", + "baseName": "fraudResult", + "type": "FraudResult" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "CheckoutBalanceCheckResponse.ResultCodeEnum" + }, + { + "name": "transactionLimit", + "baseName": "transactionLimit", + "type": "Amount" + } ]; + + static getAttributeTypeMap() { + return CheckoutBalanceCheckResponse.attributeTypeMap; + } } export namespace CheckoutBalanceCheckResponse { diff --git a/src/typings/checkout/checkoutBankTransferAction.ts b/src/typings/checkout/checkoutBankTransferAction.ts index 4aa1e3d..e055ba5 100644 --- a/src/typings/checkout/checkoutBankTransferAction.ts +++ b/src/typings/checkout/checkoutBankTransferAction.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; export class CheckoutBankTransferAction { @@ -65,6 +47,64 @@ export class CheckoutBankTransferAction { * Specifies the URL to redirect to. */ 'url'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "beneficiary", + "baseName": "beneficiary", + "type": "string" + }, + { + "name": "bic", + "baseName": "bic", + "type": "string" + }, + { + "name": "downloadUrl", + "baseName": "downloadUrl", + "type": "string" + }, + { + "name": "iban", + "baseName": "iban", + "type": "string" + }, + { + "name": "paymentMethodType", + "baseName": "paymentMethodType", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "totalAmount", + "baseName": "totalAmount", + "type": "Amount" + }, + { + "name": "type", + "baseName": "type", + "type": "CheckoutBankTransferAction.TypeEnum" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CheckoutBankTransferAction.attributeTypeMap; + } } export namespace CheckoutBankTransferAction { diff --git a/src/typings/checkout/checkoutCancelOrderRequest.ts b/src/typings/checkout/checkoutCancelOrderRequest.ts index 5f4118b..8789904 100644 --- a/src/typings/checkout/checkoutCancelOrderRequest.ts +++ b/src/typings/checkout/checkoutCancelOrderRequest.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { CheckoutOrder } from './checkoutOrder'; export class CheckoutCancelOrderRequest { @@ -33,5 +15,23 @@ export class CheckoutCancelOrderRequest { */ 'merchantAccount': string; 'order': CheckoutOrder; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "order", + "baseName": "order", + "type": "CheckoutOrder" + } ]; + + static getAttributeTypeMap() { + return CheckoutCancelOrderRequest.attributeTypeMap; + } } diff --git a/src/typings/checkout/checkoutCancelOrderResponse.ts b/src/typings/checkout/checkoutCancelOrderResponse.ts index 68488fa..114311c 100644 --- a/src/typings/checkout/checkoutCancelOrderResponse.ts +++ b/src/typings/checkout/checkoutCancelOrderResponse.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CheckoutCancelOrderResponse { /** * A unique reference of the cancellation request. @@ -35,6 +17,24 @@ export class CheckoutCancelOrderResponse { * The result of the cancellation request. Possible values: * **Received** – Indicates the cancellation has successfully been received by Adyen, and will be processed. */ 'resultCode': CheckoutCancelOrderResponse.ResultCodeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "CheckoutCancelOrderResponse.ResultCodeEnum" + } ]; + + static getAttributeTypeMap() { + return CheckoutCancelOrderResponse.attributeTypeMap; + } } export namespace CheckoutCancelOrderResponse { diff --git a/src/typings/checkout/checkoutCreateOrderRequest.ts b/src/typings/checkout/checkoutCreateOrderRequest.ts index 03c0be1..b437c8b 100644 --- a/src/typings/checkout/checkoutCreateOrderRequest.ts +++ b/src/typings/checkout/checkoutCreateOrderRequest.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; export class CheckoutCreateOrderRequest { @@ -41,5 +23,33 @@ export class CheckoutCreateOrderRequest { * A custom reference identifying the order. */ 'reference': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "expiresAt", + "baseName": "expiresAt", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CheckoutCreateOrderRequest.attributeTypeMap; + } } diff --git a/src/typings/checkout/checkoutCreateOrderResponse.ts b/src/typings/checkout/checkoutCreateOrderResponse.ts index e9665ff..7adff93 100644 --- a/src/typings/checkout/checkoutCreateOrderResponse.ts +++ b/src/typings/checkout/checkoutCreateOrderResponse.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; import { FraudResult } from './fraudResult'; @@ -60,6 +42,64 @@ export class CheckoutCreateOrderResponse { * The result of the order creation request. The value is always **Success**. */ 'resultCode': CheckoutCreateOrderResponse.ResultCodeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "expiresAt", + "baseName": "expiresAt", + "type": "string" + }, + { + "name": "fraudResult", + "baseName": "fraudResult", + "type": "FraudResult" + }, + { + "name": "orderData", + "baseName": "orderData", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "remainingAmount", + "baseName": "remainingAmount", + "type": "Amount" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "CheckoutCreateOrderResponse.ResultCodeEnum" + } ]; + + static getAttributeTypeMap() { + return CheckoutCreateOrderResponse.attributeTypeMap; + } } export namespace CheckoutCreateOrderResponse { diff --git a/src/typings/checkout/checkoutDonationAction.ts b/src/typings/checkout/checkoutDonationAction.ts index 29f9a58..9282f24 100644 --- a/src/typings/checkout/checkoutDonationAction.ts +++ b/src/typings/checkout/checkoutDonationAction.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CheckoutDonationAction { /** * A value that must be submitted to the `/payments/details` endpoint to verify this payment. @@ -43,6 +25,34 @@ export class CheckoutDonationAction { * Specifies the URL to redirect to. */ 'url'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "paymentData", + "baseName": "paymentData", + "type": "string" + }, + { + "name": "paymentMethodType", + "baseName": "paymentMethodType", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "CheckoutDonationAction.TypeEnum" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CheckoutDonationAction.attributeTypeMap; + } } export namespace CheckoutDonationAction { diff --git a/src/typings/checkout/checkoutOneTimePasscodeAction.ts b/src/typings/checkout/checkoutOneTimePasscodeAction.ts index 971717c..c672617 100644 --- a/src/typings/checkout/checkoutOneTimePasscodeAction.ts +++ b/src/typings/checkout/checkoutOneTimePasscodeAction.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Redirect } from './redirect'; export class CheckoutOneTimePasscodeAction { @@ -57,6 +39,54 @@ export class CheckoutOneTimePasscodeAction { * Specifies the URL to redirect to. */ 'url'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "paymentData", + "baseName": "paymentData", + "type": "string" + }, + { + "name": "paymentMethodType", + "baseName": "paymentMethodType", + "type": "string" + }, + { + "name": "redirect", + "baseName": "redirect", + "type": "Redirect" + }, + { + "name": "resendInterval", + "baseName": "resendInterval", + "type": "number" + }, + { + "name": "resendMaxAttempts", + "baseName": "resendMaxAttempts", + "type": "number" + }, + { + "name": "resendUrl", + "baseName": "resendUrl", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "CheckoutOneTimePasscodeAction.TypeEnum" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CheckoutOneTimePasscodeAction.attributeTypeMap; + } } export namespace CheckoutOneTimePasscodeAction { diff --git a/src/typings/checkout/checkoutOrder.ts b/src/typings/checkout/checkoutOrder.ts index 2281085..6112bef 100644 --- a/src/typings/checkout/checkoutOrder.ts +++ b/src/typings/checkout/checkoutOrder.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CheckoutOrder { /** * The encrypted order data. @@ -35,5 +17,23 @@ export class CheckoutOrder { * The `pspReference` that belongs to the order. */ 'pspReference': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "orderData", + "baseName": "orderData", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CheckoutOrder.attributeTypeMap; + } } diff --git a/src/typings/checkout/checkoutOrderResponse.ts b/src/typings/checkout/checkoutOrderResponse.ts index b3fbfce..99587ae 100644 --- a/src/typings/checkout/checkoutOrderResponse.ts +++ b/src/typings/checkout/checkoutOrderResponse.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; export class CheckoutOrderResponse { @@ -46,5 +28,43 @@ export class CheckoutOrderResponse { */ 'reference'?: string; 'remainingAmount'?: Amount; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "expiresAt", + "baseName": "expiresAt", + "type": "string" + }, + { + "name": "orderData", + "baseName": "orderData", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "remainingAmount", + "baseName": "remainingAmount", + "type": "Amount" + } ]; + + static getAttributeTypeMap() { + return CheckoutOrderResponse.attributeTypeMap; + } } diff --git a/src/typings/checkout/checkoutQrCodeAction.ts b/src/typings/checkout/checkoutQrCodeAction.ts index 6190f1f..40813ac 100644 --- a/src/typings/checkout/checkoutQrCodeAction.ts +++ b/src/typings/checkout/checkoutQrCodeAction.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CheckoutQrCodeAction { /** * Expiry time of the QR code. @@ -51,6 +33,44 @@ export class CheckoutQrCodeAction { * Specifies the URL to redirect to. */ 'url'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "expiresAt", + "baseName": "expiresAt", + "type": "string" + }, + { + "name": "paymentData", + "baseName": "paymentData", + "type": "string" + }, + { + "name": "paymentMethodType", + "baseName": "paymentMethodType", + "type": "string" + }, + { + "name": "qrCodeData", + "baseName": "qrCodeData", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "CheckoutQrCodeAction.TypeEnum" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CheckoutQrCodeAction.attributeTypeMap; + } } export namespace CheckoutQrCodeAction { diff --git a/src/typings/checkout/checkoutRedirectAction.ts b/src/typings/checkout/checkoutRedirectAction.ts index 18bcf0b..5671054 100644 --- a/src/typings/checkout/checkoutRedirectAction.ts +++ b/src/typings/checkout/checkoutRedirectAction.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CheckoutRedirectAction { /** * When the redirect URL must be accessed via POST, use this data to post to the redirect URL. @@ -47,6 +29,39 @@ export class CheckoutRedirectAction { * Specifies the URL to redirect to. */ 'url'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "data", + "baseName": "data", + "type": "{ [key: string]: string; }" + }, + { + "name": "method", + "baseName": "method", + "type": "string" + }, + { + "name": "paymentMethodType", + "baseName": "paymentMethodType", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "CheckoutRedirectAction.TypeEnum" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CheckoutRedirectAction.attributeTypeMap; + } } export namespace CheckoutRedirectAction { diff --git a/src/typings/checkout/checkoutSDKAction.ts b/src/typings/checkout/checkoutSDKAction.ts index 96a8524..5ff7357 100644 --- a/src/typings/checkout/checkoutSDKAction.ts +++ b/src/typings/checkout/checkoutSDKAction.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CheckoutSDKAction { /** * A value that must be submitted to the `/payments/details` endpoint to verify this payment. @@ -47,11 +29,44 @@ export class CheckoutSDKAction { * Specifies the URL to redirect to. */ 'url'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "paymentData", + "baseName": "paymentData", + "type": "string" + }, + { + "name": "paymentMethodType", + "baseName": "paymentMethodType", + "type": "string" + }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "{ [key: string]: string; }" + }, + { + "name": "type", + "baseName": "type", + "type": "CheckoutSDKAction.TypeEnum" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CheckoutSDKAction.attributeTypeMap; + } } export namespace CheckoutSDKAction { export enum TypeEnum { Sdk = 'sdk', - WechatpaySDK = 'wechatpaySDK' + WechatpaySdk = 'wechatpaySDK' } } diff --git a/src/typings/checkout/checkoutThreeDS2Action.ts b/src/typings/checkout/checkoutThreeDS2Action.ts index c09e893..d254056 100644 --- a/src/typings/checkout/checkoutThreeDS2Action.ts +++ b/src/typings/checkout/checkoutThreeDS2Action.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CheckoutThreeDS2Action { /** * A token needed to authorise a payment. @@ -55,10 +37,53 @@ export class CheckoutThreeDS2Action { * Specifies the URL to redirect to. */ 'url'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "authorisationToken", + "baseName": "authorisationToken", + "type": "string" + }, + { + "name": "paymentData", + "baseName": "paymentData", + "type": "string" + }, + { + "name": "paymentMethodType", + "baseName": "paymentMethodType", + "type": "string" + }, + { + "name": "subtype", + "baseName": "subtype", + "type": "string" + }, + { + "name": "token", + "baseName": "token", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "CheckoutThreeDS2Action.TypeEnum" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CheckoutThreeDS2Action.attributeTypeMap; + } } export namespace CheckoutThreeDS2Action { export enum TypeEnum { - ThreeDS2 = 'threeDS2' + ThreeDs2 = 'threeDS2' } } diff --git a/src/typings/checkout/checkoutUtilityRequest.ts b/src/typings/checkout/checkoutUtilityRequest.ts index 2d4d8de..3dceec1 100644 --- a/src/typings/checkout/checkoutUtilityRequest.ts +++ b/src/typings/checkout/checkoutUtilityRequest.ts @@ -1,35 +1,30 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CheckoutUtilityRequest { /** * The list of origin domains, for which origin keys are requested. */ 'originDomains': Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "originDomains", + "baseName": "originDomains", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return CheckoutUtilityRequest.attributeTypeMap; + } } diff --git a/src/typings/checkout/checkoutUtilityResponse.ts b/src/typings/checkout/checkoutUtilityResponse.ts index 337d8b2..64b6845 100644 --- a/src/typings/checkout/checkoutUtilityResponse.ts +++ b/src/typings/checkout/checkoutUtilityResponse.ts @@ -1,35 +1,30 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CheckoutUtilityResponse { /** * The list of origin keys for all requested domains. For each list item, the key is the domain and the value is the origin key. */ 'originKeys'?: { [key: string]: string; }; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "originKeys", + "baseName": "originKeys", + "type": "{ [key: string]: string; }" + } ]; + + static getAttributeTypeMap() { + return CheckoutUtilityResponse.attributeTypeMap; + } } diff --git a/src/typings/checkout/checkoutVoucherAction.ts b/src/typings/checkout/checkoutVoucherAction.ts index eccec3b..0787093 100644 --- a/src/typings/checkout/checkoutVoucherAction.ts +++ b/src/typings/checkout/checkoutVoucherAction.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; export class CheckoutVoucherAction { @@ -99,6 +81,114 @@ export class CheckoutVoucherAction { * Specifies the URL to redirect to. */ 'url'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "alternativeReference", + "baseName": "alternativeReference", + "type": "string" + }, + { + "name": "collectionInstitutionNumber", + "baseName": "collectionInstitutionNumber", + "type": "string" + }, + { + "name": "downloadUrl", + "baseName": "downloadUrl", + "type": "string" + }, + { + "name": "entity", + "baseName": "entity", + "type": "string" + }, + { + "name": "expiresAt", + "baseName": "expiresAt", + "type": "string" + }, + { + "name": "initialAmount", + "baseName": "initialAmount", + "type": "Amount" + }, + { + "name": "instructionsUrl", + "baseName": "instructionsUrl", + "type": "string" + }, + { + "name": "issuer", + "baseName": "issuer", + "type": "string" + }, + { + "name": "maskedTelephoneNumber", + "baseName": "maskedTelephoneNumber", + "type": "string" + }, + { + "name": "merchantName", + "baseName": "merchantName", + "type": "string" + }, + { + "name": "merchantReference", + "baseName": "merchantReference", + "type": "string" + }, + { + "name": "paymentData", + "baseName": "paymentData", + "type": "string" + }, + { + "name": "paymentMethodType", + "baseName": "paymentMethodType", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "string" + }, + { + "name": "surcharge", + "baseName": "surcharge", + "type": "Amount" + }, + { + "name": "totalAmount", + "baseName": "totalAmount", + "type": "Amount" + }, + { + "name": "type", + "baseName": "type", + "type": "CheckoutVoucherAction.TypeEnum" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CheckoutVoucherAction.attributeTypeMap; + } } export namespace CheckoutVoucherAction { diff --git a/src/typings/checkout/commonField.ts b/src/typings/checkout/commonField.ts index 4c49828..92fdd35 100644 --- a/src/typings/checkout/commonField.ts +++ b/src/typings/checkout/commonField.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CommonField { /** * Name of the field. For example, Name of External Platform. @@ -35,5 +17,23 @@ export class CommonField { * Version of the field. For example, Version of External Platform. */ 'version'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "version", + "baseName": "version", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CommonField.attributeTypeMap; + } } diff --git a/src/typings/checkout/company.ts b/src/typings/checkout/company.ts index 805b225..e98c127 100644 --- a/src/typings/checkout/company.ts +++ b/src/typings/checkout/company.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Company { /** * The company website\'s home page. @@ -51,5 +33,43 @@ export class Company { * The company type. */ 'type'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "homepage", + "baseName": "homepage", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "registrationNumber", + "baseName": "registrationNumber", + "type": "string" + }, + { + "name": "registryLocation", + "baseName": "registryLocation", + "type": "string" + }, + { + "name": "taxId", + "baseName": "taxId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Company.attributeTypeMap; + } } diff --git a/src/typings/checkout/configuration.ts b/src/typings/checkout/configuration.ts index 635fcec..071010c 100644 --- a/src/typings/checkout/configuration.ts +++ b/src/typings/checkout/configuration.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Avs } from './avs'; import { InstallmentsNumber } from './installmentsNumber'; import { ShopperInput } from './shopperInput'; @@ -37,12 +19,40 @@ export class Configuration { 'cardHolderName'?: Configuration.CardHolderNameEnum; 'installments'?: InstallmentsNumber; 'shopperInput'?: ShopperInput; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "avs", + "baseName": "avs", + "type": "Avs" + }, + { + "name": "cardHolderName", + "baseName": "cardHolderName", + "type": "Configuration.CardHolderNameEnum" + }, + { + "name": "installments", + "baseName": "installments", + "type": "InstallmentsNumber" + }, + { + "name": "shopperInput", + "baseName": "shopperInput", + "type": "ShopperInput" + } ]; + + static getAttributeTypeMap() { + return Configuration.attributeTypeMap; + } } export namespace Configuration { export enum CardHolderNameEnum { - NONE = 'NONE', - OPTIONAL = 'OPTIONAL', - REQUIRED = 'REQUIRED' + None = 'NONE', + Optional = 'OPTIONAL', + Required = 'REQUIRED' } } diff --git a/src/typings/checkout/createCheckoutSessionRequest.ts b/src/typings/checkout/createCheckoutSessionRequest.ts index 4cb3898..0a873e7 100644 --- a/src/typings/checkout/createCheckoutSessionRequest.ts +++ b/src/typings/checkout/createCheckoutSessionRequest.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { AccountInfo } from './accountInfo'; import { Address } from './address'; import { Amount } from './amount'; @@ -62,7 +44,7 @@ export class CreateCheckoutSessionRequest { */ 'captureDelayHours'?: number; /** - * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** + * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** */ 'channel'?: CreateCheckoutSessionRequest.ChannelEnum; 'company'?: Company; @@ -203,11 +185,269 @@ export class CreateCheckoutSessionRequest { * Set to true if the payment should be routed to a trusted MID. */ 'trustedShopper'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountInfo", + "baseName": "accountInfo", + "type": "AccountInfo" + }, + { + "name": "additionalAmount", + "baseName": "additionalAmount", + "type": "Amount" + }, + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "allowedPaymentMethods", + "baseName": "allowedPaymentMethods", + "type": "Array" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "applicationInfo", + "baseName": "applicationInfo", + "type": "ApplicationInfo" + }, + { + "name": "authenticationData", + "baseName": "authenticationData", + "type": "AuthenticationData" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "blockedPaymentMethods", + "baseName": "blockedPaymentMethods", + "type": "Array" + }, + { + "name": "captureDelayHours", + "baseName": "captureDelayHours", + "type": "number" + }, + { + "name": "channel", + "baseName": "channel", + "type": "CreateCheckoutSessionRequest.ChannelEnum" + }, + { + "name": "company", + "baseName": "company", + "type": "Company" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "deliverAt", + "baseName": "deliverAt", + "type": "Date" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "Address" + }, + { + "name": "enableOneClick", + "baseName": "enableOneClick", + "type": "boolean" + }, + { + "name": "enablePayOut", + "baseName": "enablePayOut", + "type": "boolean" + }, + { + "name": "enableRecurring", + "baseName": "enableRecurring", + "type": "boolean" + }, + { + "name": "expiresAt", + "baseName": "expiresAt", + "type": "Date" + }, + { + "name": "lineItems", + "baseName": "lineItems", + "type": "Array" + }, + { + "name": "mandate", + "baseName": "mandate", + "type": "Mandate" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "merchantOrderReference", + "baseName": "merchantOrderReference", + "type": "string" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "{ [key: string]: string; }" + }, + { + "name": "mpiData", + "baseName": "mpiData", + "type": "ThreeDSecureData" + }, + { + "name": "recurringExpiry", + "baseName": "recurringExpiry", + "type": "string" + }, + { + "name": "recurringFrequency", + "baseName": "recurringFrequency", + "type": "string" + }, + { + "name": "recurringProcessingModel", + "baseName": "recurringProcessingModel", + "type": "CreateCheckoutSessionRequest.RecurringProcessingModelEnum" + }, + { + "name": "redirectFromIssuerMethod", + "baseName": "redirectFromIssuerMethod", + "type": "string" + }, + { + "name": "redirectToIssuerMethod", + "baseName": "redirectToIssuerMethod", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "returnUrl", + "baseName": "returnUrl", + "type": "string" + }, + { + "name": "riskData", + "baseName": "riskData", + "type": "RiskData" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperIP", + "baseName": "shopperIP", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "CreateCheckoutSessionRequest.ShopperInteractionEnum" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + }, + { + "name": "splitCardFundingSources", + "baseName": "splitCardFundingSources", + "type": "boolean" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + }, + { + "name": "storePaymentMethod", + "baseName": "storePaymentMethod", + "type": "boolean" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "threeDSAuthenticationOnly", + "baseName": "threeDSAuthenticationOnly", + "type": "boolean" + }, + { + "name": "trustedShopper", + "baseName": "trustedShopper", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return CreateCheckoutSessionRequest.attributeTypeMap; + } } export namespace CreateCheckoutSessionRequest { export enum ChannelEnum { - IOS = 'iOS', + IOs = 'iOS', Android = 'Android', Web = 'Web' } @@ -220,6 +460,6 @@ export namespace CreateCheckoutSessionRequest { Ecommerce = 'Ecommerce', ContAuth = 'ContAuth', Moto = 'Moto', - POS = 'POS' + Pos = 'POS' } } diff --git a/src/typings/checkout/createCheckoutSessionResponse.ts b/src/typings/checkout/createCheckoutSessionResponse.ts index 80c4c39..76fb64b 100644 --- a/src/typings/checkout/createCheckoutSessionResponse.ts +++ b/src/typings/checkout/createCheckoutSessionResponse.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { AccountInfo } from './accountInfo'; import { Address } from './address'; import { Amount } from './amount'; @@ -62,7 +44,7 @@ export class CreateCheckoutSessionResponse { */ 'captureDelayHours'?: number; /** - * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** + * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** */ 'channel'?: CreateCheckoutSessionResponse.ChannelEnum; 'company'?: Company; @@ -211,11 +193,279 @@ export class CreateCheckoutSessionResponse { * Set to true if the payment should be routed to a trusted MID. */ 'trustedShopper'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountInfo", + "baseName": "accountInfo", + "type": "AccountInfo" + }, + { + "name": "additionalAmount", + "baseName": "additionalAmount", + "type": "Amount" + }, + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "allowedPaymentMethods", + "baseName": "allowedPaymentMethods", + "type": "Array" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "applicationInfo", + "baseName": "applicationInfo", + "type": "ApplicationInfo" + }, + { + "name": "authenticationData", + "baseName": "authenticationData", + "type": "AuthenticationData" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "blockedPaymentMethods", + "baseName": "blockedPaymentMethods", + "type": "Array" + }, + { + "name": "captureDelayHours", + "baseName": "captureDelayHours", + "type": "number" + }, + { + "name": "channel", + "baseName": "channel", + "type": "CreateCheckoutSessionResponse.ChannelEnum" + }, + { + "name": "company", + "baseName": "company", + "type": "Company" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "deliverAt", + "baseName": "deliverAt", + "type": "Date" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "Address" + }, + { + "name": "enableOneClick", + "baseName": "enableOneClick", + "type": "boolean" + }, + { + "name": "enablePayOut", + "baseName": "enablePayOut", + "type": "boolean" + }, + { + "name": "enableRecurring", + "baseName": "enableRecurring", + "type": "boolean" + }, + { + "name": "expiresAt", + "baseName": "expiresAt", + "type": "Date" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "lineItems", + "baseName": "lineItems", + "type": "Array" + }, + { + "name": "mandate", + "baseName": "mandate", + "type": "Mandate" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "merchantOrderReference", + "baseName": "merchantOrderReference", + "type": "string" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "{ [key: string]: string; }" + }, + { + "name": "mpiData", + "baseName": "mpiData", + "type": "ThreeDSecureData" + }, + { + "name": "recurringExpiry", + "baseName": "recurringExpiry", + "type": "string" + }, + { + "name": "recurringFrequency", + "baseName": "recurringFrequency", + "type": "string" + }, + { + "name": "recurringProcessingModel", + "baseName": "recurringProcessingModel", + "type": "CreateCheckoutSessionResponse.RecurringProcessingModelEnum" + }, + { + "name": "redirectFromIssuerMethod", + "baseName": "redirectFromIssuerMethod", + "type": "string" + }, + { + "name": "redirectToIssuerMethod", + "baseName": "redirectToIssuerMethod", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "returnUrl", + "baseName": "returnUrl", + "type": "string" + }, + { + "name": "riskData", + "baseName": "riskData", + "type": "RiskData" + }, + { + "name": "sessionData", + "baseName": "sessionData", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperIP", + "baseName": "shopperIP", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "CreateCheckoutSessionResponse.ShopperInteractionEnum" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + }, + { + "name": "splitCardFundingSources", + "baseName": "splitCardFundingSources", + "type": "boolean" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + }, + { + "name": "storePaymentMethod", + "baseName": "storePaymentMethod", + "type": "boolean" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "threeDSAuthenticationOnly", + "baseName": "threeDSAuthenticationOnly", + "type": "boolean" + }, + { + "name": "trustedShopper", + "baseName": "trustedShopper", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return CreateCheckoutSessionResponse.attributeTypeMap; + } } export namespace CreateCheckoutSessionResponse { export enum ChannelEnum { - IOS = 'iOS', + IOs = 'iOS', Android = 'Android', Web = 'Web' } @@ -228,6 +478,6 @@ export namespace CreateCheckoutSessionResponse { Ecommerce = 'Ecommerce', ContAuth = 'ContAuth', Moto = 'Moto', - POS = 'POS' + Pos = 'POS' } } diff --git a/src/typings/checkout/createPaymentAmountUpdateRequest.ts b/src/typings/checkout/createPaymentAmountUpdateRequest.ts index 7936b6c..046be86 100644 --- a/src/typings/checkout/createPaymentAmountUpdateRequest.ts +++ b/src/typings/checkout/createPaymentAmountUpdateRequest.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; import { Split } from './split'; @@ -46,6 +28,39 @@ export class CreatePaymentAmountUpdateRequest { * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/platforms/processing-payments#providing-split-information). */ 'splits'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "reason", + "baseName": "reason", + "type": "CreatePaymentAmountUpdateRequest.ReasonEnum" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return CreatePaymentAmountUpdateRequest.attributeTypeMap; + } } export namespace CreatePaymentAmountUpdateRequest { diff --git a/src/typings/checkout/createPaymentCancelRequest.ts b/src/typings/checkout/createPaymentCancelRequest.ts index 82f15a9..2ad2c20 100644 --- a/src/typings/checkout/createPaymentCancelRequest.ts +++ b/src/typings/checkout/createPaymentCancelRequest.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CreatePaymentCancelRequest { /** * The merchant account that is used to process the payment. @@ -35,5 +17,23 @@ export class CreatePaymentCancelRequest { * Your reference for the cancel request. Maximum length: 80 characters. */ 'reference'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CreatePaymentCancelRequest.attributeTypeMap; + } } diff --git a/src/typings/checkout/createPaymentCaptureRequest.ts b/src/typings/checkout/createPaymentCaptureRequest.ts index 42fd74a..3c948de 100644 --- a/src/typings/checkout/createPaymentCaptureRequest.ts +++ b/src/typings/checkout/createPaymentCaptureRequest.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; import { LineItem } from './lineItem'; import { Split } from './split'; @@ -47,5 +29,38 @@ export class CreatePaymentCaptureRequest { * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/platforms/processing-payments#providing-split-information). */ 'splits'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "lineItems", + "baseName": "lineItems", + "type": "Array" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return CreatePaymentCaptureRequest.attributeTypeMap; + } } diff --git a/src/typings/checkout/createPaymentLinkRequest.ts b/src/typings/checkout/createPaymentLinkRequest.ts index 8aaa7b7..6bd8179 100644 --- a/src/typings/checkout/createPaymentLinkRequest.ts +++ b/src/typings/checkout/createPaymentLinkRequest.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Address } from './address'; import { Amount } from './amount'; import { ApplicationInfo } from './applicationInfo'; @@ -161,6 +143,194 @@ export class CreatePaymentLinkRequest { * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. */ 'themeId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "allowedPaymentMethods", + "baseName": "allowedPaymentMethods", + "type": "Array" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "applicationInfo", + "baseName": "applicationInfo", + "type": "ApplicationInfo" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "blockedPaymentMethods", + "baseName": "blockedPaymentMethods", + "type": "Array" + }, + { + "name": "captureDelayHours", + "baseName": "captureDelayHours", + "type": "number" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "deliverAt", + "baseName": "deliverAt", + "type": "Date" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "Address" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "expiresAt", + "baseName": "expiresAt", + "type": "string" + }, + { + "name": "installmentOptions", + "baseName": "installmentOptions", + "type": "{ [key: string]: InstallmentOption; }" + }, + { + "name": "lineItems", + "baseName": "lineItems", + "type": "Array" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "merchantOrderReference", + "baseName": "merchantOrderReference", + "type": "string" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "{ [key: string]: string; }" + }, + { + "name": "recurringProcessingModel", + "baseName": "recurringProcessingModel", + "type": "CreatePaymentLinkRequest.RecurringProcessingModelEnum" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "requiredShopperFields", + "baseName": "requiredShopperFields", + "type": "Array" + }, + { + "name": "returnUrl", + "baseName": "returnUrl", + "type": "string" + }, + { + "name": "reusable", + "baseName": "reusable", + "type": "boolean" + }, + { + "name": "riskData", + "baseName": "riskData", + "type": "RiskData" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + }, + { + "name": "splitCardFundingSources", + "baseName": "splitCardFundingSources", + "type": "boolean" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + }, + { + "name": "storePaymentMethodMode", + "baseName": "storePaymentMethodMode", + "type": "CreatePaymentLinkRequest.StorePaymentMethodModeEnum" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "themeId", + "baseName": "themeId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CreatePaymentLinkRequest.attributeTypeMap; + } } export namespace CreatePaymentLinkRequest { diff --git a/src/typings/checkout/createPaymentRefundRequest.ts b/src/typings/checkout/createPaymentRefundRequest.ts index 6ce2bc4..32db517 100644 --- a/src/typings/checkout/createPaymentRefundRequest.ts +++ b/src/typings/checkout/createPaymentRefundRequest.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; import { LineItem } from './lineItem'; import { Split } from './split'; @@ -47,5 +29,38 @@ export class CreatePaymentRefundRequest { * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/platforms/processing-payments#providing-split-information). */ 'splits'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "lineItems", + "baseName": "lineItems", + "type": "Array" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return CreatePaymentRefundRequest.attributeTypeMap; + } } diff --git a/src/typings/checkout/createPaymentReversalRequest.ts b/src/typings/checkout/createPaymentReversalRequest.ts index d629798..39b7a1e 100644 --- a/src/typings/checkout/createPaymentReversalRequest.ts +++ b/src/typings/checkout/createPaymentReversalRequest.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CreatePaymentReversalRequest { /** * The merchant account that is used to process the payment. @@ -35,5 +17,23 @@ export class CreatePaymentReversalRequest { * Your reference for the reversal request. Maximum length: 80 characters. */ 'reference'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CreatePaymentReversalRequest.attributeTypeMap; + } } diff --git a/src/typings/checkout/createStandalonePaymentCancelRequest.ts b/src/typings/checkout/createStandalonePaymentCancelRequest.ts index be76f50..ec8d9e4 100644 --- a/src/typings/checkout/createStandalonePaymentCancelRequest.ts +++ b/src/typings/checkout/createStandalonePaymentCancelRequest.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CreateStandalonePaymentCancelRequest { /** * The merchant account that is used to process the payment. @@ -39,5 +21,28 @@ export class CreateStandalonePaymentCancelRequest { * Your reference for the cancel request. Maximum length: 80 characters. */ 'reference'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "paymentReference", + "baseName": "paymentReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CreateStandalonePaymentCancelRequest.attributeTypeMap; + } } diff --git a/src/typings/checkout/detailsRequest.ts b/src/typings/checkout/detailsRequest.ts index e26c9e2..23b5b47 100644 --- a/src/typings/checkout/detailsRequest.ts +++ b/src/typings/checkout/detailsRequest.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { PaymentCompletionDetails } from './paymentCompletionDetails'; export class DetailsRequest { @@ -37,5 +19,28 @@ export class DetailsRequest { * Change the `authenticationOnly` indicator originally set in the `/payments` request. Only needs to be set if you want to modify the value set previously. */ 'threeDSAuthenticationOnly'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "details", + "baseName": "details", + "type": "PaymentCompletionDetails" + }, + { + "name": "paymentData", + "baseName": "paymentData", + "type": "string" + }, + { + "name": "threeDSAuthenticationOnly", + "baseName": "threeDSAuthenticationOnly", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return DetailsRequest.attributeTypeMap; + } } diff --git a/src/typings/checkout/deviceRenderOptions.ts b/src/typings/checkout/deviceRenderOptions.ts index 78b5b6e..ae0693b 100644 --- a/src/typings/checkout/deviceRenderOptions.ts +++ b/src/typings/checkout/deviceRenderOptions.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class DeviceRenderOptions { /** * Supported SDK interface types. Allowed values: * native * html * both @@ -35,6 +17,24 @@ export class DeviceRenderOptions { * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect */ 'sdkUiType'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "sdkInterface", + "baseName": "sdkInterface", + "type": "DeviceRenderOptions.SdkInterfaceEnum" + }, + { + "name": "sdkUiType", + "baseName": "sdkUiType", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return DeviceRenderOptions.attributeTypeMap; + } } export namespace DeviceRenderOptions { diff --git a/src/typings/checkout/dokuDetails.ts b/src/typings/checkout/dokuDetails.ts index 72c2cba..3bf0364 100644 --- a/src/typings/checkout/dokuDetails.ts +++ b/src/typings/checkout/dokuDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class DokuDetails { /** * The shopper\'s first name. @@ -43,6 +25,34 @@ export class DokuDetails { * **doku** */ 'type': DokuDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "firstName", + "baseName": "firstName", + "type": "string" + }, + { + "name": "lastName", + "baseName": "lastName", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "DokuDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return DokuDetails.attributeTypeMap; + } } export namespace DokuDetails { diff --git a/src/typings/checkout/donationResponse.ts b/src/typings/checkout/donationResponse.ts index f5226f2..cc4dff2 100644 --- a/src/typings/checkout/donationResponse.ts +++ b/src/typings/checkout/donationResponse.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; import { PaymentResponse } from './paymentResponse'; @@ -51,6 +33,49 @@ export class DonationResponse { * The status of the donation transaction. Possible values: * **completed** * **pending** * **refused** */ 'status'?: DonationResponse.StatusEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "donationAccount", + "baseName": "donationAccount", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "payment", + "baseName": "payment", + "type": "PaymentResponse" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "DonationResponse.StatusEnum" + } ]; + + static getAttributeTypeMap() { + return DonationResponse.attributeTypeMap; + } } export namespace DonationResponse { diff --git a/src/typings/checkout/dotpayDetails.ts b/src/typings/checkout/dotpayDetails.ts index df7a3a9..58e9747 100644 --- a/src/typings/checkout/dotpayDetails.ts +++ b/src/typings/checkout/dotpayDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class DotpayDetails { /** * The Dotpay issuer value of the shopper\'s selected bank. Set this to an **id** of a Dotpay issuer to preselect it. @@ -35,6 +17,24 @@ export class DotpayDetails { * **dotpay** */ 'type'?: DotpayDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "issuer", + "baseName": "issuer", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "DotpayDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return DotpayDetails.attributeTypeMap; + } } export namespace DotpayDetails { diff --git a/src/typings/checkout/dragonpayDetails.ts b/src/typings/checkout/dragonpayDetails.ts index e6afaf9..b020601 100644 --- a/src/typings/checkout/dragonpayDetails.ts +++ b/src/typings/checkout/dragonpayDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class DragonpayDetails { /** * The Dragonpay issuer value of the shopper\'s selected bank. Set this to an **id** of a Dragonpay issuer to preselect it. @@ -39,6 +21,29 @@ export class DragonpayDetails { * **dragonpay** */ 'type': DragonpayDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "issuer", + "baseName": "issuer", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "DragonpayDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return DragonpayDetails.attributeTypeMap; + } } export namespace DragonpayDetails { diff --git a/src/typings/checkout/econtextVoucherDetails.ts b/src/typings/checkout/econtextVoucherDetails.ts index 7a88e78..e173d91 100644 --- a/src/typings/checkout/econtextVoucherDetails.ts +++ b/src/typings/checkout/econtextVoucherDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class EcontextVoucherDetails { /** * The shopper\'s first name. @@ -47,6 +29,39 @@ export class EcontextVoucherDetails { * **econtextvoucher** */ 'type': EcontextVoucherDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "firstName", + "baseName": "firstName", + "type": "string" + }, + { + "name": "lastName", + "baseName": "lastName", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "EcontextVoucherDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return EcontextVoucherDetails.attributeTypeMap; + } } export namespace EcontextVoucherDetails { diff --git a/src/typings/checkout/externalPlatform.ts b/src/typings/checkout/externalPlatform.ts index 6120dcb..aa1f4e1 100644 --- a/src/typings/checkout/externalPlatform.ts +++ b/src/typings/checkout/externalPlatform.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ExternalPlatform { /** * External platform integrator. @@ -39,5 +21,28 @@ export class ExternalPlatform { * Version of the field. For example, Version of External Platform. */ 'version'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "integrator", + "baseName": "integrator", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "version", + "baseName": "version", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ExternalPlatform.attributeTypeMap; + } } diff --git a/src/typings/checkout/forexQuote.ts b/src/typings/checkout/forexQuote.ts index c0dc06d..990c7dc 100644 --- a/src/typings/checkout/forexQuote.ts +++ b/src/typings/checkout/forexQuote.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; export class ForexQuote { @@ -64,5 +46,73 @@ export class ForexQuote { * The date until which the forex quote is valid. */ 'validTill': Date; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "account", + "baseName": "account", + "type": "string" + }, + { + "name": "accountType", + "baseName": "accountType", + "type": "string" + }, + { + "name": "baseAmount", + "baseName": "baseAmount", + "type": "Amount" + }, + { + "name": "basePoints", + "baseName": "basePoints", + "type": "number" + }, + { + "name": "buy", + "baseName": "buy", + "type": "Amount" + }, + { + "name": "interbank", + "baseName": "interbank", + "type": "Amount" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "sell", + "baseName": "sell", + "type": "Amount" + }, + { + "name": "signature", + "baseName": "signature", + "type": "string" + }, + { + "name": "source", + "baseName": "source", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "validTill", + "baseName": "validTill", + "type": "Date" + } ]; + + static getAttributeTypeMap() { + return ForexQuote.attributeTypeMap; + } } diff --git a/src/typings/checkout/fraudCheckResult.ts b/src/typings/checkout/fraudCheckResult.ts index ebf34dd..83b72dc 100644 --- a/src/typings/checkout/fraudCheckResult.ts +++ b/src/typings/checkout/fraudCheckResult.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class FraudCheckResult { /** * The fraud score generated by the risk check. @@ -39,5 +21,28 @@ export class FraudCheckResult { * The name of the risk check. */ 'name': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountScore", + "baseName": "accountScore", + "type": "number" + }, + { + "name": "checkId", + "baseName": "checkId", + "type": "number" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return FraudCheckResult.attributeTypeMap; + } } diff --git a/src/typings/checkout/fraudResult.ts b/src/typings/checkout/fraudResult.ts index 5d2d715..425dc02 100644 --- a/src/typings/checkout/fraudResult.ts +++ b/src/typings/checkout/fraudResult.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { FraudCheckResult } from './fraudCheckResult'; export class FraudResult { @@ -36,5 +18,23 @@ export class FraudResult { * The result of the individual risk checks. */ 'results'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountScore", + "baseName": "accountScore", + "type": "number" + }, + { + "name": "results", + "baseName": "results", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return FraudResult.attributeTypeMap; + } } diff --git a/src/typings/checkout/genericIssuerPaymentMethodDetails.ts b/src/typings/checkout/genericIssuerPaymentMethodDetails.ts index 80e293b..d327133 100644 --- a/src/typings/checkout/genericIssuerPaymentMethodDetails.ts +++ b/src/typings/checkout/genericIssuerPaymentMethodDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class GenericIssuerPaymentMethodDetails { /** * The issuer id of the shopper\'s selected bank. @@ -43,12 +25,40 @@ export class GenericIssuerPaymentMethodDetails { * **genericissuer** */ 'type': GenericIssuerPaymentMethodDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "issuer", + "baseName": "issuer", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "GenericIssuerPaymentMethodDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return GenericIssuerPaymentMethodDetails.attributeTypeMap; + } } export namespace GenericIssuerPaymentMethodDetails { export enum TypeEnum { Eps = 'eps', - OnlineBankingSK = 'onlineBanking_SK', - OnlineBankingCZ = 'onlineBanking_CZ' + OnlineBankingSk = 'onlineBanking_SK', + OnlineBankingCz = 'onlineBanking_CZ' } } diff --git a/src/typings/checkout/giropayDetails.ts b/src/typings/checkout/giropayDetails.ts index e13a141..5f02c67 100644 --- a/src/typings/checkout/giropayDetails.ts +++ b/src/typings/checkout/giropayDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class GiropayDetails { /** * This is the `recurringDetailReference` returned in the response when you created the token. @@ -39,6 +21,29 @@ export class GiropayDetails { * **giropay** */ 'type'?: GiropayDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "GiropayDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return GiropayDetails.attributeTypeMap; + } } export namespace GiropayDetails { diff --git a/src/typings/checkout/googlePayDetails.ts b/src/typings/checkout/googlePayDetails.ts index 0a4ff32..3f7e22b 100644 --- a/src/typings/checkout/googlePayDetails.ts +++ b/src/typings/checkout/googlePayDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class GooglePayDetails { /** * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. @@ -47,6 +29,39 @@ export class GooglePayDetails { * **googlepay**, **paywithgoogle** */ 'type'?: GooglePayDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "fundingSource", + "baseName": "fundingSource", + "type": "GooglePayDetails.FundingSourceEnum" + }, + { + "name": "googlePayToken", + "baseName": "googlePayToken", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "GooglePayDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return GooglePayDetails.attributeTypeMap; + } } export namespace GooglePayDetails { diff --git a/src/typings/checkout/idealDetails.ts b/src/typings/checkout/idealDetails.ts index d86f857..42b04b4 100644 --- a/src/typings/checkout/idealDetails.ts +++ b/src/typings/checkout/idealDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class IdealDetails { /** * The iDEAL issuer value of the shopper\'s selected bank. Set this to an **id** of an iDEAL issuer to preselect it. @@ -43,6 +25,34 @@ export class IdealDetails { * **ideal** */ 'type'?: IdealDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "issuer", + "baseName": "issuer", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "IdealDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return IdealDetails.attributeTypeMap; + } } export namespace IdealDetails { diff --git a/src/typings/checkout/inputDetail.ts b/src/typings/checkout/inputDetail.ts index 17e3691..fb26f57 100644 --- a/src/typings/checkout/inputDetail.ts +++ b/src/typings/checkout/inputDetail.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Item } from './item'; import { SubInputDetail } from './subInputDetail'; @@ -65,5 +47,58 @@ export class InputDetail { * The value can be pre-filled, if available. */ 'value'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "configuration", + "baseName": "configuration", + "type": "{ [key: string]: string; }" + }, + { + "name": "details", + "baseName": "details", + "type": "Array" + }, + { + "name": "inputDetails", + "baseName": "inputDetails", + "type": "Array" + }, + { + "name": "itemSearchUrl", + "baseName": "itemSearchUrl", + "type": "string" + }, + { + "name": "items", + "baseName": "items", + "type": "Array" + }, + { + "name": "key", + "baseName": "key", + "type": "string" + }, + { + "name": "optional", + "baseName": "optional", + "type": "boolean" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return InputDetail.attributeTypeMap; + } } diff --git a/src/typings/checkout/installmentOption.ts b/src/typings/checkout/installmentOption.ts index a2ebf4f..69fcba7 100644 --- a/src/typings/checkout/installmentOption.ts +++ b/src/typings/checkout/installmentOption.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class InstallmentOption { /** * The maximum number of installments offered for this payment method. @@ -43,6 +25,34 @@ export class InstallmentOption { * An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. */ 'values'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "maxValue", + "baseName": "maxValue", + "type": "number" + }, + { + "name": "plans", + "baseName": "plans", + "type": "Array" + }, + { + "name": "preselectedValue", + "baseName": "preselectedValue", + "type": "number" + }, + { + "name": "values", + "baseName": "values", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return InstallmentOption.attributeTypeMap; + } } export namespace InstallmentOption { diff --git a/src/typings/checkout/installments.ts b/src/typings/checkout/installments.ts index 3cbbc94..9ee17c2 100644 --- a/src/typings/checkout/installments.ts +++ b/src/typings/checkout/installments.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Installments { /** * The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). By default, this is set to **regular**. Possible values: * **regular** * **revolving** @@ -35,6 +17,24 @@ export class Installments { * Defines the number of installments. Its value needs to be greater than zero. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. */ 'value': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "plan", + "baseName": "plan", + "type": "Installments.PlanEnum" + }, + { + "name": "value", + "baseName": "value", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return Installments.attributeTypeMap; + } } export namespace Installments { diff --git a/src/typings/checkout/installmentsNumber.ts b/src/typings/checkout/installmentsNumber.ts index af6530e..21bc254 100644 --- a/src/typings/checkout/installmentsNumber.ts +++ b/src/typings/checkout/installmentsNumber.ts @@ -1,35 +1,30 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class InstallmentsNumber { /** * Maximum number of installments */ 'maxNumberOfInstallments': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "maxNumberOfInstallments", + "baseName": "maxNumberOfInstallments", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return InstallmentsNumber.attributeTypeMap; + } } diff --git a/src/typings/checkout/item.ts b/src/typings/checkout/item.ts index 6773e11..fbca84f 100644 --- a/src/typings/checkout/item.ts +++ b/src/typings/checkout/item.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Item { /** * The value to provide in the result. @@ -35,5 +17,23 @@ export class Item { * The display name. */ 'name'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Item.attributeTypeMap; + } } diff --git a/src/typings/checkout/klarnaDetails.ts b/src/typings/checkout/klarnaDetails.ts index aeec107..a08e3dc 100644 --- a/src/typings/checkout/klarnaDetails.ts +++ b/src/typings/checkout/klarnaDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class KlarnaDetails { /** * The address where to send the invoice. @@ -51,6 +33,44 @@ export class KlarnaDetails { * **klarna** */ 'type': KlarnaDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "string" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "string" + }, + { + "name": "personalDetails", + "baseName": "personalDetails", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "KlarnaDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return KlarnaDetails.attributeTypeMap; + } } export namespace KlarnaDetails { diff --git a/src/typings/checkout/lineItem.ts b/src/typings/checkout/lineItem.ts index c9fa241..9e08671 100644 --- a/src/typings/checkout/lineItem.ts +++ b/src/typings/checkout/lineItem.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class LineItem { /** * Item amount excluding the tax, in minor units. @@ -67,5 +49,63 @@ export class LineItem { * Tax percentage, in minor units. */ 'taxPercentage'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amountExcludingTax", + "baseName": "amountExcludingTax", + "type": "number" + }, + { + "name": "amountIncludingTax", + "baseName": "amountIncludingTax", + "type": "number" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "imageUrl", + "baseName": "imageUrl", + "type": "string" + }, + { + "name": "itemCategory", + "baseName": "itemCategory", + "type": "string" + }, + { + "name": "productUrl", + "baseName": "productUrl", + "type": "string" + }, + { + "name": "quantity", + "baseName": "quantity", + "type": "number" + }, + { + "name": "taxAmount", + "baseName": "taxAmount", + "type": "number" + }, + { + "name": "taxPercentage", + "baseName": "taxPercentage", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return LineItem.attributeTypeMap; + } } diff --git a/src/typings/checkout/mandate.ts b/src/typings/checkout/mandate.ts index 1a00afb..a05b41c 100644 --- a/src/typings/checkout/mandate.ts +++ b/src/typings/checkout/mandate.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Mandate { /** * The billing amount (in minor units) of the recurring transactions. @@ -59,6 +41,54 @@ export class Mandate { * Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. */ 'startsAt'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "string" + }, + { + "name": "amountRule", + "baseName": "amountRule", + "type": "Mandate.AmountRuleEnum" + }, + { + "name": "billingAttemptsRule", + "baseName": "billingAttemptsRule", + "type": "Mandate.BillingAttemptsRuleEnum" + }, + { + "name": "billingDay", + "baseName": "billingDay", + "type": "string" + }, + { + "name": "endsAt", + "baseName": "endsAt", + "type": "string" + }, + { + "name": "frequency", + "baseName": "frequency", + "type": "Mandate.FrequencyEnum" + }, + { + "name": "remarks", + "baseName": "remarks", + "type": "string" + }, + { + "name": "startsAt", + "baseName": "startsAt", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Mandate.attributeTypeMap; + } } export namespace Mandate { diff --git a/src/typings/checkout/masterpassDetails.ts b/src/typings/checkout/masterpassDetails.ts index 4a249e8..6081f3e 100644 --- a/src/typings/checkout/masterpassDetails.ts +++ b/src/typings/checkout/masterpassDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class MasterpassDetails { /** * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. @@ -39,6 +21,29 @@ export class MasterpassDetails { * **masterpass** */ 'type'?: MasterpassDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "fundingSource", + "baseName": "fundingSource", + "type": "MasterpassDetails.FundingSourceEnum" + }, + { + "name": "masterpassTransactionId", + "baseName": "masterpassTransactionId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "MasterpassDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return MasterpassDetails.attributeTypeMap; + } } export namespace MasterpassDetails { diff --git a/src/typings/checkout/mbwayDetails.ts b/src/typings/checkout/mbwayDetails.ts index d0f8aa5..7e89299 100644 --- a/src/typings/checkout/mbwayDetails.ts +++ b/src/typings/checkout/mbwayDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class MbwayDetails { 'shopperEmail': string; 'telephoneNumber': string; @@ -33,6 +15,29 @@ export class MbwayDetails { * **mbway** */ 'type'?: MbwayDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "MbwayDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return MbwayDetails.attributeTypeMap; + } } export namespace MbwayDetails { diff --git a/src/typings/checkout/merchantDevice.ts b/src/typings/checkout/merchantDevice.ts index 61a1cce..795ec3f 100644 --- a/src/typings/checkout/merchantDevice.ts +++ b/src/typings/checkout/merchantDevice.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class MerchantDevice { /** * Operating system running on the merchant device. @@ -39,5 +21,28 @@ export class MerchantDevice { * Merchant device reference. */ 'reference'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "os", + "baseName": "os", + "type": "string" + }, + { + "name": "osVersion", + "baseName": "osVersion", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return MerchantDevice.attributeTypeMap; + } } diff --git a/src/typings/checkout/merchantRiskIndicator.ts b/src/typings/checkout/merchantRiskIndicator.ts index 95bf947..7229b01 100644 --- a/src/typings/checkout/merchantRiskIndicator.ts +++ b/src/typings/checkout/merchantRiskIndicator.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; export class MerchantRiskIndicator { @@ -81,6 +63,84 @@ export class MerchantRiskIndicator { * Indicates shipping method chosen for the transaction. */ 'shipIndicator'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "addressMatch", + "baseName": "addressMatch", + "type": "boolean" + }, + { + "name": "deliveryAddressIndicator", + "baseName": "deliveryAddressIndicator", + "type": "MerchantRiskIndicator.DeliveryAddressIndicatorEnum" + }, + { + "name": "deliveryEmail", + "baseName": "deliveryEmail", + "type": "string" + }, + { + "name": "deliveryEmailAddress", + "baseName": "deliveryEmailAddress", + "type": "string" + }, + { + "name": "deliveryTimeframe", + "baseName": "deliveryTimeframe", + "type": "MerchantRiskIndicator.DeliveryTimeframeEnum" + }, + { + "name": "giftCardAmount", + "baseName": "giftCardAmount", + "type": "Amount" + }, + { + "name": "giftCardCount", + "baseName": "giftCardCount", + "type": "number" + }, + { + "name": "giftCardCurr", + "baseName": "giftCardCurr", + "type": "string" + }, + { + "name": "preOrderDate", + "baseName": "preOrderDate", + "type": "Date" + }, + { + "name": "preOrderPurchase", + "baseName": "preOrderPurchase", + "type": "boolean" + }, + { + "name": "preOrderPurchaseInd", + "baseName": "preOrderPurchaseInd", + "type": "string" + }, + { + "name": "reorderItems", + "baseName": "reorderItems", + "type": "boolean" + }, + { + "name": "reorderItemsInd", + "baseName": "reorderItemsInd", + "type": "string" + }, + { + "name": "shipIndicator", + "baseName": "shipIndicator", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return MerchantRiskIndicator.attributeTypeMap; + } } export namespace MerchantRiskIndicator { diff --git a/src/typings/checkout/mobilePayDetails.ts b/src/typings/checkout/mobilePayDetails.ts index d60786e..e7b9d49 100644 --- a/src/typings/checkout/mobilePayDetails.ts +++ b/src/typings/checkout/mobilePayDetails.ts @@ -1,36 +1,31 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class MobilePayDetails { /** * **mobilepay** */ 'type'?: MobilePayDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "MobilePayDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return MobilePayDetails.attributeTypeMap; + } } export namespace MobilePayDetails { diff --git a/src/typings/checkout/models.ts b/src/typings/checkout/models.ts index 1abafa5..f1e4ee7 100644 --- a/src/typings/checkout/models.ts +++ b/src/typings/checkout/models.ts @@ -1,3 +1,13 @@ +/* + * The version of the OpenAPI document: v69 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + export * from './accountInfo'; export * from './acctInfo'; export * from './achDetails'; @@ -166,3 +176,626 @@ export * from './visaCheckoutDetails'; export * from './weChatPayDetails'; export * from './weChatPayMiniProgramDetails'; export * from './zipDetails'; + + +import { AccountInfo } from './accountInfo'; +import { AcctInfo } from './acctInfo'; +import { AchDetails } from './achDetails'; +import { AdditionalData3DSecure } from './additionalData3DSecure'; +import { AdditionalDataAirline } from './additionalDataAirline'; +import { AdditionalDataCarRental } from './additionalDataCarRental'; +import { AdditionalDataCommon } from './additionalDataCommon'; +import { AdditionalDataLevel23 } from './additionalDataLevel23'; +import { AdditionalDataLodging } from './additionalDataLodging'; +import { AdditionalDataOpenInvoice } from './additionalDataOpenInvoice'; +import { AdditionalDataOpi } from './additionalDataOpi'; +import { AdditionalDataRatepay } from './additionalDataRatepay'; +import { AdditionalDataRetry } from './additionalDataRetry'; +import { AdditionalDataRisk } from './additionalDataRisk'; +import { AdditionalDataRiskStandalone } from './additionalDataRiskStandalone'; +import { AdditionalDataSubMerchant } from './additionalDataSubMerchant'; +import { AdditionalDataTemporaryServices } from './additionalDataTemporaryServices'; +import { AdditionalDataWallets } from './additionalDataWallets'; +import { Address } from './address'; +import { AfterpayDetails } from './afterpayDetails'; +import { AmazonPayDetails } from './amazonPayDetails'; +import { Amount } from './amount'; +import { AndroidPayDetails } from './androidPayDetails'; +import { ApplePayDetails } from './applePayDetails'; +import { ApplicationInfo } from './applicationInfo'; +import { AuthenticationData } from './authenticationData'; +import { Avs } from './avs'; +import { BacsDirectDebitDetails } from './bacsDirectDebitDetails'; +import { BankAccount } from './bankAccount'; +import { BillDeskDetails } from './billDeskDetails'; +import { BlikDetails } from './blikDetails'; +import { BrowserInfo } from './browserInfo'; +import { Card } from './card'; +import { CardBrandDetails } from './cardBrandDetails'; +import { CardDetails } from './cardDetails'; +import { CardDetailsRequest } from './cardDetailsRequest'; +import { CardDetailsResponse } from './cardDetailsResponse'; +import { CellulantDetails } from './cellulantDetails'; +import { CheckoutAwaitAction } from './checkoutAwaitAction'; +import { CheckoutBalanceCheckRequest } from './checkoutBalanceCheckRequest'; +import { CheckoutBalanceCheckResponse } from './checkoutBalanceCheckResponse'; +import { CheckoutBankTransferAction } from './checkoutBankTransferAction'; +import { CheckoutCancelOrderRequest } from './checkoutCancelOrderRequest'; +import { CheckoutCancelOrderResponse } from './checkoutCancelOrderResponse'; +import { CheckoutCreateOrderRequest } from './checkoutCreateOrderRequest'; +import { CheckoutCreateOrderResponse } from './checkoutCreateOrderResponse'; +import { CheckoutDonationAction } from './checkoutDonationAction'; +import { CheckoutOneTimePasscodeAction } from './checkoutOneTimePasscodeAction'; +import { CheckoutOrder } from './checkoutOrder'; +import { CheckoutOrderResponse } from './checkoutOrderResponse'; +import { CheckoutQrCodeAction } from './checkoutQrCodeAction'; +import { CheckoutRedirectAction } from './checkoutRedirectAction'; +import { CheckoutSDKAction } from './checkoutSDKAction'; +import { CheckoutThreeDS2Action } from './checkoutThreeDS2Action'; +import { CheckoutUtilityRequest } from './checkoutUtilityRequest'; +import { CheckoutUtilityResponse } from './checkoutUtilityResponse'; +import { CheckoutVoucherAction } from './checkoutVoucherAction'; +import { CommonField } from './commonField'; +import { Company } from './company'; +import { Configuration } from './configuration'; +import { CreateCheckoutSessionRequest } from './createCheckoutSessionRequest'; +import { CreateCheckoutSessionResponse } from './createCheckoutSessionResponse'; +import { CreatePaymentAmountUpdateRequest } from './createPaymentAmountUpdateRequest'; +import { CreatePaymentCancelRequest } from './createPaymentCancelRequest'; +import { CreatePaymentCaptureRequest } from './createPaymentCaptureRequest'; +import { CreatePaymentLinkRequest } from './createPaymentLinkRequest'; +import { CreatePaymentRefundRequest } from './createPaymentRefundRequest'; +import { CreatePaymentReversalRequest } from './createPaymentReversalRequest'; +import { CreateStandalonePaymentCancelRequest } from './createStandalonePaymentCancelRequest'; +import { DetailsRequest } from './detailsRequest'; +import { DeviceRenderOptions } from './deviceRenderOptions'; +import { DokuDetails } from './dokuDetails'; +import { DonationResponse } from './donationResponse'; +import { DotpayDetails } from './dotpayDetails'; +import { DragonpayDetails } from './dragonpayDetails'; +import { EcontextVoucherDetails } from './econtextVoucherDetails'; +import { ExternalPlatform } from './externalPlatform'; +import { ForexQuote } from './forexQuote'; +import { FraudCheckResult } from './fraudCheckResult'; +import { FraudResult } from './fraudResult'; +import { GenericIssuerPaymentMethodDetails } from './genericIssuerPaymentMethodDetails'; +import { GiropayDetails } from './giropayDetails'; +import { GooglePayDetails } from './googlePayDetails'; +import { IdealDetails } from './idealDetails'; +import { InputDetail } from './inputDetail'; +import { InstallmentOption } from './installmentOption'; +import { Installments } from './installments'; +import { InstallmentsNumber } from './installmentsNumber'; +import { Item } from './item'; +import { KlarnaDetails } from './klarnaDetails'; +import { LineItem } from './lineItem'; +import { Mandate } from './mandate'; +import { MasterpassDetails } from './masterpassDetails'; +import { MbwayDetails } from './mbwayDetails'; +import { MerchantDevice } from './merchantDevice'; +import { MerchantRiskIndicator } from './merchantRiskIndicator'; +import { MobilePayDetails } from './mobilePayDetails'; +import { MolPayDetails } from './molPayDetails'; +import { Name } from './name'; +import { OpenInvoiceDetails } from './openInvoiceDetails'; +import { PayPalDetails } from './payPalDetails'; +import { PayUUpiDetails } from './payUUpiDetails'; +import { PayWithGoogleDetails } from './payWithGoogleDetails'; +import { PaymentAmountUpdateResource } from './paymentAmountUpdateResource'; +import { PaymentCancelResource } from './paymentCancelResource'; +import { PaymentCaptureResource } from './paymentCaptureResource'; +import { PaymentCompletionDetails } from './paymentCompletionDetails'; +import { PaymentDetails } from './paymentDetails'; +import { PaymentDetailsResponse } from './paymentDetailsResponse'; +import { PaymentDonationRequest } from './paymentDonationRequest'; +import { PaymentLinkResponse } from './paymentLinkResponse'; +import { PaymentMethod } from './paymentMethod'; +import { PaymentMethodGroup } from './paymentMethodGroup'; +import { PaymentMethodIssuer } from './paymentMethodIssuer'; +import { PaymentMethodsRequest } from './paymentMethodsRequest'; +import { PaymentMethodsResponse } from './paymentMethodsResponse'; +import { PaymentRefundResource } from './paymentRefundResource'; +import { PaymentRequest } from './paymentRequest'; +import { PaymentResponse } from './paymentResponse'; +import { PaymentReversalResource } from './paymentReversalResource'; +import { PaymentSetupRequest } from './paymentSetupRequest'; +import { PaymentSetupResponse } from './paymentSetupResponse'; +import { PaymentVerificationRequest } from './paymentVerificationRequest'; +import { PaymentVerificationResponse } from './paymentVerificationResponse'; +import { Phone } from './phone'; +import { RatepayDetails } from './ratepayDetails'; +import { Recurring } from './recurring'; +import { RecurringDetail } from './recurringDetail'; +import { Redirect } from './redirect'; +import { ResponseAdditionalData3DSecure } from './responseAdditionalData3DSecure'; +import { ResponseAdditionalDataBillingAddress } from './responseAdditionalDataBillingAddress'; +import { ResponseAdditionalDataCard } from './responseAdditionalDataCard'; +import { ResponseAdditionalDataCommon } from './responseAdditionalDataCommon'; +import { ResponseAdditionalDataInstallments } from './responseAdditionalDataInstallments'; +import { ResponseAdditionalDataNetworkTokens } from './responseAdditionalDataNetworkTokens'; +import { ResponseAdditionalDataOpi } from './responseAdditionalDataOpi'; +import { ResponseAdditionalDataSepa } from './responseAdditionalDataSepa'; +import { ResponsePaymentMethod } from './responsePaymentMethod'; +import { RiskData } from './riskData'; +import { SDKEphemPubKey } from './sDKEphemPubKey'; +import { SamsungPayDetails } from './samsungPayDetails'; +import { SepaDirectDebitDetails } from './sepaDirectDebitDetails'; +import { ServiceError } from './serviceError'; +import { ServiceError2 } from './serviceError2'; +import { ShopperInput } from './shopperInput'; +import { ShopperInteractionDevice } from './shopperInteractionDevice'; +import { Split } from './split'; +import { SplitAmount } from './splitAmount'; +import { StandalonePaymentCancelResource } from './standalonePaymentCancelResource'; +import { StoredDetails } from './storedDetails'; +import { StoredPaymentMethod } from './storedPaymentMethod'; +import { StoredPaymentMethodDetails } from './storedPaymentMethodDetails'; +import { SubInputDetail } from './subInputDetail'; +import { ThreeDS2RequestData } from './threeDS2RequestData'; +import { ThreeDS2ResponseData } from './threeDS2ResponseData'; +import { ThreeDS2Result } from './threeDS2Result'; +import { ThreeDSRequestData } from './threeDSRequestData'; +import { ThreeDSRequestorAuthenticationInfo } from './threeDSRequestorAuthenticationInfo'; +import { ThreeDSRequestorPriorAuthenticationInfo } from './threeDSRequestorPriorAuthenticationInfo'; +import { ThreeDSecureData } from './threeDSecureData'; +import { UpdatePaymentLinkRequest } from './updatePaymentLinkRequest'; +import { UpiCollectDetails } from './upiCollectDetails'; +import { UpiIntentDetails } from './upiIntentDetails'; +import { VippsDetails } from './vippsDetails'; +import { VisaCheckoutDetails } from './visaCheckoutDetails'; +import { WeChatPayDetails } from './weChatPayDetails'; +import { WeChatPayMiniProgramDetails } from './weChatPayMiniProgramDetails'; +import { ZipDetails } from './zipDetails'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "AccountInfo.AccountAgeIndicatorEnum": AccountInfo.AccountAgeIndicatorEnum, + "AccountInfo.AccountChangeIndicatorEnum": AccountInfo.AccountChangeIndicatorEnum, + "AccountInfo.AccountTypeEnum": AccountInfo.AccountTypeEnum, + "AccountInfo.DeliveryAddressUsageIndicatorEnum": AccountInfo.DeliveryAddressUsageIndicatorEnum, + "AccountInfo.PasswordChangeIndicatorEnum": AccountInfo.PasswordChangeIndicatorEnum, + "AccountInfo.PaymentAccountIndicatorEnum": AccountInfo.PaymentAccountIndicatorEnum, + "AcctInfo.ChAccAgeIndEnum": AcctInfo.ChAccAgeIndEnum, + "AcctInfo.ChAccChangeIndEnum": AcctInfo.ChAccChangeIndEnum, + "AcctInfo.ChAccPwChangeIndEnum": AcctInfo.ChAccPwChangeIndEnum, + "AcctInfo.PaymentAccIndEnum": AcctInfo.PaymentAccIndEnum, + "AcctInfo.ShipAddressUsageIndEnum": AcctInfo.ShipAddressUsageIndEnum, + "AcctInfo.ShipNameIndicatorEnum": AcctInfo.ShipNameIndicatorEnum, + "AcctInfo.SuspiciousAccActivityEnum": AcctInfo.SuspiciousAccActivityEnum, + "AchDetails.TypeEnum": AchDetails.TypeEnum, + "AdditionalDataCommon.IndustryUsageEnum": AdditionalDataCommon.IndustryUsageEnum, + "AfterpayDetails.TypeEnum": AfterpayDetails.TypeEnum, + "AmazonPayDetails.TypeEnum": AmazonPayDetails.TypeEnum, + "AndroidPayDetails.TypeEnum": AndroidPayDetails.TypeEnum, + "ApplePayDetails.FundingSourceEnum": ApplePayDetails.FundingSourceEnum, + "ApplePayDetails.TypeEnum": ApplePayDetails.TypeEnum, + "AuthenticationData.AttemptAuthenticationEnum": AuthenticationData.AttemptAuthenticationEnum, + "Avs.EnabledEnum": Avs.EnabledEnum, + "BacsDirectDebitDetails.TypeEnum": BacsDirectDebitDetails.TypeEnum, + "BillDeskDetails.TypeEnum": BillDeskDetails.TypeEnum, + "BlikDetails.TypeEnum": BlikDetails.TypeEnum, + "CardDetails.FundingSourceEnum": CardDetails.FundingSourceEnum, + "CardDetails.TypeEnum": CardDetails.TypeEnum, + "CellulantDetails.TypeEnum": CellulantDetails.TypeEnum, + "CheckoutAwaitAction.TypeEnum": CheckoutAwaitAction.TypeEnum, + "CheckoutBalanceCheckRequest.RecurringProcessingModelEnum": CheckoutBalanceCheckRequest.RecurringProcessingModelEnum, + "CheckoutBalanceCheckRequest.ShopperInteractionEnum": CheckoutBalanceCheckRequest.ShopperInteractionEnum, + "CheckoutBalanceCheckResponse.ResultCodeEnum": CheckoutBalanceCheckResponse.ResultCodeEnum, + "CheckoutBankTransferAction.TypeEnum": CheckoutBankTransferAction.TypeEnum, + "CheckoutCancelOrderResponse.ResultCodeEnum": CheckoutCancelOrderResponse.ResultCodeEnum, + "CheckoutCreateOrderResponse.ResultCodeEnum": CheckoutCreateOrderResponse.ResultCodeEnum, + "CheckoutDonationAction.TypeEnum": CheckoutDonationAction.TypeEnum, + "CheckoutOneTimePasscodeAction.TypeEnum": CheckoutOneTimePasscodeAction.TypeEnum, + "CheckoutQrCodeAction.TypeEnum": CheckoutQrCodeAction.TypeEnum, + "CheckoutRedirectAction.TypeEnum": CheckoutRedirectAction.TypeEnum, + "CheckoutSDKAction.TypeEnum": CheckoutSDKAction.TypeEnum, + "CheckoutThreeDS2Action.TypeEnum": CheckoutThreeDS2Action.TypeEnum, + "CheckoutVoucherAction.TypeEnum": CheckoutVoucherAction.TypeEnum, + "Configuration.CardHolderNameEnum": Configuration.CardHolderNameEnum, + "CreateCheckoutSessionRequest.ChannelEnum": CreateCheckoutSessionRequest.ChannelEnum, + "CreateCheckoutSessionRequest.RecurringProcessingModelEnum": CreateCheckoutSessionRequest.RecurringProcessingModelEnum, + "CreateCheckoutSessionRequest.ShopperInteractionEnum": CreateCheckoutSessionRequest.ShopperInteractionEnum, + "CreateCheckoutSessionResponse.ChannelEnum": CreateCheckoutSessionResponse.ChannelEnum, + "CreateCheckoutSessionResponse.RecurringProcessingModelEnum": CreateCheckoutSessionResponse.RecurringProcessingModelEnum, + "CreateCheckoutSessionResponse.ShopperInteractionEnum": CreateCheckoutSessionResponse.ShopperInteractionEnum, + "CreatePaymentAmountUpdateRequest.ReasonEnum": CreatePaymentAmountUpdateRequest.ReasonEnum, + "CreatePaymentLinkRequest.RecurringProcessingModelEnum": CreatePaymentLinkRequest.RecurringProcessingModelEnum, + "CreatePaymentLinkRequest.RequiredShopperFieldsEnum": CreatePaymentLinkRequest.RequiredShopperFieldsEnum, + "CreatePaymentLinkRequest.StorePaymentMethodModeEnum": CreatePaymentLinkRequest.StorePaymentMethodModeEnum, + "DeviceRenderOptions.SdkInterfaceEnum": DeviceRenderOptions.SdkInterfaceEnum, + "DeviceRenderOptions.SdkUiTypeEnum": DeviceRenderOptions.SdkUiTypeEnum, + "DokuDetails.TypeEnum": DokuDetails.TypeEnum, + "DonationResponse.StatusEnum": DonationResponse.StatusEnum, + "DotpayDetails.TypeEnum": DotpayDetails.TypeEnum, + "DragonpayDetails.TypeEnum": DragonpayDetails.TypeEnum, + "EcontextVoucherDetails.TypeEnum": EcontextVoucherDetails.TypeEnum, + "GenericIssuerPaymentMethodDetails.TypeEnum": GenericIssuerPaymentMethodDetails.TypeEnum, + "GiropayDetails.TypeEnum": GiropayDetails.TypeEnum, + "GooglePayDetails.FundingSourceEnum": GooglePayDetails.FundingSourceEnum, + "GooglePayDetails.TypeEnum": GooglePayDetails.TypeEnum, + "IdealDetails.TypeEnum": IdealDetails.TypeEnum, + "InstallmentOption.PlansEnum": InstallmentOption.PlansEnum, + "Installments.PlanEnum": Installments.PlanEnum, + "KlarnaDetails.TypeEnum": KlarnaDetails.TypeEnum, + "Mandate.AmountRuleEnum": Mandate.AmountRuleEnum, + "Mandate.BillingAttemptsRuleEnum": Mandate.BillingAttemptsRuleEnum, + "Mandate.FrequencyEnum": Mandate.FrequencyEnum, + "MasterpassDetails.FundingSourceEnum": MasterpassDetails.FundingSourceEnum, + "MasterpassDetails.TypeEnum": MasterpassDetails.TypeEnum, + "MbwayDetails.TypeEnum": MbwayDetails.TypeEnum, + "MerchantRiskIndicator.DeliveryAddressIndicatorEnum": MerchantRiskIndicator.DeliveryAddressIndicatorEnum, + "MerchantRiskIndicator.DeliveryTimeframeEnum": MerchantRiskIndicator.DeliveryTimeframeEnum, + "MobilePayDetails.TypeEnum": MobilePayDetails.TypeEnum, + "MolPayDetails.TypeEnum": MolPayDetails.TypeEnum, + "OpenInvoiceDetails.TypeEnum": OpenInvoiceDetails.TypeEnum, + "PayPalDetails.SubtypeEnum": PayPalDetails.SubtypeEnum, + "PayPalDetails.TypeEnum": PayPalDetails.TypeEnum, + "PayUUpiDetails.TypeEnum": PayUUpiDetails.TypeEnum, + "PayWithGoogleDetails.FundingSourceEnum": PayWithGoogleDetails.FundingSourceEnum, + "PayWithGoogleDetails.TypeEnum": PayWithGoogleDetails.TypeEnum, + "PaymentAmountUpdateResource.ReasonEnum": PaymentAmountUpdateResource.ReasonEnum, + "PaymentAmountUpdateResource.StatusEnum": PaymentAmountUpdateResource.StatusEnum, + "PaymentCancelResource.StatusEnum": PaymentCancelResource.StatusEnum, + "PaymentCaptureResource.StatusEnum": PaymentCaptureResource.StatusEnum, + "PaymentDetails.TypeEnum": PaymentDetails.TypeEnum, + "PaymentDetailsResponse.ResultCodeEnum": PaymentDetailsResponse.ResultCodeEnum, + "PaymentDonationRequest.ChannelEnum": PaymentDonationRequest.ChannelEnum, + "PaymentDonationRequest.EntityTypeEnum": PaymentDonationRequest.EntityTypeEnum, + "PaymentDonationRequest.RecurringProcessingModelEnum": PaymentDonationRequest.RecurringProcessingModelEnum, + "PaymentDonationRequest.ShopperInteractionEnum": PaymentDonationRequest.ShopperInteractionEnum, + "PaymentLinkResponse.RecurringProcessingModelEnum": PaymentLinkResponse.RecurringProcessingModelEnum, + "PaymentLinkResponse.RequiredShopperFieldsEnum": PaymentLinkResponse.RequiredShopperFieldsEnum, + "PaymentLinkResponse.StatusEnum": PaymentLinkResponse.StatusEnum, + "PaymentLinkResponse.StorePaymentMethodModeEnum": PaymentLinkResponse.StorePaymentMethodModeEnum, + "PaymentMethod.FundingSourceEnum": PaymentMethod.FundingSourceEnum, + "PaymentMethodsRequest.ChannelEnum": PaymentMethodsRequest.ChannelEnum, + "PaymentRefundResource.StatusEnum": PaymentRefundResource.StatusEnum, + "PaymentRequest.ChannelEnum": PaymentRequest.ChannelEnum, + "PaymentRequest.EntityTypeEnum": PaymentRequest.EntityTypeEnum, + "PaymentRequest.RecurringProcessingModelEnum": PaymentRequest.RecurringProcessingModelEnum, + "PaymentRequest.ShopperInteractionEnum": PaymentRequest.ShopperInteractionEnum, + "PaymentResponse.ResultCodeEnum": PaymentResponse.ResultCodeEnum, + "PaymentReversalResource.StatusEnum": PaymentReversalResource.StatusEnum, + "PaymentSetupRequest.ChannelEnum": PaymentSetupRequest.ChannelEnum, + "PaymentSetupRequest.EntityTypeEnum": PaymentSetupRequest.EntityTypeEnum, + "PaymentSetupRequest.ShopperInteractionEnum": PaymentSetupRequest.ShopperInteractionEnum, + "PaymentVerificationResponse.ResultCodeEnum": PaymentVerificationResponse.ResultCodeEnum, + "RatepayDetails.TypeEnum": RatepayDetails.TypeEnum, + "Recurring.ContractEnum": Recurring.ContractEnum, + "Recurring.TokenServiceEnum": Recurring.TokenServiceEnum, + "RecurringDetail.FundingSourceEnum": RecurringDetail.FundingSourceEnum, + "Redirect.MethodEnum": Redirect.MethodEnum, + "ResponseAdditionalDataCommon.FraudResultTypeEnum": ResponseAdditionalDataCommon.FraudResultTypeEnum, + "ResponseAdditionalDataCommon.MerchantAdviceCodeEnum": ResponseAdditionalDataCommon.MerchantAdviceCodeEnum, + "ResponseAdditionalDataCommon.RecurringProcessingModelEnum": ResponseAdditionalDataCommon.RecurringProcessingModelEnum, + "SamsungPayDetails.FundingSourceEnum": SamsungPayDetails.FundingSourceEnum, + "SamsungPayDetails.TypeEnum": SamsungPayDetails.TypeEnum, + "SepaDirectDebitDetails.TypeEnum": SepaDirectDebitDetails.TypeEnum, + "ShopperInput.BillingAddressEnum": ShopperInput.BillingAddressEnum, + "ShopperInput.DeliveryAddressEnum": ShopperInput.DeliveryAddressEnum, + "ShopperInput.PersonalDetailsEnum": ShopperInput.PersonalDetailsEnum, + "Split.TypeEnum": Split.TypeEnum, + "StandalonePaymentCancelResource.StatusEnum": StandalonePaymentCancelResource.StatusEnum, + "StoredPaymentMethodDetails.TypeEnum": StoredPaymentMethodDetails.TypeEnum, + "ThreeDS2RequestData.AcctTypeEnum": ThreeDS2RequestData.AcctTypeEnum, + "ThreeDS2RequestData.AddrMatchEnum": ThreeDS2RequestData.AddrMatchEnum, + "ThreeDS2RequestData.ChallengeIndicatorEnum": ThreeDS2RequestData.ChallengeIndicatorEnum, + "ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum": ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum, + "ThreeDS2RequestData.TransTypeEnum": ThreeDS2RequestData.TransTypeEnum, + "ThreeDS2RequestData.TransactionTypeEnum": ThreeDS2RequestData.TransactionTypeEnum, + "ThreeDS2Result.ChallengeCancelEnum": ThreeDS2Result.ChallengeCancelEnum, + "ThreeDS2Result.ChallengeIndicatorEnum": ThreeDS2Result.ChallengeIndicatorEnum, + "ThreeDS2Result.ExemptionIndicatorEnum": ThreeDS2Result.ExemptionIndicatorEnum, + "ThreeDSRequestData.NativeThreeDSEnum": ThreeDSRequestData.NativeThreeDSEnum, + "ThreeDSRequestData.ThreeDSVersionEnum": ThreeDSRequestData.ThreeDSVersionEnum, + "ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum": ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum, + "ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum": ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum, + "ThreeDSecureData.AuthenticationResponseEnum": ThreeDSecureData.AuthenticationResponseEnum, + "ThreeDSecureData.ChallengeCancelEnum": ThreeDSecureData.ChallengeCancelEnum, + "ThreeDSecureData.DirectoryResponseEnum": ThreeDSecureData.DirectoryResponseEnum, + "UpdatePaymentLinkRequest.StatusEnum": UpdatePaymentLinkRequest.StatusEnum, + "UpiCollectDetails.TypeEnum": UpiCollectDetails.TypeEnum, + "UpiIntentDetails.TypeEnum": UpiIntentDetails.TypeEnum, + "VippsDetails.TypeEnum": VippsDetails.TypeEnum, + "VisaCheckoutDetails.FundingSourceEnum": VisaCheckoutDetails.FundingSourceEnum, + "VisaCheckoutDetails.TypeEnum": VisaCheckoutDetails.TypeEnum, + "WeChatPayDetails.TypeEnum": WeChatPayDetails.TypeEnum, + "WeChatPayMiniProgramDetails.TypeEnum": WeChatPayMiniProgramDetails.TypeEnum, + "ZipDetails.TypeEnum": ZipDetails.TypeEnum, +} + +let typeMap: {[index: string]: any} = { + "AccountInfo": AccountInfo, + "AcctInfo": AcctInfo, + "AchDetails": AchDetails, + "AdditionalData3DSecure": AdditionalData3DSecure, + "AdditionalDataAirline": AdditionalDataAirline, + "AdditionalDataCarRental": AdditionalDataCarRental, + "AdditionalDataCommon": AdditionalDataCommon, + "AdditionalDataLevel23": AdditionalDataLevel23, + "AdditionalDataLodging": AdditionalDataLodging, + "AdditionalDataOpenInvoice": AdditionalDataOpenInvoice, + "AdditionalDataOpi": AdditionalDataOpi, + "AdditionalDataRatepay": AdditionalDataRatepay, + "AdditionalDataRetry": AdditionalDataRetry, + "AdditionalDataRisk": AdditionalDataRisk, + "AdditionalDataRiskStandalone": AdditionalDataRiskStandalone, + "AdditionalDataSubMerchant": AdditionalDataSubMerchant, + "AdditionalDataTemporaryServices": AdditionalDataTemporaryServices, + "AdditionalDataWallets": AdditionalDataWallets, + "Address": Address, + "AfterpayDetails": AfterpayDetails, + "AmazonPayDetails": AmazonPayDetails, + "Amount": Amount, + "AndroidPayDetails": AndroidPayDetails, + "ApplePayDetails": ApplePayDetails, + "ApplicationInfo": ApplicationInfo, + "AuthenticationData": AuthenticationData, + "Avs": Avs, + "BacsDirectDebitDetails": BacsDirectDebitDetails, + "BankAccount": BankAccount, + "BillDeskDetails": BillDeskDetails, + "BlikDetails": BlikDetails, + "BrowserInfo": BrowserInfo, + "Card": Card, + "CardBrandDetails": CardBrandDetails, + "CardDetails": CardDetails, + "CardDetailsRequest": CardDetailsRequest, + "CardDetailsResponse": CardDetailsResponse, + "CellulantDetails": CellulantDetails, + "CheckoutAwaitAction": CheckoutAwaitAction, + "CheckoutBalanceCheckRequest": CheckoutBalanceCheckRequest, + "CheckoutBalanceCheckResponse": CheckoutBalanceCheckResponse, + "CheckoutBankTransferAction": CheckoutBankTransferAction, + "CheckoutCancelOrderRequest": CheckoutCancelOrderRequest, + "CheckoutCancelOrderResponse": CheckoutCancelOrderResponse, + "CheckoutCreateOrderRequest": CheckoutCreateOrderRequest, + "CheckoutCreateOrderResponse": CheckoutCreateOrderResponse, + "CheckoutDonationAction": CheckoutDonationAction, + "CheckoutOneTimePasscodeAction": CheckoutOneTimePasscodeAction, + "CheckoutOrder": CheckoutOrder, + "CheckoutOrderResponse": CheckoutOrderResponse, + "CheckoutQrCodeAction": CheckoutQrCodeAction, + "CheckoutRedirectAction": CheckoutRedirectAction, + "CheckoutSDKAction": CheckoutSDKAction, + "CheckoutThreeDS2Action": CheckoutThreeDS2Action, + "CheckoutUtilityRequest": CheckoutUtilityRequest, + "CheckoutUtilityResponse": CheckoutUtilityResponse, + "CheckoutVoucherAction": CheckoutVoucherAction, + "CommonField": CommonField, + "Company": Company, + "Configuration": Configuration, + "CreateCheckoutSessionRequest": CreateCheckoutSessionRequest, + "CreateCheckoutSessionResponse": CreateCheckoutSessionResponse, + "CreatePaymentAmountUpdateRequest": CreatePaymentAmountUpdateRequest, + "CreatePaymentCancelRequest": CreatePaymentCancelRequest, + "CreatePaymentCaptureRequest": CreatePaymentCaptureRequest, + "CreatePaymentLinkRequest": CreatePaymentLinkRequest, + "CreatePaymentRefundRequest": CreatePaymentRefundRequest, + "CreatePaymentReversalRequest": CreatePaymentReversalRequest, + "CreateStandalonePaymentCancelRequest": CreateStandalonePaymentCancelRequest, + "DetailsRequest": DetailsRequest, + "DeviceRenderOptions": DeviceRenderOptions, + "DokuDetails": DokuDetails, + "DonationResponse": DonationResponse, + "DotpayDetails": DotpayDetails, + "DragonpayDetails": DragonpayDetails, + "EcontextVoucherDetails": EcontextVoucherDetails, + "ExternalPlatform": ExternalPlatform, + "ForexQuote": ForexQuote, + "FraudCheckResult": FraudCheckResult, + "FraudResult": FraudResult, + "GenericIssuerPaymentMethodDetails": GenericIssuerPaymentMethodDetails, + "GiropayDetails": GiropayDetails, + "GooglePayDetails": GooglePayDetails, + "IdealDetails": IdealDetails, + "InputDetail": InputDetail, + "InstallmentOption": InstallmentOption, + "Installments": Installments, + "InstallmentsNumber": InstallmentsNumber, + "Item": Item, + "KlarnaDetails": KlarnaDetails, + "LineItem": LineItem, + "Mandate": Mandate, + "MasterpassDetails": MasterpassDetails, + "MbwayDetails": MbwayDetails, + "MerchantDevice": MerchantDevice, + "MerchantRiskIndicator": MerchantRiskIndicator, + "MobilePayDetails": MobilePayDetails, + "MolPayDetails": MolPayDetails, + "Name": Name, + "OpenInvoiceDetails": OpenInvoiceDetails, + "PayPalDetails": PayPalDetails, + "PayUUpiDetails": PayUUpiDetails, + "PayWithGoogleDetails": PayWithGoogleDetails, + "PaymentAmountUpdateResource": PaymentAmountUpdateResource, + "PaymentCancelResource": PaymentCancelResource, + "PaymentCaptureResource": PaymentCaptureResource, + "PaymentCompletionDetails": PaymentCompletionDetails, + "PaymentDetails": PaymentDetails, + "PaymentDetailsResponse": PaymentDetailsResponse, + "PaymentDonationRequest": PaymentDonationRequest, + "PaymentLinkResponse": PaymentLinkResponse, + "PaymentMethod": PaymentMethod, + "PaymentMethodGroup": PaymentMethodGroup, + "PaymentMethodIssuer": PaymentMethodIssuer, + "PaymentMethodsRequest": PaymentMethodsRequest, + "PaymentMethodsResponse": PaymentMethodsResponse, + "PaymentRefundResource": PaymentRefundResource, + "PaymentRequest": PaymentRequest, + "PaymentResponse": PaymentResponse, + "PaymentReversalResource": PaymentReversalResource, + "PaymentSetupRequest": PaymentSetupRequest, + "PaymentSetupResponse": PaymentSetupResponse, + "PaymentVerificationRequest": PaymentVerificationRequest, + "PaymentVerificationResponse": PaymentVerificationResponse, + "Phone": Phone, + "RatepayDetails": RatepayDetails, + "Recurring": Recurring, + "RecurringDetail": RecurringDetail, + "Redirect": Redirect, + "ResponseAdditionalData3DSecure": ResponseAdditionalData3DSecure, + "ResponseAdditionalDataBillingAddress": ResponseAdditionalDataBillingAddress, + "ResponseAdditionalDataCard": ResponseAdditionalDataCard, + "ResponseAdditionalDataCommon": ResponseAdditionalDataCommon, + "ResponseAdditionalDataInstallments": ResponseAdditionalDataInstallments, + "ResponseAdditionalDataNetworkTokens": ResponseAdditionalDataNetworkTokens, + "ResponseAdditionalDataOpi": ResponseAdditionalDataOpi, + "ResponseAdditionalDataSepa": ResponseAdditionalDataSepa, + "ResponsePaymentMethod": ResponsePaymentMethod, + "RiskData": RiskData, + "SDKEphemPubKey": SDKEphemPubKey, + "SamsungPayDetails": SamsungPayDetails, + "SepaDirectDebitDetails": SepaDirectDebitDetails, + "ServiceError": ServiceError, + "ServiceError2": ServiceError2, + "ShopperInput": ShopperInput, + "ShopperInteractionDevice": ShopperInteractionDevice, + "Split": Split, + "SplitAmount": SplitAmount, + "StandalonePaymentCancelResource": StandalonePaymentCancelResource, + "StoredDetails": StoredDetails, + "StoredPaymentMethod": StoredPaymentMethod, + "StoredPaymentMethodDetails": StoredPaymentMethodDetails, + "SubInputDetail": SubInputDetail, + "ThreeDS2RequestData": ThreeDS2RequestData, + "ThreeDS2ResponseData": ThreeDS2ResponseData, + "ThreeDS2Result": ThreeDS2Result, + "ThreeDSRequestData": ThreeDSRequestData, + "ThreeDSRequestorAuthenticationInfo": ThreeDSRequestorAuthenticationInfo, + "ThreeDSRequestorPriorAuthenticationInfo": ThreeDSRequestorPriorAuthenticationInfo, + "ThreeDSecureData": ThreeDSecureData, + "UpdatePaymentLinkRequest": UpdatePaymentLinkRequest, + "UpiCollectDetails": UpiCollectDetails, + "UpiIntentDetails": UpiIntentDetails, + "VippsDetails": VippsDetails, + "VisaCheckoutDetails": VisaCheckoutDetails, + "WeChatPayDetails": WeChatPayDetails, + "WeChatPayMiniProgramDetails": WeChatPayMiniProgramDetails, + "ZipDetails": ZipDetails, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/checkout/molPayDetails.ts b/src/typings/checkout/molPayDetails.ts index 2d0f9e8..d35195f 100644 --- a/src/typings/checkout/molPayDetails.ts +++ b/src/typings/checkout/molPayDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class MolPayDetails { /** * The shopper\'s bank. Specify this with the issuer value that corresponds to this bank. @@ -35,11 +17,29 @@ export class MolPayDetails { * **molpay** */ 'type': MolPayDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "issuer", + "baseName": "issuer", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "MolPayDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return MolPayDetails.attributeTypeMap; + } } export namespace MolPayDetails { export enum TypeEnum { - FpxMY = 'molpay_ebanking_fpx_MY', - TH = 'molpay_ebanking_TH' + FpxMy = 'molpay_ebanking_fpx_MY', + Th = 'molpay_ebanking_TH' } } diff --git a/src/typings/checkout/name.ts b/src/typings/checkout/name.ts index 2c5449e..439ba32 100644 --- a/src/typings/checkout/name.ts +++ b/src/typings/checkout/name.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Name { /** * The first name. @@ -35,5 +17,23 @@ export class Name { * The last name. */ 'lastName': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "firstName", + "baseName": "firstName", + "type": "string" + }, + { + "name": "lastName", + "baseName": "lastName", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Name.attributeTypeMap; + } } diff --git a/src/typings/checkout/openInvoiceDetails.ts b/src/typings/checkout/openInvoiceDetails.ts index 75edaef..5a7f98e 100644 --- a/src/typings/checkout/openInvoiceDetails.ts +++ b/src/typings/checkout/openInvoiceDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class OpenInvoiceDetails { /** * The address where to send the invoice. @@ -51,6 +33,44 @@ export class OpenInvoiceDetails { * **openinvoice** */ 'type'?: OpenInvoiceDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "string" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "string" + }, + { + "name": "personalDetails", + "baseName": "personalDetails", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "OpenInvoiceDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return OpenInvoiceDetails.attributeTypeMap; + } } export namespace OpenInvoiceDetails { diff --git a/src/typings/checkout/payPalDetails.ts b/src/typings/checkout/payPalDetails.ts index 43d4981..6326c24 100644 --- a/src/typings/checkout/payPalDetails.ts +++ b/src/typings/checkout/payPalDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class PayPalDetails { /** * The unique ID associated with the order. @@ -51,6 +33,44 @@ export class PayPalDetails { * **paypal** */ 'type': PayPalDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "orderID", + "baseName": "orderID", + "type": "string" + }, + { + "name": "payerID", + "baseName": "payerID", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "subtype", + "baseName": "subtype", + "type": "PayPalDetails.SubtypeEnum" + }, + { + "name": "type", + "baseName": "type", + "type": "PayPalDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return PayPalDetails.attributeTypeMap; + } } export namespace PayPalDetails { diff --git a/src/typings/checkout/payUUpiDetails.ts b/src/typings/checkout/payUUpiDetails.ts index f942516..3bddd94 100644 --- a/src/typings/checkout/payUUpiDetails.ts +++ b/src/typings/checkout/payUUpiDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class PayUUpiDetails { /** * This is the `recurringDetailReference` returned in the response when you created the token. @@ -47,10 +29,43 @@ export class PayUUpiDetails { * The virtual payment address for UPI. */ 'virtualPaymentAddress'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "shopperNotificationReference", + "baseName": "shopperNotificationReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "PayUUpiDetails.TypeEnum" + }, + { + "name": "virtualPaymentAddress", + "baseName": "virtualPaymentAddress", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PayUUpiDetails.attributeTypeMap; + } } export namespace PayUUpiDetails { export enum TypeEnum { - PayuINUpi = 'payu_IN_upi' + PayuInUpi = 'payu_IN_upi' } } diff --git a/src/typings/checkout/payWithGoogleDetails.ts b/src/typings/checkout/payWithGoogleDetails.ts index 1aa3f09..45c3da1 100644 --- a/src/typings/checkout/payWithGoogleDetails.ts +++ b/src/typings/checkout/payWithGoogleDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class PayWithGoogleDetails { /** * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. @@ -47,6 +29,39 @@ export class PayWithGoogleDetails { * **paywithgoogle** */ 'type'?: PayWithGoogleDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "fundingSource", + "baseName": "fundingSource", + "type": "PayWithGoogleDetails.FundingSourceEnum" + }, + { + "name": "googlePayToken", + "baseName": "googlePayToken", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "PayWithGoogleDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return PayWithGoogleDetails.attributeTypeMap; + } } export namespace PayWithGoogleDetails { diff --git a/src/typings/checkout/paymentAmountUpdateResource.ts b/src/typings/checkout/paymentAmountUpdateResource.ts index 2981dc0..f81bdda 100644 --- a/src/typings/checkout/paymentAmountUpdateResource.ts +++ b/src/typings/checkout/paymentAmountUpdateResource.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; import { Split } from './split'; @@ -58,6 +40,54 @@ export class PaymentAmountUpdateResource { * The status of your request. This will always have the value **received**. */ 'status': PaymentAmountUpdateResource.StatusEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "paymentPspReference", + "baseName": "paymentPspReference", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "reason", + "baseName": "reason", + "type": "PaymentAmountUpdateResource.ReasonEnum" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "status", + "baseName": "status", + "type": "PaymentAmountUpdateResource.StatusEnum" + } ]; + + static getAttributeTypeMap() { + return PaymentAmountUpdateResource.attributeTypeMap; + } } export namespace PaymentAmountUpdateResource { diff --git a/src/typings/checkout/paymentCancelResource.ts b/src/typings/checkout/paymentCancelResource.ts index 53d2c5e..5529493 100644 --- a/src/typings/checkout/paymentCancelResource.ts +++ b/src/typings/checkout/paymentCancelResource.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class PaymentCancelResource { /** * The merchant account that is used to process the payment. @@ -47,6 +29,39 @@ export class PaymentCancelResource { * The status of your request. This will always have the value **received**. */ 'status': PaymentCancelResource.StatusEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "paymentPspReference", + "baseName": "paymentPspReference", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "PaymentCancelResource.StatusEnum" + } ]; + + static getAttributeTypeMap() { + return PaymentCancelResource.attributeTypeMap; + } } export namespace PaymentCancelResource { diff --git a/src/typings/checkout/paymentCaptureResource.ts b/src/typings/checkout/paymentCaptureResource.ts index 2ccb9e7..a48b256 100644 --- a/src/typings/checkout/paymentCaptureResource.ts +++ b/src/typings/checkout/paymentCaptureResource.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; import { LineItem } from './lineItem'; import { Split } from './split'; @@ -59,6 +41,54 @@ export class PaymentCaptureResource { * The status of your request. This will always have the value **received**. */ 'status': PaymentCaptureResource.StatusEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "lineItems", + "baseName": "lineItems", + "type": "Array" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "paymentPspReference", + "baseName": "paymentPspReference", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "status", + "baseName": "status", + "type": "PaymentCaptureResource.StatusEnum" + } ]; + + static getAttributeTypeMap() { + return PaymentCaptureResource.attributeTypeMap; + } } export namespace PaymentCaptureResource { diff --git a/src/typings/checkout/paymentCompletionDetails.ts b/src/typings/checkout/paymentCompletionDetails.ts index 6318856..a700af2 100644 --- a/src/typings/checkout/paymentCompletionDetails.ts +++ b/src/typings/checkout/paymentCompletionDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class PaymentCompletionDetails { /** * A payment session identifier returned by the card issuer. @@ -91,5 +73,93 @@ export class PaymentCompletionDetails { * Base64-encoded string returned by the Component after the challenge flow. It contains the following parameter: `threeDSCompInd`. */ 'threeds2Fingerprint'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "mD", + "baseName": "MD", + "type": "string" + }, + { + "name": "paReq", + "baseName": "PaReq", + "type": "string" + }, + { + "name": "paRes", + "baseName": "PaRes", + "type": "string" + }, + { + "name": "billingToken", + "baseName": "billingToken", + "type": "string" + }, + { + "name": "cupsecureplusSmscode", + "baseName": "cupsecureplus.smscode", + "type": "string" + }, + { + "name": "facilitatorAccessToken", + "baseName": "facilitatorAccessToken", + "type": "string" + }, + { + "name": "oneTimePasscode", + "baseName": "oneTimePasscode", + "type": "string" + }, + { + "name": "orderID", + "baseName": "orderID", + "type": "string" + }, + { + "name": "payerID", + "baseName": "payerID", + "type": "string" + }, + { + "name": "payload", + "baseName": "payload", + "type": "string" + }, + { + "name": "paymentID", + "baseName": "paymentID", + "type": "string" + }, + { + "name": "paymentStatus", + "baseName": "paymentStatus", + "type": "string" + }, + { + "name": "redirectResult", + "baseName": "redirectResult", + "type": "string" + }, + { + "name": "threeDSResult", + "baseName": "threeDSResult", + "type": "string" + }, + { + "name": "threeds2ChallengeResult", + "baseName": "threeds2.challengeResult", + "type": "string" + }, + { + "name": "threeds2Fingerprint", + "baseName": "threeds2.fingerprint", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentCompletionDetails.attributeTypeMap; + } } diff --git a/src/typings/checkout/paymentDetails.ts b/src/typings/checkout/paymentDetails.ts index 6b2ebbf..2d8cb16 100644 --- a/src/typings/checkout/paymentDetails.ts +++ b/src/typings/checkout/paymentDetails.ts @@ -1,43 +1,38 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class PaymentDetails { /** * The payment method type. */ 'type'?: PaymentDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "PaymentDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return PaymentDetails.attributeTypeMap; + } } export namespace PaymentDetails { export enum TypeEnum { Alipay = 'alipay', Multibanco = 'multibanco', - BankTransferIBAN = 'bankTransfer_IBAN', + BankTransferIban = 'bankTransfer_IBAN', Paybright = 'paybright', Affirm = 'affirm', AffirmPos = 'affirm_pos', @@ -53,19 +48,19 @@ export namespace PaymentDetails { KcpBanktransfer = 'kcp_banktransfer', KcpPayco = 'kcp_payco', KcpCreditcard = 'kcp_creditcard', - WechatpaySDK = 'wechatpaySDK', - WechatpayQR = 'wechatpayQR', + WechatpaySdk = 'wechatpaySDK', + WechatpayQr = 'wechatpayQR', WechatpayWeb = 'wechatpayWeb', - WalletIN = 'wallet_IN', - PayuINCashcard = 'payu_IN_cashcard', - PayuINNb = 'payu_IN_nb', + WalletIn = 'wallet_IN', + PayuInCashcard = 'payu_IN_cashcard', + PayuInNb = 'payu_IN_nb', UpiQr = 'upi_qr', Paytm = 'paytm', - MolpayEbankingVN = 'molpay_ebanking_VN', - OpenbankingUK = 'openbanking_UK', - EbankingFI = 'ebanking_FI', - MolpayEbankingMY = 'molpay_ebanking_MY', - MolpayEbankingDirectMY = 'molpay_ebanking_direct_MY', + MolpayEbankingVn = 'molpay_ebanking_VN', + OpenbankingUk = 'openbanking_UK', + EbankingFi = 'ebanking_FI', + MolpayEbankingMy = 'molpay_ebanking_MY', + MolpayEbankingDirectMy = 'molpay_ebanking_direct_MY', Swish = 'swish', Twint = 'twint', Pix = 'pix', @@ -92,7 +87,7 @@ export namespace PaymentDetails { GopayWallet = 'gopay_wallet', Poli = 'poli', KcpNaverpay = 'kcp_naverpay', - OnlinebankingIN = 'onlinebanking_IN', + OnlinebankingIn = 'onlinebanking_IN', Fawry = 'fawry', Atome = 'atome', Moneybookers = 'moneybookers', @@ -119,7 +114,6 @@ export namespace PaymentDetails { AlipayHk = 'alipay_hk', AlipayHkWeb = 'alipay_hk_web', AlipayHkWap = 'alipay_hk_wap', - AlipayWap = 'alipay_wap', - Balanceplatform = 'balanceplatform' + AlipayWap = 'alipay_wap' } } diff --git a/src/typings/checkout/paymentDetailsResponse.ts b/src/typings/checkout/paymentDetailsResponse.ts index be94ee0..05c4b4e 100644 --- a/src/typings/checkout/paymentDetailsResponse.ts +++ b/src/typings/checkout/paymentDetailsResponse.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; import { CheckoutOrderResponse } from './checkoutOrderResponse'; import { FraudResult } from './fraudResult'; @@ -75,6 +57,89 @@ export class PaymentDetailsResponse { * When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. */ 'threeDSPaymentData'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "donationToken", + "baseName": "donationToken", + "type": "string" + }, + { + "name": "fraudResult", + "baseName": "fraudResult", + "type": "FraudResult" + }, + { + "name": "merchantReference", + "baseName": "merchantReference", + "type": "string" + }, + { + "name": "order", + "baseName": "order", + "type": "CheckoutOrderResponse" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "ResponsePaymentMethod" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "refusalReasonCode", + "baseName": "refusalReasonCode", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "PaymentDetailsResponse.ResultCodeEnum" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "threeDS2ResponseData", + "baseName": "threeDS2ResponseData", + "type": "ThreeDS2ResponseData" + }, + { + "name": "threeDS2Result", + "baseName": "threeDS2Result", + "type": "ThreeDS2Result" + }, + { + "name": "threeDSPaymentData", + "baseName": "threeDSPaymentData", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentDetailsResponse.attributeTypeMap; + } } export namespace PaymentDetailsResponse { diff --git a/src/typings/checkout/paymentDonationRequest.ts b/src/typings/checkout/paymentDonationRequest.ts index 1e54c78..05648b7 100644 --- a/src/typings/checkout/paymentDonationRequest.ts +++ b/src/typings/checkout/paymentDonationRequest.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { AccountInfo } from './accountInfo'; import { AchDetails } from './achDetails'; import { Address } from './address'; @@ -285,11 +267,334 @@ export class PaymentDonationRequest { * Set to true if the payment should be routed to a trusted MID. */ 'trustedShopper'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountInfo", + "baseName": "accountInfo", + "type": "AccountInfo" + }, + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "applicationInfo", + "baseName": "applicationInfo", + "type": "ApplicationInfo" + }, + { + "name": "authenticationData", + "baseName": "authenticationData", + "type": "AuthenticationData" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "browserInfo", + "baseName": "browserInfo", + "type": "BrowserInfo" + }, + { + "name": "captureDelayHours", + "baseName": "captureDelayHours", + "type": "number" + }, + { + "name": "channel", + "baseName": "channel", + "type": "PaymentDonationRequest.ChannelEnum" + }, + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, + { + "name": "company", + "baseName": "company", + "type": "Company" + }, + { + "name": "conversionId", + "baseName": "conversionId", + "type": "string" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "dccQuote", + "baseName": "dccQuote", + "type": "ForexQuote" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "Address" + }, + { + "name": "deliveryDate", + "baseName": "deliveryDate", + "type": "Date" + }, + { + "name": "deviceFingerprint", + "baseName": "deviceFingerprint", + "type": "string" + }, + { + "name": "donationAccount", + "baseName": "donationAccount", + "type": "string" + }, + { + "name": "donationOriginalPspReference", + "baseName": "donationOriginalPspReference", + "type": "string" + }, + { + "name": "donationToken", + "baseName": "donationToken", + "type": "string" + }, + { + "name": "enableOneClick", + "baseName": "enableOneClick", + "type": "boolean" + }, + { + "name": "enablePayOut", + "baseName": "enablePayOut", + "type": "boolean" + }, + { + "name": "enableRecurring", + "baseName": "enableRecurring", + "type": "boolean" + }, + { + "name": "entityType", + "baseName": "entityType", + "type": "PaymentDonationRequest.EntityTypeEnum" + }, + { + "name": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "name": "installments", + "baseName": "installments", + "type": "Installments" + }, + { + "name": "lineItems", + "baseName": "lineItems", + "type": "Array" + }, + { + "name": "mandate", + "baseName": "mandate", + "type": "Mandate" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "merchantOrderReference", + "baseName": "merchantOrderReference", + "type": "string" + }, + { + "name": "merchantRiskIndicator", + "baseName": "merchantRiskIndicator", + "type": "MerchantRiskIndicator" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "{ [key: string]: string; }" + }, + { + "name": "mpiData", + "baseName": "mpiData", + "type": "ThreeDSecureData" + }, + { + "name": "order", + "baseName": "order", + "type": "CheckoutOrder" + }, + { + "name": "orderReference", + "baseName": "orderReference", + "type": "string" + }, + { + "name": "origin", + "baseName": "origin", + "type": "string" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "AchDetails | AfterpayDetails | AmazonPayDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CellulantDetails | DokuDetails | DotpayDetails | DragonpayDetails | EcontextVoucherDetails | GenericIssuerPaymentMethodDetails | GiropayDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayPalDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | RatepayDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails" + }, + { + "name": "recurringExpiry", + "baseName": "recurringExpiry", + "type": "string" + }, + { + "name": "recurringFrequency", + "baseName": "recurringFrequency", + "type": "string" + }, + { + "name": "recurringProcessingModel", + "baseName": "recurringProcessingModel", + "type": "PaymentDonationRequest.RecurringProcessingModelEnum" + }, + { + "name": "redirectFromIssuerMethod", + "baseName": "redirectFromIssuerMethod", + "type": "string" + }, + { + "name": "redirectToIssuerMethod", + "baseName": "redirectToIssuerMethod", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "returnUrl", + "baseName": "returnUrl", + "type": "string" + }, + { + "name": "riskData", + "baseName": "riskData", + "type": "RiskData" + }, + { + "name": "sessionValidity", + "baseName": "sessionValidity", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperIP", + "baseName": "shopperIP", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "PaymentDonationRequest.ShopperInteractionEnum" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + }, + { + "name": "storePaymentMethod", + "baseName": "storePaymentMethod", + "type": "boolean" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "threeDS2RequestData", + "baseName": "threeDS2RequestData", + "type": "ThreeDS2RequestData" + }, + { + "name": "threeDSAuthenticationOnly", + "baseName": "threeDSAuthenticationOnly", + "type": "boolean" + }, + { + "name": "trustedShopper", + "baseName": "trustedShopper", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return PaymentDonationRequest.attributeTypeMap; + } } export namespace PaymentDonationRequest { export enum ChannelEnum { - IOS = 'iOS', + IOs = 'iOS', Android = 'Android', Web = 'Web' } @@ -306,6 +611,6 @@ export namespace PaymentDonationRequest { Ecommerce = 'Ecommerce', ContAuth = 'ContAuth', Moto = 'Moto', - POS = 'POS' + Pos = 'POS' } } diff --git a/src/typings/checkout/paymentLinkResponse.ts b/src/typings/checkout/paymentLinkResponse.ts index 9b9ca0d..293fafa 100644 --- a/src/typings/checkout/paymentLinkResponse.ts +++ b/src/typings/checkout/paymentLinkResponse.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Address } from './address'; import { Amount } from './amount'; import { ApplicationInfo } from './applicationInfo'; @@ -173,6 +155,209 @@ export class PaymentLinkResponse { * The URL at which the shopper can complete the payment. */ 'url': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "allowedPaymentMethods", + "baseName": "allowedPaymentMethods", + "type": "Array" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "applicationInfo", + "baseName": "applicationInfo", + "type": "ApplicationInfo" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "blockedPaymentMethods", + "baseName": "blockedPaymentMethods", + "type": "Array" + }, + { + "name": "captureDelayHours", + "baseName": "captureDelayHours", + "type": "number" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "deliverAt", + "baseName": "deliverAt", + "type": "Date" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "Address" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "expiresAt", + "baseName": "expiresAt", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "installmentOptions", + "baseName": "installmentOptions", + "type": "{ [key: string]: InstallmentOption; }" + }, + { + "name": "lineItems", + "baseName": "lineItems", + "type": "Array" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "merchantOrderReference", + "baseName": "merchantOrderReference", + "type": "string" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "{ [key: string]: string; }" + }, + { + "name": "recurringProcessingModel", + "baseName": "recurringProcessingModel", + "type": "PaymentLinkResponse.RecurringProcessingModelEnum" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "requiredShopperFields", + "baseName": "requiredShopperFields", + "type": "Array" + }, + { + "name": "returnUrl", + "baseName": "returnUrl", + "type": "string" + }, + { + "name": "reusable", + "baseName": "reusable", + "type": "boolean" + }, + { + "name": "riskData", + "baseName": "riskData", + "type": "RiskData" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + }, + { + "name": "splitCardFundingSources", + "baseName": "splitCardFundingSources", + "type": "boolean" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "status", + "baseName": "status", + "type": "PaymentLinkResponse.StatusEnum" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + }, + { + "name": "storePaymentMethodMode", + "baseName": "storePaymentMethodMode", + "type": "PaymentLinkResponse.StorePaymentMethodModeEnum" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "themeId", + "baseName": "themeId", + "type": "string" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentLinkResponse.attributeTypeMap; + } } export namespace PaymentLinkResponse { diff --git a/src/typings/checkout/paymentMethod.ts b/src/typings/checkout/paymentMethod.ts index 0077658..107893b 100644 --- a/src/typings/checkout/paymentMethod.ts +++ b/src/typings/checkout/paymentMethod.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { InputDetail } from './inputDetail'; import { PaymentMethodGroup } from './paymentMethodGroup'; import { PaymentMethodIssuer } from './paymentMethodIssuer'; @@ -63,6 +45,59 @@ export class PaymentMethod { * The unique payment method code. */ 'type'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "brand", + "baseName": "brand", + "type": "string" + }, + { + "name": "brands", + "baseName": "brands", + "type": "Array" + }, + { + "name": "configuration", + "baseName": "configuration", + "type": "{ [key: string]: string; }" + }, + { + "name": "fundingSource", + "baseName": "fundingSource", + "type": "PaymentMethod.FundingSourceEnum" + }, + { + "name": "group", + "baseName": "group", + "type": "PaymentMethodGroup" + }, + { + "name": "inputDetails", + "baseName": "inputDetails", + "type": "Array" + }, + { + "name": "issuers", + "baseName": "issuers", + "type": "Array" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethod.attributeTypeMap; + } } export namespace PaymentMethod { diff --git a/src/typings/checkout/paymentMethodGroup.ts b/src/typings/checkout/paymentMethodGroup.ts index f3b5d9f..1ace311 100644 --- a/src/typings/checkout/paymentMethodGroup.ts +++ b/src/typings/checkout/paymentMethodGroup.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class PaymentMethodGroup { /** * The name of the group. @@ -39,5 +21,28 @@ export class PaymentMethodGroup { * The unique code of the group. */ 'type'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "paymentMethodData", + "baseName": "paymentMethodData", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodGroup.attributeTypeMap; + } } diff --git a/src/typings/checkout/paymentMethodIssuer.ts b/src/typings/checkout/paymentMethodIssuer.ts index 614c058..000a3c8 100644 --- a/src/typings/checkout/paymentMethodIssuer.ts +++ b/src/typings/checkout/paymentMethodIssuer.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class PaymentMethodIssuer { /** * A boolean value indicating whether this issuer is unavailable. Can be `true` whenever the issuer is offline. @@ -39,5 +21,28 @@ export class PaymentMethodIssuer { * A localized name of the issuer. */ 'name': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "disabled", + "baseName": "disabled", + "type": "boolean" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodIssuer.attributeTypeMap; + } } diff --git a/src/typings/checkout/paymentMethodsRequest.ts b/src/typings/checkout/paymentMethodsRequest.ts index 2a1e50a..49e734e 100644 --- a/src/typings/checkout/paymentMethodsRequest.ts +++ b/src/typings/checkout/paymentMethodsRequest.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; import { CheckoutOrder } from './checkoutOrder'; @@ -71,11 +53,79 @@ export class PaymentMethodsRequest { * The ecommerce or point-of-sale store that is processing the payment. Used in [partner arrangement integrations](https://docs.adyen.com/platforms/platforms-for-partners#route-payments) for Adyen for Platforms. */ 'store'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "allowedPaymentMethods", + "baseName": "allowedPaymentMethods", + "type": "Array" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "blockedPaymentMethods", + "baseName": "blockedPaymentMethods", + "type": "Array" + }, + { + "name": "channel", + "baseName": "channel", + "type": "PaymentMethodsRequest.ChannelEnum" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "order", + "baseName": "order", + "type": "CheckoutOrder" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "splitCardFundingSources", + "baseName": "splitCardFundingSources", + "type": "boolean" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodsRequest.attributeTypeMap; + } } export namespace PaymentMethodsRequest { export enum ChannelEnum { - IOS = 'iOS', + IOs = 'iOS', Android = 'Android', Web = 'Web' } diff --git a/src/typings/checkout/paymentMethodsResponse.ts b/src/typings/checkout/paymentMethodsResponse.ts index 8317fd7..f1eeab6 100644 --- a/src/typings/checkout/paymentMethodsResponse.ts +++ b/src/typings/checkout/paymentMethodsResponse.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { PaymentMethod } from './paymentMethod'; import { StoredPaymentMethod } from './storedPaymentMethod'; @@ -37,5 +19,23 @@ export class PaymentMethodsResponse { * List of all stored payment methods. */ 'storedPaymentMethods'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "paymentMethods", + "baseName": "paymentMethods", + "type": "Array" + }, + { + "name": "storedPaymentMethods", + "baseName": "storedPaymentMethods", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodsResponse.attributeTypeMap; + } } diff --git a/src/typings/checkout/paymentRefundResource.ts b/src/typings/checkout/paymentRefundResource.ts index c3589b2..c05ab84 100644 --- a/src/typings/checkout/paymentRefundResource.ts +++ b/src/typings/checkout/paymentRefundResource.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; import { LineItem } from './lineItem'; import { Split } from './split'; @@ -59,6 +41,54 @@ export class PaymentRefundResource { * The status of your request. This will always have the value **received**. */ 'status': PaymentRefundResource.StatusEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "lineItems", + "baseName": "lineItems", + "type": "Array" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "paymentPspReference", + "baseName": "paymentPspReference", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "status", + "baseName": "status", + "type": "PaymentRefundResource.StatusEnum" + } ]; + + static getAttributeTypeMap() { + return PaymentRefundResource.attributeTypeMap; + } } export namespace PaymentRefundResource { diff --git a/src/typings/checkout/paymentRequest.ts b/src/typings/checkout/paymentRequest.ts index f1b6138..5875ed3 100644 --- a/src/typings/checkout/paymentRequest.ts +++ b/src/typings/checkout/paymentRequest.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { AccountInfo } from './accountInfo'; import { AchDetails } from './achDetails'; import { Address } from './address'; @@ -273,11 +255,319 @@ export class PaymentRequest { * Set to true if the payment should be routed to a trusted MID. */ 'trustedShopper'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountInfo", + "baseName": "accountInfo", + "type": "AccountInfo" + }, + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "applicationInfo", + "baseName": "applicationInfo", + "type": "ApplicationInfo" + }, + { + "name": "authenticationData", + "baseName": "authenticationData", + "type": "AuthenticationData" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "browserInfo", + "baseName": "browserInfo", + "type": "BrowserInfo" + }, + { + "name": "captureDelayHours", + "baseName": "captureDelayHours", + "type": "number" + }, + { + "name": "channel", + "baseName": "channel", + "type": "PaymentRequest.ChannelEnum" + }, + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, + { + "name": "company", + "baseName": "company", + "type": "Company" + }, + { + "name": "conversionId", + "baseName": "conversionId", + "type": "string" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "dccQuote", + "baseName": "dccQuote", + "type": "ForexQuote" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "Address" + }, + { + "name": "deliveryDate", + "baseName": "deliveryDate", + "type": "Date" + }, + { + "name": "deviceFingerprint", + "baseName": "deviceFingerprint", + "type": "string" + }, + { + "name": "enableOneClick", + "baseName": "enableOneClick", + "type": "boolean" + }, + { + "name": "enablePayOut", + "baseName": "enablePayOut", + "type": "boolean" + }, + { + "name": "enableRecurring", + "baseName": "enableRecurring", + "type": "boolean" + }, + { + "name": "entityType", + "baseName": "entityType", + "type": "PaymentRequest.EntityTypeEnum" + }, + { + "name": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "name": "installments", + "baseName": "installments", + "type": "Installments" + }, + { + "name": "lineItems", + "baseName": "lineItems", + "type": "Array" + }, + { + "name": "mandate", + "baseName": "mandate", + "type": "Mandate" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "merchantOrderReference", + "baseName": "merchantOrderReference", + "type": "string" + }, + { + "name": "merchantRiskIndicator", + "baseName": "merchantRiskIndicator", + "type": "MerchantRiskIndicator" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "{ [key: string]: string; }" + }, + { + "name": "mpiData", + "baseName": "mpiData", + "type": "ThreeDSecureData" + }, + { + "name": "order", + "baseName": "order", + "type": "CheckoutOrder" + }, + { + "name": "orderReference", + "baseName": "orderReference", + "type": "string" + }, + { + "name": "origin", + "baseName": "origin", + "type": "string" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "AchDetails | AfterpayDetails | AmazonPayDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CellulantDetails | DokuDetails | DotpayDetails | DragonpayDetails | EcontextVoucherDetails | GenericIssuerPaymentMethodDetails | GiropayDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayPalDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | RatepayDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails" + }, + { + "name": "recurringExpiry", + "baseName": "recurringExpiry", + "type": "string" + }, + { + "name": "recurringFrequency", + "baseName": "recurringFrequency", + "type": "string" + }, + { + "name": "recurringProcessingModel", + "baseName": "recurringProcessingModel", + "type": "PaymentRequest.RecurringProcessingModelEnum" + }, + { + "name": "redirectFromIssuerMethod", + "baseName": "redirectFromIssuerMethod", + "type": "string" + }, + { + "name": "redirectToIssuerMethod", + "baseName": "redirectToIssuerMethod", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "returnUrl", + "baseName": "returnUrl", + "type": "string" + }, + { + "name": "riskData", + "baseName": "riskData", + "type": "RiskData" + }, + { + "name": "sessionValidity", + "baseName": "sessionValidity", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperIP", + "baseName": "shopperIP", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "PaymentRequest.ShopperInteractionEnum" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + }, + { + "name": "storePaymentMethod", + "baseName": "storePaymentMethod", + "type": "boolean" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "threeDS2RequestData", + "baseName": "threeDS2RequestData", + "type": "ThreeDS2RequestData" + }, + { + "name": "threeDSAuthenticationOnly", + "baseName": "threeDSAuthenticationOnly", + "type": "boolean" + }, + { + "name": "trustedShopper", + "baseName": "trustedShopper", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return PaymentRequest.attributeTypeMap; + } } export namespace PaymentRequest { export enum ChannelEnum { - IOS = 'iOS', + IOs = 'iOS', Android = 'Android', Web = 'Web' } @@ -294,6 +584,6 @@ export namespace PaymentRequest { Ecommerce = 'Ecommerce', ContAuth = 'ContAuth', Moto = 'Moto', - POS = 'POS' + Pos = 'POS' } } diff --git a/src/typings/checkout/paymentResponse.ts b/src/typings/checkout/paymentResponse.ts index 986fe91..dd98512 100644 --- a/src/typings/checkout/paymentResponse.ts +++ b/src/typings/checkout/paymentResponse.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; import { CheckoutAwaitAction } from './checkoutAwaitAction'; import { CheckoutBankTransferAction } from './checkoutBankTransferAction'; @@ -84,6 +66,89 @@ export class PaymentResponse { * When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. */ 'threeDSPaymentData'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "action", + "baseName": "action", + "type": "CheckoutAwaitAction | CheckoutBankTransferAction | CheckoutDonationAction | CheckoutOneTimePasscodeAction | CheckoutQrCodeAction | CheckoutRedirectAction | CheckoutSDKAction | CheckoutThreeDS2Action | CheckoutVoucherAction" + }, + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "donationToken", + "baseName": "donationToken", + "type": "string" + }, + { + "name": "fraudResult", + "baseName": "fraudResult", + "type": "FraudResult" + }, + { + "name": "merchantReference", + "baseName": "merchantReference", + "type": "string" + }, + { + "name": "order", + "baseName": "order", + "type": "CheckoutOrderResponse" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "ResponsePaymentMethod" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "refusalReasonCode", + "baseName": "refusalReasonCode", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "PaymentResponse.ResultCodeEnum" + }, + { + "name": "threeDS2ResponseData", + "baseName": "threeDS2ResponseData", + "type": "ThreeDS2ResponseData" + }, + { + "name": "threeDS2Result", + "baseName": "threeDS2Result", + "type": "ThreeDS2Result" + }, + { + "name": "threeDSPaymentData", + "baseName": "threeDSPaymentData", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentResponse.attributeTypeMap; + } } export namespace PaymentResponse { diff --git a/src/typings/checkout/paymentReversalResource.ts b/src/typings/checkout/paymentReversalResource.ts index eaeb5aa..89a91a9 100644 --- a/src/typings/checkout/paymentReversalResource.ts +++ b/src/typings/checkout/paymentReversalResource.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class PaymentReversalResource { /** * The merchant account that is used to process the payment. @@ -47,6 +29,39 @@ export class PaymentReversalResource { * The status of your request. This will always have the value **received**. */ 'status': PaymentReversalResource.StatusEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "paymentPspReference", + "baseName": "paymentPspReference", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "PaymentReversalResource.StatusEnum" + } ]; + + static getAttributeTypeMap() { + return PaymentReversalResource.attributeTypeMap; + } } export namespace PaymentReversalResource { diff --git a/src/typings/checkout/paymentSetupRequest.ts b/src/typings/checkout/paymentSetupRequest.ts index d849848..c7451f9 100644 --- a/src/typings/checkout/paymentSetupRequest.ts +++ b/src/typings/checkout/paymentSetupRequest.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Address } from './address'; import { Amount } from './amount'; import { ApplicationInfo } from './applicationInfo'; @@ -218,11 +200,284 @@ export class PaymentSetupRequest { * Set to true if the payment should be routed to a trusted MID. */ 'trustedShopper'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "allowedPaymentMethods", + "baseName": "allowedPaymentMethods", + "type": "Array" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "applicationInfo", + "baseName": "applicationInfo", + "type": "ApplicationInfo" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "blockedPaymentMethods", + "baseName": "blockedPaymentMethods", + "type": "Array" + }, + { + "name": "captureDelayHours", + "baseName": "captureDelayHours", + "type": "number" + }, + { + "name": "channel", + "baseName": "channel", + "type": "PaymentSetupRequest.ChannelEnum" + }, + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, + { + "name": "company", + "baseName": "company", + "type": "Company" + }, + { + "name": "configuration", + "baseName": "configuration", + "type": "Configuration" + }, + { + "name": "conversionId", + "baseName": "conversionId", + "type": "string" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "dccQuote", + "baseName": "dccQuote", + "type": "ForexQuote" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "Address" + }, + { + "name": "deliveryDate", + "baseName": "deliveryDate", + "type": "Date" + }, + { + "name": "enableOneClick", + "baseName": "enableOneClick", + "type": "boolean" + }, + { + "name": "enablePayOut", + "baseName": "enablePayOut", + "type": "boolean" + }, + { + "name": "enableRecurring", + "baseName": "enableRecurring", + "type": "boolean" + }, + { + "name": "entityType", + "baseName": "entityType", + "type": "PaymentSetupRequest.EntityTypeEnum" + }, + { + "name": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "name": "installments", + "baseName": "installments", + "type": "Installments" + }, + { + "name": "lineItems", + "baseName": "lineItems", + "type": "Array" + }, + { + "name": "mandate", + "baseName": "mandate", + "type": "Mandate" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "merchantOrderReference", + "baseName": "merchantOrderReference", + "type": "string" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "{ [key: string]: string; }" + }, + { + "name": "orderReference", + "baseName": "orderReference", + "type": "string" + }, + { + "name": "origin", + "baseName": "origin", + "type": "string" + }, + { + "name": "recurringExpiry", + "baseName": "recurringExpiry", + "type": "string" + }, + { + "name": "recurringFrequency", + "baseName": "recurringFrequency", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "returnUrl", + "baseName": "returnUrl", + "type": "string" + }, + { + "name": "riskData", + "baseName": "riskData", + "type": "RiskData" + }, + { + "name": "sdkVersion", + "baseName": "sdkVersion", + "type": "string" + }, + { + "name": "sessionValidity", + "baseName": "sessionValidity", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperIP", + "baseName": "shopperIP", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "PaymentSetupRequest.ShopperInteractionEnum" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + }, + { + "name": "storePaymentMethod", + "baseName": "storePaymentMethod", + "type": "boolean" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "threeDSAuthenticationOnly", + "baseName": "threeDSAuthenticationOnly", + "type": "boolean" + }, + { + "name": "token", + "baseName": "token", + "type": "string" + }, + { + "name": "trustedShopper", + "baseName": "trustedShopper", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return PaymentSetupRequest.attributeTypeMap; + } } export namespace PaymentSetupRequest { export enum ChannelEnum { - IOS = 'iOS', + IOs = 'iOS', Android = 'Android', Web = 'Web' } @@ -234,6 +489,6 @@ export namespace PaymentSetupRequest { Ecommerce = 'Ecommerce', ContAuth = 'ContAuth', Moto = 'Moto', - POS = 'POS' + Pos = 'POS' } } diff --git a/src/typings/checkout/paymentSetupResponse.ts b/src/typings/checkout/paymentSetupResponse.ts index 4fb3011..50f4b1a 100644 --- a/src/typings/checkout/paymentSetupResponse.ts +++ b/src/typings/checkout/paymentSetupResponse.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { RecurringDetail } from './recurringDetail'; export class PaymentSetupResponse { @@ -36,5 +18,23 @@ export class PaymentSetupResponse { * The detailed list of stored payment details required to generate payment forms. Will be empty if oneClick is set to false in the request. */ 'recurringDetails'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "paymentSession", + "baseName": "paymentSession", + "type": "string" + }, + { + "name": "recurringDetails", + "baseName": "recurringDetails", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return PaymentSetupResponse.attributeTypeMap; + } } diff --git a/src/typings/checkout/paymentVerificationRequest.ts b/src/typings/checkout/paymentVerificationRequest.ts index 85b23fc..8c087b3 100644 --- a/src/typings/checkout/paymentVerificationRequest.ts +++ b/src/typings/checkout/paymentVerificationRequest.ts @@ -1,35 +1,30 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class PaymentVerificationRequest { /** * Encrypted and signed payment result data. You should receive this value from the Checkout SDK after the shopper completes the payment. */ 'payload': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "payload", + "baseName": "payload", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentVerificationRequest.attributeTypeMap; + } } diff --git a/src/typings/checkout/paymentVerificationResponse.ts b/src/typings/checkout/paymentVerificationResponse.ts index 5b65a4b..8ebd1fb 100644 --- a/src/typings/checkout/paymentVerificationResponse.ts +++ b/src/typings/checkout/paymentVerificationResponse.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { CheckoutOrderResponse } from './checkoutOrderResponse'; import { FraudResult } from './fraudResult'; import { ServiceError2 } from './serviceError2'; @@ -61,6 +43,64 @@ export class PaymentVerificationResponse { * The shopperLocale value provided in the payment request. */ 'shopperLocale': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "fraudResult", + "baseName": "fraudResult", + "type": "FraudResult" + }, + { + "name": "merchantReference", + "baseName": "merchantReference", + "type": "string" + }, + { + "name": "order", + "baseName": "order", + "type": "CheckoutOrderResponse" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "refusalReasonCode", + "baseName": "refusalReasonCode", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "PaymentVerificationResponse.ResultCodeEnum" + }, + { + "name": "serviceError", + "baseName": "serviceError", + "type": "ServiceError2" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentVerificationResponse.attributeTypeMap; + } } export namespace PaymentVerificationResponse { diff --git a/src/typings/checkout/phone.ts b/src/typings/checkout/phone.ts index 271915d..02daea6 100644 --- a/src/typings/checkout/phone.ts +++ b/src/typings/checkout/phone.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Phone { /** * Country code. Length: 1–3 characters. @@ -35,5 +17,23 @@ export class Phone { * Subscriber number. Maximum length: 15 characters. */ 'subscriber'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cc", + "baseName": "cc", + "type": "string" + }, + { + "name": "subscriber", + "baseName": "subscriber", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Phone.attributeTypeMap; + } } diff --git a/src/typings/checkout/ratepayDetails.ts b/src/typings/checkout/ratepayDetails.ts index cbff8ee..6788011 100644 --- a/src/typings/checkout/ratepayDetails.ts +++ b/src/typings/checkout/ratepayDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class RatepayDetails { /** * The address where to send the invoice. @@ -51,6 +33,44 @@ export class RatepayDetails { * **ratepay** */ 'type': RatepayDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "string" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "string" + }, + { + "name": "personalDetails", + "baseName": "personalDetails", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "RatepayDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return RatepayDetails.attributeTypeMap; + } } export namespace RatepayDetails { diff --git a/src/typings/checkout/recurring.ts b/src/typings/checkout/recurring.ts index f5a11d2..8c21ef7 100644 --- a/src/typings/checkout/recurring.ts +++ b/src/typings/checkout/recurring.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Recurring { /** * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). @@ -47,16 +29,49 @@ export class Recurring { * The name of the token service. */ 'tokenService'?: Recurring.TokenServiceEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "contract", + "baseName": "contract", + "type": "Recurring.ContractEnum" + }, + { + "name": "recurringDetailName", + "baseName": "recurringDetailName", + "type": "string" + }, + { + "name": "recurringExpiry", + "baseName": "recurringExpiry", + "type": "Date" + }, + { + "name": "recurringFrequency", + "baseName": "recurringFrequency", + "type": "string" + }, + { + "name": "tokenService", + "baseName": "tokenService", + "type": "Recurring.TokenServiceEnum" + } ]; + + static getAttributeTypeMap() { + return Recurring.attributeTypeMap; + } } export namespace Recurring { export enum ContractEnum { - ONECLICK = 'ONECLICK', - RECURRING = 'RECURRING', - PAYOUT = 'PAYOUT' + Oneclick = 'ONECLICK', + Recurring = 'RECURRING', + Payout = 'PAYOUT' } export enum TokenServiceEnum { - VISATOKENSERVICE = 'VISATOKENSERVICE', - MCTOKENSERVICE = 'MCTOKENSERVICE' + Visatokenservice = 'VISATOKENSERVICE', + Mctokenservice = 'MCTOKENSERVICE' } } diff --git a/src/typings/checkout/recurringDetail.ts b/src/typings/checkout/recurringDetail.ts index 54ddbcb..4e0a59d 100644 --- a/src/typings/checkout/recurringDetail.ts +++ b/src/typings/checkout/recurringDetail.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { InputDetail } from './inputDetail'; import { PaymentMethodGroup } from './paymentMethodGroup'; import { PaymentMethodIssuer } from './paymentMethodIssuer'; @@ -69,6 +51,69 @@ export class RecurringDetail { * The unique payment method code. */ 'type'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "brand", + "baseName": "brand", + "type": "string" + }, + { + "name": "brands", + "baseName": "brands", + "type": "Array" + }, + { + "name": "configuration", + "baseName": "configuration", + "type": "{ [key: string]: string; }" + }, + { + "name": "fundingSource", + "baseName": "fundingSource", + "type": "RecurringDetail.FundingSourceEnum" + }, + { + "name": "group", + "baseName": "group", + "type": "PaymentMethodGroup" + }, + { + "name": "inputDetails", + "baseName": "inputDetails", + "type": "Array" + }, + { + "name": "issuers", + "baseName": "issuers", + "type": "Array" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedDetails", + "baseName": "storedDetails", + "type": "StoredDetails" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return RecurringDetail.attributeTypeMap; + } } export namespace RecurringDetail { diff --git a/src/typings/checkout/redirect.ts b/src/typings/checkout/redirect.ts index 17ddfdd..cc114e0 100644 --- a/src/typings/checkout/redirect.ts +++ b/src/typings/checkout/redirect.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Redirect { /** * When the redirect URL must be accessed via POST, use this data to post to the redirect URL. @@ -39,11 +21,34 @@ export class Redirect { * The URL, to which you must redirect a shopper to complete a payment. */ 'url'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "data", + "baseName": "data", + "type": "{ [key: string]: string; }" + }, + { + "name": "method", + "baseName": "method", + "type": "Redirect.MethodEnum" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Redirect.attributeTypeMap; + } } export namespace Redirect { export enum MethodEnum { - GET = 'GET', - POST = 'POST' + Get = 'GET', + Post = 'POST' } } diff --git a/src/typings/checkout/responseAdditionalData3DSecure.ts b/src/typings/checkout/responseAdditionalData3DSecure.ts index 5258452..4f1ef12 100644 --- a/src/typings/checkout/responseAdditionalData3DSecure.ts +++ b/src/typings/checkout/responseAdditionalData3DSecure.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ResponseAdditionalData3DSecure { /** * Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. @@ -47,5 +29,38 @@ export class ResponseAdditionalData3DSecure { * Indicates whether a card is enrolled for 3D Secure 2. */ 'threeds2CardEnrolled'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cardHolderInfo", + "baseName": "cardHolderInfo", + "type": "string" + }, + { + "name": "cavv", + "baseName": "cavv", + "type": "string" + }, + { + "name": "cavvAlgorithm", + "baseName": "cavvAlgorithm", + "type": "string" + }, + { + "name": "scaExemptionRequested", + "baseName": "scaExemptionRequested", + "type": "string" + }, + { + "name": "threeds2CardEnrolled", + "baseName": "threeds2.cardEnrolled", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalData3DSecure.attributeTypeMap; + } } diff --git a/src/typings/checkout/responseAdditionalDataBillingAddress.ts b/src/typings/checkout/responseAdditionalDataBillingAddress.ts index 2e2c5c0..e1b3b20 100644 --- a/src/typings/checkout/responseAdditionalDataBillingAddress.ts +++ b/src/typings/checkout/responseAdditionalDataBillingAddress.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ResponseAdditionalDataBillingAddress { /** * The billing address city passed in the payment request. @@ -51,5 +33,43 @@ export class ResponseAdditionalDataBillingAddress { * The billing address street passed in the payment request. */ 'billingAddressStreet'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "billingAddressCity", + "baseName": "billingAddress.city", + "type": "string" + }, + { + "name": "billingAddressCountry", + "baseName": "billingAddress.country", + "type": "string" + }, + { + "name": "billingAddressHouseNumberOrName", + "baseName": "billingAddress.houseNumberOrName", + "type": "string" + }, + { + "name": "billingAddressPostalCode", + "baseName": "billingAddress.postalCode", + "type": "string" + }, + { + "name": "billingAddressStateOrProvince", + "baseName": "billingAddress.stateOrProvince", + "type": "string" + }, + { + "name": "billingAddressStreet", + "baseName": "billingAddress.street", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataBillingAddress.attributeTypeMap; + } } diff --git a/src/typings/checkout/responseAdditionalDataCard.ts b/src/typings/checkout/responseAdditionalDataCard.ts index a00cfe1..a45196e 100644 --- a/src/typings/checkout/responseAdditionalDataCard.ts +++ b/src/typings/checkout/responseAdditionalDataCard.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ResponseAdditionalDataCard { /** * The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 @@ -59,5 +41,53 @@ export class ResponseAdditionalDataCard { * The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 */ 'issuerBin'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cardBin", + "baseName": "cardBin", + "type": "string" + }, + { + "name": "cardHolderName", + "baseName": "cardHolderName", + "type": "string" + }, + { + "name": "cardIssuingBank", + "baseName": "cardIssuingBank", + "type": "string" + }, + { + "name": "cardIssuingCountry", + "baseName": "cardIssuingCountry", + "type": "string" + }, + { + "name": "cardIssuingCurrency", + "baseName": "cardIssuingCurrency", + "type": "string" + }, + { + "name": "cardPaymentMethod", + "baseName": "cardPaymentMethod", + "type": "string" + }, + { + "name": "cardSummary", + "baseName": "cardSummary", + "type": "string" + }, + { + "name": "issuerBin", + "baseName": "issuerBin", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataCard.attributeTypeMap; + } } diff --git a/src/typings/checkout/responseAdditionalDataCommon.ts b/src/typings/checkout/responseAdditionalDataCommon.ts index 3c0477d..17d6611 100644 --- a/src/typings/checkout/responseAdditionalDataCommon.ts +++ b/src/typings/checkout/responseAdditionalDataCommon.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ResponseAdditionalDataCommon { /** * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. @@ -263,12 +245,315 @@ export class ResponseAdditionalDataCommon { * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse \'N\' or \'Y\'. If you want to submit the xid in your 3D Secure 1 request, use the `mpiData.xid`, field. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= */ 'xid'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acquirerAccountCode", + "baseName": "acquirerAccountCode", + "type": "string" + }, + { + "name": "acquirerCode", + "baseName": "acquirerCode", + "type": "string" + }, + { + "name": "acquirerReference", + "baseName": "acquirerReference", + "type": "string" + }, + { + "name": "alias", + "baseName": "alias", + "type": "string" + }, + { + "name": "aliasType", + "baseName": "aliasType", + "type": "string" + }, + { + "name": "authCode", + "baseName": "authCode", + "type": "string" + }, + { + "name": "authorisationMid", + "baseName": "authorisationMid", + "type": "string" + }, + { + "name": "authorisedAmountCurrency", + "baseName": "authorisedAmountCurrency", + "type": "string" + }, + { + "name": "authorisedAmountValue", + "baseName": "authorisedAmountValue", + "type": "string" + }, + { + "name": "avsResult", + "baseName": "avsResult", + "type": "string" + }, + { + "name": "avsResultRaw", + "baseName": "avsResultRaw", + "type": "string" + }, + { + "name": "bic", + "baseName": "bic", + "type": "string" + }, + { + "name": "coBrandedWith", + "baseName": "coBrandedWith", + "type": "string" + }, + { + "name": "cvcResult", + "baseName": "cvcResult", + "type": "string" + }, + { + "name": "cvcResultRaw", + "baseName": "cvcResultRaw", + "type": "string" + }, + { + "name": "dsTransID", + "baseName": "dsTransID", + "type": "string" + }, + { + "name": "eci", + "baseName": "eci", + "type": "string" + }, + { + "name": "expiryDate", + "baseName": "expiryDate", + "type": "string" + }, + { + "name": "extraCostsCurrency", + "baseName": "extraCostsCurrency", + "type": "string" + }, + { + "name": "extraCostsValue", + "baseName": "extraCostsValue", + "type": "string" + }, + { + "name": "fraudCheckItemNrFraudCheckname", + "baseName": "fraudCheck-[itemNr]-[FraudCheckname]", + "type": "string" + }, + { + "name": "fraudManualReview", + "baseName": "fraudManualReview", + "type": "string" + }, + { + "name": "fraudResultType", + "baseName": "fraudResultType", + "type": "ResponseAdditionalDataCommon.FraudResultTypeEnum" + }, + { + "name": "fundingSource", + "baseName": "fundingSource", + "type": "string" + }, + { + "name": "fundsAvailability", + "baseName": "fundsAvailability", + "type": "string" + }, + { + "name": "inferredRefusalReason", + "baseName": "inferredRefusalReason", + "type": "string" + }, + { + "name": "isCardCommercial", + "baseName": "isCardCommercial", + "type": "string" + }, + { + "name": "issuerCountry", + "baseName": "issuerCountry", + "type": "string" + }, + { + "name": "liabilityShift", + "baseName": "liabilityShift", + "type": "string" + }, + { + "name": "mcBankNetReferenceNumber", + "baseName": "mcBankNetReferenceNumber", + "type": "string" + }, + { + "name": "merchantAdviceCode", + "baseName": "merchantAdviceCode", + "type": "ResponseAdditionalDataCommon.MerchantAdviceCodeEnum" + }, + { + "name": "merchantReference", + "baseName": "merchantReference", + "type": "string" + }, + { + "name": "networkTxReference", + "baseName": "networkTxReference", + "type": "string" + }, + { + "name": "ownerName", + "baseName": "ownerName", + "type": "string" + }, + { + "name": "paymentAccountReference", + "baseName": "paymentAccountReference", + "type": "string" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "string" + }, + { + "name": "paymentMethodVariant", + "baseName": "paymentMethodVariant", + "type": "string" + }, + { + "name": "payoutEligible", + "baseName": "payoutEligible", + "type": "string" + }, + { + "name": "realtimeAccountUpdaterStatus", + "baseName": "realtimeAccountUpdaterStatus", + "type": "string" + }, + { + "name": "receiptFreeText", + "baseName": "receiptFreeText", + "type": "string" + }, + { + "name": "recurringContractTypes", + "baseName": "recurring.contractTypes", + "type": "string" + }, + { + "name": "recurringFirstPspReference", + "baseName": "recurring.firstPspReference", + "type": "string" + }, + { + "name": "recurringRecurringDetailReference", + "baseName": "recurring.recurringDetailReference", + "type": "string" + }, + { + "name": "recurringShopperReference", + "baseName": "recurring.shopperReference", + "type": "string" + }, + { + "name": "recurringProcessingModel", + "baseName": "recurringProcessingModel", + "type": "ResponseAdditionalDataCommon.RecurringProcessingModelEnum" + }, + { + "name": "referred", + "baseName": "referred", + "type": "string" + }, + { + "name": "refusalReasonRaw", + "baseName": "refusalReasonRaw", + "type": "string" + }, + { + "name": "requestAmount", + "baseName": "requestAmount", + "type": "string" + }, + { + "name": "requestCurrencyCode", + "baseName": "requestCurrencyCode", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "string" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "terminalId", + "baseName": "terminalId", + "type": "string" + }, + { + "name": "threeDAuthenticated", + "baseName": "threeDAuthenticated", + "type": "string" + }, + { + "name": "threeDAuthenticatedResponse", + "baseName": "threeDAuthenticatedResponse", + "type": "string" + }, + { + "name": "threeDOffered", + "baseName": "threeDOffered", + "type": "string" + }, + { + "name": "threeDOfferedResponse", + "baseName": "threeDOfferedResponse", + "type": "string" + }, + { + "name": "threeDSVersion", + "baseName": "threeDSVersion", + "type": "string" + }, + { + "name": "visaTransactionId", + "baseName": "visaTransactionId", + "type": "string" + }, + { + "name": "xid", + "baseName": "xid", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataCommon.attributeTypeMap; + } } export namespace ResponseAdditionalDataCommon { export enum FraudResultTypeEnum { - GREEN = 'GREEN', - FRAUD = 'FRAUD' + Green = 'GREEN', + Fraud = 'FRAUD' } export enum MerchantAdviceCodeEnum { _01NewAccountInformationAvailable = '01: New account information available', diff --git a/src/typings/checkout/responseAdditionalDataInstallments.ts b/src/typings/checkout/responseAdditionalDataInstallments.ts index e5329d7..a6b514c 100644 --- a/src/typings/checkout/responseAdditionalDataInstallments.ts +++ b/src/typings/checkout/responseAdditionalDataInstallments.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ResponseAdditionalDataInstallments { /** * Type of installment. The value of `installmentType` should be **IssuerFinanced**. @@ -75,5 +57,73 @@ export class ResponseAdditionalDataInstallments { * The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. */ 'installmentsValue'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "installmentPaymentDataInstallmentType", + "baseName": "installmentPaymentData.installmentType", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrAnnualPercentageRate", + "baseName": "installmentPaymentData.option[itemNr].annualPercentageRate", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrFirstInstallmentAmount", + "baseName": "installmentPaymentData.option[itemNr].firstInstallmentAmount", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrInstallmentFee", + "baseName": "installmentPaymentData.option[itemNr].installmentFee", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrInterestRate", + "baseName": "installmentPaymentData.option[itemNr].interestRate", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrMaximumNumberOfInstallments", + "baseName": "installmentPaymentData.option[itemNr].maximumNumberOfInstallments", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrMinimumNumberOfInstallments", + "baseName": "installmentPaymentData.option[itemNr].minimumNumberOfInstallments", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrNumberOfInstallments", + "baseName": "installmentPaymentData.option[itemNr].numberOfInstallments", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrSubsequentInstallmentAmount", + "baseName": "installmentPaymentData.option[itemNr].subsequentInstallmentAmount", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrTotalAmountDue", + "baseName": "installmentPaymentData.option[itemNr].totalAmountDue", + "type": "string" + }, + { + "name": "installmentPaymentDataPaymentOptions", + "baseName": "installmentPaymentData.paymentOptions", + "type": "string" + }, + { + "name": "installmentsValue", + "baseName": "installments.value", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataInstallments.attributeTypeMap; + } } diff --git a/src/typings/checkout/responseAdditionalDataNetworkTokens.ts b/src/typings/checkout/responseAdditionalDataNetworkTokens.ts index 1f61f45..3659415 100644 --- a/src/typings/checkout/responseAdditionalDataNetworkTokens.ts +++ b/src/typings/checkout/responseAdditionalDataNetworkTokens.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ResponseAdditionalDataNetworkTokens { /** * Indicates whether a network token is available for the specified card. @@ -39,5 +21,28 @@ export class ResponseAdditionalDataNetworkTokens { * The last four digits of a network token. */ 'networkTokenTokenSummary'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "networkTokenAvailable", + "baseName": "networkToken.available", + "type": "string" + }, + { + "name": "networkTokenBin", + "baseName": "networkToken.bin", + "type": "string" + }, + { + "name": "networkTokenTokenSummary", + "baseName": "networkToken.tokenSummary", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataNetworkTokens.attributeTypeMap; + } } diff --git a/src/typings/checkout/responseAdditionalDataOpi.ts b/src/typings/checkout/responseAdditionalDataOpi.ts index 800cb05..13b0a27 100644 --- a/src/typings/checkout/responseAdditionalDataOpi.ts +++ b/src/typings/checkout/responseAdditionalDataOpi.ts @@ -1,35 +1,30 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ResponseAdditionalDataOpi { /** * Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). */ 'opiTransToken'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "opiTransToken", + "baseName": "opi.transToken", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataOpi.attributeTypeMap; + } } diff --git a/src/typings/checkout/responseAdditionalDataSepa.ts b/src/typings/checkout/responseAdditionalDataSepa.ts index 183657a..066e177 100644 --- a/src/typings/checkout/responseAdditionalDataSepa.ts +++ b/src/typings/checkout/responseAdditionalDataSepa.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ResponseAdditionalDataSepa { /** * The transaction signature date. Format: yyyy-MM-dd @@ -39,5 +21,28 @@ export class ResponseAdditionalDataSepa { * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF */ 'sepadirectdebitSequenceType'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "sepadirectdebitDateOfSignature", + "baseName": "sepadirectdebit.dateOfSignature", + "type": "string" + }, + { + "name": "sepadirectdebitMandateId", + "baseName": "sepadirectdebit.mandateId", + "type": "string" + }, + { + "name": "sepadirectdebitSequenceType", + "baseName": "sepadirectdebit.sequenceType", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataSepa.attributeTypeMap; + } } diff --git a/src/typings/checkout/responsePaymentMethod.ts b/src/typings/checkout/responsePaymentMethod.ts index 9f51c1a..a2a8222 100644 --- a/src/typings/checkout/responsePaymentMethod.ts +++ b/src/typings/checkout/responsePaymentMethod.ts @@ -1,39 +1,39 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ResponsePaymentMethod { /** - * The payment method brand. + * The card brand. Only returned for card payments. */ 'brand'?: string; /** * The payment method type. */ 'type'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "brand", + "baseName": "brand", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponsePaymentMethod.attributeTypeMap; + } } diff --git a/src/typings/checkout/riskData.ts b/src/typings/checkout/riskData.ts index d7e610b..6334c8e 100644 --- a/src/typings/checkout/riskData.ts +++ b/src/typings/checkout/riskData.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class RiskData { /** * Contains client-side data, like the device fingerprint, cookies, and specific browser settings. @@ -43,5 +25,33 @@ export class RiskData { * The risk profile to assign to this payment. When left empty, the merchant-level account\'s default risk profile will be applied. */ 'profileReference'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "clientData", + "baseName": "clientData", + "type": "string" + }, + { + "name": "customFields", + "baseName": "customFields", + "type": "{ [key: string]: string; }" + }, + { + "name": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "name": "profileReference", + "baseName": "profileReference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return RiskData.attributeTypeMap; + } } diff --git a/src/typings/checkout/sDKEphemPubKey.ts b/src/typings/checkout/sDKEphemPubKey.ts index 16f1678..6414d18 100644 --- a/src/typings/checkout/sDKEphemPubKey.ts +++ b/src/typings/checkout/sDKEphemPubKey.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class SDKEphemPubKey { /** * The `crv` value as received from the 3D Secure 2 SDK. @@ -43,5 +25,33 @@ export class SDKEphemPubKey { * The `y` value as received from the 3D Secure 2 SDK. */ 'y'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "crv", + "baseName": "crv", + "type": "string" + }, + { + "name": "kty", + "baseName": "kty", + "type": "string" + }, + { + "name": "x", + "baseName": "x", + "type": "string" + }, + { + "name": "y", + "baseName": "y", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return SDKEphemPubKey.attributeTypeMap; + } } diff --git a/src/typings/checkout/samsungPayDetails.ts b/src/typings/checkout/samsungPayDetails.ts index 0bc6ae1..8f56cde 100644 --- a/src/typings/checkout/samsungPayDetails.ts +++ b/src/typings/checkout/samsungPayDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class SamsungPayDetails { /** * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. @@ -47,6 +29,39 @@ export class SamsungPayDetails { * **samsungpay** */ 'type'?: SamsungPayDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "fundingSource", + "baseName": "fundingSource", + "type": "SamsungPayDetails.FundingSourceEnum" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "samsungPayToken", + "baseName": "samsungPayToken", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "SamsungPayDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return SamsungPayDetails.attributeTypeMap; + } } export namespace SamsungPayDetails { diff --git a/src/typings/checkout/sepaDirectDebitDetails.ts b/src/typings/checkout/sepaDirectDebitDetails.ts index e5cf61f..960dea3 100644 --- a/src/typings/checkout/sepaDirectDebitDetails.ts +++ b/src/typings/checkout/sepaDirectDebitDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class SepaDirectDebitDetails { /** * The International Bank Account Number (IBAN). @@ -47,6 +29,39 @@ export class SepaDirectDebitDetails { * **sepadirectdebit** */ 'type'?: SepaDirectDebitDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "iban", + "baseName": "iban", + "type": "string" + }, + { + "name": "ownerName", + "baseName": "ownerName", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "SepaDirectDebitDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return SepaDirectDebitDetails.attributeTypeMap; + } } export namespace SepaDirectDebitDetails { diff --git a/src/typings/checkout/serviceError.ts b/src/typings/checkout/serviceError.ts index 497ddda..4417801 100644 --- a/src/typings/checkout/serviceError.ts +++ b/src/typings/checkout/serviceError.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ServiceError { /** * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Account** > **API URLs**. @@ -51,5 +33,43 @@ export class ServiceError { * The HTTP response status. */ 'status'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "errorCode", + "baseName": "errorCode", + "type": "string" + }, + { + "name": "errorType", + "baseName": "errorType", + "type": "string" + }, + { + "name": "message", + "baseName": "message", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return ServiceError.attributeTypeMap; + } } diff --git a/src/typings/checkout/serviceError2.ts b/src/typings/checkout/serviceError2.ts index 0285d28..2966c0d 100644 --- a/src/typings/checkout/serviceError2.ts +++ b/src/typings/checkout/serviceError2.ts @@ -1,35 +1,45 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ServiceError2 { 'errorCode'?: string; 'errorType'?: string; 'message'?: string; 'pspReference'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "errorCode", + "baseName": "errorCode", + "type": "string" + }, + { + "name": "errorType", + "baseName": "errorType", + "type": "string" + }, + { + "name": "message", + "baseName": "message", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ServiceError2.attributeTypeMap; + } } diff --git a/src/typings/checkout/shopperInput.ts b/src/typings/checkout/shopperInput.ts index 0541642..a4b6c51 100644 --- a/src/typings/checkout/shopperInput.ts +++ b/src/typings/checkout/shopperInput.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ShopperInput { /** * Specifies visibility of billing address fields. Permitted values: * editable * hidden * readOnly @@ -39,6 +21,29 @@ export class ShopperInput { * Specifies visibility of personal details. Permitted values: * editable * hidden * readOnly */ 'personalDetails'?: ShopperInput.PersonalDetailsEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "ShopperInput.BillingAddressEnum" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "ShopperInput.DeliveryAddressEnum" + }, + { + "name": "personalDetails", + "baseName": "personalDetails", + "type": "ShopperInput.PersonalDetailsEnum" + } ]; + + static getAttributeTypeMap() { + return ShopperInput.attributeTypeMap; + } } export namespace ShopperInput { diff --git a/src/typings/checkout/shopperInteractionDevice.ts b/src/typings/checkout/shopperInteractionDevice.ts index 400c074..e28123e 100644 --- a/src/typings/checkout/shopperInteractionDevice.ts +++ b/src/typings/checkout/shopperInteractionDevice.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ShopperInteractionDevice { /** * Locale on the shopper interaction device. @@ -39,5 +21,28 @@ export class ShopperInteractionDevice { * Version of the operating system on the shopper interaction device. */ 'osVersion'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "locale", + "baseName": "locale", + "type": "string" + }, + { + "name": "os", + "baseName": "os", + "type": "string" + }, + { + "name": "osVersion", + "baseName": "osVersion", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ShopperInteractionDevice.attributeTypeMap; + } } diff --git a/src/typings/checkout/split.ts b/src/typings/checkout/split.ts index ce9e0da..f44eec3 100644 --- a/src/typings/checkout/split.ts +++ b/src/typings/checkout/split.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { SplitAmount } from './splitAmount'; export class Split { @@ -45,6 +27,39 @@ export class Split { * The type of split. Possible values: **Default**, **PaymentFee**, **VAT**, **Commission**, **MarketPlace**, **BalanceAccount**, **Remainder**. */ 'type': Split.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "account", + "baseName": "account", + "type": "string" + }, + { + "name": "amount", + "baseName": "amount", + "type": "SplitAmount" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "Split.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return Split.attributeTypeMap; + } } export namespace Split { @@ -55,7 +70,7 @@ export namespace Split { MarketPlace = 'MarketPlace', PaymentFee = 'PaymentFee', Remainder = 'Remainder', - VAT = 'VAT', + Vat = 'VAT', Verification = 'Verification' } } diff --git a/src/typings/checkout/splitAmount.ts b/src/typings/checkout/splitAmount.ts index 45cfd57..95d1be6 100644 --- a/src/typings/checkout/splitAmount.ts +++ b/src/typings/checkout/splitAmount.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class SplitAmount { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). If this value is not provided, the currency in which the payment is made will be used. @@ -35,5 +17,23 @@ export class SplitAmount { * The amount in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ 'value': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "currency", + "baseName": "currency", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return SplitAmount.attributeTypeMap; + } } diff --git a/src/typings/checkout/standalonePaymentCancelResource.ts b/src/typings/checkout/standalonePaymentCancelResource.ts index fea328c..be50f77 100644 --- a/src/typings/checkout/standalonePaymentCancelResource.ts +++ b/src/typings/checkout/standalonePaymentCancelResource.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class StandalonePaymentCancelResource { /** * The merchant account that is used to process the payment. @@ -47,6 +29,39 @@ export class StandalonePaymentCancelResource { * The status of your request. This will always have the value **received**. */ 'status': StandalonePaymentCancelResource.StatusEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "paymentReference", + "baseName": "paymentReference", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "StandalonePaymentCancelResource.StatusEnum" + } ]; + + static getAttributeTypeMap() { + return StandalonePaymentCancelResource.attributeTypeMap; + } } export namespace StandalonePaymentCancelResource { diff --git a/src/typings/checkout/storedDetails.ts b/src/typings/checkout/storedDetails.ts index 9aa082d..464f73e 100644 --- a/src/typings/checkout/storedDetails.ts +++ b/src/typings/checkout/storedDetails.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { BankAccount } from './bankAccount'; import { Card } from './card'; @@ -35,5 +17,28 @@ export class StoredDetails { * The email associated with stored payment details. */ 'emailAddress'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "bank", + "baseName": "bank", + "type": "BankAccount" + }, + { + "name": "card", + "baseName": "card", + "type": "Card" + }, + { + "name": "emailAddress", + "baseName": "emailAddress", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredDetails.attributeTypeMap; + } } diff --git a/src/typings/checkout/storedPaymentMethod.ts b/src/typings/checkout/storedPaymentMethod.ts index 84c3a0d..15d9142 100644 --- a/src/typings/checkout/storedPaymentMethod.ts +++ b/src/typings/checkout/storedPaymentMethod.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class StoredPaymentMethod { /** * The brand of the card. @@ -79,5 +61,78 @@ export class StoredPaymentMethod { * The type of payment method. */ 'type'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "brand", + "baseName": "brand", + "type": "string" + }, + { + "name": "expiryMonth", + "baseName": "expiryMonth", + "type": "string" + }, + { + "name": "expiryYear", + "baseName": "expiryYear", + "type": "string" + }, + { + "name": "holderName", + "baseName": "holderName", + "type": "string" + }, + { + "name": "iban", + "baseName": "iban", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "lastFour", + "baseName": "lastFour", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "networkTxReference", + "baseName": "networkTxReference", + "type": "string" + }, + { + "name": "ownerName", + "baseName": "ownerName", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "supportedShopperInteractions", + "baseName": "supportedShopperInteractions", + "type": "Array" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredPaymentMethod.attributeTypeMap; + } } diff --git a/src/typings/checkout/storedPaymentMethodDetails.ts b/src/typings/checkout/storedPaymentMethodDetails.ts index 124bcd7..ccbc9be 100644 --- a/src/typings/checkout/storedPaymentMethodDetails.ts +++ b/src/typings/checkout/storedPaymentMethodDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class StoredPaymentMethodDetails { /** * This is the `recurringDetailReference` returned in the response when you created the token. @@ -39,22 +21,45 @@ export class StoredPaymentMethodDetails { * The payment method type. */ 'type'?: StoredPaymentMethodDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "StoredPaymentMethodDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return StoredPaymentMethodDetails.attributeTypeMap; + } } export namespace StoredPaymentMethodDetails { export enum TypeEnum { BcmcMobile = 'bcmc_mobile', - BcmcMobileQR = 'bcmc_mobile_QR', + BcmcMobileQr = 'bcmc_mobile_QR', BcmcMobileApp = 'bcmc_mobile_app', MomoWallet = 'momo_wallet', MomoWalletApp = 'momo_wallet_app', PaymayaWallet = 'paymaya_wallet', - GrabpaySG = 'grabpay_SG', - GrabpayMY = 'grabpay_MY', - GrabpayTH = 'grabpay_TH', - GrabpayID = 'grabpay_ID', - GrabpayVN = 'grabpay_VN', - GrabpayPH = 'grabpay_PH', + GrabpaySg = 'grabpay_SG', + GrabpayMy = 'grabpay_MY', + GrabpayTh = 'grabpay_TH', + GrabpayId = 'grabpay_ID', + GrabpayVn = 'grabpay_VN', + GrabpayPh = 'grabpay_PH', Oxxo = 'oxxo', Gcash = 'gcash', Kakaopay = 'kakaopay', diff --git a/src/typings/checkout/subInputDetail.ts b/src/typings/checkout/subInputDetail.ts index 07a1f1c..c03a0e7 100644 --- a/src/typings/checkout/subInputDetail.ts +++ b/src/typings/checkout/subInputDetail.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Item } from './item'; export class SubInputDetail { @@ -52,5 +34,43 @@ export class SubInputDetail { * The value can be pre-filled, if available. */ 'value'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "configuration", + "baseName": "configuration", + "type": "{ [key: string]: string; }" + }, + { + "name": "items", + "baseName": "items", + "type": "Array" + }, + { + "name": "key", + "baseName": "key", + "type": "string" + }, + { + "name": "optional", + "baseName": "optional", + "type": "boolean" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return SubInputDetail.attributeTypeMap; + } } diff --git a/src/typings/checkout/threeDS2RequestData.ts b/src/typings/checkout/threeDS2RequestData.ts index 84cf76b..83b63db 100644 --- a/src/typings/checkout/threeDS2RequestData.ts +++ b/src/typings/checkout/threeDS2RequestData.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { AcctInfo } from './acctInfo'; import { DeviceRenderOptions } from './deviceRenderOptions'; import { Phone } from './phone'; @@ -165,6 +147,209 @@ export class ThreeDS2RequestData { */ 'whiteListStatus'?: string; 'workPhone'?: Phone; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acctInfo", + "baseName": "acctInfo", + "type": "AcctInfo" + }, + { + "name": "acctType", + "baseName": "acctType", + "type": "ThreeDS2RequestData.AcctTypeEnum" + }, + { + "name": "acquirerBIN", + "baseName": "acquirerBIN", + "type": "string" + }, + { + "name": "acquirerMerchantID", + "baseName": "acquirerMerchantID", + "type": "string" + }, + { + "name": "addrMatch", + "baseName": "addrMatch", + "type": "ThreeDS2RequestData.AddrMatchEnum" + }, + { + "name": "authenticationOnly", + "baseName": "authenticationOnly", + "type": "boolean" + }, + { + "name": "challengeIndicator", + "baseName": "challengeIndicator", + "type": "ThreeDS2RequestData.ChallengeIndicatorEnum" + }, + { + "name": "deviceChannel", + "baseName": "deviceChannel", + "type": "string" + }, + { + "name": "deviceRenderOptions", + "baseName": "deviceRenderOptions", + "type": "DeviceRenderOptions" + }, + { + "name": "homePhone", + "baseName": "homePhone", + "type": "Phone" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantName", + "baseName": "merchantName", + "type": "string" + }, + { + "name": "messageVersion", + "baseName": "messageVersion", + "type": "string" + }, + { + "name": "mobilePhone", + "baseName": "mobilePhone", + "type": "Phone" + }, + { + "name": "notificationURL", + "baseName": "notificationURL", + "type": "string" + }, + { + "name": "payTokenInd", + "baseName": "payTokenInd", + "type": "boolean" + }, + { + "name": "paymentAuthenticationUseCase", + "baseName": "paymentAuthenticationUseCase", + "type": "string" + }, + { + "name": "purchaseInstalData", + "baseName": "purchaseInstalData", + "type": "string" + }, + { + "name": "recurringExpiry", + "baseName": "recurringExpiry", + "type": "string" + }, + { + "name": "recurringFrequency", + "baseName": "recurringFrequency", + "type": "string" + }, + { + "name": "sdkAppID", + "baseName": "sdkAppID", + "type": "string" + }, + { + "name": "sdkEncData", + "baseName": "sdkEncData", + "type": "string" + }, + { + "name": "sdkEphemPubKey", + "baseName": "sdkEphemPubKey", + "type": "SDKEphemPubKey" + }, + { + "name": "sdkMaxTimeout", + "baseName": "sdkMaxTimeout", + "type": "number" + }, + { + "name": "sdkReferenceNumber", + "baseName": "sdkReferenceNumber", + "type": "string" + }, + { + "name": "sdkTransID", + "baseName": "sdkTransID", + "type": "string" + }, + { + "name": "sdkVersion", + "baseName": "sdkVersion", + "type": "string" + }, + { + "name": "threeDSCompInd", + "baseName": "threeDSCompInd", + "type": "string" + }, + { + "name": "threeDSRequestorAuthenticationInd", + "baseName": "threeDSRequestorAuthenticationInd", + "type": "string" + }, + { + "name": "threeDSRequestorAuthenticationInfo", + "baseName": "threeDSRequestorAuthenticationInfo", + "type": "ThreeDSRequestorAuthenticationInfo" + }, + { + "name": "threeDSRequestorChallengeInd", + "baseName": "threeDSRequestorChallengeInd", + "type": "ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum" + }, + { + "name": "threeDSRequestorID", + "baseName": "threeDSRequestorID", + "type": "string" + }, + { + "name": "threeDSRequestorName", + "baseName": "threeDSRequestorName", + "type": "string" + }, + { + "name": "threeDSRequestorPriorAuthenticationInfo", + "baseName": "threeDSRequestorPriorAuthenticationInfo", + "type": "ThreeDSRequestorPriorAuthenticationInfo" + }, + { + "name": "threeDSRequestorURL", + "baseName": "threeDSRequestorURL", + "type": "string" + }, + { + "name": "transType", + "baseName": "transType", + "type": "ThreeDS2RequestData.TransTypeEnum" + }, + { + "name": "transactionType", + "baseName": "transactionType", + "type": "ThreeDS2RequestData.TransactionTypeEnum" + }, + { + "name": "whiteListStatus", + "baseName": "whiteListStatus", + "type": "string" + }, + { + "name": "workPhone", + "baseName": "workPhone", + "type": "Phone" + } ]; + + static getAttributeTypeMap() { + return ThreeDS2RequestData.attributeTypeMap; + } } export namespace ThreeDS2RequestData { diff --git a/src/typings/checkout/threeDS2ResponseData.ts b/src/typings/checkout/threeDS2ResponseData.ts index f454267..f704a94 100644 --- a/src/typings/checkout/threeDS2ResponseData.ts +++ b/src/typings/checkout/threeDS2ResponseData.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ThreeDS2ResponseData { 'acsChallengeMandated'?: string; 'acsOperatorID'?: string; @@ -46,5 +28,108 @@ export class ThreeDS2ResponseData { 'threeDSServerTransID'?: string; 'transStatus'?: string; 'transStatusReason'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acsChallengeMandated", + "baseName": "acsChallengeMandated", + "type": "string" + }, + { + "name": "acsOperatorID", + "baseName": "acsOperatorID", + "type": "string" + }, + { + "name": "acsReferenceNumber", + "baseName": "acsReferenceNumber", + "type": "string" + }, + { + "name": "acsSignedContent", + "baseName": "acsSignedContent", + "type": "string" + }, + { + "name": "acsTransID", + "baseName": "acsTransID", + "type": "string" + }, + { + "name": "acsURL", + "baseName": "acsURL", + "type": "string" + }, + { + "name": "authenticationType", + "baseName": "authenticationType", + "type": "string" + }, + { + "name": "cardHolderInfo", + "baseName": "cardHolderInfo", + "type": "string" + }, + { + "name": "cavvAlgorithm", + "baseName": "cavvAlgorithm", + "type": "string" + }, + { + "name": "challengeIndicator", + "baseName": "challengeIndicator", + "type": "string" + }, + { + "name": "dsReferenceNumber", + "baseName": "dsReferenceNumber", + "type": "string" + }, + { + "name": "dsTransID", + "baseName": "dsTransID", + "type": "string" + }, + { + "name": "exemptionIndicator", + "baseName": "exemptionIndicator", + "type": "string" + }, + { + "name": "messageVersion", + "baseName": "messageVersion", + "type": "string" + }, + { + "name": "riskScore", + "baseName": "riskScore", + "type": "string" + }, + { + "name": "sdkEphemPubKey", + "baseName": "sdkEphemPubKey", + "type": "string" + }, + { + "name": "threeDSServerTransID", + "baseName": "threeDSServerTransID", + "type": "string" + }, + { + "name": "transStatus", + "baseName": "transStatus", + "type": "string" + }, + { + "name": "transStatusReason", + "baseName": "transStatusReason", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDS2ResponseData.attributeTypeMap; + } } diff --git a/src/typings/checkout/threeDS2Result.ts b/src/typings/checkout/threeDS2Result.ts index 6815aa2..a385401 100644 --- a/src/typings/checkout/threeDS2Result.ts +++ b/src/typings/checkout/threeDS2Result.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ThreeDS2Result { /** * The `authenticationValue` value as defined in the 3D Secure 2 specification. @@ -83,6 +65,84 @@ export class ThreeDS2Result { * The `whiteListStatus` value as defined in the 3D Secure 2 specification. */ 'whiteListStatus'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "authenticationValue", + "baseName": "authenticationValue", + "type": "string" + }, + { + "name": "cavvAlgorithm", + "baseName": "cavvAlgorithm", + "type": "string" + }, + { + "name": "challengeCancel", + "baseName": "challengeCancel", + "type": "ThreeDS2Result.ChallengeCancelEnum" + }, + { + "name": "challengeIndicator", + "baseName": "challengeIndicator", + "type": "ThreeDS2Result.ChallengeIndicatorEnum" + }, + { + "name": "dsTransID", + "baseName": "dsTransID", + "type": "string" + }, + { + "name": "eci", + "baseName": "eci", + "type": "string" + }, + { + "name": "exemptionIndicator", + "baseName": "exemptionIndicator", + "type": "ThreeDS2Result.ExemptionIndicatorEnum" + }, + { + "name": "messageVersion", + "baseName": "messageVersion", + "type": "string" + }, + { + "name": "riskScore", + "baseName": "riskScore", + "type": "string" + }, + { + "name": "threeDSServerTransID", + "baseName": "threeDSServerTransID", + "type": "string" + }, + { + "name": "timestamp", + "baseName": "timestamp", + "type": "string" + }, + { + "name": "transStatus", + "baseName": "transStatus", + "type": "string" + }, + { + "name": "transStatusReason", + "baseName": "transStatusReason", + "type": "string" + }, + { + "name": "whiteListStatus", + "baseName": "whiteListStatus", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDS2Result.attributeTypeMap; + } } export namespace ThreeDS2Result { diff --git a/src/typings/checkout/threeDSRequestData.ts b/src/typings/checkout/threeDSRequestData.ts index b9f5b25..ce72cc1 100644 --- a/src/typings/checkout/threeDSRequestData.ts +++ b/src/typings/checkout/threeDSRequestData.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ThreeDSRequestData { /** * Indicates if [native 3D Secure authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be used when available. Possible values: * **preferred**: Use native 3D Secure authentication when available. @@ -35,6 +17,24 @@ export class ThreeDSRequestData { * The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0** */ 'threeDSVersion'?: ThreeDSRequestData.ThreeDSVersionEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "nativeThreeDS", + "baseName": "nativeThreeDS", + "type": "ThreeDSRequestData.NativeThreeDSEnum" + }, + { + "name": "threeDSVersion", + "baseName": "threeDSVersion", + "type": "ThreeDSRequestData.ThreeDSVersionEnum" + } ]; + + static getAttributeTypeMap() { + return ThreeDSRequestData.attributeTypeMap; + } } export namespace ThreeDSRequestData { diff --git a/src/typings/checkout/threeDSRequestorAuthenticationInfo.ts b/src/typings/checkout/threeDSRequestorAuthenticationInfo.ts index c7019b1..bac9c9f 100644 --- a/src/typings/checkout/threeDSRequestorAuthenticationInfo.ts +++ b/src/typings/checkout/threeDSRequestorAuthenticationInfo.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ThreeDSRequestorAuthenticationInfo { /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. @@ -39,6 +21,29 @@ export class ThreeDSRequestorAuthenticationInfo { * Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM */ 'threeDSReqAuthTimestamp'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "threeDSReqAuthData", + "baseName": "threeDSReqAuthData", + "type": "string" + }, + { + "name": "threeDSReqAuthMethod", + "baseName": "threeDSReqAuthMethod", + "type": "ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum" + }, + { + "name": "threeDSReqAuthTimestamp", + "baseName": "threeDSReqAuthTimestamp", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDSRequestorAuthenticationInfo.attributeTypeMap; + } } export namespace ThreeDSRequestorAuthenticationInfo { diff --git a/src/typings/checkout/threeDSRequestorPriorAuthenticationInfo.ts b/src/typings/checkout/threeDSRequestorPriorAuthenticationInfo.ts index 139db88..9aa25bf 100644 --- a/src/typings/checkout/threeDSRequestorPriorAuthenticationInfo.ts +++ b/src/typings/checkout/threeDSRequestorPriorAuthenticationInfo.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ThreeDSRequestorPriorAuthenticationInfo { /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. @@ -43,6 +25,34 @@ export class ThreeDSRequestorPriorAuthenticationInfo { * This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters. */ 'threeDSReqPriorRef'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "threeDSReqPriorAuthData", + "baseName": "threeDSReqPriorAuthData", + "type": "string" + }, + { + "name": "threeDSReqPriorAuthMethod", + "baseName": "threeDSReqPriorAuthMethod", + "type": "ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum" + }, + { + "name": "threeDSReqPriorAuthTimestamp", + "baseName": "threeDSReqPriorAuthTimestamp", + "type": "string" + }, + { + "name": "threeDSReqPriorRef", + "baseName": "threeDSReqPriorRef", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDSRequestorPriorAuthenticationInfo.attributeTypeMap; + } } export namespace ThreeDSRequestorPriorAuthenticationInfo { diff --git a/src/typings/checkout/threeDSecureData.ts b/src/typings/checkout/threeDSecureData.ts index 22ba1a0..ecad4b8 100644 --- a/src/typings/checkout/threeDSecureData.ts +++ b/src/typings/checkout/threeDSecureData.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ThreeDSecureData { /** * In 3D Secure 1, the authentication response if the shopper was redirected. In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. @@ -75,6 +57,74 @@ export class ThreeDSecureData { * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). */ 'xid'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "authenticationResponse", + "baseName": "authenticationResponse", + "type": "ThreeDSecureData.AuthenticationResponseEnum" + }, + { + "name": "cavv", + "baseName": "cavv", + "type": "string" + }, + { + "name": "cavvAlgorithm", + "baseName": "cavvAlgorithm", + "type": "string" + }, + { + "name": "challengeCancel", + "baseName": "challengeCancel", + "type": "ThreeDSecureData.ChallengeCancelEnum" + }, + { + "name": "directoryResponse", + "baseName": "directoryResponse", + "type": "ThreeDSecureData.DirectoryResponseEnum" + }, + { + "name": "dsTransID", + "baseName": "dsTransID", + "type": "string" + }, + { + "name": "eci", + "baseName": "eci", + "type": "string" + }, + { + "name": "riskScore", + "baseName": "riskScore", + "type": "string" + }, + { + "name": "threeDSVersion", + "baseName": "threeDSVersion", + "type": "string" + }, + { + "name": "tokenAuthenticationVerificationValue", + "baseName": "tokenAuthenticationVerificationValue", + "type": "string" + }, + { + "name": "transStatusReason", + "baseName": "transStatusReason", + "type": "string" + }, + { + "name": "xid", + "baseName": "xid", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDSecureData.attributeTypeMap; + } } export namespace ThreeDSecureData { diff --git a/src/typings/checkout/updatePaymentLinkRequest.ts b/src/typings/checkout/updatePaymentLinkRequest.ts index 62a206c..985eab3 100644 --- a/src/typings/checkout/updatePaymentLinkRequest.ts +++ b/src/typings/checkout/updatePaymentLinkRequest.ts @@ -1,36 +1,31 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class UpdatePaymentLinkRequest { /** * Status of the payment link. Possible values: * **expired** */ 'status': UpdatePaymentLinkRequest.StatusEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "status", + "baseName": "status", + "type": "UpdatePaymentLinkRequest.StatusEnum" + } ]; + + static getAttributeTypeMap() { + return UpdatePaymentLinkRequest.attributeTypeMap; + } } export namespace UpdatePaymentLinkRequest { diff --git a/src/typings/checkout/upiCollectDetails.ts b/src/typings/checkout/upiCollectDetails.ts index 73353ff..bed01e4 100644 --- a/src/typings/checkout/upiCollectDetails.ts +++ b/src/typings/checkout/upiCollectDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class UpiCollectDetails { /** * The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper. @@ -51,6 +33,44 @@ export class UpiCollectDetails { * The virtual payment address for UPI. */ 'virtualPaymentAddress'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "billingSequenceNumber", + "baseName": "billingSequenceNumber", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "shopperNotificationReference", + "baseName": "shopperNotificationReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "UpiCollectDetails.TypeEnum" + }, + { + "name": "virtualPaymentAddress", + "baseName": "virtualPaymentAddress", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return UpiCollectDetails.attributeTypeMap; + } } export namespace UpiCollectDetails { diff --git a/src/typings/checkout/upiIntentDetails.ts b/src/typings/checkout/upiIntentDetails.ts index 4bc395e..17a65b9 100644 --- a/src/typings/checkout/upiIntentDetails.ts +++ b/src/typings/checkout/upiIntentDetails.ts @@ -1,36 +1,31 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class UpiIntentDetails { /** * **upi_intent** */ 'type': UpiIntentDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "UpiIntentDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return UpiIntentDetails.attributeTypeMap; + } } export namespace UpiIntentDetails { diff --git a/src/typings/checkout/vippsDetails.ts b/src/typings/checkout/vippsDetails.ts index bd4456e..77c0c5b 100644 --- a/src/typings/checkout/vippsDetails.ts +++ b/src/typings/checkout/vippsDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class VippsDetails { /** * This is the `recurringDetailReference` returned in the response when you created the token. @@ -40,6 +22,34 @@ export class VippsDetails { * **vipps** */ 'type'?: VippsDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "VippsDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return VippsDetails.attributeTypeMap; + } } export namespace VippsDetails { diff --git a/src/typings/checkout/visaCheckoutDetails.ts b/src/typings/checkout/visaCheckoutDetails.ts index 11fc1be..812b599 100644 --- a/src/typings/checkout/visaCheckoutDetails.ts +++ b/src/typings/checkout/visaCheckoutDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class VisaCheckoutDetails { /** * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. @@ -39,6 +21,29 @@ export class VisaCheckoutDetails { * The Visa Click to Pay Call ID value. When your shopper selects a payment and/or a shipping address from Visa Click to Pay, you will receive a Visa Click to Pay Call ID. */ 'visaCheckoutCallId': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "fundingSource", + "baseName": "fundingSource", + "type": "VisaCheckoutDetails.FundingSourceEnum" + }, + { + "name": "type", + "baseName": "type", + "type": "VisaCheckoutDetails.TypeEnum" + }, + { + "name": "visaCheckoutCallId", + "baseName": "visaCheckoutCallId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return VisaCheckoutDetails.attributeTypeMap; + } } export namespace VisaCheckoutDetails { diff --git a/src/typings/checkout/weChatPayDetails.ts b/src/typings/checkout/weChatPayDetails.ts index 929f0a2..14da3eb 100644 --- a/src/typings/checkout/weChatPayDetails.ts +++ b/src/typings/checkout/weChatPayDetails.ts @@ -1,36 +1,31 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class WeChatPayDetails { /** * **wechatpay** */ 'type'?: WeChatPayDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "WeChatPayDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return WeChatPayDetails.attributeTypeMap; + } } export namespace WeChatPayDetails { diff --git a/src/typings/checkout/weChatPayMiniProgramDetails.ts b/src/typings/checkout/weChatPayMiniProgramDetails.ts index 4b43db1..6c3f825 100644 --- a/src/typings/checkout/weChatPayMiniProgramDetails.ts +++ b/src/typings/checkout/weChatPayMiniProgramDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class WeChatPayMiniProgramDetails { 'appId'?: string; 'openid'?: string; @@ -33,6 +15,29 @@ export class WeChatPayMiniProgramDetails { * **wechatpayMiniProgram** */ 'type'?: WeChatPayMiniProgramDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "appId", + "baseName": "appId", + "type": "string" + }, + { + "name": "openid", + "baseName": "openid", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "WeChatPayMiniProgramDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return WeChatPayMiniProgramDetails.attributeTypeMap; + } } export namespace WeChatPayMiniProgramDetails { diff --git a/src/typings/checkout/zipDetails.ts b/src/typings/checkout/zipDetails.ts index 7d479ee..58a50f5 100644 --- a/src/typings/checkout/zipDetails.ts +++ b/src/typings/checkout/zipDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ZipDetails { /** * Set this to **true** if the shopper would like to pick up and collect their order, instead of having the goods delivered to them. @@ -43,6 +25,34 @@ export class ZipDetails { * **zip** */ 'type'?: ZipDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "clickAndCollect", + "baseName": "clickAndCollect", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "ZipDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return ZipDetails.attributeTypeMap; + } } export namespace ZipDetails { diff --git a/src/typings/storedValue/amount.ts b/src/typings/storedValue/amount.ts new file mode 100644 index 0000000..397a5d4 --- /dev/null +++ b/src/typings/storedValue/amount.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v46 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Amount { + /** + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + */ + 'currency': string; + /** + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + */ + 'value': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "currency", + "baseName": "currency", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return Amount.attributeTypeMap; + } +} + diff --git a/src/typings/storedValue/models.ts b/src/typings/storedValue/models.ts new file mode 100644 index 0000000..e8fbab3 --- /dev/null +++ b/src/typings/storedValue/models.ts @@ -0,0 +1,199 @@ +/* + * The version of the OpenAPI document: v46 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export * from './amount'; +export * from './serviceError'; +export * from './storedValueBalanceCheckRequest'; +export * from './storedValueBalanceCheckResponse'; +export * from './storedValueBalanceMergeRequest'; +export * from './storedValueBalanceMergeResponse'; +export * from './storedValueIssueRequest'; +export * from './storedValueIssueResponse'; +export * from './storedValueLoadRequest'; +export * from './storedValueLoadResponse'; +export * from './storedValueStatusChangeRequest'; +export * from './storedValueStatusChangeResponse'; +export * from './storedValueVoidRequest'; +export * from './storedValueVoidResponse'; + + +import { Amount } from './amount'; +import { ServiceError } from './serviceError'; +import { StoredValueBalanceCheckRequest } from './storedValueBalanceCheckRequest'; +import { StoredValueBalanceCheckResponse } from './storedValueBalanceCheckResponse'; +import { StoredValueBalanceMergeRequest } from './storedValueBalanceMergeRequest'; +import { StoredValueBalanceMergeResponse } from './storedValueBalanceMergeResponse'; +import { StoredValueIssueRequest } from './storedValueIssueRequest'; +import { StoredValueIssueResponse } from './storedValueIssueResponse'; +import { StoredValueLoadRequest } from './storedValueLoadRequest'; +import { StoredValueLoadResponse } from './storedValueLoadResponse'; +import { StoredValueStatusChangeRequest } from './storedValueStatusChangeRequest'; +import { StoredValueStatusChangeResponse } from './storedValueStatusChangeResponse'; +import { StoredValueVoidRequest } from './storedValueVoidRequest'; +import { StoredValueVoidResponse } from './storedValueVoidResponse'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "StoredValueBalanceCheckRequest.ShopperInteractionEnum": StoredValueBalanceCheckRequest.ShopperInteractionEnum, + "StoredValueBalanceCheckResponse.ResultCodeEnum": StoredValueBalanceCheckResponse.ResultCodeEnum, + "StoredValueBalanceMergeRequest.ShopperInteractionEnum": StoredValueBalanceMergeRequest.ShopperInteractionEnum, + "StoredValueBalanceMergeResponse.ResultCodeEnum": StoredValueBalanceMergeResponse.ResultCodeEnum, + "StoredValueIssueRequest.ShopperInteractionEnum": StoredValueIssueRequest.ShopperInteractionEnum, + "StoredValueIssueResponse.ResultCodeEnum": StoredValueIssueResponse.ResultCodeEnum, + "StoredValueLoadRequest.LoadTypeEnum": StoredValueLoadRequest.LoadTypeEnum, + "StoredValueLoadRequest.ShopperInteractionEnum": StoredValueLoadRequest.ShopperInteractionEnum, + "StoredValueLoadResponse.ResultCodeEnum": StoredValueLoadResponse.ResultCodeEnum, + "StoredValueStatusChangeRequest.ShopperInteractionEnum": StoredValueStatusChangeRequest.ShopperInteractionEnum, + "StoredValueStatusChangeRequest.StatusEnum": StoredValueStatusChangeRequest.StatusEnum, + "StoredValueStatusChangeResponse.ResultCodeEnum": StoredValueStatusChangeResponse.ResultCodeEnum, + "StoredValueVoidResponse.ResultCodeEnum": StoredValueVoidResponse.ResultCodeEnum, +} + +let typeMap: {[index: string]: any} = { + "Amount": Amount, + "ServiceError": ServiceError, + "StoredValueBalanceCheckRequest": StoredValueBalanceCheckRequest, + "StoredValueBalanceCheckResponse": StoredValueBalanceCheckResponse, + "StoredValueBalanceMergeRequest": StoredValueBalanceMergeRequest, + "StoredValueBalanceMergeResponse": StoredValueBalanceMergeResponse, + "StoredValueIssueRequest": StoredValueIssueRequest, + "StoredValueIssueResponse": StoredValueIssueResponse, + "StoredValueLoadRequest": StoredValueLoadRequest, + "StoredValueLoadResponse": StoredValueLoadResponse, + "StoredValueStatusChangeRequest": StoredValueStatusChangeRequest, + "StoredValueStatusChangeResponse": StoredValueStatusChangeResponse, + "StoredValueVoidRequest": StoredValueVoidRequest, + "StoredValueVoidResponse": StoredValueVoidResponse, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/storedValue/serviceError.ts b/src/typings/storedValue/serviceError.ts new file mode 100644 index 0000000..be1dffb --- /dev/null +++ b/src/typings/storedValue/serviceError.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v46 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ServiceError { + /** + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Account** > **API URLs**. + */ + 'additionalData'?: { [key: string]: string; }; + /** + * The error code mapped to the error message. + */ + 'errorCode'?: string; + /** + * The category of the error. + */ + 'errorType'?: string; + /** + * A short explanation of the issue. + */ + 'message'?: string; + /** + * The PSP reference of the payment. + */ + 'pspReference'?: string; + /** + * The HTTP response status. + */ + 'status'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "errorCode", + "baseName": "errorCode", + "type": "string" + }, + { + "name": "errorType", + "baseName": "errorType", + "type": "string" + }, + { + "name": "message", + "baseName": "message", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return ServiceError.attributeTypeMap; + } +} + diff --git a/src/typings/storedValue/storedValueBalanceCheckRequest.ts b/src/typings/storedValue/storedValueBalanceCheckRequest.ts new file mode 100644 index 0000000..63cec0c --- /dev/null +++ b/src/typings/storedValue/storedValueBalanceCheckRequest.ts @@ -0,0 +1,93 @@ +/* + * The version of the OpenAPI document: v46 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class StoredValueBalanceCheckRequest { + 'amount'?: Amount; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * The collection that contains the type of the payment method and its specific information if available + */ + 'paymentMethod': { [key: string]: string; }; + 'recurringDetailReference'?: string; + /** + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + */ + 'reference': string; + /** + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + */ + 'shopperInteraction'?: StoredValueBalanceCheckRequest.ShopperInteractionEnum; + 'shopperReference'?: string; + /** + * The physical store, for which this payment is processed. + */ + 'store'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "{ [key: string]: string; }" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "StoredValueBalanceCheckRequest.ShopperInteractionEnum" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredValueBalanceCheckRequest.attributeTypeMap; + } +} + +export namespace StoredValueBalanceCheckRequest { + export enum ShopperInteractionEnum { + Ecommerce = 'Ecommerce', + ContAuth = 'ContAuth', + Moto = 'Moto', + Pos = 'POS' + } +} diff --git a/src/typings/storedValue/storedValueBalanceCheckResponse.ts b/src/typings/storedValue/storedValueBalanceCheckResponse.ts new file mode 100644 index 0000000..d8ed5bb --- /dev/null +++ b/src/typings/storedValue/storedValueBalanceCheckResponse.ts @@ -0,0 +1,72 @@ +/* + * The version of the OpenAPI document: v46 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class StoredValueBalanceCheckResponse { + 'currentBalance'?: Amount; + /** + * Adyen\'s 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + */ + 'pspReference'?: string; + /** + * If the transaction is refused or an error occurs, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + */ + 'refusalReason'?: string; + /** + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + */ + 'resultCode'?: StoredValueBalanceCheckResponse.ResultCodeEnum; + /** + * Raw refusal reason received from the third party, where available + */ + 'thirdPartyRefusalReason'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "currentBalance", + "baseName": "currentBalance", + "type": "Amount" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "StoredValueBalanceCheckResponse.ResultCodeEnum" + }, + { + "name": "thirdPartyRefusalReason", + "baseName": "thirdPartyRefusalReason", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredValueBalanceCheckResponse.attributeTypeMap; + } +} + +export namespace StoredValueBalanceCheckResponse { + export enum ResultCodeEnum { + Success = 'Success', + Refused = 'Refused', + Error = 'Error', + NotEnoughBalance = 'NotEnoughBalance' + } +} diff --git a/src/typings/storedValue/storedValueBalanceMergeRequest.ts b/src/typings/storedValue/storedValueBalanceMergeRequest.ts new file mode 100644 index 0000000..9310132 --- /dev/null +++ b/src/typings/storedValue/storedValueBalanceMergeRequest.ts @@ -0,0 +1,102 @@ +/* + * The version of the OpenAPI document: v46 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class StoredValueBalanceMergeRequest { + 'amount'?: Amount; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * The collection that contains the type of the payment method and its specific information if available + */ + 'paymentMethod': { [key: string]: string; }; + 'recurringDetailReference'?: string; + /** + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + */ + 'reference': string; + /** + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + */ + 'shopperInteraction'?: StoredValueBalanceMergeRequest.ShopperInteractionEnum; + 'shopperReference'?: string; + /** + * The collection that contains the source payment method and its specific information if available. Note that type should not be included since it is inferred from the (target) payment method + */ + 'sourcePaymentMethod': { [key: string]: string; }; + /** + * The physical store, for which this payment is processed. + */ + 'store'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "{ [key: string]: string; }" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "StoredValueBalanceMergeRequest.ShopperInteractionEnum" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "sourcePaymentMethod", + "baseName": "sourcePaymentMethod", + "type": "{ [key: string]: string; }" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredValueBalanceMergeRequest.attributeTypeMap; + } +} + +export namespace StoredValueBalanceMergeRequest { + export enum ShopperInteractionEnum { + Ecommerce = 'Ecommerce', + ContAuth = 'ContAuth', + Moto = 'Moto', + Pos = 'POS' + } +} diff --git a/src/typings/storedValue/storedValueBalanceMergeResponse.ts b/src/typings/storedValue/storedValueBalanceMergeResponse.ts new file mode 100644 index 0000000..7bf283b --- /dev/null +++ b/src/typings/storedValue/storedValueBalanceMergeResponse.ts @@ -0,0 +1,81 @@ +/* + * The version of the OpenAPI document: v46 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class StoredValueBalanceMergeResponse { + /** + * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + */ + 'authCode'?: string; + 'currentBalance'?: Amount; + /** + * Adyen\'s 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + */ + 'pspReference'?: string; + /** + * If the transaction is refused or an error occurs, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + */ + 'refusalReason'?: string; + /** + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + */ + 'resultCode'?: StoredValueBalanceMergeResponse.ResultCodeEnum; + /** + * Raw refusal reason received from the third party, where available + */ + 'thirdPartyRefusalReason'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "authCode", + "baseName": "authCode", + "type": "string" + }, + { + "name": "currentBalance", + "baseName": "currentBalance", + "type": "Amount" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "StoredValueBalanceMergeResponse.ResultCodeEnum" + }, + { + "name": "thirdPartyRefusalReason", + "baseName": "thirdPartyRefusalReason", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredValueBalanceMergeResponse.attributeTypeMap; + } +} + +export namespace StoredValueBalanceMergeResponse { + export enum ResultCodeEnum { + Success = 'Success', + Refused = 'Refused', + Error = 'Error', + NotEnoughBalance = 'NotEnoughBalance' + } +} diff --git a/src/typings/storedValue/storedValueIssueRequest.ts b/src/typings/storedValue/storedValueIssueRequest.ts new file mode 100644 index 0000000..587457b --- /dev/null +++ b/src/typings/storedValue/storedValueIssueRequest.ts @@ -0,0 +1,93 @@ +/* + * The version of the OpenAPI document: v46 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class StoredValueIssueRequest { + 'amount'?: Amount; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * The collection that contains the type of the payment method and its specific information if available + */ + 'paymentMethod': { [key: string]: string; }; + 'recurringDetailReference'?: string; + /** + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + */ + 'reference': string; + /** + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + */ + 'shopperInteraction'?: StoredValueIssueRequest.ShopperInteractionEnum; + 'shopperReference'?: string; + /** + * The physical store, for which this payment is processed. + */ + 'store'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "{ [key: string]: string; }" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "StoredValueIssueRequest.ShopperInteractionEnum" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredValueIssueRequest.attributeTypeMap; + } +} + +export namespace StoredValueIssueRequest { + export enum ShopperInteractionEnum { + Ecommerce = 'Ecommerce', + ContAuth = 'ContAuth', + Moto = 'Moto', + Pos = 'POS' + } +} diff --git a/src/typings/storedValue/storedValueIssueResponse.ts b/src/typings/storedValue/storedValueIssueResponse.ts new file mode 100644 index 0000000..0c7f341 --- /dev/null +++ b/src/typings/storedValue/storedValueIssueResponse.ts @@ -0,0 +1,90 @@ +/* + * The version of the OpenAPI document: v46 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class StoredValueIssueResponse { + /** + * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + */ + 'authCode'?: string; + 'currentBalance'?: Amount; + /** + * The collection that contains the type of the payment method and its specific information if available + */ + 'paymentMethod'?: { [key: string]: string; }; + /** + * Adyen\'s 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + */ + 'pspReference'?: string; + /** + * If the transaction is refused or an error occurs, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + */ + 'refusalReason'?: string; + /** + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + */ + 'resultCode'?: StoredValueIssueResponse.ResultCodeEnum; + /** + * Raw refusal reason received from the third party, where available + */ + 'thirdPartyRefusalReason'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "authCode", + "baseName": "authCode", + "type": "string" + }, + { + "name": "currentBalance", + "baseName": "currentBalance", + "type": "Amount" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "{ [key: string]: string; }" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "StoredValueIssueResponse.ResultCodeEnum" + }, + { + "name": "thirdPartyRefusalReason", + "baseName": "thirdPartyRefusalReason", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredValueIssueResponse.attributeTypeMap; + } +} + +export namespace StoredValueIssueResponse { + export enum ResultCodeEnum { + Success = 'Success', + Refused = 'Refused', + Error = 'Error', + NotEnoughBalance = 'NotEnoughBalance' + } +} diff --git a/src/typings/storedValue/storedValueLoadRequest.ts b/src/typings/storedValue/storedValueLoadRequest.ts new file mode 100644 index 0000000..608bbcc --- /dev/null +++ b/src/typings/storedValue/storedValueLoadRequest.ts @@ -0,0 +1,106 @@ +/* + * The version of the OpenAPI document: v46 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class StoredValueLoadRequest { + 'amount': Amount; + /** + * The type of load you are trying to do, when absent we default to \'Load\' + */ + 'loadType'?: StoredValueLoadRequest.LoadTypeEnum; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * The collection that contains the type of the payment method and its specific information if available + */ + 'paymentMethod': { [key: string]: string; }; + 'recurringDetailReference'?: string; + /** + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + */ + 'reference': string; + /** + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + */ + 'shopperInteraction'?: StoredValueLoadRequest.ShopperInteractionEnum; + 'shopperReference'?: string; + /** + * The physical store, for which this payment is processed. + */ + 'store'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "loadType", + "baseName": "loadType", + "type": "StoredValueLoadRequest.LoadTypeEnum" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "{ [key: string]: string; }" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "StoredValueLoadRequest.ShopperInteractionEnum" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredValueLoadRequest.attributeTypeMap; + } +} + +export namespace StoredValueLoadRequest { + export enum LoadTypeEnum { + MerchandiseReturn = 'merchandiseReturn', + Load = 'load' + } + export enum ShopperInteractionEnum { + Ecommerce = 'Ecommerce', + ContAuth = 'ContAuth', + Moto = 'Moto', + Pos = 'POS' + } +} diff --git a/src/typings/storedValue/storedValueLoadResponse.ts b/src/typings/storedValue/storedValueLoadResponse.ts new file mode 100644 index 0000000..c2e1160 --- /dev/null +++ b/src/typings/storedValue/storedValueLoadResponse.ts @@ -0,0 +1,81 @@ +/* + * The version of the OpenAPI document: v46 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class StoredValueLoadResponse { + /** + * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + */ + 'authCode'?: string; + 'currentBalance'?: Amount; + /** + * Adyen\'s 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + */ + 'pspReference'?: string; + /** + * If the transaction is refused or an error occurs, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + */ + 'refusalReason'?: string; + /** + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + */ + 'resultCode'?: StoredValueLoadResponse.ResultCodeEnum; + /** + * Raw refusal reason received from the third party, where available + */ + 'thirdPartyRefusalReason'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "authCode", + "baseName": "authCode", + "type": "string" + }, + { + "name": "currentBalance", + "baseName": "currentBalance", + "type": "Amount" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "StoredValueLoadResponse.ResultCodeEnum" + }, + { + "name": "thirdPartyRefusalReason", + "baseName": "thirdPartyRefusalReason", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredValueLoadResponse.attributeTypeMap; + } +} + +export namespace StoredValueLoadResponse { + export enum ResultCodeEnum { + Success = 'Success', + Refused = 'Refused', + Error = 'Error', + NotEnoughBalance = 'NotEnoughBalance' + } +} diff --git a/src/typings/storedValue/storedValueStatusChangeRequest.ts b/src/typings/storedValue/storedValueStatusChangeRequest.ts new file mode 100644 index 0000000..2205fe8 --- /dev/null +++ b/src/typings/storedValue/storedValueStatusChangeRequest.ts @@ -0,0 +1,106 @@ +/* + * The version of the OpenAPI document: v46 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class StoredValueStatusChangeRequest { + 'amount'?: Amount; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * The collection that contains the type of the payment method and its specific information if available + */ + 'paymentMethod': { [key: string]: string; }; + 'recurringDetailReference'?: string; + /** + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + */ + 'reference': string; + /** + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + */ + 'shopperInteraction'?: StoredValueStatusChangeRequest.ShopperInteractionEnum; + 'shopperReference'?: string; + /** + * The status you want to change to + */ + 'status': StoredValueStatusChangeRequest.StatusEnum; + /** + * The physical store, for which this payment is processed. + */ + 'store'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "{ [key: string]: string; }" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "StoredValueStatusChangeRequest.ShopperInteractionEnum" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "StoredValueStatusChangeRequest.StatusEnum" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredValueStatusChangeRequest.attributeTypeMap; + } +} + +export namespace StoredValueStatusChangeRequest { + export enum ShopperInteractionEnum { + Ecommerce = 'Ecommerce', + ContAuth = 'ContAuth', + Moto = 'Moto', + Pos = 'POS' + } + export enum StatusEnum { + Active = 'active', + Inactive = 'inactive' + } +} diff --git a/src/typings/storedValue/storedValueStatusChangeResponse.ts b/src/typings/storedValue/storedValueStatusChangeResponse.ts new file mode 100644 index 0000000..925f2e4 --- /dev/null +++ b/src/typings/storedValue/storedValueStatusChangeResponse.ts @@ -0,0 +1,81 @@ +/* + * The version of the OpenAPI document: v46 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class StoredValueStatusChangeResponse { + /** + * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + */ + 'authCode'?: string; + 'currentBalance'?: Amount; + /** + * Adyen\'s 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + */ + 'pspReference'?: string; + /** + * If the transaction is refused or an error occurs, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + */ + 'refusalReason'?: string; + /** + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + */ + 'resultCode'?: StoredValueStatusChangeResponse.ResultCodeEnum; + /** + * Raw refusal reason received from the third party, where available + */ + 'thirdPartyRefusalReason'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "authCode", + "baseName": "authCode", + "type": "string" + }, + { + "name": "currentBalance", + "baseName": "currentBalance", + "type": "Amount" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "StoredValueStatusChangeResponse.ResultCodeEnum" + }, + { + "name": "thirdPartyRefusalReason", + "baseName": "thirdPartyRefusalReason", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredValueStatusChangeResponse.attributeTypeMap; + } +} + +export namespace StoredValueStatusChangeResponse { + export enum ResultCodeEnum { + Success = 'Success', + Refused = 'Refused', + Error = 'Error', + NotEnoughBalance = 'NotEnoughBalance' + } +} diff --git a/src/typings/storedValue/storedValueVoidRequest.ts b/src/typings/storedValue/storedValueVoidRequest.ts new file mode 100644 index 0000000..8d641f1 --- /dev/null +++ b/src/typings/storedValue/storedValueVoidRequest.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v46 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class StoredValueVoidRequest { + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * The original pspReference of the payment to modify. + */ + 'originalReference': string; + /** + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + */ + 'reference'?: string; + /** + * The physical store, for which this payment is processed. + */ + 'store'?: string; + /** + * The reference of the tender. + */ + 'tenderReference'?: string; + /** + * The unique ID of a POS terminal. + */ + 'uniqueTerminalId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "originalReference", + "baseName": "originalReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + }, + { + "name": "tenderReference", + "baseName": "tenderReference", + "type": "string" + }, + { + "name": "uniqueTerminalId", + "baseName": "uniqueTerminalId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredValueVoidRequest.attributeTypeMap; + } +} + diff --git a/src/typings/storedValue/storedValueVoidResponse.ts b/src/typings/storedValue/storedValueVoidResponse.ts new file mode 100644 index 0000000..45aa26a --- /dev/null +++ b/src/typings/storedValue/storedValueVoidResponse.ts @@ -0,0 +1,72 @@ +/* + * The version of the OpenAPI document: v46 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class StoredValueVoidResponse { + 'currentBalance'?: Amount; + /** + * Adyen\'s 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + */ + 'pspReference'?: string; + /** + * If the transaction is refused or an error occurs, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + */ + 'refusalReason'?: string; + /** + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + */ + 'resultCode'?: StoredValueVoidResponse.ResultCodeEnum; + /** + * Raw refusal reason received from the third party, where available + */ + 'thirdPartyRefusalReason'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "currentBalance", + "baseName": "currentBalance", + "type": "Amount" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "StoredValueVoidResponse.ResultCodeEnum" + }, + { + "name": "thirdPartyRefusalReason", + "baseName": "thirdPartyRefusalReason", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredValueVoidResponse.attributeTypeMap; + } +} + +export namespace StoredValueVoidResponse { + export enum ResultCodeEnum { + Success = 'Success', + Refused = 'Refused', + Error = 'Error', + NotEnoughBalance = 'NotEnoughBalance' + } +}