diff --git a/src/services/checkout/donationsApi.ts b/src/services/checkout/donationsApi.ts index 7c640358e..fb077d305 100644 --- a/src/services/checkout/donationsApi.ts +++ b/src/services/checkout/donationsApi.ts @@ -54,7 +54,7 @@ export class DonationsApi extends Service { } /** - * @summary Start a transaction for donations + * @summary Make a donation * @param donationPaymentRequest {@link DonationPaymentRequest } * @param requestOptions {@link IRequest.Options } * @return {@link DonationPaymentResponse } diff --git a/src/services/management/splitConfigurationMerchantLevelApi.ts b/src/services/management/splitConfigurationMerchantLevelApi.ts index 0675dfaf0..16065c9f7 100644 --- a/src/services/management/splitConfigurationMerchantLevelApi.ts +++ b/src/services/management/splitConfigurationMerchantLevelApi.ts @@ -60,7 +60,7 @@ export class SplitConfigurationMerchantLevelApi extends Service { } /** - * @summary Create a split configuration + * @summary Create a split configuration profile * @param merchantId {@link string } The unique identifier of the merchant account. * @param splitConfiguration {@link SplitConfiguration } * @param requestOptions {@link IRequest.Options } @@ -82,7 +82,7 @@ export class SplitConfigurationMerchantLevelApi extends Service { } /** - * @summary Delete a split configuration + * @summary Delete a split configuration profile * @param merchantId {@link string } The unique identifier of the merchant account. * @param splitConfigurationId {@link string } The unique identifier of the split configuration. * @param requestOptions {@link IRequest.Options } @@ -104,7 +104,7 @@ export class SplitConfigurationMerchantLevelApi extends Service { } /** - * @summary Delete a split configuration rule + * @summary Delete a rule * @param merchantId {@link string } The unique identifier of the merchant account. * @param splitConfigurationId {@link string } The unique identifier of the split configuration. * @param ruleId {@link string } @@ -128,7 +128,7 @@ export class SplitConfigurationMerchantLevelApi extends Service { } /** - * @summary Get a split configuration + * @summary Get a split configuration profile * @param merchantId {@link string } The unique identifier of the merchant account. * @param splitConfigurationId {@link string } The unique identifier of the split configuration. * @param requestOptions {@link IRequest.Options } @@ -150,7 +150,7 @@ export class SplitConfigurationMerchantLevelApi extends Service { } /** - * @summary Get a list of split configurations + * @summary Get a list of split configuration profiles * @param merchantId {@link string } The unique identifier of the merchant account. * @param requestOptions {@link IRequest.Options } * @return {@link SplitConfigurationList } @@ -170,7 +170,7 @@ export class SplitConfigurationMerchantLevelApi extends Service { } /** - * @summary Update split conditions + * @summary Update the split conditions * @param merchantId {@link string } The unique identifier of the merchant account. * @param splitConfigurationId {@link string } The identifier of the split configuration. * @param ruleId {@link string } The unique identifier of the split configuration rule. @@ -196,7 +196,7 @@ export class SplitConfigurationMerchantLevelApi extends Service { } /** - * @summary Update split configuration description + * @summary Update the description of the split configuration profile * @param merchantId {@link string } The unique identifier of the merchant account. * @param splitConfigurationId {@link string } The unique identifier of the split configuration. * @param updateSplitConfigurationRequest {@link UpdateSplitConfigurationRequest } diff --git a/src/typings/binLookup/recurring.ts b/src/typings/binLookup/recurring.ts index 02bad97a6..b8ab31fd6 100644 --- a/src/typings/binLookup/recurring.ts +++ b/src/typings/binLookup/recurring.ts @@ -10,7 +10,7 @@ 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). + * 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). * `EXTERNAL` - Use this when you store payment details and send the raw card number or network token directly in your API request. */ "contract"?: Recurring.ContractEnum; /** @@ -77,8 +77,10 @@ export class Recurring { export namespace Recurring { export enum ContractEnum { Oneclick = 'ONECLICK', + Oneclickrecurring = 'ONECLICK,RECURRING', Recurring = 'RECURRING', - Payout = 'PAYOUT' + Payout = 'PAYOUT', + External = 'EXTERNAL' } export enum TokenServiceEnum { Visatokenservice = 'VISATOKENSERVICE', diff --git a/src/typings/checkout/additionalDataLevel23.ts b/src/typings/checkout/additionalDataLevel23.ts index 4b6da8a77..0ca134b9f 100644 --- a/src/typings/checkout/additionalDataLevel23.ts +++ b/src/typings/checkout/additionalDataLevel23.ts @@ -74,7 +74,7 @@ export class AdditionalDataLevel23 { */ "enhancedSchemeData_shipFromPostalCode"?: string; /** - * The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * For L2 data: must not be all zeroes. * For L3 data: can be zero. */ "enhancedSchemeData_totalTaxAmount"?: string; diff --git a/src/typings/checkout/additionalDataSubMerchant.ts b/src/typings/checkout/additionalDataSubMerchant.ts index b6a48b41a..c1c45301c 100644 --- a/src/typings/checkout/additionalDataSubMerchant.ts +++ b/src/typings/checkout/additionalDataSubMerchant.ts @@ -38,7 +38,7 @@ export class AdditionalDataSubMerchant { */ "subMerchant_subSeller_subSellerNr_name"?: string; /** - * Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant. * Format: Alphanumeric and special characters * Maximum length: 20 characters */ "subMerchant_subSeller_subSellerNr_phoneNumber"?: string; /** diff --git a/src/typings/checkout/cardDetailsRequest.ts b/src/typings/checkout/cardDetailsRequest.ts index f5d5fb51a..28d8d601a 100644 --- a/src/typings/checkout/cardDetailsRequest.ts +++ b/src/typings/checkout/cardDetailsRequest.ts @@ -12,7 +12,7 @@ export class CardDetailsRequest { /** * A minimum of the first six digits of the card number. The full card number gives the best result. You must be [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect raw card data. Alternatively, you can use the `encryptedCardNumber` field. */ - "cardNumber": string; + "cardNumber"?: string; /** * The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE */ diff --git a/src/typings/checkout/createCheckoutSessionRequest.ts b/src/typings/checkout/createCheckoutSessionRequest.ts index aaf8db8c2..69a6e408f 100644 --- a/src/typings/checkout/createCheckoutSessionRequest.ts +++ b/src/typings/checkout/createCheckoutSessionRequest.ts @@ -20,9 +20,9 @@ import { FundOrigin } from "./fundOrigin"; import { FundRecipient } from "./fundRecipient"; import { LineItem } from "./lineItem"; import { Mandate } from "./mandate"; -import { Name } from "./name"; import { PlatformChargebackLogic } from "./platformChargebackLogic"; import { RiskData } from "./riskData"; +import { ShopperName } from "./shopperName"; import { Split } from "./split"; import { ThreeDSecureData } from "./threeDSecureData"; @@ -162,7 +162,7 @@ export class CreateCheckoutSessionRequest { * The combination of a language code and a country code to specify the language to be used in the payment. */ "shopperLocale"?: string; - "shopperName"?: Name | null; + "shopperName"?: ShopperName | null; /** * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ @@ -500,7 +500,7 @@ export class CreateCheckoutSessionRequest { { "name": "shopperName", "baseName": "shopperName", - "type": "Name | null", + "type": "ShopperName | null", "format": "" }, { diff --git a/src/typings/checkout/createCheckoutSessionResponse.ts b/src/typings/checkout/createCheckoutSessionResponse.ts index 129ac4361..1bcd2053a 100644 --- a/src/typings/checkout/createCheckoutSessionResponse.ts +++ b/src/typings/checkout/createCheckoutSessionResponse.ts @@ -20,9 +20,9 @@ import { FundOrigin } from "./fundOrigin"; import { FundRecipient } from "./fundRecipient"; import { LineItem } from "./lineItem"; import { Mandate } from "./mandate"; -import { Name } from "./name"; import { PlatformChargebackLogic } from "./platformChargebackLogic"; import { RiskData } from "./riskData"; +import { ShopperName } from "./shopperName"; import { Split } from "./split"; import { ThreeDSecureData } from "./threeDSecureData"; @@ -170,7 +170,7 @@ export class CreateCheckoutSessionResponse { * The combination of a language code and a country code to specify the language to be used in the payment. */ "shopperLocale"?: string; - "shopperName"?: Name | null; + "shopperName"?: ShopperName | null; /** * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ @@ -524,7 +524,7 @@ export class CreateCheckoutSessionResponse { { "name": "shopperName", "baseName": "shopperName", - "type": "Name | null", + "type": "ShopperName | null", "format": "" }, { diff --git a/src/typings/checkout/donationPaymentRequest.ts b/src/typings/checkout/donationPaymentRequest.ts index 87d9788cc..828765ba7 100644 --- a/src/typings/checkout/donationPaymentRequest.ts +++ b/src/typings/checkout/donationPaymentRequest.ts @@ -17,7 +17,7 @@ import { DeliveryAddress } from "./deliveryAddress"; import { DonationPaymentRequestPaymentMethod } from "./donationPaymentRequestPaymentMethod"; import { LineItem } from "./lineItem"; import { MerchantRiskIndicator } from "./merchantRiskIndicator"; -import { Name } from "./name"; +import { ShopperName } from "./shopperName"; import { ThreeDS2RequestFields } from "./threeDS2RequestFields"; import { ThreeDSecureData } from "./threeDSecureData"; @@ -140,7 +140,7 @@ export class DonationPaymentRequest { * The combination of a language code and a country code to specify the language to be used in the payment. */ "shopperLocale"?: string; - "shopperName"?: Name | null; + "shopperName"?: ShopperName | null; /** * 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. */ @@ -386,7 +386,7 @@ export class DonationPaymentRequest { { "name": "shopperName", "baseName": "shopperName", - "type": "Name | null", + "type": "ShopperName | null", "format": "" }, { diff --git a/src/typings/checkout/models.ts b/src/typings/checkout/models.ts index 8a618f0f7..a7d836e18 100644 --- a/src/typings/checkout/models.ts +++ b/src/typings/checkout/models.ts @@ -185,6 +185,7 @@ export * from "./serviceError" export * from "./sessionResultResponse" export * from "./shopperIdPaymentMethod" export * from "./shopperInteractionDevice" +export * from "./shopperName" export * from "./split" export * from "./splitAmount" export * from "./standalonePaymentCancelRequest" @@ -213,6 +214,7 @@ export * from "./uPIPaymentMethod" export * from "./updatePaymentLinkRequest" export * from "./upiCollectDetails" export * from "./upiIntentDetails" +export * from "./upiQrDetails" export * from "./utilityRequest" export * from "./utilityResponse" export * from "./validateShopperIdRequest" diff --git a/src/typings/checkout/objectSerializer.ts b/src/typings/checkout/objectSerializer.ts index bb8b30516..2bc9d75f9 100644 --- a/src/typings/checkout/objectSerializer.ts +++ b/src/typings/checkout/objectSerializer.ts @@ -187,6 +187,7 @@ import { ServiceError } from "./serviceError"; import { SessionResultResponse } from "./sessionResultResponse"; import { ShopperIdPaymentMethod } from "./shopperIdPaymentMethod"; import { ShopperInteractionDevice } from "./shopperInteractionDevice"; +import { ShopperName } from "./shopperName"; import { Split } from "./split"; import { SplitAmount } from "./splitAmount"; import { StandalonePaymentCancelRequest } from "./standalonePaymentCancelRequest"; @@ -215,6 +216,7 @@ import { UPIPaymentMethod } from "./uPIPaymentMethod"; import { UpdatePaymentLinkRequest } from "./updatePaymentLinkRequest"; import { UpiCollectDetails } from "./upiCollectDetails"; import { UpiIntentDetails } from "./upiIntentDetails"; +import { UpiQrDetails } from "./upiQrDetails"; import { UtilityRequest } from "./utilityRequest"; import { UtilityResponse } from "./utilityResponse"; import { ValidateShopperIdRequest } from "./validateShopperIdRequest"; @@ -439,6 +441,7 @@ let enumsMap: Set = new Set([ "UpdatePaymentLinkRequest.StatusEnum", "UpiCollectDetails.TypeEnum", "UpiIntentDetails.TypeEnum", + "UpiQrDetails.TypeEnum", "VippsDetails.TypeEnum", "VisaCheckoutDetails.FundingSourceEnum", "VisaCheckoutDetails.TypeEnum", @@ -634,6 +637,7 @@ let typeMap: {[index: string]: any} = { "SessionResultResponse": SessionResultResponse, "ShopperIdPaymentMethod": ShopperIdPaymentMethod, "ShopperInteractionDevice": ShopperInteractionDevice, + "ShopperName": ShopperName, "Split": Split, "SplitAmount": SplitAmount, "StandalonePaymentCancelRequest": StandalonePaymentCancelRequest, @@ -662,6 +666,7 @@ let typeMap: {[index: string]: any} = { "UpdatePaymentLinkRequest": UpdatePaymentLinkRequest, "UpiCollectDetails": UpiCollectDetails, "UpiIntentDetails": UpiIntentDetails, + "UpiQrDetails": UpiQrDetails, "UtilityRequest": UtilityRequest, "UtilityResponse": UtilityResponse, "ValidateShopperIdRequest": ValidateShopperIdRequest, diff --git a/src/typings/checkout/paymentDetails.ts b/src/typings/checkout/paymentDetails.ts index 975da7b9c..5f78c3c14 100644 --- a/src/typings/checkout/paymentDetails.ts +++ b/src/typings/checkout/paymentDetails.ts @@ -53,6 +53,7 @@ export namespace PaymentDetails { Paybright = 'paybright', Paynow = 'paynow', AffirmPos = 'affirm_pos', + Iris = 'iris', Trustly = 'trustly', Trustlyvector = 'trustlyvector', Oney = 'oney', @@ -73,7 +74,6 @@ export namespace PaymentDetails { WalletIn = 'wallet_IN', PayuInCashcard = 'payu_IN_cashcard', PayuInNb = 'payu_IN_nb', - UpiQr = 'upi_qr', Paytm = 'paytm', MolpayEbankingVn = 'molpay_ebanking_VN', MolpayEbankingMy = 'molpay_ebanking_MY', diff --git a/src/typings/checkout/paymentRequest.ts b/src/typings/checkout/paymentRequest.ts index a08b55b00..78964d019 100644 --- a/src/typings/checkout/paymentRequest.ts +++ b/src/typings/checkout/paymentRequest.ts @@ -25,10 +25,10 @@ import { Installments } from "./installments"; import { LineItem } from "./lineItem"; import { Mandate } from "./mandate"; import { MerchantRiskIndicator } from "./merchantRiskIndicator"; -import { Name } from "./name"; import { PaymentRequestPaymentMethod } from "./paymentRequestPaymentMethod"; import { PlatformChargebackLogic } from "./platformChargebackLogic"; import { RiskData } from "./riskData"; +import { ShopperName } from "./shopperName"; import { Split } from "./split"; import { SubMerchantInfo } from "./subMerchantInfo"; import { Surcharge } from "./surcharge"; @@ -190,6 +190,10 @@ export class PaymentRequest { "returnUrl": string; "riskData"?: RiskData | null; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK to function optimally. Clients must not add unrelated or sensitive personal information. + */ + "sdkData"?: string; + /** * The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 */ "sessionValidity"?: string; @@ -213,7 +217,7 @@ export class PaymentRequest { * The combination of a language code and a country code to specify the language to be used in the payment. */ "shopperLocale"?: string; - "shopperName"?: Name | null; + "shopperName"?: ShopperName | null; /** * 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. */ @@ -583,6 +587,12 @@ export class PaymentRequest { "type": "RiskData | null", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "sessionValidity", "baseName": "sessionValidity", @@ -622,7 +632,7 @@ export class PaymentRequest { { "name": "shopperName", "baseName": "shopperName", - "type": "Name | null", + "type": "ShopperName | null", "format": "" }, { diff --git a/src/typings/checkout/paymentRequestPaymentMethod.ts b/src/typings/checkout/paymentRequestPaymentMethod.ts index 848f95e28..485f75854 100644 --- a/src/typings/checkout/paymentRequestPaymentMethod.ts +++ b/src/typings/checkout/paymentRequestPaymentMethod.ts @@ -54,6 +54,7 @@ import { StoredPaymentMethodDetails } from "./storedPaymentMethodDetails"; import { TwintDetails } from "./twintDetails"; import { UpiCollectDetails } from "./upiCollectDetails"; import { UpiIntentDetails } from "./upiIntentDetails"; +import { UpiQrDetails } from "./upiQrDetails"; import { VippsDetails } from "./vippsDetails"; import { VisaCheckoutDetails } from "./visaCheckoutDetails"; import { WeChatPayDetails } from "./weChatPayDetails"; @@ -70,7 +71,7 @@ import { ZipDetails } from "./zipDetails"; * Type * @export */ -export type PaymentRequestPaymentMethod = AchDetails | AffirmDetails | AfterpayDetails | AmazonPayDetails | AncvDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CashAppDetails | CellulantDetails | DokuDetails | DragonpayDetails | EBankingFinlandDetails | EcontextVoucherDetails | EftDetails | FastlaneDetails | GenericIssuerPaymentMethodDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayByBankAISDirectDebitDetails | PayByBankDetails | PayPalDetails | PayPayDetails | PayToDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | PixDetails | PseDetails | RakutenPayDetails | RatepayDetails | RivertyDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | TwintDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails; +export type PaymentRequestPaymentMethod = AchDetails | AffirmDetails | AfterpayDetails | AmazonPayDetails | AncvDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CashAppDetails | CellulantDetails | DokuDetails | DragonpayDetails | EBankingFinlandDetails | EcontextVoucherDetails | EftDetails | FastlaneDetails | GenericIssuerPaymentMethodDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayByBankAISDirectDebitDetails | PayByBankDetails | PayPalDetails | PayPayDetails | PayToDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | PixDetails | PseDetails | RakutenPayDetails | RatepayDetails | RivertyDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | TwintDetails | UpiCollectDetails | UpiIntentDetails | UpiQrDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails; /** * @type PaymentRequestPaymentMethodClass diff --git a/src/typings/checkout/recurring.ts b/src/typings/checkout/recurring.ts index 68b3f2227..2fd2361f0 100644 --- a/src/typings/checkout/recurring.ts +++ b/src/typings/checkout/recurring.ts @@ -10,7 +10,7 @@ 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). + * 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). * `EXTERNAL` - Use this when you store payment details and send the raw card number or network token directly in your API request. */ "contract"?: Recurring.ContractEnum; /** @@ -77,8 +77,10 @@ export class Recurring { export namespace Recurring { export enum ContractEnum { Oneclick = 'ONECLICK', + Oneclickrecurring = 'ONECLICK,RECURRING', Recurring = 'RECURRING', - Payout = 'PAYOUT' + Payout = 'PAYOUT', + External = 'EXTERNAL' } export enum TokenServiceEnum { Visatokenservice = 'VISATOKENSERVICE', diff --git a/src/typings/checkout/shopperName.ts b/src/typings/checkout/shopperName.ts new file mode 100644 index 000000000..f5ecc524c --- /dev/null +++ b/src/typings/checkout/shopperName.ts @@ -0,0 +1,46 @@ +/* + * The version of the OpenAPI document: v71 + * + * + * 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 ShopperName { + /** + * The first name. + */ + "firstName": string; + /** + * The last name. + */ + "lastName": string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "firstName", + "baseName": "firstName", + "type": "string", + "format": "" + }, + { + "name": "lastName", + "baseName": "lastName", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return ShopperName.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/checkout/upiCollectDetails.ts b/src/typings/checkout/upiCollectDetails.ts index 0ebc2dcea..d6cdc918f 100644 --- a/src/typings/checkout/upiCollectDetails.ts +++ b/src/typings/checkout/upiCollectDetails.ts @@ -12,7 +12,7 @@ export class UpiCollectDetails { /** * The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper. */ - "billingSequenceNumber": string; + "billingSequenceNumber"?: string; /** * The checkout attempt identifier. */ diff --git a/src/typings/checkout/upiIntentDetails.ts b/src/typings/checkout/upiIntentDetails.ts index d84bb5eb7..f8e45fd07 100644 --- a/src/typings/checkout/upiIntentDetails.ts +++ b/src/typings/checkout/upiIntentDetails.ts @@ -14,6 +14,10 @@ export class UpiIntentDetails { */ "appId"?: string; /** + * The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper. + */ + "billingSequenceNumber"?: string; + /** * The checkout attempt identifier. */ "checkoutAttemptId"?: string; @@ -48,6 +52,12 @@ export class UpiIntentDetails { "type": "string", "format": "" }, + { + "name": "billingSequenceNumber", + "baseName": "billingSequenceNumber", + "type": "string", + "format": "" + }, { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", diff --git a/src/typings/checkout/upiQrDetails.ts b/src/typings/checkout/upiQrDetails.ts new file mode 100644 index 000000000..b51daf290 --- /dev/null +++ b/src/typings/checkout/upiQrDetails.ts @@ -0,0 +1,94 @@ +/* + * The version of the OpenAPI document: v71 + * + * + * 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 UpiQrDetails { + /** + * The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper. + */ + "billingSequenceNumber"?: string; + /** + * The checkout attempt identifier. + */ + "checkoutAttemptId"?: string; + /** + * This is the `recurringDetailReference` returned in the response when you created the token. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. + */ + "recurringDetailReference"?: string; + /** + * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. + */ + "shopperNotificationReference"?: string; + /** + * This is the `recurringDetailReference` returned in the response when you created the token. + */ + "storedPaymentMethodId"?: string; + /** + * **upi_qr** + */ + "type": UpiQrDetails.TypeEnum; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "billingSequenceNumber", + "baseName": "billingSequenceNumber", + "type": "string", + "format": "" + }, + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string", + "format": "" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string", + "format": "" + }, + { + "name": "shopperNotificationReference", + "baseName": "shopperNotificationReference", + "type": "string", + "format": "" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string", + "format": "" + }, + { + "name": "type", + "baseName": "type", + "type": "UpiQrDetails.TypeEnum", + "format": "" + } ]; + + static getAttributeTypeMap() { + return UpiQrDetails.attributeTypeMap; + } + + public constructor() { + } +} + +export namespace UpiQrDetails { + export enum TypeEnum { + UpiQr = 'upi_qr' + } +} diff --git a/src/typings/management/paymentMethodResponse.ts b/src/typings/management/paymentMethodResponse.ts index c06d2d81d..74b38ec7a 100644 --- a/src/typings/management/paymentMethodResponse.ts +++ b/src/typings/management/paymentMethodResponse.ts @@ -100,6 +100,7 @@ export namespace PaymentMethodResponse { BaneseCardPrepaid = 'banese_card_prepaid', Bcmc = 'bcmc', Blik = 'blik', + BrSchemes = 'br_schemes', Cartebancaire = 'cartebancaire', Clearpay = 'clearpay', Clicktopay = 'clicktopay', diff --git a/src/typings/management/paymentMethodSetupInfo.ts b/src/typings/management/paymentMethodSetupInfo.ts index 511bb0b06..41dd16c07 100644 --- a/src/typings/management/paymentMethodSetupInfo.ts +++ b/src/typings/management/paymentMethodSetupInfo.ts @@ -455,6 +455,7 @@ export namespace PaymentMethodSetupInfo { BaneseCardPrepaid = 'banese_card_prepaid', Bcmc = 'bcmc', Blik = 'blik', + BrSchemes = 'br_schemes', Cartebancaire = 'cartebancaire', Clearpay = 'clearpay', Clicktopay = 'clicktopay', diff --git a/src/typings/management/splitConfigurationRule.ts b/src/typings/management/splitConfigurationRule.ts index 1a6fbec7e..292228317 100644 --- a/src/typings/management/splitConfigurationRule.ts +++ b/src/typings/management/splitConfigurationRule.ts @@ -28,7 +28,7 @@ export class SplitConfigurationRule { */ "ruleId"?: string; /** - * The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels. + * The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: online transactions where the cardholder is present. * **ContAuth**: card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: all sales channels. */ "shopperInteraction": SplitConfigurationRule.ShopperInteractionEnum; "splitLogic": SplitConfigurationLogic; diff --git a/src/typings/management/updateSplitConfigurationRuleRequest.ts b/src/typings/management/updateSplitConfigurationRuleRequest.ts index cc21e8a84..be9988c72 100644 --- a/src/typings/management/updateSplitConfigurationRuleRequest.ts +++ b/src/typings/management/updateSplitConfigurationRuleRequest.ts @@ -22,7 +22,7 @@ export class UpdateSplitConfigurationRuleRequest { */ "paymentMethod": string; /** - * The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels. + * The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: online transactions where the cardholder is present. * **ContAuth**: card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: all sales channels. */ "shopperInteraction": string; diff --git a/src/typings/managementWebhooks/accountCapabilityData.ts b/src/typings/managementWebhooks/accountCapabilityData.ts index a7c4d6252..006d55910 100644 --- a/src/typings/managementWebhooks/accountCapabilityData.ts +++ b/src/typings/managementWebhooks/accountCapabilityData.ts @@ -24,7 +24,7 @@ export class AccountCapabilityData { */ "capability"?: string; /** - * List of entities that has problems with verification. The information includes the details of the errors and the actions that you can take to resolve them. + * List of entities that have problems with verification. The information includes the details of the errors and the actions that you can take to resolve them. */ "problems"?: Array; /** diff --git a/src/typings/managementWebhooks/terminalAssignmentNotificationRequest.ts b/src/typings/managementWebhooks/terminalAssignmentNotificationRequest.ts index 52ac9c4f0..c594feff4 100644 --- a/src/typings/managementWebhooks/terminalAssignmentNotificationRequest.ts +++ b/src/typings/managementWebhooks/terminalAssignmentNotificationRequest.ts @@ -14,10 +14,14 @@ export class TerminalAssignmentNotificationRequest { */ "assignedToAccount": string; /** - * The unique identifier of the store to which the terminal is assigned. + * The store that the terminal is assigned to, identified by the store reference (also known as store code). */ "assignedToStore"?: string; /** + * The unique identifier of the store to which the terminal is assigned. + */ + "assignedToStoreId"?: string; + /** * The date and time when an event has been completed. */ "eventDate": string; @@ -47,6 +51,12 @@ export class TerminalAssignmentNotificationRequest { "type": "string", "format": "" }, + { + "name": "assignedToStoreId", + "baseName": "assignedToStoreId", + "type": "string", + "format": "" + }, { "name": "eventDate", "baseName": "eventDate", diff --git a/src/typings/managementWebhooks/verificationError.ts b/src/typings/managementWebhooks/verificationError.ts index 5409ef6db..fdb0cc37c 100644 --- a/src/typings/managementWebhooks/verificationError.ts +++ b/src/typings/managementWebhooks/verificationError.ts @@ -80,6 +80,7 @@ export class VerificationError { export namespace VerificationError { export enum TypeEnum { DataMissing = 'dataMissing', + DataReview = 'dataReview', InvalidInput = 'invalidInput', PendingStatus = 'pendingStatus' } diff --git a/src/typings/managementWebhooks/verificationErrorRecursive.ts b/src/typings/managementWebhooks/verificationErrorRecursive.ts index eab00780f..a074c0df4 100644 --- a/src/typings/managementWebhooks/verificationErrorRecursive.ts +++ b/src/typings/managementWebhooks/verificationErrorRecursive.ts @@ -69,6 +69,7 @@ export class VerificationErrorRecursive { export namespace VerificationErrorRecursive { export enum TypeEnum { DataMissing = 'dataMissing', + DataReview = 'dataReview', InvalidInput = 'invalidInput', PendingStatus = 'pendingStatus' } diff --git a/src/typings/payment/additionalDataSubMerchant.ts b/src/typings/payment/additionalDataSubMerchant.ts index 3fb76addf..eea7e1d65 100644 --- a/src/typings/payment/additionalDataSubMerchant.ts +++ b/src/typings/payment/additionalDataSubMerchant.ts @@ -38,7 +38,7 @@ export class AdditionalDataSubMerchant { */ "subMerchant_subSeller_subSellerNr_name"?: string; /** - * Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant. * Format: Alphanumeric and special characters * Maximum length: 20 characters */ "subMerchant_subSeller_subSellerNr_phoneNumber"?: string; /** diff --git a/src/typings/payment/recurring.ts b/src/typings/payment/recurring.ts index fba92e9b7..fac636e98 100644 --- a/src/typings/payment/recurring.ts +++ b/src/typings/payment/recurring.ts @@ -10,7 +10,7 @@ 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). + * 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). * `EXTERNAL` - Use this when you store payment details and send the raw card number or network token directly in your API request. */ "contract"?: Recurring.ContractEnum; /** @@ -77,8 +77,10 @@ export class Recurring { export namespace Recurring { export enum ContractEnum { Oneclick = 'ONECLICK', + Oneclickrecurring = 'ONECLICK,RECURRING', Recurring = 'RECURRING', - Payout = 'PAYOUT' + Payout = 'PAYOUT', + External = 'EXTERNAL' } export enum TokenServiceEnum { Visatokenservice = 'VISATOKENSERVICE', diff --git a/src/typings/payout/models.ts b/src/typings/payout/models.ts index 2f467abbf..d9724110a 100644 --- a/src/typings/payout/models.ts +++ b/src/typings/payout/models.ts @@ -21,6 +21,7 @@ export * from "./responseAdditionalDataInstallments" export * from "./responseAdditionalDataNetworkTokens" export * from "./responseAdditionalDataOpi" export * from "./responseAdditionalDataSepa" +export * from "./responseAdditionalDataSwish" export * from "./serviceError" export * from "./storeDetailAndSubmitRequest" export * from "./storeDetailAndSubmitResponse" diff --git a/src/typings/payout/objectSerializer.ts b/src/typings/payout/objectSerializer.ts index 67ec0f887..a3b3ecf13 100644 --- a/src/typings/payout/objectSerializer.ts +++ b/src/typings/payout/objectSerializer.ts @@ -23,6 +23,7 @@ import { ResponseAdditionalDataInstallments } from "./responseAdditionalDataInst import { ResponseAdditionalDataNetworkTokens } from "./responseAdditionalDataNetworkTokens"; import { ResponseAdditionalDataOpi } from "./responseAdditionalDataOpi"; import { ResponseAdditionalDataSepa } from "./responseAdditionalDataSepa"; +import { ResponseAdditionalDataSwish } from "./responseAdditionalDataSwish"; import { ServiceError } from "./serviceError"; import { StoreDetailAndSubmitRequest } from "./storeDetailAndSubmitRequest"; import { StoreDetailAndSubmitResponse } from "./storeDetailAndSubmitResponse"; @@ -82,6 +83,7 @@ let typeMap: {[index: string]: any} = { "ResponseAdditionalDataNetworkTokens": ResponseAdditionalDataNetworkTokens, "ResponseAdditionalDataOpi": ResponseAdditionalDataOpi, "ResponseAdditionalDataSepa": ResponseAdditionalDataSepa, + "ResponseAdditionalDataSwish": ResponseAdditionalDataSwish, "ServiceError": ServiceError, "StoreDetailAndSubmitRequest": StoreDetailAndSubmitRequest, "StoreDetailAndSubmitResponse": StoreDetailAndSubmitResponse, diff --git a/src/typings/payout/recurring.ts b/src/typings/payout/recurring.ts index fba92e9b7..fac636e98 100644 --- a/src/typings/payout/recurring.ts +++ b/src/typings/payout/recurring.ts @@ -10,7 +10,7 @@ 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). + * 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). * `EXTERNAL` - Use this when you store payment details and send the raw card number or network token directly in your API request. */ "contract"?: Recurring.ContractEnum; /** @@ -77,8 +77,10 @@ export class Recurring { export namespace Recurring { export enum ContractEnum { Oneclick = 'ONECLICK', + Oneclickrecurring = 'ONECLICK,RECURRING', Recurring = 'RECURRING', - Payout = 'PAYOUT' + Payout = 'PAYOUT', + External = 'EXTERNAL' } export enum TokenServiceEnum { Visatokenservice = 'VISATOKENSERVICE', diff --git a/src/typings/payout/responseAdditionalDataSwish.ts b/src/typings/payout/responseAdditionalDataSwish.ts new file mode 100644 index 000000000..43b271c67 --- /dev/null +++ b/src/typings/payout/responseAdditionalDataSwish.ts @@ -0,0 +1,36 @@ +/* + * The version of the OpenAPI document: v68 + * + * + * 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 ResponseAdditionalDataSwish { + /** + * A Swish shopper\'s telephone number. + */ + "swish_payerAlias"?: string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "swish_payerAlias", + "baseName": "swish.payerAlias", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataSwish.attributeTypeMap; + } + + public constructor() { + } +} +