From e76c16e5406d07b3432d6d5bca75809fae6d88e8 Mon Sep 17 00:00:00 2001 From: AdyenAutomationBot <38424300+AdyenAutomationBot@users.noreply.github.com> Date: Thu, 18 Aug 2022 11:18:42 +0200 Subject: [PATCH] [create-pull-request] automated change (#958) Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com> --- .../splitAmount.ts => binlookup/amount.ts} | 12 +- .../phone.ts => binlookup/binDetail.ts} | 23 +- src/typings/binlookup/cardBin.ts | 111 +++++ .../binlookup/costEstimateAssumptions.ts | 48 +++ src/typings/binlookup/costEstimateRequest.ts | 111 +++++ src/typings/binlookup/costEstimateResponse.ts | 62 +++ src/typings/binlookup/dSPublicKeyDetail.ts | 57 +++ src/typings/binlookup/merchantDetails.ts | 48 +++ src/typings/binlookup/models.ts | 186 +++++++++ src/typings/binlookup/recurring.ts | 77 ++++ src/typings/binlookup/serviceError.ts | 75 ++++ .../binlookup/threeDS2CardRangeDetail.ts | 75 ++++ .../binlookup/threeDSAvailabilityRequest.ts | 75 ++++ .../binlookup/threeDSAvailabilityResponse.ts | 66 +++ .../checkout/additionalData3DSecure.ts | 18 + .../checkout/additionalDataOpenInvoice.ts | 18 + .../checkout/applePaySessionResponse.ts | 30 ++ .../checkoutSessionInstallmentOption.ts | 54 +++ .../checkout/createApplePaySessionRequest.ts | 48 +++ .../checkout/createCheckoutSessionRequest.ts | 12 +- .../checkout/createCheckoutSessionResponse.ts | 12 +- src/typings/checkout/models.ts | 12 + src/typings/checkout/paymentDetails.ts | 8 +- src/typings/checkout/responsePaymentMethod.ts | 2 +- src/typings/checkout/threeDSRequestData.ts | 16 + .../payments/additionalData3DSecure.ts | 18 + .../payments/additionalDataOpenInvoice.ts | 18 + src/typings/payments/models.ts | 1 + src/typings/payouts/accountInfo.ts | 232 ----------- src/typings/payouts/acctInfo.ts | 208 ---------- src/typings/payouts/additionalData3DSecure.ts | 66 --- src/typings/payouts/additionalDataAirline.ts | 273 ------------ .../payouts/additionalDataCarRental.ts | 228 ---------- src/typings/payouts/additionalDataCommon.ts | 153 ------- src/typings/payouts/additionalDataLevel23.ts | 174 -------- src/typings/payouts/additionalDataLodging.ts | 174 -------- .../payouts/additionalDataOpenInvoice.ts | 165 -------- src/typings/payouts/additionalDataOpi.ts | 30 -- src/typings/payouts/additionalDataPayout.ts | 88 ---- src/typings/payouts/additionalDataRatepay.ts | 93 ----- src/typings/payouts/additionalDataRetry.ts | 48 --- src/typings/payouts/additionalDataRisk.ts | 210 ---------- .../payouts/additionalDataRiskStandalone.ts | 156 ------- .../payouts/additionalDataSubMerchant.ts | 111 ----- .../additionalDataTemporaryServices.ts | 102 ----- src/typings/payouts/additionalDataWallets.ts | 75 ---- src/typings/payouts/applicationInfo.ts | 61 --- src/typings/payouts/browserInfo.ts | 102 ----- src/typings/payouts/commonField.ts | 39 -- src/typings/payouts/deviceRenderOptions.ts | 53 --- src/typings/payouts/externalPlatform.ts | 48 --- src/typings/payouts/forexQuote.ts | 118 ------ src/typings/payouts/installments.ts | 45 -- src/typings/payouts/mandate.ts | 114 ----- src/typings/payouts/merchantDevice.ts | 48 --- src/typings/payouts/merchantRiskIndicator.ts | 162 -------- src/typings/payouts/models.ts | 147 ------- src/typings/payouts/sDKEphemPubKey.ts | 57 --- .../payouts/shopperInteractionDevice.ts | 48 --- src/typings/payouts/split.ts | 76 ---- src/typings/payouts/threeDS2RequestData.ts | 392 ------------------ .../threeDSRequestorAuthenticationInfo.ts | 58 --- ...threeDSRequestorPriorAuthenticationInfo.ts | 65 --- src/typings/payouts/threeDSecureData.ts | 156 ------- 64 files changed, 1267 insertions(+), 4401 deletions(-) rename src/typings/{payouts/splitAmount.ts => binlookup/amount.ts} (67%) rename src/typings/{payouts/phone.ts => binlookup/binDetail.ts} (51%) create mode 100644 src/typings/binlookup/cardBin.ts create mode 100644 src/typings/binlookup/costEstimateAssumptions.ts create mode 100644 src/typings/binlookup/costEstimateRequest.ts create mode 100644 src/typings/binlookup/costEstimateResponse.ts create mode 100644 src/typings/binlookup/dSPublicKeyDetail.ts create mode 100644 src/typings/binlookup/merchantDetails.ts create mode 100644 src/typings/binlookup/models.ts create mode 100644 src/typings/binlookup/recurring.ts create mode 100644 src/typings/binlookup/serviceError.ts create mode 100644 src/typings/binlookup/threeDS2CardRangeDetail.ts create mode 100644 src/typings/binlookup/threeDSAvailabilityRequest.ts create mode 100644 src/typings/binlookup/threeDSAvailabilityResponse.ts create mode 100644 src/typings/checkout/applePaySessionResponse.ts create mode 100644 src/typings/checkout/checkoutSessionInstallmentOption.ts create mode 100644 src/typings/checkout/createApplePaySessionRequest.ts delete mode 100644 src/typings/payouts/accountInfo.ts delete mode 100644 src/typings/payouts/acctInfo.ts delete mode 100644 src/typings/payouts/additionalData3DSecure.ts delete mode 100644 src/typings/payouts/additionalDataAirline.ts delete mode 100644 src/typings/payouts/additionalDataCarRental.ts delete mode 100644 src/typings/payouts/additionalDataCommon.ts delete mode 100644 src/typings/payouts/additionalDataLevel23.ts delete mode 100644 src/typings/payouts/additionalDataLodging.ts delete mode 100644 src/typings/payouts/additionalDataOpenInvoice.ts delete mode 100644 src/typings/payouts/additionalDataOpi.ts delete mode 100644 src/typings/payouts/additionalDataPayout.ts delete mode 100644 src/typings/payouts/additionalDataRatepay.ts delete mode 100644 src/typings/payouts/additionalDataRetry.ts delete mode 100644 src/typings/payouts/additionalDataRisk.ts delete mode 100644 src/typings/payouts/additionalDataRiskStandalone.ts delete mode 100644 src/typings/payouts/additionalDataSubMerchant.ts delete mode 100644 src/typings/payouts/additionalDataTemporaryServices.ts delete mode 100644 src/typings/payouts/additionalDataWallets.ts delete mode 100644 src/typings/payouts/applicationInfo.ts delete mode 100644 src/typings/payouts/browserInfo.ts delete mode 100644 src/typings/payouts/commonField.ts delete mode 100644 src/typings/payouts/deviceRenderOptions.ts delete mode 100644 src/typings/payouts/externalPlatform.ts delete mode 100644 src/typings/payouts/forexQuote.ts delete mode 100644 src/typings/payouts/installments.ts delete mode 100644 src/typings/payouts/mandate.ts delete mode 100644 src/typings/payouts/merchantDevice.ts delete mode 100644 src/typings/payouts/merchantRiskIndicator.ts delete mode 100644 src/typings/payouts/sDKEphemPubKey.ts delete mode 100644 src/typings/payouts/shopperInteractionDevice.ts delete mode 100644 src/typings/payouts/split.ts delete mode 100644 src/typings/payouts/threeDS2RequestData.ts delete mode 100644 src/typings/payouts/threeDSRequestorAuthenticationInfo.ts delete mode 100644 src/typings/payouts/threeDSRequestorPriorAuthenticationInfo.ts delete mode 100644 src/typings/payouts/threeDSecureData.ts diff --git a/src/typings/payouts/splitAmount.ts b/src/typings/binlookup/amount.ts similarity index 67% rename from src/typings/payouts/splitAmount.ts rename to src/typings/binlookup/amount.ts index c1ababd..4339f80 100644 --- a/src/typings/payouts/splitAmount.ts +++ b/src/typings/binlookup/amount.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v68 + * The version of the OpenAPI document: v52 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -8,13 +8,13 @@ */ -export class SplitAmount { +export class Amount { /** - * 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. + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ - 'currency'?: string; + 'currency': string; /** - * The amount in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ 'value': number; @@ -33,7 +33,7 @@ export class SplitAmount { } ]; static getAttributeTypeMap() { - return SplitAmount.attributeTypeMap; + return Amount.attributeTypeMap; } } diff --git a/src/typings/payouts/phone.ts b/src/typings/binlookup/binDetail.ts similarity index 51% rename from src/typings/payouts/phone.ts rename to src/typings/binlookup/binDetail.ts index aab0bae..f3cbd7f 100644 --- a/src/typings/payouts/phone.ts +++ b/src/typings/binlookup/binDetail.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v68 + * The version of the OpenAPI document: v52 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -8,32 +8,23 @@ */ -export class Phone { +export class BinDetail { /** - * Country code. Length: 1–3 characters. + * The country where the card was issued. */ - 'cc'?: string; - /** - * Subscriber number. Maximum length: 15 characters. - */ - 'subscriber'?: string; + 'issuerCountry'?: 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", + "name": "issuerCountry", + "baseName": "issuerCountry", "type": "string" } ]; static getAttributeTypeMap() { - return Phone.attributeTypeMap; + return BinDetail.attributeTypeMap; } } diff --git a/src/typings/binlookup/cardBin.ts b/src/typings/binlookup/cardBin.ts new file mode 100644 index 0000000..c24a6e1 --- /dev/null +++ b/src/typings/binlookup/cardBin.ts @@ -0,0 +1,111 @@ +/* + * The version of the OpenAPI document: v52 + * 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 CardBin { + /** + * The first 6 digit of the card number. Enable this field via merchant account settings. + */ + 'bin'?: string; + /** + * If true, it indicates a commercial card. Enable this field via merchant account settings. + */ + 'commercial'?: boolean; + /** + * The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * DEFERRED_DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this field via merchant account settings. + */ + 'fundingSource'?: string; + /** + * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". + */ + 'fundsAvailability'?: string; + /** + * The issuing bank of the card. + */ + 'issuingBank'?: string; + /** + * The country where the card was issued from. + */ + 'issuingCountry'?: string; + /** + * The currency of the card. + */ + 'issuingCurrency'?: string; + /** + * The payment method associated with the card (e.g. visa, mc, or amex). + */ + 'paymentMethod'?: string; + /** + * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". + */ + 'payoutEligible'?: string; + /** + * The last four digits of the card number. + */ + 'summary'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "bin", + "baseName": "bin", + "type": "string" + }, + { + "name": "commercial", + "baseName": "commercial", + "type": "boolean" + }, + { + "name": "fundingSource", + "baseName": "fundingSource", + "type": "string" + }, + { + "name": "fundsAvailability", + "baseName": "fundsAvailability", + "type": "string" + }, + { + "name": "issuingBank", + "baseName": "issuingBank", + "type": "string" + }, + { + "name": "issuingCountry", + "baseName": "issuingCountry", + "type": "string" + }, + { + "name": "issuingCurrency", + "baseName": "issuingCurrency", + "type": "string" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "string" + }, + { + "name": "payoutEligible", + "baseName": "payoutEligible", + "type": "string" + }, + { + "name": "summary", + "baseName": "summary", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CardBin.attributeTypeMap; + } +} + diff --git a/src/typings/binlookup/costEstimateAssumptions.ts b/src/typings/binlookup/costEstimateAssumptions.ts new file mode 100644 index 0000000..29a1b9a --- /dev/null +++ b/src/typings/binlookup/costEstimateAssumptions.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v52 + * 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 CostEstimateAssumptions { + /** + * If true, the cardholder is expected to successfully authorise via 3D Secure. + */ + 'assume3DSecureAuthenticated'?: boolean; + /** + * If true, the transaction is expected to have valid Level 3 data. + */ + 'assumeLevel3Data'?: boolean; + /** + * If not zero, the number of installments. + */ + 'installments'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "assume3DSecureAuthenticated", + "baseName": "assume3DSecureAuthenticated", + "type": "boolean" + }, + { + "name": "assumeLevel3Data", + "baseName": "assumeLevel3Data", + "type": "boolean" + }, + { + "name": "installments", + "baseName": "installments", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return CostEstimateAssumptions.attributeTypeMap; + } +} + diff --git a/src/typings/binlookup/costEstimateRequest.ts b/src/typings/binlookup/costEstimateRequest.ts new file mode 100644 index 0000000..ddde57d --- /dev/null +++ b/src/typings/binlookup/costEstimateRequest.ts @@ -0,0 +1,111 @@ +/* + * The version of the OpenAPI document: v52 + * 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'; +import { CostEstimateAssumptions } from './costEstimateAssumptions'; +import { MerchantDetails } from './merchantDetails'; +import { Recurring } from './recurring'; + +export class CostEstimateRequest { + 'amount': Amount; + 'assumptions'?: CostEstimateAssumptions; + /** + * The card number (4-19 characters) for PCI compliant use cases. Do not use any separators. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. + */ + 'cardNumber'?: string; + /** + * Encrypted data that stores card information for non PCI-compliant use cases. The encrypted data must be created with the Checkout Card Component or Secured Fields Component, and must contain the `encryptedCardNumber` field. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. + */ + 'encryptedCardNumber'?: string; + /** + * The merchant account identifier you want to process the (transaction) request with. + */ + 'merchantAccount': string; + 'merchantDetails'?: MerchantDetails; + 'recurring'?: Recurring; + /** + * The `recurringDetailReference` you want to use for this cost estimate. The value `LATEST` can be used to select the most recently stored recurring detail. + */ + 'selectedRecurringDetailReference'?: 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 card holder 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'?: CostEstimateRequest.ShopperInteractionEnum; + /** + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. + */ + 'shopperReference'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "assumptions", + "baseName": "assumptions", + "type": "CostEstimateAssumptions" + }, + { + "name": "cardNumber", + "baseName": "cardNumber", + "type": "string" + }, + { + "name": "encryptedCardNumber", + "baseName": "encryptedCardNumber", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "merchantDetails", + "baseName": "merchantDetails", + "type": "MerchantDetails" + }, + { + "name": "recurring", + "baseName": "recurring", + "type": "Recurring" + }, + { + "name": "selectedRecurringDetailReference", + "baseName": "selectedRecurringDetailReference", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "CostEstimateRequest.ShopperInteractionEnum" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CostEstimateRequest.attributeTypeMap; + } +} + +export namespace CostEstimateRequest { + export enum ShopperInteractionEnum { + Ecommerce = 'Ecommerce', + ContAuth = 'ContAuth', + Moto = 'Moto', + Pos = 'POS' + } +} diff --git a/src/typings/binlookup/costEstimateResponse.ts b/src/typings/binlookup/costEstimateResponse.ts new file mode 100644 index 0000000..9262513 --- /dev/null +++ b/src/typings/binlookup/costEstimateResponse.ts @@ -0,0 +1,62 @@ +/* + * The version of the OpenAPI document: v52 + * 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'; +import { CardBin } from './cardBin'; + +export class CostEstimateResponse { + 'cardBin'?: CardBin; + 'costEstimateAmount'?: Amount; + /** + * Adyen\'s 16-character reference associated with the request. + */ + 'costEstimateReference'?: string; + /** + * The result of the cost estimation. + */ + 'resultCode'?: string; + /** + * Indicates the way the charges can be passed on to the cardholder. The following values are possible: * `ZERO` - the charges are not allowed to pass on * `PASSTHROUGH` - the charges can be passed on * `UNLIMITED` - there is no limit on how much surcharge is passed on + */ + 'surchargeType'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cardBin", + "baseName": "cardBin", + "type": "CardBin" + }, + { + "name": "costEstimateAmount", + "baseName": "costEstimateAmount", + "type": "Amount" + }, + { + "name": "costEstimateReference", + "baseName": "costEstimateReference", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + }, + { + "name": "surchargeType", + "baseName": "surchargeType", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CostEstimateResponse.attributeTypeMap; + } +} + diff --git a/src/typings/binlookup/dSPublicKeyDetail.ts b/src/typings/binlookup/dSPublicKeyDetail.ts new file mode 100644 index 0000000..13aa725 --- /dev/null +++ b/src/typings/binlookup/dSPublicKeyDetail.ts @@ -0,0 +1,57 @@ +/* + * The version of the OpenAPI document: v52 + * 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 DSPublicKeyDetail { + /** + * Card brand. + */ + 'brand'?: string; + /** + * Directory Server (DS) identifier. + */ + 'directoryServerId'?: string; + /** + * The version of the mobile 3D Secure 2 SDK. For the possible values, refer to the versions in [Adyen 3DS2 Android](https://github.com/Adyen/adyen-3ds2-android/releases) and [Adyen 3DS2 iOS](https://github.com/Adyen/adyen-3ds2-ios/releases). + */ + 'fromSDKVersion'?: string; + /** + * Public key. The 3D Secure 2 SDK encrypts the device information by using the DS public key. + */ + 'publicKey'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "brand", + "baseName": "brand", + "type": "string" + }, + { + "name": "directoryServerId", + "baseName": "directoryServerId", + "type": "string" + }, + { + "name": "fromSDKVersion", + "baseName": "fromSDKVersion", + "type": "string" + }, + { + "name": "publicKey", + "baseName": "publicKey", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return DSPublicKeyDetail.attributeTypeMap; + } +} + diff --git a/src/typings/binlookup/merchantDetails.ts b/src/typings/binlookup/merchantDetails.ts new file mode 100644 index 0000000..8f9cea3 --- /dev/null +++ b/src/typings/binlookup/merchantDetails.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v52 + * 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 MerchantDetails { + /** + * 2-letter ISO 3166 country code of the card acceptor location. > This parameter is required for the merchants who don\'t use Adyen as the payment authorisation gateway. + */ + 'countryCode'?: string; + /** + * If true, indicates that the merchant is enrolled in 3D Secure for the card network. + */ + 'enrolledIn3DSecure'?: boolean; + /** + * The merchant category code (MCC) is a four-digit number which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. The list of MCCs can be found [here](https://en.wikipedia.org/wiki/Merchant_category_code). + */ + 'mcc'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "enrolledIn3DSecure", + "baseName": "enrolledIn3DSecure", + "type": "boolean" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return MerchantDetails.attributeTypeMap; + } +} + diff --git a/src/typings/binlookup/models.ts b/src/typings/binlookup/models.ts new file mode 100644 index 0000000..95e7dd5 --- /dev/null +++ b/src/typings/binlookup/models.ts @@ -0,0 +1,186 @@ +/* + * The version of the OpenAPI document: v52 + * 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 './binDetail'; +export * from './cardBin'; +export * from './costEstimateAssumptions'; +export * from './costEstimateRequest'; +export * from './costEstimateResponse'; +export * from './dSPublicKeyDetail'; +export * from './merchantDetails'; +export * from './recurring'; +export * from './serviceError'; +export * from './threeDS2CardRangeDetail'; +export * from './threeDSAvailabilityRequest'; +export * from './threeDSAvailabilityResponse'; + + +import { Amount } from './amount'; +import { BinDetail } from './binDetail'; +import { CardBin } from './cardBin'; +import { CostEstimateAssumptions } from './costEstimateAssumptions'; +import { CostEstimateRequest } from './costEstimateRequest'; +import { CostEstimateResponse } from './costEstimateResponse'; +import { DSPublicKeyDetail } from './dSPublicKeyDetail'; +import { MerchantDetails } from './merchantDetails'; +import { Recurring } from './recurring'; +import { ServiceError } from './serviceError'; +import { ThreeDS2CardRangeDetail } from './threeDS2CardRangeDetail'; +import { ThreeDSAvailabilityRequest } from './threeDSAvailabilityRequest'; +import { ThreeDSAvailabilityResponse } from './threeDSAvailabilityResponse'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "CostEstimateRequest.ShopperInteractionEnum": CostEstimateRequest.ShopperInteractionEnum, + "Recurring.ContractEnum": Recurring.ContractEnum, + "Recurring.TokenServiceEnum": Recurring.TokenServiceEnum, +} + +let typeMap: {[index: string]: any} = { + "Amount": Amount, + "BinDetail": BinDetail, + "CardBin": CardBin, + "CostEstimateAssumptions": CostEstimateAssumptions, + "CostEstimateRequest": CostEstimateRequest, + "CostEstimateResponse": CostEstimateResponse, + "DSPublicKeyDetail": DSPublicKeyDetail, + "MerchantDetails": MerchantDetails, + "Recurring": Recurring, + "ServiceError": ServiceError, + "ThreeDS2CardRangeDetail": ThreeDS2CardRangeDetail, + "ThreeDSAvailabilityRequest": ThreeDSAvailabilityRequest, + "ThreeDSAvailabilityResponse": ThreeDSAvailabilityResponse, +} + +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/binlookup/recurring.ts b/src/typings/binlookup/recurring.ts new file mode 100644 index 0000000..406a031 --- /dev/null +++ b/src/typings/binlookup/recurring.ts @@ -0,0 +1,77 @@ +/* + * The version of the OpenAPI document: v52 + * 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 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). + */ + 'contract'?: Recurring.ContractEnum; + /** + * A descriptive name for this detail. + */ + 'recurringDetailName'?: string; + /** + * Date after which no further authorisations shall be performed. Only for 3D Secure 2. + */ + 'recurringExpiry'?: Date; + /** + * Minimum number of days between authorisations. Only for 3D Secure 2. + */ + 'recurringFrequency'?: string; + /** + * 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' + } + export enum TokenServiceEnum { + Visatokenservice = 'VISATOKENSERVICE', + Mctokenservice = 'MCTOKENSERVICE' + } +} diff --git a/src/typings/binlookup/serviceError.ts b/src/typings/binlookup/serviceError.ts new file mode 100644 index 0000000..ecd1397 --- /dev/null +++ b/src/typings/binlookup/serviceError.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v52 + * 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/binlookup/threeDS2CardRangeDetail.ts b/src/typings/binlookup/threeDS2CardRangeDetail.ts new file mode 100644 index 0000000..c87c470 --- /dev/null +++ b/src/typings/binlookup/threeDS2CardRangeDetail.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v52 + * 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 ThreeDS2CardRangeDetail { + /** + * Provides additional information to the 3DS Server. Possible values: - 01 (Authentication is available at ACS) - 02 (Attempts supported by ACS or DS) - 03 (Decoupled authentication supported) - 04 (Whitelisting supported) + */ + 'acsInfoInd'?: Array; + /** + * Card brand. + */ + 'brandCode'?: string; + /** + * BIN end range. + */ + 'endRange'?: string; + /** + * BIN start range. + */ + 'startRange'?: string; + /** + * 3D Secure protocol version. + */ + 'threeDS2Version'?: string; + /** + * In a 3D Secure 2 browser-based flow, this is the URL where you should send the device fingerprint to. + */ + 'threeDSMethodURL'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acsInfoInd", + "baseName": "acsInfoInd", + "type": "Array" + }, + { + "name": "brandCode", + "baseName": "brandCode", + "type": "string" + }, + { + "name": "endRange", + "baseName": "endRange", + "type": "string" + }, + { + "name": "startRange", + "baseName": "startRange", + "type": "string" + }, + { + "name": "threeDS2Version", + "baseName": "threeDS2Version", + "type": "string" + }, + { + "name": "threeDSMethodURL", + "baseName": "threeDSMethodURL", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDS2CardRangeDetail.attributeTypeMap; + } +} + diff --git a/src/typings/binlookup/threeDSAvailabilityRequest.ts b/src/typings/binlookup/threeDSAvailabilityRequest.ts new file mode 100644 index 0000000..5032c87 --- /dev/null +++ b/src/typings/binlookup/threeDSAvailabilityRequest.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v52 + * 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 ThreeDSAvailabilityRequest { + /** + * This field contains additional data, which may be required for a particular request. The `additionalData` object consists of entries, each of which includes the key and value. + */ + 'additionalData'?: { [key: string]: string; }; + /** + * List of brands. + */ + 'brands'?: Array; + /** + * Card number or BIN. + */ + 'cardNumber'?: string; + /** + * The merchant account identifier. + */ + 'merchantAccount': string; + /** + * A recurring detail reference corresponding to a card. + */ + 'recurringDetailReference'?: string; + /** + * The shopper\'s reference to uniquely identify this shopper (e.g. user ID or account ID). + */ + 'shopperReference'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "brands", + "baseName": "brands", + "type": "Array" + }, + { + "name": "cardNumber", + "baseName": "cardNumber", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDSAvailabilityRequest.attributeTypeMap; + } +} + diff --git a/src/typings/binlookup/threeDSAvailabilityResponse.ts b/src/typings/binlookup/threeDSAvailabilityResponse.ts new file mode 100644 index 0000000..257c09d --- /dev/null +++ b/src/typings/binlookup/threeDSAvailabilityResponse.ts @@ -0,0 +1,66 @@ +/* + * The version of the OpenAPI document: v52 + * 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 { BinDetail } from './binDetail'; +import { DSPublicKeyDetail } from './dSPublicKeyDetail'; +import { ThreeDS2CardRangeDetail } from './threeDS2CardRangeDetail'; + +export class ThreeDSAvailabilityResponse { + 'binDetails'?: BinDetail; + /** + * List of Directory Server (DS) public keys. + */ + 'dsPublicKeys'?: Array; + /** + * Indicator if 3D Secure 1 is supported. + */ + 'threeDS1Supported'?: boolean; + /** + * List of brand and card range pairs. + */ + 'threeDS2CardRangeDetails'?: Array; + /** + * Indicator if 3D Secure 2 is supported. + */ + 'threeDS2supported'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "binDetails", + "baseName": "binDetails", + "type": "BinDetail" + }, + { + "name": "dsPublicKeys", + "baseName": "dsPublicKeys", + "type": "Array" + }, + { + "name": "threeDS1Supported", + "baseName": "threeDS1Supported", + "type": "boolean" + }, + { + "name": "threeDS2CardRangeDetails", + "baseName": "threeDS2CardRangeDetails", + "type": "Array" + }, + { + "name": "threeDS2supported", + "baseName": "threeDS2supported", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return ThreeDSAvailabilityResponse.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/additionalData3DSecure.ts b/src/typings/checkout/additionalData3DSecure.ts index b88ea49..8c66ff0 100644 --- a/src/typings/checkout/additionalData3DSecure.ts +++ b/src/typings/checkout/additionalData3DSecure.ts @@ -14,6 +14,10 @@ export class AdditionalData3DSecure { */ 'allow3DS2'?: string; /** + * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + */ + 'challengeWindowSize'?: AdditionalData3DSecure.ChallengeWindowSizeEnum; + /** * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don\'t perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. */ 'executeThreeD'?: string; @@ -38,6 +42,11 @@ export class AdditionalData3DSecure { "baseName": "allow3DS2", "type": "string" }, + { + "name": "challengeWindowSize", + "baseName": "challengeWindowSize", + "type": "AdditionalData3DSecure.ChallengeWindowSizeEnum" + }, { "name": "executeThreeD", "baseName": "executeThreeD", @@ -64,3 +73,12 @@ export class AdditionalData3DSecure { } } +export namespace AdditionalData3DSecure { + export enum ChallengeWindowSizeEnum { + _01 = '01', + _02 = '02', + _03 = '03', + _04 = '04', + _05 = '05' + } +} diff --git a/src/typings/checkout/additionalDataOpenInvoice.ts b/src/typings/checkout/additionalDataOpenInvoice.ts index 956c40b..3e674d9 100644 --- a/src/typings/checkout/additionalDataOpenInvoice.ts +++ b/src/typings/checkout/additionalDataOpenInvoice.ts @@ -18,6 +18,14 @@ export class AdditionalDataOpenInvoice { */ 'openinvoicedataNumberOfLines'?: string; /** + * First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + */ + 'openinvoicedataRecipientFirstName'?: string; + /** + * Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + */ + 'openinvoicedataRecipientLastName'?: string; + /** * The three-character ISO currency code. */ 'openinvoicedataLineItemNrCurrencyCode'?: string; @@ -87,6 +95,16 @@ export class AdditionalDataOpenInvoice { "baseName": "openinvoicedata.numberOfLines", "type": "string" }, + { + "name": "openinvoicedataRecipientFirstName", + "baseName": "openinvoicedata.recipientFirstName", + "type": "string" + }, + { + "name": "openinvoicedataRecipientLastName", + "baseName": "openinvoicedata.recipientLastName", + "type": "string" + }, { "name": "openinvoicedataLineItemNrCurrencyCode", "baseName": "openinvoicedataLine[itemNr].currencyCode", diff --git a/src/typings/checkout/applePaySessionResponse.ts b/src/typings/checkout/applePaySessionResponse.ts new file mode 100644 index 0000000..ebf298e --- /dev/null +++ b/src/typings/checkout/applePaySessionResponse.ts @@ -0,0 +1,30 @@ +/* + * 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 class ApplePaySessionResponse { + /** + * Base64 encoded data you need to [complete the Apple Pay merchant vlaidation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). + */ + 'data': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "data", + "baseName": "data", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ApplePaySessionResponse.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/checkoutSessionInstallmentOption.ts b/src/typings/checkout/checkoutSessionInstallmentOption.ts new file mode 100644 index 0000000..74e44c0 --- /dev/null +++ b/src/typings/checkout/checkoutSessionInstallmentOption.ts @@ -0,0 +1,54 @@ +/* + * 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 class CheckoutSessionInstallmentOption { + /** + * Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving** + */ + 'plans'?: Array; + /** + * Preselected number of installments offered for this payment method. + */ + 'preselectedValue'?: number; + /** + * 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": "plans", + "baseName": "plans", + "type": "Array" + }, + { + "name": "preselectedValue", + "baseName": "preselectedValue", + "type": "number" + }, + { + "name": "values", + "baseName": "values", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return CheckoutSessionInstallmentOption.attributeTypeMap; + } +} + +export namespace CheckoutSessionInstallmentOption { + export enum PlansEnum { + Regular = 'regular', + Revolving = 'revolving' + } +} diff --git a/src/typings/checkout/createApplePaySessionRequest.ts b/src/typings/checkout/createApplePaySessionRequest.ts new file mode 100644 index 0000000..abc8144 --- /dev/null +++ b/src/typings/checkout/createApplePaySessionRequest.ts @@ -0,0 +1,48 @@ +/* + * 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 class CreateApplePaySessionRequest { + /** + * This is the name that your shoppers will see in the Apple Pay interface. The value returned as `configuration.merchantName` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. + */ + 'displayName': string; + /** + * The domain name you provided when you added Apple Pay in your Customer Area. This must match the `window.location.hostname` of the web shop. + */ + 'domainName': string; + /** + * Your merchant identifier registered with Apple Pay. Use the value of the `configuration.merchantId` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. + */ + 'merchantIdentifier': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "displayName", + "baseName": "displayName", + "type": "string" + }, + { + "name": "domainName", + "baseName": "domainName", + "type": "string" + }, + { + "name": "merchantIdentifier", + "baseName": "merchantIdentifier", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CreateApplePaySessionRequest.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/createCheckoutSessionRequest.ts b/src/typings/checkout/createCheckoutSessionRequest.ts index 0a873e7..07d8499 100644 --- a/src/typings/checkout/createCheckoutSessionRequest.ts +++ b/src/typings/checkout/createCheckoutSessionRequest.ts @@ -12,6 +12,7 @@ import { Address } from './address'; import { Amount } from './amount'; import { ApplicationInfo } from './applicationInfo'; import { AuthenticationData } from './authenticationData'; +import { CheckoutSessionInstallmentOption } from './checkoutSessionInstallmentOption'; import { Company } from './company'; import { LineItem } from './lineItem'; import { Mandate } from './mandate'; @@ -44,7 +45,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; @@ -78,6 +79,10 @@ export class CreateCheckoutSessionRequest { */ 'expiresAt'?: Date; /** + * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. + */ + 'installmentOptions'?: { [key: string]: CheckoutSessionInstallmentOption; }; + /** * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Zip. */ 'lineItems'?: Array; @@ -289,6 +294,11 @@ export class CreateCheckoutSessionRequest { "baseName": "expiresAt", "type": "Date" }, + { + "name": "installmentOptions", + "baseName": "installmentOptions", + "type": "{ [key: string]: CheckoutSessionInstallmentOption; }" + }, { "name": "lineItems", "baseName": "lineItems", diff --git a/src/typings/checkout/createCheckoutSessionResponse.ts b/src/typings/checkout/createCheckoutSessionResponse.ts index 76fb64b..e825341 100644 --- a/src/typings/checkout/createCheckoutSessionResponse.ts +++ b/src/typings/checkout/createCheckoutSessionResponse.ts @@ -12,6 +12,7 @@ import { Address } from './address'; import { Amount } from './amount'; import { ApplicationInfo } from './applicationInfo'; import { AuthenticationData } from './authenticationData'; +import { CheckoutSessionInstallmentOption } from './checkoutSessionInstallmentOption'; import { Company } from './company'; import { LineItem } from './lineItem'; import { Mandate } from './mandate'; @@ -44,7 +45,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; @@ -82,6 +83,10 @@ export class CreateCheckoutSessionResponse { */ 'id': string; /** + * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. + */ + 'installmentOptions'?: { [key: string]: CheckoutSessionInstallmentOption; }; + /** * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Zip. */ 'lineItems'?: Array; @@ -302,6 +307,11 @@ export class CreateCheckoutSessionResponse { "baseName": "id", "type": "string" }, + { + "name": "installmentOptions", + "baseName": "installmentOptions", + "type": "{ [key: string]: CheckoutSessionInstallmentOption; }" + }, { "name": "lineItems", "baseName": "lineItems", diff --git a/src/typings/checkout/models.ts b/src/typings/checkout/models.ts index f1e4ee7..ad79319 100644 --- a/src/typings/checkout/models.ts +++ b/src/typings/checkout/models.ts @@ -32,6 +32,7 @@ export * from './amazonPayDetails'; export * from './amount'; export * from './androidPayDetails'; export * from './applePayDetails'; +export * from './applePaySessionResponse'; export * from './applicationInfo'; export * from './authenticationData'; export * from './avs'; @@ -61,6 +62,7 @@ export * from './checkoutOrderResponse'; export * from './checkoutQrCodeAction'; export * from './checkoutRedirectAction'; export * from './checkoutSDKAction'; +export * from './checkoutSessionInstallmentOption'; export * from './checkoutThreeDS2Action'; export * from './checkoutUtilityRequest'; export * from './checkoutUtilityResponse'; @@ -68,6 +70,7 @@ export * from './checkoutVoucherAction'; export * from './commonField'; export * from './company'; export * from './configuration'; +export * from './createApplePaySessionRequest'; export * from './createCheckoutSessionRequest'; export * from './createCheckoutSessionResponse'; export * from './createPaymentAmountUpdateRequest'; @@ -202,6 +205,7 @@ import { AmazonPayDetails } from './amazonPayDetails'; import { Amount } from './amount'; import { AndroidPayDetails } from './androidPayDetails'; import { ApplePayDetails } from './applePayDetails'; +import { ApplePaySessionResponse } from './applePaySessionResponse'; import { ApplicationInfo } from './applicationInfo'; import { AuthenticationData } from './authenticationData'; import { Avs } from './avs'; @@ -231,6 +235,7 @@ import { CheckoutOrderResponse } from './checkoutOrderResponse'; import { CheckoutQrCodeAction } from './checkoutQrCodeAction'; import { CheckoutRedirectAction } from './checkoutRedirectAction'; import { CheckoutSDKAction } from './checkoutSDKAction'; +import { CheckoutSessionInstallmentOption } from './checkoutSessionInstallmentOption'; import { CheckoutThreeDS2Action } from './checkoutThreeDS2Action'; import { CheckoutUtilityRequest } from './checkoutUtilityRequest'; import { CheckoutUtilityResponse } from './checkoutUtilityResponse'; @@ -238,6 +243,7 @@ import { CheckoutVoucherAction } from './checkoutVoucherAction'; import { CommonField } from './commonField'; import { Company } from './company'; import { Configuration } from './configuration'; +import { CreateApplePaySessionRequest } from './createApplePaySessionRequest'; import { CreateCheckoutSessionRequest } from './createCheckoutSessionRequest'; import { CreateCheckoutSessionResponse } from './createCheckoutSessionResponse'; import { CreatePaymentAmountUpdateRequest } from './createPaymentAmountUpdateRequest'; @@ -374,6 +380,7 @@ let enumsMap: {[index: string]: any} = { "AcctInfo.ShipNameIndicatorEnum": AcctInfo.ShipNameIndicatorEnum, "AcctInfo.SuspiciousAccActivityEnum": AcctInfo.SuspiciousAccActivityEnum, "AchDetails.TypeEnum": AchDetails.TypeEnum, + "AdditionalData3DSecure.ChallengeWindowSizeEnum": AdditionalData3DSecure.ChallengeWindowSizeEnum, "AdditionalDataCommon.IndustryUsageEnum": AdditionalDataCommon.IndustryUsageEnum, "AfterpayDetails.TypeEnum": AfterpayDetails.TypeEnum, "AmazonPayDetails.TypeEnum": AmazonPayDetails.TypeEnum, @@ -400,6 +407,7 @@ let enumsMap: {[index: string]: any} = { "CheckoutQrCodeAction.TypeEnum": CheckoutQrCodeAction.TypeEnum, "CheckoutRedirectAction.TypeEnum": CheckoutRedirectAction.TypeEnum, "CheckoutSDKAction.TypeEnum": CheckoutSDKAction.TypeEnum, + "CheckoutSessionInstallmentOption.PlansEnum": CheckoutSessionInstallmentOption.PlansEnum, "CheckoutThreeDS2Action.TypeEnum": CheckoutThreeDS2Action.TypeEnum, "CheckoutVoucherAction.TypeEnum": CheckoutVoucherAction.TypeEnum, "Configuration.CardHolderNameEnum": Configuration.CardHolderNameEnum, @@ -497,6 +505,7 @@ let enumsMap: {[index: string]: any} = { "ThreeDS2Result.ChallengeCancelEnum": ThreeDS2Result.ChallengeCancelEnum, "ThreeDS2Result.ChallengeIndicatorEnum": ThreeDS2Result.ChallengeIndicatorEnum, "ThreeDS2Result.ExemptionIndicatorEnum": ThreeDS2Result.ExemptionIndicatorEnum, + "ThreeDSRequestData.ChallengeWindowSizeEnum": ThreeDSRequestData.ChallengeWindowSizeEnum, "ThreeDSRequestData.NativeThreeDSEnum": ThreeDSRequestData.NativeThreeDSEnum, "ThreeDSRequestData.ThreeDSVersionEnum": ThreeDSRequestData.ThreeDSVersionEnum, "ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum": ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum, @@ -540,6 +549,7 @@ let typeMap: {[index: string]: any} = { "Amount": Amount, "AndroidPayDetails": AndroidPayDetails, "ApplePayDetails": ApplePayDetails, + "ApplePaySessionResponse": ApplePaySessionResponse, "ApplicationInfo": ApplicationInfo, "AuthenticationData": AuthenticationData, "Avs": Avs, @@ -569,6 +579,7 @@ let typeMap: {[index: string]: any} = { "CheckoutQrCodeAction": CheckoutQrCodeAction, "CheckoutRedirectAction": CheckoutRedirectAction, "CheckoutSDKAction": CheckoutSDKAction, + "CheckoutSessionInstallmentOption": CheckoutSessionInstallmentOption, "CheckoutThreeDS2Action": CheckoutThreeDS2Action, "CheckoutUtilityRequest": CheckoutUtilityRequest, "CheckoutUtilityResponse": CheckoutUtilityResponse, @@ -576,6 +587,7 @@ let typeMap: {[index: string]: any} = { "CommonField": CommonField, "Company": Company, "Configuration": Configuration, + "CreateApplePaySessionRequest": CreateApplePaySessionRequest, "CreateCheckoutSessionRequest": CreateCheckoutSessionRequest, "CreateCheckoutSessionResponse": CreateCheckoutSessionResponse, "CreatePaymentAmountUpdateRequest": CreatePaymentAmountUpdateRequest, diff --git a/src/typings/checkout/paymentDetails.ts b/src/typings/checkout/paymentDetails.ts index 2d8cb16..44de03d 100644 --- a/src/typings/checkout/paymentDetails.ts +++ b/src/typings/checkout/paymentDetails.ts @@ -34,6 +34,7 @@ export namespace PaymentDetails { Multibanco = 'multibanco', BankTransferIban = 'bankTransfer_IBAN', Paybright = 'paybright', + Paynow = 'paynow', Affirm = 'affirm', AffirmPos = 'affirm_pos', Trustlyvector = 'trustlyvector', @@ -51,12 +52,14 @@ export namespace PaymentDetails { WechatpaySdk = 'wechatpaySDK', WechatpayQr = 'wechatpayQR', WechatpayWeb = 'wechatpayWeb', + MolpayBoost = 'molpay_boost', WalletIn = 'wallet_IN', PayuInCashcard = 'payu_IN_cashcard', PayuInNb = 'payu_IN_nb', UpiQr = 'upi_qr', Paytm = 'paytm', MolpayEbankingVn = 'molpay_ebanking_VN', + OnlineBankingPl = 'onlineBanking_PL', OpenbankingUk = 'openbanking_UK', EbankingFi = 'ebanking_FI', MolpayEbankingMy = 'molpay_ebanking_MY', @@ -66,6 +69,7 @@ export namespace PaymentDetails { Pix = 'pix', Walley = 'walley', WalleyB2b = 'walley_b2b', + Alma = 'alma', MolpayFpx = 'molpay_fpx', Konbini = 'konbini', DirectEbanking = 'directEbanking', @@ -110,10 +114,12 @@ export namespace PaymentDetails { Touchngo = 'touchngo', Maybank2uMae = 'maybank2u_mae', Duitnow = 'duitnow', + Promptpay = 'promptpay', TwintPos = 'twint_pos', AlipayHk = 'alipay_hk', AlipayHkWeb = 'alipay_hk_web', AlipayHkWap = 'alipay_hk_wap', - AlipayWap = 'alipay_wap' + AlipayWap = 'alipay_wap', + Balanceplatform = 'balanceplatform' } } diff --git a/src/typings/checkout/responsePaymentMethod.ts b/src/typings/checkout/responsePaymentMethod.ts index a2a8222..4128d0d 100644 --- a/src/typings/checkout/responsePaymentMethod.ts +++ b/src/typings/checkout/responsePaymentMethod.ts @@ -10,7 +10,7 @@ export class ResponsePaymentMethod { /** - * The card brand. Only returned for card payments. + * The payment method brand. */ 'brand'?: string; /** diff --git a/src/typings/checkout/threeDSRequestData.ts b/src/typings/checkout/threeDSRequestData.ts index ce72cc1..43fb42f 100644 --- a/src/typings/checkout/threeDSRequestData.ts +++ b/src/typings/checkout/threeDSRequestData.ts @@ -9,6 +9,10 @@ export class ThreeDSRequestData { + /** + * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + */ + 'challengeWindowSize'?: ThreeDSRequestData.ChallengeWindowSizeEnum; /** * 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. */ @@ -21,6 +25,11 @@ export class ThreeDSRequestData { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "challengeWindowSize", + "baseName": "challengeWindowSize", + "type": "ThreeDSRequestData.ChallengeWindowSizeEnum" + }, { "name": "nativeThreeDS", "baseName": "nativeThreeDS", @@ -38,6 +47,13 @@ export class ThreeDSRequestData { } export namespace ThreeDSRequestData { + export enum ChallengeWindowSizeEnum { + _01 = '01', + _02 = '02', + _03 = '03', + _04 = '04', + _05 = '05' + } export enum NativeThreeDSEnum { Preferred = 'preferred' } diff --git a/src/typings/payments/additionalData3DSecure.ts b/src/typings/payments/additionalData3DSecure.ts index ce337ba..9637062 100644 --- a/src/typings/payments/additionalData3DSecure.ts +++ b/src/typings/payments/additionalData3DSecure.ts @@ -14,6 +14,10 @@ export class AdditionalData3DSecure { */ 'allow3DS2'?: string; /** + * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + */ + 'challengeWindowSize'?: AdditionalData3DSecure.ChallengeWindowSizeEnum; + /** * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don\'t perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. */ 'executeThreeD'?: string; @@ -38,6 +42,11 @@ export class AdditionalData3DSecure { "baseName": "allow3DS2", "type": "string" }, + { + "name": "challengeWindowSize", + "baseName": "challengeWindowSize", + "type": "AdditionalData3DSecure.ChallengeWindowSizeEnum" + }, { "name": "executeThreeD", "baseName": "executeThreeD", @@ -64,3 +73,12 @@ export class AdditionalData3DSecure { } } +export namespace AdditionalData3DSecure { + export enum ChallengeWindowSizeEnum { + _01 = '01', + _02 = '02', + _03 = '03', + _04 = '04', + _05 = '05' + } +} diff --git a/src/typings/payments/additionalDataOpenInvoice.ts b/src/typings/payments/additionalDataOpenInvoice.ts index 1d0a766..1a6e5fd 100644 --- a/src/typings/payments/additionalDataOpenInvoice.ts +++ b/src/typings/payments/additionalDataOpenInvoice.ts @@ -18,6 +18,14 @@ export class AdditionalDataOpenInvoice { */ 'openinvoicedataNumberOfLines'?: string; /** + * First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + */ + 'openinvoicedataRecipientFirstName'?: string; + /** + * Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + */ + 'openinvoicedataRecipientLastName'?: string; + /** * The three-character ISO currency code. */ 'openinvoicedataLineItemNrCurrencyCode'?: string; @@ -87,6 +95,16 @@ export class AdditionalDataOpenInvoice { "baseName": "openinvoicedata.numberOfLines", "type": "string" }, + { + "name": "openinvoicedataRecipientFirstName", + "baseName": "openinvoicedata.recipientFirstName", + "type": "string" + }, + { + "name": "openinvoicedataRecipientLastName", + "baseName": "openinvoicedata.recipientLastName", + "type": "string" + }, { "name": "openinvoicedataLineItemNrCurrencyCode", "baseName": "openinvoicedataLine[itemNr].currencyCode", diff --git a/src/typings/payments/models.ts b/src/typings/payments/models.ts index 9dc30b1..42646cf 100644 --- a/src/typings/payments/models.ts +++ b/src/typings/payments/models.ts @@ -183,6 +183,7 @@ let enumsMap: {[index: string]: any} = { "AcctInfo.ShipAddressUsageIndEnum": AcctInfo.ShipAddressUsageIndEnum, "AcctInfo.ShipNameIndicatorEnum": AcctInfo.ShipNameIndicatorEnum, "AcctInfo.SuspiciousAccActivityEnum": AcctInfo.SuspiciousAccActivityEnum, + "AdditionalData3DSecure.ChallengeWindowSizeEnum": AdditionalData3DSecure.ChallengeWindowSizeEnum, "AdditionalDataCommon.IndustryUsageEnum": AdditionalDataCommon.IndustryUsageEnum, "DeviceRenderOptions.SdkInterfaceEnum": DeviceRenderOptions.SdkInterfaceEnum, "DeviceRenderOptions.SdkUiTypeEnum": DeviceRenderOptions.SdkUiTypeEnum, diff --git a/src/typings/payouts/accountInfo.ts b/src/typings/payouts/accountInfo.ts deleted file mode 100644 index 5bc957b..0000000 --- a/src/typings/payouts/accountInfo.ts +++ /dev/null @@ -1,232 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 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 - */ - 'accountAgeIndicator'?: AccountInfo.AccountAgeIndicatorEnum; - /** - * Date when the shopper\'s account was last changed. - */ - 'accountChangeDate'?: Date; - /** - * Indicator for the length of time since the shopper\'s account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days - */ - 'accountChangeIndicator'?: AccountInfo.AccountChangeIndicatorEnum; - /** - * Date when the shopper\'s account was created. - */ - 'accountCreationDate'?: Date; - /** - * Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit - */ - 'accountType'?: AccountInfo.AccountTypeEnum; - /** - * Number of attempts the shopper tried to add a card to their account in the last day. - */ - 'addCardAttemptsDay'?: number; - /** - * Date the selected delivery address was first used. - */ - 'deliveryAddressUsageDate'?: Date; - /** - * Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days - */ - 'deliveryAddressUsageIndicator'?: AccountInfo.DeliveryAddressUsageIndicatorEnum; - /** - * Shopper\'s home phone number (including the country code). - */ - 'homePhone'?: string; - /** - * Shopper\'s mobile phone number (including the country code). - */ - 'mobilePhone'?: string; - /** - * Date when the shopper last changed their password. - */ - 'passwordChangeDate'?: Date; - /** - * Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days - */ - 'passwordChangeIndicator'?: AccountInfo.PasswordChangeIndicatorEnum; - /** - * Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. - */ - 'pastTransactionsDay'?: number; - /** - * Number of all transactions (successful and abandoned) from this shopper in the past year. - */ - 'pastTransactionsYear'?: number; - /** - * Date this payment method was added to the shopper\'s account. - */ - 'paymentAccountAge'?: Date; - /** - * Indicator for the length of time since this payment method was added to this shopper\'s account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days - */ - 'paymentAccountIndicator'?: AccountInfo.PaymentAccountIndicatorEnum; - /** - * Number of successful purchases in the last six months. - */ - 'purchasesLast6Months'?: number; - /** - * Whether suspicious activity was recorded on this account. - */ - 'suspiciousActivity'?: boolean; - /** - * 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 { - export enum AccountAgeIndicatorEnum { - NotApplicable = 'notApplicable', - ThisTransaction = 'thisTransaction', - LessThan30Days = 'lessThan30Days', - From30To60Days = 'from30To60Days', - MoreThan60Days = 'moreThan60Days' - } - export enum AccountChangeIndicatorEnum { - ThisTransaction = 'thisTransaction', - LessThan30Days = 'lessThan30Days', - From30To60Days = 'from30To60Days', - MoreThan60Days = 'moreThan60Days' - } - export enum AccountTypeEnum { - NotApplicable = 'notApplicable', - Credit = 'credit', - Debit = 'debit' - } - export enum DeliveryAddressUsageIndicatorEnum { - ThisTransaction = 'thisTransaction', - LessThan30Days = 'lessThan30Days', - From30To60Days = 'from30To60Days', - MoreThan60Days = 'moreThan60Days' - } - export enum PasswordChangeIndicatorEnum { - NotApplicable = 'notApplicable', - ThisTransaction = 'thisTransaction', - LessThan30Days = 'lessThan30Days', - From30To60Days = 'from30To60Days', - MoreThan60Days = 'moreThan60Days' - } - export enum PaymentAccountIndicatorEnum { - NotApplicable = 'notApplicable', - ThisTransaction = 'thisTransaction', - LessThan30Days = 'lessThan30Days', - From30To60Days = 'from30To60Days', - MoreThan60Days = 'moreThan60Days' - } -} diff --git a/src/typings/payouts/acctInfo.ts b/src/typings/payouts/acctInfo.ts deleted file mode 100644 index 82a9271..0000000 --- a/src/typings/payouts/acctInfo.ts +++ /dev/null @@ -1,208 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 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 - */ - 'chAccAgeInd'?: AcctInfo.ChAccAgeIndEnum; - /** - * Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** - */ - 'chAccChange'?: string; - /** - * Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days - */ - 'chAccChangeInd'?: AcctInfo.ChAccChangeIndEnum; - /** - * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. Format: **YYYYMMDD** - */ - 'chAccPwChange'?: string; - /** - * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days - */ - 'chAccPwChangeInd'?: AcctInfo.ChAccPwChangeIndEnum; - /** - * Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** - */ - 'chAccString'?: string; - /** - * Number of purchases with this cardholder account during the previous six months. Max length: 4 characters. - */ - 'nbPurchaseAccount'?: string; - /** - * String that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Format: **YYYYMMDD** - */ - 'paymentAccAge'?: string; - /** - * Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days - */ - 'paymentAccInd'?: AcctInfo.PaymentAccIndEnum; - /** - * Number of Add Card attempts in the last 24 hours. Max length: 3 characters. - */ - 'provisionAttemptsDay'?: string; - /** - * String when the shipping address used for this transaction was first used with the 3DS Requestor. Format: **YYYYMMDD** - */ - 'shipAddressUsage'?: string; - /** - * Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days - */ - 'shipAddressUsageInd'?: AcctInfo.ShipAddressUsageIndEnum; - /** - * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name - */ - 'shipNameIndicator'?: AcctInfo.ShipNameIndicatorEnum; - /** - * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed - */ - 'suspiciousAccActivity'?: AcctInfo.SuspiciousAccActivityEnum; - /** - * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. - */ - 'txnActivityDay'?: string; - /** - * 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 { - export enum ChAccAgeIndEnum { - _01 = '01', - _02 = '02', - _03 = '03', - _04 = '04', - _05 = '05' - } - export enum ChAccChangeIndEnum { - _01 = '01', - _02 = '02', - _03 = '03', - _04 = '04' - } - export enum ChAccPwChangeIndEnum { - _01 = '01', - _02 = '02', - _03 = '03', - _04 = '04', - _05 = '05' - } - export enum PaymentAccIndEnum { - _01 = '01', - _02 = '02', - _03 = '03', - _04 = '04', - _05 = '05' - } - export enum ShipAddressUsageIndEnum { - _01 = '01', - _02 = '02', - _03 = '03', - _04 = '04' - } - export enum ShipNameIndicatorEnum { - _01 = '01', - _02 = '02' - } - export enum SuspiciousAccActivityEnum { - _01 = '01', - _02 = '02' - } -} diff --git a/src/typings/payouts/additionalData3DSecure.ts b/src/typings/payouts/additionalData3DSecure.ts deleted file mode 100644 index ce337ba..0000000 --- a/src/typings/payouts/additionalData3DSecure.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 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. - */ - 'allow3DS2'?: string; - /** - * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don\'t perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. - */ - 'executeThreeD'?: string; - /** - * In case of Secure+, this field must be set to **CUPSecurePlus**. - */ - 'mpiImplementationType'?: string; - /** - * Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** - */ - 'scaExemption'?: string; - /** - * 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/payouts/additionalDataAirline.ts b/src/typings/payouts/additionalDataAirline.ts deleted file mode 100644 index edcb9bf..0000000 --- a/src/typings/payouts/additionalDataAirline.ts +++ /dev/null @@ -1,273 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 AdditionalDataAirline { - /** - * Reference number for the invoice, issued by the agency. * minLength: 1 * maxLength: 6 - */ - 'airlineAgencyInvoiceNumber'?: string; - /** - * 2-letter agency plan identifier; alphabetical. * minLength: 2 * maxLength: 2 - */ - 'airlineAgencyPlanName'?: string; - /** - * [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX); numeric. It identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 * maxLength: 3 - */ - 'airlineAirlineCode'?: string; - /** - * [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX); alphabetical. It identifies the carrier. * Format: [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter airline code * Example: KLM = KL * minLength: 2 * maxLength: 2 - */ - 'airlineAirlineDesignatorCode'?: string; - /** - * Chargeable amount for boarding the plane. The transaction amount needs to be represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). * minLength: 1 * maxLength: 18 - */ - 'airlineBoardingFee'?: string; - /** - * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Format: alphanumeric. * minLength: 4 * maxLength: 4 - */ - 'airlineComputerizedReservationSystem'?: string; - /** - * Reference number; alphanumeric. * minLength: 0 * maxLength: 20 - */ - 'airlineCustomerReferenceNumber'?: string; - /** - * Optional 2-digit code; alphanumeric. It identifies the type of product of the transaction. The description of the code may appear on credit card statements. * Format: 2-digit code * Example: Passenger ticket = 01 * minLength: 2 * maxLength: 2 - */ - 'airlineDocumentType'?: string; - /** - * Flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 * maxLength: 16 - */ - 'airlineFlightDate'?: string; - /** - * [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX); alphabetical. It identifies the carrier. This field is required/mandatory if the airline data includes leg details. * Format: IATA 2-letter airline code * Example: KLM = KL * minLength: 2 * maxLength: 2 - */ - 'airlineLegCarrierCode'?: string; - /** - * 1-letter travel class identifier; alphabetical. There is no standard; however, the following codes are used rather consistently: * F: first class * J: business class * Y: economy class * W: premium economy Limitations: * minLength: 1 * maxLength: 1 - */ - 'airlineLegClassOfTravel'?: string; - /** - * Date and time of travel. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)-compliant. * Format: `yyyy-MM-dd HH:mm` * minLength: 16 * maxLength: 16 - */ - 'airlineLegDateOfTravel'?: string; - /** - * Alphabetical identifier of the departure airport. This field is required if the airline data includes leg details. * Format: [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code. * Example: Amsterdam = AMS * minLength: 3 * maxLength: 3 - */ - 'airlineLegDepartAirport'?: string; - /** - * [Departure tax](https://en.wikipedia.org/wiki/Departure_tax). Amount charged by a country to an individual upon their leaving. The transaction amount needs to be represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). * minLength: 1 * maxLength: 12 - */ - 'airlineLegDepartTax'?: string; - /** - * Alphabetical identifier of the destination/arrival airport. This field is required/mandatory if the airline data includes leg details. * Format: [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code. * Example: Amsterdam = AMS * minLength: 3 * maxLength: 3 - */ - 'airlineLegDestinationCode'?: string; - /** - * [Fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code); alphanumeric. * minLength: 1 * maxLength: 7 - */ - 'airlineLegFareBaseCode'?: string; - /** - * The flight identifier. * minLength: 1 * maxLength: 5 - */ - 'airlineLegFlightNumber'?: string; - /** - * 1-letter code that indicates whether the passenger is entitled to make a stopover. Only two types of characters are allowed: * O: Stopover allowed * X: Stopover not allowed Limitations: * minLength: 1 * maxLength: 1 - */ - 'airlineLegStopOverCode'?: string; - /** - * Date of birth of the passenger. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 - */ - 'airlinePassengerDateOfBirth'?: string; - /** - * Passenger first name/given name. > This field is required/mandatory if the airline data includes passenger details or leg details. - */ - 'airlinePassengerFirstName'?: string; - /** - * Passenger last name/family name. > This field is required/mandatory if the airline data includes passenger details or leg details. - */ - 'airlinePassengerLastName'?: string; - /** - * Telephone number of the passenger, including country code. This is an alphanumeric field that can include the \'+\' and \'-\' signs. * minLength: 3 * maxLength: 30 - */ - 'airlinePassengerTelephoneNumber'?: string; - /** - * Passenger type code (PTC). IATA PTC values are 3-letter alphabetical. Example: ADT, SRC, CNN, INS. However, several carriers use non-standard codes that can be up to 5 alphanumeric characters. * minLength: 3 * maxLength: 6 - */ - 'airlinePassengerTravellerType'?: string; - /** - * Passenger name, initials, and a title. * Format: last name + first name or initials + title. * Example: *FLYER / MARY MS*. * minLength: 1 * maxLength: 49 - */ - 'airlinePassengerName': string; - /** - * Address of the place/agency that issued the ticket. * minLength: 0 * maxLength: 16 - */ - 'airlineTicketIssueAddress'?: string; - /** - * The ticket\'s unique identifier. * minLength: 1 * maxLength: 150 - */ - 'airlineTicketNumber'?: string; - /** - * IATA number, also ARC number or ARC/IATA number. Unique identifier number for travel agencies. * minLength: 1 * maxLength: 8 - */ - 'airlineTravelAgencyCode'?: string; - /** - * 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/payouts/additionalDataCarRental.ts b/src/typings/payouts/additionalDataCarRental.ts deleted file mode 100644 index 7371d12..0000000 --- a/src/typings/payouts/additionalDataCarRental.ts +++ /dev/null @@ -1,228 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 AdditionalDataCarRental { - /** - * Pick-up date. * Date format: `yyyyMMdd` - */ - 'carRentalCheckOutDate'?: string; - /** - * The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 - */ - 'carRentalCustomerServiceTollFreeNumber'?: string; - /** - * Number of days for which the car is being rented. * Format: Numeric * maxLength: 19 - */ - 'carRentalDaysRented'?: string; - /** - * Any fuel charges associated with the rental. * Format: Numeric * maxLength: 12 - */ - 'carRentalFuelCharges'?: string; - /** - * Any insurance charges associated with the rental. * Format: Numeric * maxLength: 12 - */ - 'carRentalInsuranceCharges'?: string; - /** - * The city from which the car is rented. * Format: Alphanumeric * maxLength: 18 - */ - 'carRentalLocationCity'?: string; - /** - * The country from which the car is rented. * Format: Alphanumeric * maxLength: 2 - */ - 'carRentalLocationCountry'?: string; - /** - * The state or province from where the car is rented. * Format: Alphanumeric * maxLength: 3 - */ - 'carRentalLocationStateProvince'?: string; - /** - * Indicates if the customer was a \"no-show\" (neither keeps nor cancels their booking). * Y - Customer was a no show. * N - Not applicable. - */ - 'carRentalNoShowIndicator'?: string; - /** - * Charge associated with not returning a vehicle to the original rental location. - */ - 'carRentalOneWayDropOffCharges'?: string; - /** - * Daily rental rate. * Format: Alphanumeric * maxLength: 12 - */ - 'carRentalRate'?: string; - /** - * Specifies whether the given rate is applied daily or weekly. * D - Daily rate. * W - Weekly rate. - */ - 'carRentalRateIndicator'?: string; - /** - * The rental agreement number associated with this car rental. * Format: Alphanumeric * maxLength: 9 - */ - 'carRentalRentalAgreementNumber'?: string; - /** - * Daily rental rate. * Format: Alphanumeric * maxLength: 12 - */ - 'carRentalRentalClassId'?: string; - /** - * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 - */ - 'carRentalRenterName'?: string; - /** - * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 - */ - 'carRentalReturnCity'?: string; - /** - * The country where the car must be returned. * Format: Alphanumeric * maxLength: 2 - */ - 'carRentalReturnCountry'?: string; - /** - * The last date to return the car by. * Date format: `yyyyMMdd` - */ - 'carRentalReturnDate'?: string; - /** - * Agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 - */ - 'carRentalReturnLocationId'?: string; - /** - * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 - */ - 'carRentalReturnStateProvince'?: string; - /** - * Indicates whether the goods or services were tax-exempt, or tax was not collected. Values: * Y - Goods or services were tax exempt * N - Tax was not collected - */ - 'carRentalTaxExemptIndicator'?: string; - /** - * Number of nights. This should be included in the auth message. * Format: Numeric * maxLength: 2 - */ - 'travelEntertainmentAuthDataDuration'?: string; - /** - * 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/payouts/additionalDataCommon.ts b/src/typings/payouts/additionalDataCommon.ts deleted file mode 100644 index c216297..0000000 --- a/src/typings/payouts/additionalDataCommon.ts +++ /dev/null @@ -1,153 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 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. - */ - 'requestedTestErrorResponseCode'?: string; - /** - * Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation. - */ - 'authorisationType'?: string; - /** - * Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request\'s additional data to target a specific acquirer. To enable this functionality, contact [Support](https://support.adyen.com/hc/en-us/requests/new). - */ - 'customRoutingFlag'?: string; - /** - * In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. - */ - 'industryUsage'?: AdditionalDataCommon.IndustryUsageEnum; - /** - * Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT. - */ - 'networkTxReference'?: string; - /** - * Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. - */ - 'overwriteBrand'?: string; - /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant\'s address. * Format: alpha-numeric. * Maximum length: 13 characters. - */ - 'subMerchantCity'?: string; - /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant\'s address. * Format: alpha-numeric. * Fixed length: 3 characters. - */ - 'subMerchantCountry'?: string; - /** - * This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. - */ - 'subMerchantID'?: string; - /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters. - */ - 'subMerchantName'?: string; - /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant\'s address. * Format: alpha-numeric. * Maximum length: 10 characters. - */ - 'subMerchantPostalCode'?: string; - /** - * This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant\'s address. * Format: alpha-numeric. * Maximum length: 3 characters. - */ - 'subMerchantState'?: string; - /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant\'s address. * Format: alpha-numeric. * Maximum length: 60 characters. - */ - 'subMerchantStreet'?: string; - /** - * 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 { - export enum IndustryUsageEnum { - NoShow = 'NoShow', - DelayedCharge = 'DelayedCharge' - } -} diff --git a/src/typings/payouts/additionalDataLevel23.ts b/src/typings/payouts/additionalDataLevel23.ts deleted file mode 100644 index 80bb517..0000000 --- a/src/typings/payouts/additionalDataLevel23.ts +++ /dev/null @@ -1,174 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 AdditionalDataLevel23 { - /** - * Customer code, if supplied by a customer. Encoding: ASCII. Max length: 25 characters. > Required for Level 2 and Level 3 data. - */ - 'enhancedSchemeDataCustomerReference'?: string; - /** - * Destination country code. Encoding: ASCII. Max length: 3 characters. - */ - 'enhancedSchemeDataDestinationCountryCode'?: string; - /** - * The postal code of a destination address. Encoding: ASCII. Max length: 10 characters. > Required for American Express. - */ - 'enhancedSchemeDataDestinationPostalCode'?: string; - /** - * Destination state or province code. Encoding: ASCII.Max length: 3 characters. - */ - 'enhancedSchemeDataDestinationStateProvinceCode'?: string; - /** - * Duty amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. - */ - 'enhancedSchemeDataDutyAmount'?: string; - /** - * Shipping amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. - */ - 'enhancedSchemeDataFreightAmount'?: string; - /** - * Item commodity code. Encoding: ASCII. Max length: 12 characters. - */ - 'enhancedSchemeDataItemDetailLineItemNrCommodityCode'?: string; - /** - * Item description. Encoding: ASCII. Max length: 26 characters. - */ - 'enhancedSchemeDataItemDetailLineItemNrDescription'?: string; - /** - * Discount amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. - */ - 'enhancedSchemeDataItemDetailLineItemNrDiscountAmount'?: string; - /** - * Product code. Encoding: ASCII. Max length: 12 characters. - */ - 'enhancedSchemeDataItemDetailLineItemNrProductCode'?: string; - /** - * Quantity, specified as an integer value. Value must be greater than 0. Max length: 12 characters. - */ - 'enhancedSchemeDataItemDetailLineItemNrQuantity'?: string; - /** - * Total amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. - */ - 'enhancedSchemeDataItemDetailLineItemNrTotalAmount'?: string; - /** - * Item unit of measurement. Encoding: ASCII. Max length: 3 characters. - */ - 'enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure'?: string; - /** - * Unit price, specified in [minor units](https://docs.adyen.com/development-resources/currency-codes). Max length: 12 characters. - */ - 'enhancedSchemeDataItemDetailLineItemNrUnitPrice'?: string; - /** - * Order date. * Format: `ddMMyy` Encoding: ASCII. Max length: 6 characters. - */ - 'enhancedSchemeDataOrderDate'?: string; - /** - * The postal code of a \"ship-from\" address. Encoding: ASCII. Max length: 10 characters. - */ - 'enhancedSchemeDataShipFromPostalCode'?: string; - /** - * 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/payouts/additionalDataLodging.ts b/src/typings/payouts/additionalDataLodging.ts deleted file mode 100644 index ee2352c..0000000 --- a/src/typings/payouts/additionalDataLodging.ts +++ /dev/null @@ -1,174 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 AdditionalDataLodging { - /** - * The arrival date. * Date format: `yyyyMMdd` - */ - 'lodgingCheckInDate'?: string; - /** - * The departure date. * Date format: `yyyyMMdd` - */ - 'lodgingCheckOutDate'?: string; - /** - * The toll free phone number for the hotel/lodgings. * Format: Alphanumeric * maxLength: 17 - */ - 'lodgingCustomerServiceTollFreeNumber'?: string; - /** - * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Values can be: \'Y\' or \'N\'. * Format: Alphabetic * maxLength: 1 - */ - 'lodgingFireSafetyActIndicator'?: string; - /** - * The folio cash advances. * Format: Numeric * maxLength: 12 - */ - 'lodgingFolioCashAdvances'?: string; - /** - * Card acceptor’s internal invoice or billing ID reference number. * Format: Alphanumeric * maxLength: 25 - */ - 'lodgingFolioNumber'?: string; - /** - * Any charges for food and beverages associated with the booking. * Format: Numeric * maxLength: 12 - */ - 'lodgingFoodBeverageCharges'?: string; - /** - * Indicates if the customer was a \"no-show\" (neither keeps nor cancels their booking). Value should be Y or N. * Format: Numeric * maxLength: 1 - */ - 'lodgingNoShowIndicator'?: string; - /** - * Prepaid expenses for the booking. * Format: Numeric * maxLength: 12 - */ - 'lodgingPrepaidExpenses'?: string; - /** - * Identifies specific lodging property location by its local phone number. * Format: Alphanumeric * maxLength: 17 - */ - 'lodgingPropertyPhoneNumber'?: string; - /** - * Total number of nights the room will be rented. * Format: Numeric * maxLength: 4 - */ - 'lodgingRoom1NumberOfNights'?: string; - /** - * The rate of the room. * Format: Numeric * maxLength: 12 - */ - 'lodgingRoom1Rate'?: string; - /** - * The total amount of tax to be paid. * Format: Numeric * maxLength: 12 - */ - 'lodgingRoom1Tax'?: string; - /** - * Total room tax amount. * Format: Numeric * maxLength: 12 - */ - 'lodgingTotalRoomTax'?: string; - /** - * Total tax amount. * Format: Numeric * maxLength: 12 - */ - 'lodgingTotalTax'?: string; - /** - * Number of nights. This should be included in the auth message. * Format: Numeric * maxLength: 2 - */ - 'travelEntertainmentAuthDataDuration'?: string; - /** - * 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/payouts/additionalDataOpenInvoice.ts b/src/typings/payouts/additionalDataOpenInvoice.ts deleted file mode 100644 index 1d0a766..0000000 --- a/src/typings/payouts/additionalDataOpenInvoice.ts +++ /dev/null @@ -1,165 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 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. - */ - 'openinvoicedataMerchantData'?: string; - /** - * The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. - */ - 'openinvoicedataNumberOfLines'?: string; - /** - * The three-character ISO currency code. - */ - 'openinvoicedataLineItemNrCurrencyCode'?: string; - /** - * A text description of the product the invoice line refers to. - */ - 'openinvoicedataLineItemNrDescription'?: string; - /** - * The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. - */ - 'openinvoicedataLineItemNrItemAmount'?: string; - /** - * A unique id for this item. Required for RatePay if the description of each item is not unique. - */ - 'openinvoicedataLineItemNrItemId'?: string; - /** - * The VAT due for one item in the invoice line, represented in minor units. - */ - 'openinvoicedataLineItemNrItemVatAmount'?: string; - /** - * The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. - */ - 'openinvoicedataLineItemNrItemVatPercentage'?: string; - /** - * The number of units purchased of a specific product. - */ - 'openinvoicedataLineItemNrNumberOfItems'?: string; - /** - * Name of the shipping company handling the the return shipment. - */ - 'openinvoicedataLineItemNrReturnShippingCompany'?: string; - /** - * The tracking number for the return of the shipment. - */ - 'openinvoicedataLineItemNrReturnTrackingNumber'?: string; - /** - * URI where the customer can track the return of their shipment. - */ - 'openinvoicedataLineItemNrReturnTrackingUri'?: string; - /** - * Name of the shipping company handling the delivery. - */ - 'openinvoicedataLineItemNrShippingCompany'?: string; - /** - * Shipping method. - */ - 'openinvoicedataLineItemNrShippingMethod'?: string; - /** - * The tracking number for the shipment. - */ - 'openinvoicedataLineItemNrTrackingNumber'?: string; - /** - * 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/payouts/additionalDataOpi.ts b/src/typings/payouts/additionalDataOpi.ts deleted file mode 100644 index 69af200..0000000 --- a/src/typings/payouts/additionalDataOpi.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 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/payouts/additionalDataPayout.ts b/src/typings/payouts/additionalDataPayout.ts deleted file mode 100644 index 24d4b5f..0000000 --- a/src/typings/payouts/additionalDataPayout.ts +++ /dev/null @@ -1,88 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 AdditionalDataPayout { - 'fundingNetwork'?: string; - 'fundingSource'?: AdditionalDataPayout.FundingSourceEnum; - 'fundingTransactionId'?: string; - 'payoutAccountCode'?: string; - 'payoutAccountHolderCode'?: string; - 'payoutMarketPayUser'?: string; - 'processOver'?: AdditionalDataPayout.ProcessOverEnum; - 'verifyOver'?: string; - 'walletIdentifier'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "fundingNetwork", - "baseName": "fundingNetwork", - "type": "string" - }, - { - "name": "fundingSource", - "baseName": "fundingSource", - "type": "AdditionalDataPayout.FundingSourceEnum" - }, - { - "name": "fundingTransactionId", - "baseName": "fundingTransactionId", - "type": "string" - }, - { - "name": "payoutAccountCode", - "baseName": "payoutAccountCode", - "type": "string" - }, - { - "name": "payoutAccountHolderCode", - "baseName": "payoutAccountHolderCode", - "type": "string" - }, - { - "name": "payoutMarketPayUser", - "baseName": "payoutMarketPayUser", - "type": "string" - }, - { - "name": "processOver", - "baseName": "processOver", - "type": "AdditionalDataPayout.ProcessOverEnum" - }, - { - "name": "verifyOver", - "baseName": "verifyOver", - "type": "string" - }, - { - "name": "walletIdentifier", - "baseName": "walletIdentifier", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return AdditionalDataPayout.attributeTypeMap; - } -} - -export namespace AdditionalDataPayout { - export enum FundingSourceEnum { - Credit = 'CREDIT', - Debit = 'DEBIT', - Prepaid = 'PREPAID', - DepositAccount = 'DEPOSIT_ACCOUNT' - } - export enum ProcessOverEnum { - McP2P = 'MC_P2P', - VisaOct = 'Visa_OCT', - UnlinkedRefund = 'UnlinkedRefund' - } -} diff --git a/src/typings/payouts/additionalDataRatepay.ts b/src/typings/payouts/additionalDataRatepay.ts deleted file mode 100644 index 99e5f83..0000000 --- a/src/typings/payouts/additionalDataRatepay.ts +++ /dev/null @@ -1,93 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 AdditionalDataRatepay { - /** - * Amount the customer has to pay each month. - */ - 'ratepayInstallmentAmount'?: string; - /** - * Interest rate of this installment. - */ - 'ratepayInterestRate'?: string; - /** - * Amount of the last installment. - */ - 'ratepayLastInstallmentAmount'?: string; - /** - * Calendar day of the first payment. - */ - 'ratepayPaymentFirstday'?: string; - /** - * Date the merchant delivered the goods to the customer. - */ - 'ratepaydataDeliveryDate'?: string; - /** - * Date by which the customer must settle the payment. - */ - 'ratepaydataDueDate'?: string; - /** - * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. - */ - 'ratepaydataInvoiceDate'?: string; - /** - * 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/payouts/additionalDataRetry.ts b/src/typings/payouts/additionalDataRetry.ts deleted file mode 100644 index 80a8143..0000000 --- a/src/typings/payouts/additionalDataRetry.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 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. - */ - 'retryChainAttemptNumber'?: string; - /** - * The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. - */ - 'retryOrderAttemptNumber'?: string; - /** - * 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/payouts/additionalDataRisk.ts b/src/typings/payouts/additionalDataRisk.ts deleted file mode 100644 index 8ab476b..0000000 --- a/src/typings/payouts/additionalDataRisk.ts +++ /dev/null @@ -1,210 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 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). - */ - 'riskdataCustomFieldName'?: string; - /** - * The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). - */ - 'riskdataBasketItemItemNrAmountPerItem'?: string; - /** - * Brand of the item. - */ - 'riskdataBasketItemItemNrBrand'?: string; - /** - * Category of the item. - */ - 'riskdataBasketItemItemNrCategory'?: string; - /** - * Color of the item. - */ - 'riskdataBasketItemItemNrColor'?: string; - /** - * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). - */ - 'riskdataBasketItemItemNrCurrency'?: string; - /** - * ID of the item. - */ - 'riskdataBasketItemItemNrItemID'?: string; - /** - * Manufacturer of the item. - */ - 'riskdataBasketItemItemNrManufacturer'?: string; - /** - * A text description of the product the invoice line refers to. - */ - 'riskdataBasketItemItemNrProductTitle'?: string; - /** - * Quantity of the item purchased. - */ - 'riskdataBasketItemItemNrQuantity'?: string; - /** - * Email associated with the given product in the basket (usually in electronic gift cards). - */ - 'riskdataBasketItemItemNrReceiverEmail'?: string; - /** - * Size of the item. - */ - 'riskdataBasketItemItemNrSize'?: string; - /** - * [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). - */ - 'riskdataBasketItemItemNrSku'?: string; - /** - * [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). - */ - 'riskdataBasketItemItemNrUpc'?: string; - /** - * Code of the promotion. - */ - 'riskdataPromotionsPromotionItemNrPromotionCode'?: string; - /** - * The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). - */ - 'riskdataPromotionsPromotionItemNrPromotionDiscountAmount'?: string; - /** - * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). - */ - 'riskdataPromotionsPromotionItemNrPromotionDiscountCurrency'?: string; - /** - * Promotion\'s percentage discount. It is represented in percentage value and there is no need to include the \'%\' sign. e.g. for a promotion discount of 30%, the value of the field should be 30. - */ - 'riskdataPromotionsPromotionItemNrPromotionDiscountPercentage'?: string; - /** - * Name of the promotion. - */ - 'riskdataPromotionsPromotionItemNrPromotionName'?: string; - /** - * Reference number of the risk profile that you want to apply to the payment. If not provided or left blank, the merchant-level account\'s default risk profile will be applied to the payment. For more information, see [dynamically assign a risk profile to a payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). - */ - 'riskdataRiskProfileReference'?: string; - /** - * 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/payouts/additionalDataRiskStandalone.ts b/src/typings/payouts/additionalDataRiskStandalone.ts deleted file mode 100644 index 2650796..0000000 --- a/src/typings/payouts/additionalDataRiskStandalone.ts +++ /dev/null @@ -1,156 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 AdditionalDataRiskStandalone { - /** - * Shopper\'s country of residence in the form of ISO standard 3166 2-character country codes. - */ - 'payPalCountryCode'?: string; - /** - * Shopper\'s email. - */ - 'payPalEmailId'?: string; - /** - * Shopper\'s first name. - */ - 'payPalFirstName'?: string; - /** - * Shopper\'s last name. - */ - 'payPalLastName'?: string; - /** - * Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. - */ - 'payPalPayerId'?: string; - /** - * Shopper\'s phone number. - */ - 'payPalPhone'?: string; - /** - * Allowed values: * **Eligible** — Merchant is protected by PayPal\'s Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal\'s Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy. - */ - 'payPalProtectionEligibility'?: string; - /** - * Unique transaction ID of the payment. - */ - 'payPalTransactionId'?: string; - /** - * Raw AVS result received from the acquirer, where available. Example: D - */ - 'avsResultRaw'?: string; - /** - * The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/risk-management/standalone-risk#tokenised-pan-request). - */ - 'bin'?: string; - /** - * Raw CVC result received from the acquirer, where available. Example: 1 - */ - 'cvcResultRaw'?: string; - /** - * Unique identifier or token for the shopper\'s card details. - */ - 'riskToken'?: string; - /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true - */ - 'threeDAuthenticated'?: string; - /** - * A Boolean value indicating whether 3DS was offered for this payment. Example: true - */ - 'threeDOffered'?: string; - /** - * 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/payouts/additionalDataSubMerchant.ts b/src/typings/payouts/additionalDataSubMerchant.ts deleted file mode 100644 index 6037771..0000000 --- a/src/typings/payouts/additionalDataSubMerchant.ts +++ /dev/null @@ -1,111 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 AdditionalDataSubMerchant { - /** - * Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. - */ - 'subMerchantNumberOfSubSellers'?: string; - /** - * Required for transactions performed by registered payment facilitators. The city of the sub-merchant\'s address. * Format: Alphanumeric * Maximum length: 13 characters - */ - 'subMerchantSubSellerSubSellerNrCity'?: string; - /** - * Required for transactions performed by registered payment facilitators. The three-letter country code of the sub-merchant\'s address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters - */ - 'subMerchantSubSellerSubSellerNrCountry'?: string; - /** - * Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters - */ - 'subMerchantSubSellerSubSellerNrId'?: string; - /** - * Required for transactions performed by registered payment facilitators. The sub-merchant\'s 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits - */ - 'subMerchantSubSellerSubSellerNrMcc'?: string; - /** - * Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters - */ - 'subMerchantSubSellerSubSellerNrName'?: string; - /** - * Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant\'s address, without dashes. * Format: Numeric * Fixed length: 8 digits - */ - 'subMerchantSubSellerSubSellerNrPostalCode'?: string; - /** - * Required for transactions performed by registered payment facilitators. The state code of the sub-merchant\'s address, if applicable to the country. * Format: Alphanumeric * Maximum length: 2 characters - */ - 'subMerchantSubSellerSubSellerNrState'?: string; - /** - * Required for transactions performed by registered payment facilitators. The street name and house number of the sub-merchant\'s address. * Format: Alphanumeric * Maximum length: 60 characters - */ - 'subMerchantSubSellerSubSellerNrStreet'?: string; - /** - * 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/payouts/additionalDataTemporaryServices.ts b/src/typings/payouts/additionalDataTemporaryServices.ts deleted file mode 100644 index b5c3824..0000000 --- a/src/typings/payouts/additionalDataTemporaryServices.ts +++ /dev/null @@ -1,102 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 AdditionalDataTemporaryServices { - /** - * Customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 - */ - 'enhancedSchemeDataCustomerReference'?: string; - /** - * Name or ID associated with the individual working in a temporary capacity. * maxLength: 40 - */ - 'enhancedSchemeDataEmployeeName'?: string; - /** - * Description of the job or task of the individual working in a temporary capacity. * maxLength: 40 - */ - 'enhancedSchemeDataJobDescription'?: string; - /** - * Amount paid per regular hours worked, minor units. * maxLength: 7 - */ - 'enhancedSchemeDataRegularHoursRate'?: string; - /** - * Amount of time worked during a normal operation for the task or job. * maxLength: 7 - */ - 'enhancedSchemeDataRegularHoursWorked'?: string; - /** - * Name of the individual requesting temporary services. * maxLength: 40 - */ - 'enhancedSchemeDataRequestName'?: string; - /** - * Date for the beginning of the pay period. * Format: ddMMyy * maxLength: 6 - */ - 'enhancedSchemeDataTempStartDate'?: string; - /** - * Date of the end of the billing cycle. * Format: ddMMyy * maxLength: 6 - */ - 'enhancedSchemeDataTempWeekEnding'?: string; - /** - * 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/payouts/additionalDataWallets.ts b/src/typings/payouts/additionalDataWallets.ts deleted file mode 100644 index 672b9cb..0000000 --- a/src/typings/payouts/additionalDataWallets.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 AdditionalDataWallets { - /** - * The Android Pay token retrieved from the SDK. - */ - 'androidpayToken'?: string; - /** - * The Mastercard Masterpass Transaction ID retrieved from the SDK. - */ - 'masterpassTransactionId'?: string; - /** - * The Apple Pay token retrieved from the SDK. - */ - 'paymentToken'?: string; - /** - * The Google Pay token retrieved from the SDK. - */ - 'paywithgoogleToken'?: string; - /** - * The Samsung Pay token retrieved from the SDK. - */ - 'samsungpayToken'?: string; - /** - * 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/payouts/applicationInfo.ts b/src/typings/payouts/applicationInfo.ts deleted file mode 100644 index 11bb365..0000000 --- a/src/typings/payouts/applicationInfo.ts +++ /dev/null @@ -1,61 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 { CommonField } from './commonField'; -import { ExternalPlatform } from './externalPlatform'; -import { MerchantDevice } from './merchantDevice'; -import { ShopperInteractionDevice } from './shopperInteractionDevice'; - -export class ApplicationInfo { - 'adyenLibrary'?: CommonField; - 'adyenPaymentSource'?: CommonField; - 'externalPlatform'?: ExternalPlatform; - '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/payouts/browserInfo.ts b/src/typings/payouts/browserInfo.ts deleted file mode 100644 index a21b855..0000000 --- a/src/typings/payouts/browserInfo.ts +++ /dev/null @@ -1,102 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 BrowserInfo { - /** - * The accept header value of the shopper\'s browser. - */ - 'acceptHeader': string; - /** - * The color depth of the shopper\'s browser in bits per pixel. This should be obtained by using the browser\'s `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. - */ - 'colorDepth': number; - /** - * Boolean value indicating if the shopper\'s browser is able to execute Java. - */ - 'javaEnabled': boolean; - /** - * Boolean value indicating if the shopper\'s browser is able to execute JavaScript. A default \'true\' value is assumed if the field is not present. - */ - 'javaScriptEnabled'?: boolean; - /** - * The `navigator.language` value of the shopper\'s browser (as defined in IETF BCP 47). - */ - 'language': string; - /** - * The total height of the shopper\'s device screen in pixels. - */ - 'screenHeight': number; - /** - * The total width of the shopper\'s device screen in pixels. - */ - 'screenWidth': number; - /** - * Time difference between UTC time and the shopper\'s browser local time, in minutes. - */ - 'timeZoneOffset': number; - /** - * 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/payouts/commonField.ts b/src/typings/payouts/commonField.ts deleted file mode 100644 index 618f18e..0000000 --- a/src/typings/payouts/commonField.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 CommonField { - /** - * Name of the field. For example, Name of External Platform. - */ - 'name'?: string; - /** - * 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/payouts/deviceRenderOptions.ts b/src/typings/payouts/deviceRenderOptions.ts deleted file mode 100644 index 93159f0..0000000 --- a/src/typings/payouts/deviceRenderOptions.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 DeviceRenderOptions { - /** - * Supported SDK interface types. Allowed values: * native * html * both - */ - 'sdkInterface'?: DeviceRenderOptions.SdkInterfaceEnum; - /** - * 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 { - export enum SdkInterfaceEnum { - Native = 'native', - Html = 'html', - Both = 'both' - } - export enum SdkUiTypeEnum { - MultiSelect = 'multiSelect', - OtherHtml = 'otherHtml', - OutOfBand = 'outOfBand', - SingleSelect = 'singleSelect', - Text = 'text' - } -} diff --git a/src/typings/payouts/externalPlatform.ts b/src/typings/payouts/externalPlatform.ts deleted file mode 100644 index f877b6d..0000000 --- a/src/typings/payouts/externalPlatform.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 ExternalPlatform { - /** - * External platform integrator. - */ - 'integrator'?: string; - /** - * Name of the field. For example, Name of External Platform. - */ - 'name'?: string; - /** - * 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/payouts/forexQuote.ts b/src/typings/payouts/forexQuote.ts deleted file mode 100644 index 4a6646b..0000000 --- a/src/typings/payouts/forexQuote.ts +++ /dev/null @@ -1,118 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 ForexQuote { - /** - * The account name. - */ - 'account'?: string; - /** - * The account type. - */ - 'accountType'?: string; - 'baseAmount'?: Amount; - /** - * The base points. - */ - 'basePoints': number; - 'buy'?: Amount; - 'interbank'?: Amount; - /** - * The reference assigned to the forex quote request. - */ - 'reference'?: string; - 'sell'?: Amount; - /** - * The signature to validate the integrity. - */ - 'signature'?: string; - /** - * The source of the forex quote. - */ - 'source'?: string; - /** - * The type of forex. - */ - 'type'?: string; - /** - * 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/payouts/installments.ts b/src/typings/payouts/installments.ts deleted file mode 100644 index cdbda01..0000000 --- a/src/typings/payouts/installments.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 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** - */ - 'plan'?: Installments.PlanEnum; - /** - * 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 { - export enum PlanEnum { - Regular = 'regular', - Revolving = 'revolving' - } -} diff --git a/src/typings/payouts/mandate.ts b/src/typings/payouts/mandate.ts deleted file mode 100644 index 0ea3d49..0000000 --- a/src/typings/payouts/mandate.ts +++ /dev/null @@ -1,114 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 Mandate { - /** - * The billing amount (in minor units) of the recurring transactions. - */ - 'amount': string; - /** - * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. - */ - 'amountRule'?: Mandate.AmountRuleEnum; - /** - * The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. - */ - 'billingAttemptsRule'?: Mandate.BillingAttemptsRuleEnum; - /** - * The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`. - */ - 'billingDay'?: string; - /** - * End date of the billing plan, in YYYY-MM-DD format. - */ - 'endsAt': string; - /** - * The frequency with which a shopper should be charged. Possible values: **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. - */ - 'frequency': Mandate.FrequencyEnum; - /** - * The message shown by UPI to the shopper on the approval screen. - */ - 'remarks'?: string; - /** - * 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 { - export enum AmountRuleEnum { - Max = 'max', - Exact = 'exact' - } - export enum BillingAttemptsRuleEnum { - On = 'on', - Before = 'before', - After = 'after' - } - export enum FrequencyEnum { - Adhoc = 'adhoc', - Daily = 'daily', - Weekly = 'weekly', - BiWeekly = 'biWeekly', - Monthly = 'monthly', - Quarterly = 'quarterly', - HalfYearly = 'halfYearly', - Yearly = 'yearly' - } -} diff --git a/src/typings/payouts/merchantDevice.ts b/src/typings/payouts/merchantDevice.ts deleted file mode 100644 index 704a668..0000000 --- a/src/typings/payouts/merchantDevice.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 MerchantDevice { - /** - * Operating system running on the merchant device. - */ - 'os'?: string; - /** - * Version of the operating system on the merchant device. - */ - 'osVersion'?: string; - /** - * 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/payouts/merchantRiskIndicator.ts b/src/typings/payouts/merchantRiskIndicator.ts deleted file mode 100644 index d2dc361..0000000 --- a/src/typings/payouts/merchantRiskIndicator.ts +++ /dev/null @@ -1,162 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 MerchantRiskIndicator { - /** - * Whether the chosen delivery address is identical to the billing address. - */ - 'addressMatch'?: boolean; - /** - * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` - */ - 'deliveryAddressIndicator'?: MerchantRiskIndicator.DeliveryAddressIndicatorEnum; - /** - * The delivery email address (for digital goods). - */ - 'deliveryEmail'?: string; - /** - * For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters. - */ - 'deliveryEmailAddress'?: string; - /** - * The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` - */ - 'deliveryTimeframe'?: MerchantRiskIndicator.DeliveryTimeframeEnum; - 'giftCardAmount'?: Amount; - /** - * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. - */ - 'giftCardCount'?: number; - /** - * For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification. - */ - 'giftCardCurr'?: string; - /** - * For pre-order purchases, the expected date this product will be available to the shopper. - */ - 'preOrderDate'?: Date; - /** - * Indicator for whether this transaction is for pre-ordering a product. - */ - 'preOrderPurchase'?: boolean; - /** - * Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. - */ - 'preOrderPurchaseInd'?: string; - /** - * Indicator for whether the shopper has already purchased the same items in the past. - */ - 'reorderItems'?: boolean; - /** - * Indicates whether the cardholder is reordering previously purchased merchandise. - */ - 'reorderItemsInd'?: string; - /** - * 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 { - export enum DeliveryAddressIndicatorEnum { - ShipToBillingAddress = 'shipToBillingAddress', - ShipToVerifiedAddress = 'shipToVerifiedAddress', - ShipToNewAddress = 'shipToNewAddress', - ShipToStore = 'shipToStore', - DigitalGoods = 'digitalGoods', - GoodsNotShipped = 'goodsNotShipped', - Other = 'other' - } - export enum DeliveryTimeframeEnum { - ElectronicDelivery = 'electronicDelivery', - SameDayShipping = 'sameDayShipping', - OvernightShipping = 'overnightShipping', - TwoOrMoreDaysShipping = 'twoOrMoreDaysShipping' - } -} diff --git a/src/typings/payouts/models.ts b/src/typings/payouts/models.ts index 5a17453..27cfea0 100644 --- a/src/typings/payouts/models.ts +++ b/src/typings/payouts/models.ts @@ -8,47 +8,18 @@ */ -export * from './accountInfo'; -export * from './acctInfo'; -export * from './additionalData3DSecure'; -export * from './additionalDataAirline'; -export * from './additionalDataCarRental'; -export * from './additionalDataCommon'; -export * from './additionalDataLevel23'; -export * from './additionalDataLodging'; -export * from './additionalDataOpenInvoice'; -export * from './additionalDataOpi'; -export * from './additionalDataPayout'; -export * from './additionalDataRatepay'; -export * from './additionalDataRetry'; -export * from './additionalDataRisk'; -export * from './additionalDataRiskStandalone'; -export * from './additionalDataSubMerchant'; -export * from './additionalDataTemporaryServices'; -export * from './additionalDataWallets'; export * from './address'; export * from './amount'; -export * from './applicationInfo'; export * from './bankAccount'; -export * from './browserInfo'; export * from './card'; -export * from './commonField'; -export * from './deviceRenderOptions'; -export * from './externalPlatform'; -export * from './forexQuote'; export * from './fraudCheckResult'; export * from './fraudResult'; export * from './fundSource'; -export * from './installments'; -export * from './mandate'; -export * from './merchantDevice'; -export * from './merchantRiskIndicator'; export * from './modifyRequest'; export * from './modifyResponse'; export * from './name'; export * from './payoutRequest'; export * from './payoutResponse'; -export * from './phone'; export * from './recurring'; export * from './responseAdditionalData3DSecure'; export * from './responseAdditionalDataBillingAddress'; @@ -58,64 +29,27 @@ export * from './responseAdditionalDataInstallments'; export * from './responseAdditionalDataNetworkTokens'; export * from './responseAdditionalDataOpi'; export * from './responseAdditionalDataSepa'; -export * from './sDKEphemPubKey'; export * from './serviceError'; -export * from './shopperInteractionDevice'; -export * from './split'; -export * from './splitAmount'; export * from './storeDetailAndSubmitRequest'; export * from './storeDetailAndSubmitResponse'; export * from './storeDetailRequest'; export * from './storeDetailResponse'; export * from './submitRequest'; export * from './submitResponse'; -export * from './threeDS2RequestData'; -export * from './threeDSRequestorAuthenticationInfo'; -export * from './threeDSRequestorPriorAuthenticationInfo'; -export * from './threeDSecureData'; -import { AccountInfo } from './accountInfo'; -import { AcctInfo } from './acctInfo'; -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 { AdditionalDataPayout } from './additionalDataPayout'; -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 { Amount } from './amount'; -import { ApplicationInfo } from './applicationInfo'; import { BankAccount } from './bankAccount'; -import { BrowserInfo } from './browserInfo'; import { Card } from './card'; -import { CommonField } from './commonField'; -import { DeviceRenderOptions } from './deviceRenderOptions'; -import { ExternalPlatform } from './externalPlatform'; -import { ForexQuote } from './forexQuote'; import { FraudCheckResult } from './fraudCheckResult'; import { FraudResult } from './fraudResult'; import { FundSource } from './fundSource'; -import { Installments } from './installments'; -import { Mandate } from './mandate'; -import { MerchantDevice } from './merchantDevice'; -import { MerchantRiskIndicator } from './merchantRiskIndicator'; import { ModifyRequest } from './modifyRequest'; import { ModifyResponse } from './modifyResponse'; import { Name } from './name'; import { PayoutRequest } from './payoutRequest'; import { PayoutResponse } from './payoutResponse'; -import { Phone } from './phone'; import { Recurring } from './recurring'; import { ResponseAdditionalData3DSecure } from './responseAdditionalData3DSecure'; import { ResponseAdditionalDataBillingAddress } from './responseAdditionalDataBillingAddress'; @@ -125,21 +59,13 @@ import { ResponseAdditionalDataInstallments } from './responseAdditionalDataInst import { ResponseAdditionalDataNetworkTokens } from './responseAdditionalDataNetworkTokens'; import { ResponseAdditionalDataOpi } from './responseAdditionalDataOpi'; import { ResponseAdditionalDataSepa } from './responseAdditionalDataSepa'; -import { SDKEphemPubKey } from './sDKEphemPubKey'; import { ServiceError } from './serviceError'; -import { ShopperInteractionDevice } from './shopperInteractionDevice'; -import { Split } from './split'; -import { SplitAmount } from './splitAmount'; import { StoreDetailAndSubmitRequest } from './storeDetailAndSubmitRequest'; import { StoreDetailAndSubmitResponse } from './storeDetailAndSubmitResponse'; import { StoreDetailRequest } from './storeDetailRequest'; import { StoreDetailResponse } from './storeDetailResponse'; import { SubmitRequest } from './submitRequest'; import { SubmitResponse } from './submitResponse'; -import { ThreeDS2RequestData } from './threeDS2RequestData'; -import { ThreeDSRequestorAuthenticationInfo } from './threeDSRequestorAuthenticationInfo'; -import { ThreeDSRequestorPriorAuthenticationInfo } from './threeDSRequestorPriorAuthenticationInfo'; -import { ThreeDSecureData } from './threeDSecureData'; /* tslint:disable:no-unused-variable */ let primitives = [ @@ -154,30 +80,6 @@ let primitives = [ ]; 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, - "AdditionalDataCommon.IndustryUsageEnum": AdditionalDataCommon.IndustryUsageEnum, - "AdditionalDataPayout.FundingSourceEnum": AdditionalDataPayout.FundingSourceEnum, - "AdditionalDataPayout.ProcessOverEnum": AdditionalDataPayout.ProcessOverEnum, - "DeviceRenderOptions.SdkInterfaceEnum": DeviceRenderOptions.SdkInterfaceEnum, - "DeviceRenderOptions.SdkUiTypeEnum": DeviceRenderOptions.SdkUiTypeEnum, - "Installments.PlanEnum": Installments.PlanEnum, - "Mandate.AmountRuleEnum": Mandate.AmountRuleEnum, - "Mandate.BillingAttemptsRuleEnum": Mandate.BillingAttemptsRuleEnum, - "Mandate.FrequencyEnum": Mandate.FrequencyEnum, - "MerchantRiskIndicator.DeliveryAddressIndicatorEnum": MerchantRiskIndicator.DeliveryAddressIndicatorEnum, - "MerchantRiskIndicator.DeliveryTimeframeEnum": MerchantRiskIndicator.DeliveryTimeframeEnum, "PayoutRequest.ShopperInteractionEnum": PayoutRequest.ShopperInteractionEnum, "PayoutResponse.ResultCodeEnum": PayoutResponse.ResultCodeEnum, "Recurring.ContractEnum": Recurring.ContractEnum, @@ -185,65 +87,24 @@ let enumsMap: {[index: string]: any} = { "ResponseAdditionalDataCommon.FraudResultTypeEnum": ResponseAdditionalDataCommon.FraudResultTypeEnum, "ResponseAdditionalDataCommon.MerchantAdviceCodeEnum": ResponseAdditionalDataCommon.MerchantAdviceCodeEnum, "ResponseAdditionalDataCommon.RecurringProcessingModelEnum": ResponseAdditionalDataCommon.RecurringProcessingModelEnum, - "Split.TypeEnum": Split.TypeEnum, "StoreDetailAndSubmitRequest.EntityTypeEnum": StoreDetailAndSubmitRequest.EntityTypeEnum, "StoreDetailRequest.EntityTypeEnum": StoreDetailRequest.EntityTypeEnum, "SubmitRequest.EntityTypeEnum": SubmitRequest.EntityTypeEnum, - "ThreeDS2RequestData.AcctTypeEnum": ThreeDS2RequestData.AcctTypeEnum, - "ThreeDS2RequestData.AddrMatchEnum": ThreeDS2RequestData.AddrMatchEnum, - "ThreeDS2RequestData.ChallengeIndicatorEnum": ThreeDS2RequestData.ChallengeIndicatorEnum, - "ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum": ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum, - "ThreeDS2RequestData.TransTypeEnum": ThreeDS2RequestData.TransTypeEnum, - "ThreeDS2RequestData.TransactionTypeEnum": ThreeDS2RequestData.TransactionTypeEnum, - "ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum": ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum, - "ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum": ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum, - "ThreeDSecureData.AuthenticationResponseEnum": ThreeDSecureData.AuthenticationResponseEnum, - "ThreeDSecureData.ChallengeCancelEnum": ThreeDSecureData.ChallengeCancelEnum, - "ThreeDSecureData.DirectoryResponseEnum": ThreeDSecureData.DirectoryResponseEnum, } let typeMap: {[index: string]: any} = { - "AccountInfo": AccountInfo, - "AcctInfo": AcctInfo, - "AdditionalData3DSecure": AdditionalData3DSecure, - "AdditionalDataAirline": AdditionalDataAirline, - "AdditionalDataCarRental": AdditionalDataCarRental, - "AdditionalDataCommon": AdditionalDataCommon, - "AdditionalDataLevel23": AdditionalDataLevel23, - "AdditionalDataLodging": AdditionalDataLodging, - "AdditionalDataOpenInvoice": AdditionalDataOpenInvoice, - "AdditionalDataOpi": AdditionalDataOpi, - "AdditionalDataPayout": AdditionalDataPayout, - "AdditionalDataRatepay": AdditionalDataRatepay, - "AdditionalDataRetry": AdditionalDataRetry, - "AdditionalDataRisk": AdditionalDataRisk, - "AdditionalDataRiskStandalone": AdditionalDataRiskStandalone, - "AdditionalDataSubMerchant": AdditionalDataSubMerchant, - "AdditionalDataTemporaryServices": AdditionalDataTemporaryServices, - "AdditionalDataWallets": AdditionalDataWallets, "Address": Address, "Amount": Amount, - "ApplicationInfo": ApplicationInfo, "BankAccount": BankAccount, - "BrowserInfo": BrowserInfo, "Card": Card, - "CommonField": CommonField, - "DeviceRenderOptions": DeviceRenderOptions, - "ExternalPlatform": ExternalPlatform, - "ForexQuote": ForexQuote, "FraudCheckResult": FraudCheckResult, "FraudResult": FraudResult, "FundSource": FundSource, - "Installments": Installments, - "Mandate": Mandate, - "MerchantDevice": MerchantDevice, - "MerchantRiskIndicator": MerchantRiskIndicator, "ModifyRequest": ModifyRequest, "ModifyResponse": ModifyResponse, "Name": Name, "PayoutRequest": PayoutRequest, "PayoutResponse": PayoutResponse, - "Phone": Phone, "Recurring": Recurring, "ResponseAdditionalData3DSecure": ResponseAdditionalData3DSecure, "ResponseAdditionalDataBillingAddress": ResponseAdditionalDataBillingAddress, @@ -253,21 +114,13 @@ let typeMap: {[index: string]: any} = { "ResponseAdditionalDataNetworkTokens": ResponseAdditionalDataNetworkTokens, "ResponseAdditionalDataOpi": ResponseAdditionalDataOpi, "ResponseAdditionalDataSepa": ResponseAdditionalDataSepa, - "SDKEphemPubKey": SDKEphemPubKey, "ServiceError": ServiceError, - "ShopperInteractionDevice": ShopperInteractionDevice, - "Split": Split, - "SplitAmount": SplitAmount, "StoreDetailAndSubmitRequest": StoreDetailAndSubmitRequest, "StoreDetailAndSubmitResponse": StoreDetailAndSubmitResponse, "StoreDetailRequest": StoreDetailRequest, "StoreDetailResponse": StoreDetailResponse, "SubmitRequest": SubmitRequest, "SubmitResponse": SubmitResponse, - "ThreeDS2RequestData": ThreeDS2RequestData, - "ThreeDSRequestorAuthenticationInfo": ThreeDSRequestorAuthenticationInfo, - "ThreeDSRequestorPriorAuthenticationInfo": ThreeDSRequestorPriorAuthenticationInfo, - "ThreeDSecureData": ThreeDSecureData, } export class ObjectSerializer { diff --git a/src/typings/payouts/sDKEphemPubKey.ts b/src/typings/payouts/sDKEphemPubKey.ts deleted file mode 100644 index ffe46b8..0000000 --- a/src/typings/payouts/sDKEphemPubKey.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 SDKEphemPubKey { - /** - * The `crv` value as received from the 3D Secure 2 SDK. - */ - 'crv'?: string; - /** - * The `kty` value as received from the 3D Secure 2 SDK. - */ - 'kty'?: string; - /** - * The `x` value as received from the 3D Secure 2 SDK. - */ - 'x'?: string; - /** - * 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/payouts/shopperInteractionDevice.ts b/src/typings/payouts/shopperInteractionDevice.ts deleted file mode 100644 index ce8e982..0000000 --- a/src/typings/payouts/shopperInteractionDevice.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 ShopperInteractionDevice { - /** - * Locale on the shopper interaction device. - */ - 'locale'?: string; - /** - * Operating system running on the shopper interaction device. - */ - 'os'?: string; - /** - * 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/payouts/split.ts b/src/typings/payouts/split.ts deleted file mode 100644 index 76b0992..0000000 --- a/src/typings/payouts/split.ts +++ /dev/null @@ -1,76 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 { SplitAmount } from './splitAmount'; - -export class Split { - /** - * Unique identifier of the account where the split amount should be sent. This is required if `type` is **MarketPlace** or **BalanceAccount**. - */ - 'account'?: string; - 'amount': SplitAmount; - /** - * A description of this split. - */ - 'description'?: string; - /** - * Your reference for the split, which you can use to link the split to other operations such as captures and refunds. This is required if `type` is **MarketPlace** or **BalanceAccount**. For the other types, we also recommend sending a reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. If the reference is not provided, the split is reported as part of the aggregated [TransferBalance record type](https://docs.adyen.com/reporting/marketpay-payments-accounting-report) in Adyen for Platforms. - */ - 'reference'?: string; - /** - * 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 { - export enum TypeEnum { - BalanceAccount = 'BalanceAccount', - Commission = 'Commission', - Default = 'Default', - MarketPlace = 'MarketPlace', - PaymentFee = 'PaymentFee', - Remainder = 'Remainder', - Vat = 'VAT', - Verification = 'Verification' - } -} diff --git a/src/typings/payouts/threeDS2RequestData.ts b/src/typings/payouts/threeDS2RequestData.ts deleted file mode 100644 index ef0f123..0000000 --- a/src/typings/payouts/threeDS2RequestData.ts +++ /dev/null @@ -1,392 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 { AcctInfo } from './acctInfo'; -import { DeviceRenderOptions } from './deviceRenderOptions'; -import { Phone } from './phone'; -import { SDKEphemPubKey } from './sDKEphemPubKey'; -import { ThreeDSRequestorAuthenticationInfo } from './threeDSRequestorAuthenticationInfo'; -import { ThreeDSRequestorPriorAuthenticationInfo } from './threeDSRequestorPriorAuthenticationInfo'; - -export class ThreeDS2RequestData { - 'acctInfo'?: AcctInfo; - /** - * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit - */ - 'acctType'?: ThreeDS2RequestData.AcctTypeEnum; - /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. - */ - 'acquirerBIN'?: string; - /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant\'s acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. - */ - 'acquirerMerchantID'?: string; - /** - * Indicates whether the Cardholder Shipping Address and Cardholder Billing Address are the same. Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address does not match Billing Address. - */ - 'addrMatch'?: ThreeDS2RequestData.AddrMatchEnum; - /** - * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. - */ - 'authenticationOnly'?: boolean; - /** - * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` - */ - 'challengeIndicator'?: ThreeDS2RequestData.ChallengeIndicatorEnum; - /** - * The environment of the shopper. Allowed values: * `app` * `browser` - */ - 'deviceChannel': string; - 'deviceRenderOptions'?: DeviceRenderOptions; - 'homePhone'?: Phone; - /** - * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. - */ - 'mcc'?: string; - /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. - */ - 'merchantName'?: string; - /** - * The `messageVersion` value indicating the 3D Secure 2 protocol version. - */ - 'messageVersion'?: string; - 'mobilePhone'?: Phone; - /** - * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. - */ - 'notificationURL'?: string; - /** - * Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. - */ - 'payTokenInd'?: boolean; - /** - * Indicates the type of payment for which an authentication is requested (message extension) - */ - 'paymentAuthenticationUseCase'?: string; - /** - * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. - */ - 'purchaseInstalData'?: string; - /** - * Date after which no further authorisations shall be performed. Format: YYYYMMDD - */ - 'recurringExpiry'?: string; - /** - * Indicates the minimum number of days between authorisations. Maximum length: 4 characters. - */ - 'recurringFrequency'?: string; - /** - * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. - */ - 'sdkAppID'?: string; - /** - * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. - */ - 'sdkEncData'?: string; - 'sdkEphemPubKey'?: SDKEphemPubKey; - /** - * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. - */ - 'sdkMaxTimeout'?: number; - /** - * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. - */ - 'sdkReferenceNumber'?: string; - /** - * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. - */ - 'sdkTransID'?: string; - /** - * Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. - */ - 'sdkVersion'?: string; - /** - * Completion indicator for the device fingerprinting. - */ - 'threeDSCompInd'?: string; - /** - * Indicates the type of Authentication request. - */ - 'threeDSRequestorAuthenticationInd'?: string; - 'threeDSRequestorAuthenticationInfo'?: ThreeDSRequestorAuthenticationInfo; - /** - * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) - */ - 'threeDSRequestorChallengeInd'?: ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum; - /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. - */ - 'threeDSRequestorID'?: string; - /** - * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. - */ - 'threeDSRequestorName'?: string; - 'threeDSRequestorPriorAuthenticationInfo'?: ThreeDSRequestorPriorAuthenticationInfo; - /** - * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. - */ - 'threeDSRequestorURL'?: string; - /** - * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load - */ - 'transType'?: ThreeDS2RequestData.TransTypeEnum; - /** - * Identify the type of the transaction being authenticated. - */ - 'transactionType'?: ThreeDS2RequestData.TransactionTypeEnum; - /** - * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. - */ - '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 { - export enum AcctTypeEnum { - _01 = '01', - _02 = '02', - _03 = '03' - } - export enum AddrMatchEnum { - Y = 'Y', - N = 'N' - } - export enum ChallengeIndicatorEnum { - NoPreference = 'noPreference', - RequestNoChallenge = 'requestNoChallenge', - RequestChallenge = 'requestChallenge', - RequestChallengeAsMandate = 'requestChallengeAsMandate' - } - export enum ThreeDSRequestorChallengeIndEnum { - _01 = '01', - _02 = '02', - _03 = '03', - _04 = '04', - _05 = '05' - } - export enum TransTypeEnum { - _01 = '01', - _03 = '03', - _10 = '10', - _11 = '11', - _28 = '28' - } - export enum TransactionTypeEnum { - GoodsOrServicePurchase = 'goodsOrServicePurchase', - CheckAcceptance = 'checkAcceptance', - AccountFunding = 'accountFunding', - QuasiCashTransaction = 'quasiCashTransaction', - PrepaidActivationAndLoad = 'prepaidActivationAndLoad' - } -} diff --git a/src/typings/payouts/threeDSRequestorAuthenticationInfo.ts b/src/typings/payouts/threeDSRequestorAuthenticationInfo.ts deleted file mode 100644 index dcb19ef..0000000 --- a/src/typings/payouts/threeDSRequestorAuthenticationInfo.ts +++ /dev/null @@ -1,58 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 ThreeDSRequestorAuthenticationInfo { - /** - * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. - */ - 'threeDSReqAuthData'?: string; - /** - * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. - */ - 'threeDSReqAuthMethod'?: ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum; - /** - * 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 { - export enum ThreeDSReqAuthMethodEnum { - _01 = '01', - _02 = '02', - _03 = '03', - _04 = '04', - _05 = '05', - _06 = '06' - } -} diff --git a/src/typings/payouts/threeDSRequestorPriorAuthenticationInfo.ts b/src/typings/payouts/threeDSRequestorPriorAuthenticationInfo.ts deleted file mode 100644 index 622f63b..0000000 --- a/src/typings/payouts/threeDSRequestorPriorAuthenticationInfo.ts +++ /dev/null @@ -1,65 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 ThreeDSRequestorPriorAuthenticationInfo { - /** - * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. - */ - 'threeDSReqPriorAuthData'?: string; - /** - * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. - */ - 'threeDSReqPriorAuthMethod'?: ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum; - /** - * Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM - */ - 'threeDSReqPriorAuthTimestamp'?: string; - /** - * 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 { - export enum ThreeDSReqPriorAuthMethodEnum { - _01 = '01', - _02 = '02', - _03 = '03', - _04 = '04' - } -} diff --git a/src/typings/payouts/threeDSecureData.ts b/src/typings/payouts/threeDSecureData.ts deleted file mode 100644 index c746dee..0000000 --- a/src/typings/payouts/threeDSecureData.ts +++ /dev/null @@ -1,156 +0,0 @@ -/* - * The version of the OpenAPI document: v68 - * 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 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. - */ - 'authenticationResponse'?: ThreeDSecureData.AuthenticationResponseEnum; - /** - * The cardholder authentication value (base64 encoded, 20 bytes in a decoded form). - */ - 'cavv'?: string; - /** - * The CAVV algorithm used. Include this only for 3D Secure 1. - */ - 'cavvAlgorithm'?: string; - /** - * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). - */ - 'challengeCancel'?: ThreeDSecureData.ChallengeCancelEnum; - /** - * In 3D Secure 1, this is the enrollment response from the 3D directory server. In 3D Secure 2, this is the `transStatus` from the `ARes`. - */ - 'directoryResponse'?: ThreeDSecureData.DirectoryResponseEnum; - /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. - */ - 'dsTransID'?: string; - /** - * The electronic commerce indicator. - */ - 'eci'?: string; - /** - * Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations. - */ - 'riskScore'?: string; - /** - * The version of the 3D Secure protocol. - */ - 'threeDSVersion'?: string; - /** - * Network token authentication verification value (TAVV). The network token cryptogram. - */ - 'tokenAuthenticationVerificationValue'?: string; - /** - * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). - */ - 'transStatusReason'?: string; - /** - * 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 { - export enum AuthenticationResponseEnum { - Y = 'Y', - N = 'N', - U = 'U', - A = 'A' - } - export enum ChallengeCancelEnum { - _01 = '01', - _02 = '02', - _03 = '03', - _04 = '04', - _05 = '05', - _06 = '06', - _07 = '07' - } - export enum DirectoryResponseEnum { - A = 'A', - C = 'C', - D = 'D', - I = 'I', - N = 'N', - R = 'R', - U = 'U', - Y = 'Y' - } -}