diff --git a/src/services/checkout/modificationsApi.ts b/src/services/checkout/modificationsApi.ts index 8fe53856d..730237dde 100644 --- a/src/services/checkout/modificationsApi.ts +++ b/src/services/checkout/modificationsApi.ts @@ -63,7 +63,7 @@ export class ModificationsApi extends Service { /** * @summary Cancel an authorised payment - * @param paymentPspReference {@link string } The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to cancel. + * @param paymentPspReference {@link string } The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment that you want to cancel. * @param paymentCancelRequest {@link PaymentCancelRequest } * @param requestOptions {@link IRequest.Options } * @return {@link PaymentCancelResponse } @@ -85,7 +85,7 @@ export class ModificationsApi extends Service { /** * @summary Capture an authorised payment - * @param paymentPspReference {@link string } The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture. + * @param paymentPspReference {@link string } The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment that you want to capture. * @param paymentCaptureRequest {@link PaymentCaptureRequest } * @param requestOptions {@link IRequest.Options } * @return {@link PaymentCaptureResponse } @@ -107,7 +107,7 @@ export class ModificationsApi extends Service { /** * @summary Refund a captured payment - * @param paymentPspReference {@link string } The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to refund. + * @param paymentPspReference {@link string } The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment that you want to refund. * @param paymentRefundRequest {@link PaymentRefundRequest } * @param requestOptions {@link IRequest.Options } * @return {@link PaymentRefundResponse } @@ -129,7 +129,7 @@ export class ModificationsApi extends Service { /** * @summary Refund or cancel a payment - * @param paymentPspReference {@link string } The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to reverse. + * @param paymentPspReference {@link string } The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment that you want to reverse. * @param paymentReversalRequest {@link PaymentReversalRequest } * @param requestOptions {@link IRequest.Options } * @return {@link PaymentReversalResponse } @@ -151,7 +151,7 @@ export class ModificationsApi extends Service { /** * @summary Update an authorised amount - * @param paymentPspReference {@link string } The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment. + * @param paymentPspReference {@link string } The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment. * @param paymentAmountUpdateRequest {@link PaymentAmountUpdateRequest } * @param requestOptions {@link IRequest.Options } * @return {@link PaymentAmountUpdateResponse } diff --git a/src/services/checkout/utilityApi.ts b/src/services/checkout/utilityApi.ts index fd3210c08..829e5469e 100644 --- a/src/services/checkout/utilityApi.ts +++ b/src/services/checkout/utilityApi.ts @@ -21,6 +21,8 @@ import { PaypalUpdateOrderRequest } from "../../typings/checkout/models"; import { PaypalUpdateOrderResponse } from "../../typings/checkout/models"; import { UtilityRequest } from "../../typings/checkout/models"; import { UtilityResponse } from "../../typings/checkout/models"; +import { ValidateShopperIdRequest } from "../../typings/checkout/models"; +import { ValidateShopperIdResponse } from "../../typings/checkout/models"; /** * API handler for UtilityApi @@ -97,4 +99,24 @@ export class UtilityApi extends Service { return ObjectSerializer.deserialize(response, "PaypalUpdateOrderResponse"); } + /** + * @summary Validates shopper Id + * @param validateShopperIdRequest {@link ValidateShopperIdRequest } + * @param requestOptions {@link IRequest.Options } + * @return {@link ValidateShopperIdResponse } + */ + public async validateShopperId(validateShopperIdRequest: ValidateShopperIdRequest, requestOptions?: IRequest.Options): Promise { + const endpoint = `${this.baseUrl}/validateShopperId`; + const resource = new Resource(this, endpoint); + + const request: ValidateShopperIdRequest = ObjectSerializer.serialize(validateShopperIdRequest, "ValidateShopperIdRequest"); + const response = await getJsonResponse( + resource, + request, + { ...requestOptions, method: "POST" } + ); + + return ObjectSerializer.deserialize(response, "ValidateShopperIdResponse"); + } + } diff --git a/src/typings/balancePlatform/deliveryAddress.ts b/src/typings/balancePlatform/deliveryAddress.ts index 19f293186..328530904 100644 --- a/src/typings/balancePlatform/deliveryAddress.ts +++ b/src/typings/balancePlatform/deliveryAddress.ts @@ -34,7 +34,7 @@ export class DeliveryAddress { */ "postalCode"?: string; /** - * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The state or province code, maximum 3 characters. For example, **CA** for California in the US or **ON** for Ontario in Canada. > Required for the US and Canada. */ "stateOrProvince"?: string; diff --git a/src/typings/balancePlatform/models.ts b/src/typings/balancePlatform/models.ts index 763c9785c..5736b1d33 100644 --- a/src/typings/balancePlatform/models.ts +++ b/src/typings/balancePlatform/models.ts @@ -168,6 +168,7 @@ export * from "./transferRouteResponse" export * from "./uKLocalAccountIdentification" export * from "./uSInstantPayoutAddressRequirement" export * from "./uSInternationalAchAddressRequirement" +export * from "./uSInternationalAchPriorityRequirement" export * from "./uSLocalAccountIdentification" export * from "./updateNetworkTokenRequest" export * from "./updatePaymentInstrument" diff --git a/src/typings/balancePlatform/objectSerializer.ts b/src/typings/balancePlatform/objectSerializer.ts index 71e4d5917..a1970d9ff 100644 --- a/src/typings/balancePlatform/objectSerializer.ts +++ b/src/typings/balancePlatform/objectSerializer.ts @@ -170,6 +170,7 @@ import { TransferRouteResponse } from "./transferRouteResponse"; import { UKLocalAccountIdentification } from "./uKLocalAccountIdentification"; import { USInstantPayoutAddressRequirement } from "./uSInstantPayoutAddressRequirement"; import { USInternationalAchAddressRequirement } from "./uSInternationalAchAddressRequirement"; +import { USInternationalAchPriorityRequirement } from "./uSInternationalAchPriorityRequirement"; import { USLocalAccountIdentification } from "./uSLocalAccountIdentification"; import { UpdateNetworkTokenRequest } from "./updateNetworkTokenRequest"; import { UpdatePaymentInstrument } from "./updatePaymentInstrument"; @@ -317,6 +318,7 @@ let enumsMap: Set = new Set([ "UKLocalAccountIdentification.TypeEnum", "USInstantPayoutAddressRequirement.TypeEnum", "USInternationalAchAddressRequirement.TypeEnum", + "USInternationalAchPriorityRequirement.TypeEnum", "USLocalAccountIdentification.AccountTypeEnum", "USLocalAccountIdentification.TypeEnum", "UpdateNetworkTokenRequest.StatusEnum", @@ -506,6 +508,7 @@ let typeMap: {[index: string]: any} = { "UKLocalAccountIdentification": UKLocalAccountIdentification, "USInstantPayoutAddressRequirement": USInstantPayoutAddressRequirement, "USInternationalAchAddressRequirement": USInternationalAchAddressRequirement, + "USInternationalAchPriorityRequirement": USInternationalAchPriorityRequirement, "USLocalAccountIdentification": USLocalAccountIdentification, "UpdateNetworkTokenRequest": UpdateNetworkTokenRequest, "UpdatePaymentInstrument": UpdatePaymentInstrument, diff --git a/src/typings/balancePlatform/transferRouteRequirementsInner.ts b/src/typings/balancePlatform/transferRouteRequirementsInner.ts index cd36ed1c1..56770d726 100644 --- a/src/typings/balancePlatform/transferRouteRequirementsInner.ts +++ b/src/typings/balancePlatform/transferRouteRequirementsInner.ts @@ -16,6 +16,7 @@ import { IbanAccountIdentificationRequirement } from "./ibanAccountIdentificatio import { PaymentInstrumentRequirement } from "./paymentInstrumentRequirement"; import { USInstantPayoutAddressRequirement } from "./uSInstantPayoutAddressRequirement"; import { USInternationalAchAddressRequirement } from "./uSInternationalAchAddressRequirement"; +import { USInternationalAchPriorityRequirement } from "./uSInternationalAchPriorityRequirement"; /** @@ -23,7 +24,7 @@ import { USInternationalAchAddressRequirement } from "./uSInternationalAchAddres * Type * @export */ -export type TransferRouteRequirementsInner = AdditionalBankIdentificationRequirement | AddressRequirement | AmountMinMaxRequirement | AmountNonZeroDecimalsRequirement | BankAccountIdentificationTypeRequirement | IbanAccountIdentificationRequirement | PaymentInstrumentRequirement | USInstantPayoutAddressRequirement | USInternationalAchAddressRequirement; +export type TransferRouteRequirementsInner = AdditionalBankIdentificationRequirement | AddressRequirement | AmountMinMaxRequirement | AmountNonZeroDecimalsRequirement | BankAccountIdentificationTypeRequirement | IbanAccountIdentificationRequirement | PaymentInstrumentRequirement | USInstantPayoutAddressRequirement | USInternationalAchAddressRequirement | USInternationalAchPriorityRequirement; /** * @type TransferRouteRequirementsInnerClass diff --git a/src/typings/balancePlatform/uSInternationalAchPriorityRequirement.ts b/src/typings/balancePlatform/uSInternationalAchPriorityRequirement.ts new file mode 100644 index 000000000..1f56a09c6 --- /dev/null +++ b/src/typings/balancePlatform/uSInternationalAchPriorityRequirement.ts @@ -0,0 +1,51 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * 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 USInternationalAchPriorityRequirement { + /** + * Specifies that transactions deemed to be International ACH (IAT) per OFAC/NACHA rules cannot have fast priority. + */ + "description"?: string; + /** + * **usInternationalAchPriorityRequirement** + */ + "type": USInternationalAchPriorityRequirement.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": "description", + "baseName": "description", + "type": "string", + "format": "" + }, + { + "name": "type", + "baseName": "type", + "type": "USInternationalAchPriorityRequirement.TypeEnum", + "format": "" + } ]; + + static getAttributeTypeMap() { + return USInternationalAchPriorityRequirement.attributeTypeMap; + } + + public constructor() { + } +} + +export namespace USInternationalAchPriorityRequirement { + export enum TypeEnum { + UsInternationalAchPriorityRequirement = 'usInternationalAchPriorityRequirement' + } +} diff --git a/src/typings/checkout/additionalDataAirline.ts b/src/typings/checkout/additionalDataAirline.ts index 69ed3ca2d..fe2d8c2a4 100644 --- a/src/typings/checkout/additionalDataAirline.ts +++ b/src/typings/checkout/additionalDataAirline.ts @@ -74,7 +74,7 @@ export class AdditionalDataAirline { */ "airline_leg_destination_code"?: string; /** - * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 6 characters * Must not be all spaces * Must not be all zeros. + * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. */ "airline_leg_fare_base_code"?: string; /** diff --git a/src/typings/checkout/additionalDataLevel23.ts b/src/typings/checkout/additionalDataLevel23.ts index c9724a7fa..4b6da8a77 100644 --- a/src/typings/checkout/additionalDataLevel23.ts +++ b/src/typings/checkout/additionalDataLevel23.ts @@ -38,7 +38,7 @@ export class AdditionalDataLevel23 { */ "enhancedSchemeData_itemDetailLine_itemNr_commodityCode"?: string; /** - * A description of the item. * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros. + * A description of the item, that provides details about the purchase. For Visa transactions with level 3 ESD, the description must not be the same or very similar to your merchant name, or, consist only of common words like \"product\", or \"service\". * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not be all special characters. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros. */ "enhancedSchemeData_itemDetailLine_itemNr_description"?: string; /** diff --git a/src/typings/checkout/balanceCheckRequest.ts b/src/typings/checkout/balanceCheckRequest.ts index aaa0337d7..0d23526da 100644 --- a/src/typings/checkout/balanceCheckRequest.ts +++ b/src/typings/checkout/balanceCheckRequest.ts @@ -110,7 +110,7 @@ export class BalanceCheckRequest { */ "shopperEmail"?: string; /** - * The shopper\'s IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper\'s IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ "shopperIP"?: string; /** @@ -143,7 +143,7 @@ export class BalanceCheckRequest { */ "store"?: string; /** - * The shopper\'s telephone number. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we drop the value and do not submit it for authentication. + * The shopper\'s telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ "telephoneNumber"?: string; "threeDS2RequestData"?: ThreeDS2RequestData | null; diff --git a/src/typings/checkout/cardDetails.ts b/src/typings/checkout/cardDetails.ts index 6de3e21c7..fc8caed2b 100644 --- a/src/typings/checkout/cardDetails.ts +++ b/src/typings/checkout/cardDetails.ts @@ -66,7 +66,7 @@ export class CardDetails { */ "holderName"?: string; /** - * The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. + * The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. */ "networkPaymentReference"?: string; /** diff --git a/src/typings/checkout/cardDetailsRequest.ts b/src/typings/checkout/cardDetailsRequest.ts index 4d1bb2375..838399c19 100644 --- a/src/typings/checkout/cardDetailsRequest.ts +++ b/src/typings/checkout/cardDetailsRequest.ts @@ -26,7 +26,7 @@ export class CardDetailsRequest { */ "merchantAccount": string; /** - * The card brands you support. This is the [`brands`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods__resParam_paymentMethods-brands) array from your [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. If not included, our API uses the ones configured for your merchant account and, if provided, the country code. + * The card brands you support. This is the [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) array from your [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. If not included, our API uses the ones configured for your merchant account and, if provided, the country code. */ "supportedBrands"?: Array; diff --git a/src/typings/checkout/cardDonations.ts b/src/typings/checkout/cardDonations.ts index 74beef7dd..897f2be43 100644 --- a/src/typings/checkout/cardDonations.ts +++ b/src/typings/checkout/cardDonations.ts @@ -66,7 +66,7 @@ export class CardDonations { */ "holderName"?: string; /** - * The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. + * The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. */ "networkPaymentReference"?: string; /** diff --git a/src/typings/checkout/createCheckoutSessionRequest.ts b/src/typings/checkout/createCheckoutSessionRequest.ts index f71bcb466..aaf8db8c2 100644 --- a/src/typings/checkout/createCheckoutSessionRequest.ts +++ b/src/typings/checkout/createCheckoutSessionRequest.ts @@ -91,7 +91,7 @@ export class CreateCheckoutSessionRequest { */ "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, Riverty, and Zip. + * 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 Riverty. */ "lineItems"?: Array; "mandate"?: Mandate | null; @@ -142,7 +142,7 @@ export class CreateCheckoutSessionRequest { */ "reference": string; /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. */ "returnUrl": string; "riskData"?: RiskData | null; @@ -151,7 +151,7 @@ export class CreateCheckoutSessionRequest { */ "shopperEmail"?: string; /** - * The shopper\'s IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper\'s IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ "shopperIP"?: string; /** @@ -208,7 +208,7 @@ export class CreateCheckoutSessionRequest { */ "storePaymentMethodMode"?: CreateCheckoutSessionRequest.StorePaymentMethodModeEnum; /** - * The shopper\'s telephone number. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we drop the value and do not submit it for authentication. + * The shopper\'s telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ "telephoneNumber"?: string; /** diff --git a/src/typings/checkout/createCheckoutSessionResponse.ts b/src/typings/checkout/createCheckoutSessionResponse.ts index cf35dfddb..129ac4361 100644 --- a/src/typings/checkout/createCheckoutSessionResponse.ts +++ b/src/typings/checkout/createCheckoutSessionResponse.ts @@ -95,7 +95,7 @@ export class CreateCheckoutSessionResponse { */ "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, Riverty, and Zip. + * 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 Riverty. */ "lineItems"?: Array; "mandate"?: Mandate | null; @@ -146,7 +146,7 @@ export class CreateCheckoutSessionResponse { */ "reference": string; /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. */ "returnUrl": string; "riskData"?: RiskData | null; @@ -159,7 +159,7 @@ export class CreateCheckoutSessionResponse { */ "shopperEmail"?: string; /** - * The shopper\'s IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper\'s IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ "shopperIP"?: string; /** @@ -216,7 +216,7 @@ export class CreateCheckoutSessionResponse { */ "storePaymentMethodMode"?: CreateCheckoutSessionResponse.StorePaymentMethodModeEnum; /** - * The shopper\'s telephone number. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we drop the value and do not submit it for authentication. + * The shopper\'s telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ "telephoneNumber"?: string; /** diff --git a/src/typings/checkout/defaultErrorResponseEntity.ts b/src/typings/checkout/defaultErrorResponseEntity.ts new file mode 100644 index 000000000..6984096e1 --- /dev/null +++ b/src/typings/checkout/defaultErrorResponseEntity.ts @@ -0,0 +1,112 @@ +/* + * 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. + */ + +import { InvalidField } from "./invalidField"; + +/** +* Standardized error response following RFC-7807 format +*/ + + +export class DefaultErrorResponseEntity { + /** + * A human-readable explanation specific to this occurrence of the problem. + */ + "detail"?: string; + /** + * Unique business error code. + */ + "errorCode"?: string; + /** + * A URI that identifies the specific occurrence of the problem if applicable. + */ + "instance"?: string; + /** + * Array of fields with validation errors when applicable. + */ + "invalidFields"?: Array; + /** + * The unique reference for the request. + */ + "requestId"?: string; + /** + * The HTTP status code. + */ + "status"?: number; + /** + * A short, human-readable summary of the problem type. + */ + "title"?: string; + /** + * A URI that identifies the validation error type. It points to human-readable documentation for the problem type. + */ + "type"?: 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": "detail", + "baseName": "detail", + "type": "string", + "format": "" + }, + { + "name": "errorCode", + "baseName": "errorCode", + "type": "string", + "format": "" + }, + { + "name": "instance", + "baseName": "instance", + "type": "string", + "format": "" + }, + { + "name": "invalidFields", + "baseName": "invalidFields", + "type": "Array", + "format": "" + }, + { + "name": "requestId", + "baseName": "requestId", + "type": "string", + "format": "" + }, + { + "name": "status", + "baseName": "status", + "type": "number", + "format": "int32" + }, + { + "name": "title", + "baseName": "title", + "type": "string", + "format": "" + }, + { + "name": "type", + "baseName": "type", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return DefaultErrorResponseEntity.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/checkout/donationPaymentRequest.ts b/src/typings/checkout/donationPaymentRequest.ts index 882d05435..87d9788cc 100644 --- a/src/typings/checkout/donationPaymentRequest.ts +++ b/src/typings/checkout/donationPaymentRequest.ts @@ -82,7 +82,7 @@ export class DonationPaymentRequest { */ "donationToken"?: string; /** - * 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, Riverty, and Zip. + * 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 Riverty. */ "lineItems"?: Array; /** @@ -117,7 +117,7 @@ export class DonationPaymentRequest { */ "reference": string; /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. */ "returnUrl": string; /** @@ -129,7 +129,7 @@ export class DonationPaymentRequest { */ "shopperEmail"?: string; /** - * The shopper\'s IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper\'s IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ "shopperIP"?: string; /** @@ -150,7 +150,7 @@ export class DonationPaymentRequest { */ "socialSecurityNumber"?: string; /** - * The shopper\'s telephone number. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we drop the value and do not submit it for authentication. + * The shopper\'s telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ "telephoneNumber"?: string; "threeDS2RequestData"?: ThreeDS2RequestFields | null; diff --git a/src/typings/checkout/invalidField.ts b/src/typings/checkout/invalidField.ts new file mode 100644 index 000000000..5d61df400 --- /dev/null +++ b/src/typings/checkout/invalidField.ts @@ -0,0 +1,56 @@ +/* + * 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 InvalidField { + /** + * The field that has an invalid value. + */ + "name": string; + /** + * The invalid value. + */ + "value": string; + /** + * Description of the validation error. + */ + "message": 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": "name", + "baseName": "name", + "type": "string", + "format": "" + }, + { + "name": "value", + "baseName": "value", + "type": "string", + "format": "" + }, + { + "name": "message", + "baseName": "message", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return InvalidField.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/checkout/leg.ts b/src/typings/checkout/leg.ts index 6952f1d6a..c8b3e1e94 100644 --- a/src/typings/checkout/leg.ts +++ b/src/typings/checkout/leg.ts @@ -34,7 +34,7 @@ export class Leg { */ "destinationAirportCode"?: string; /** - * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 6 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ "fareBasisCode"?: string; /** diff --git a/src/typings/checkout/models.ts b/src/typings/checkout/models.ts index ee0d6f7e0..75d84701c 100644 --- a/src/typings/checkout/models.ts +++ b/src/typings/checkout/models.ts @@ -67,6 +67,7 @@ export * from "./createCheckoutSessionRequest" export * from "./createCheckoutSessionResponse" export * from "./createOrderRequest" export * from "./createOrderResponse" +export * from "./defaultErrorResponseEntity" export * from "./deliveryAddress" export * from "./deliveryMethod" export * from "./detailsRequestAuthenticationData" @@ -100,6 +101,7 @@ export * from "./idealDonations" export * from "./inputDetail" export * from "./installmentOption" export * from "./installments" +export * from "./invalidField" export * from "./item" export * from "./klarnaDetails" export * from "./leg" @@ -120,6 +122,7 @@ export * from "./payByBankDetails" export * from "./payPalDetails" export * from "./payPayDetails" export * from "./payToDetails" +export * from "./payToPaymentMethod" export * from "./payUUpiDetails" export * from "./payWithGoogleDetails" export * from "./payWithGoogleDonations" @@ -171,6 +174,7 @@ export * from "./responseAdditionalDataNetworkTokens" export * from "./responseAdditionalDataOpi" export * from "./responseAdditionalDataSepa" export * from "./responsePaymentMethod" +export * from "./result" export * from "./riskData" export * from "./rivertyDetails" export * from "./sDKEphemPubKey" @@ -178,6 +182,7 @@ export * from "./samsungPayDetails" export * from "./sepaDirectDebitDetails" export * from "./serviceError" export * from "./sessionResultResponse" +export * from "./shopperIdPaymentMethod" export * from "./shopperInteractionDevice" export * from "./split" export * from "./splitAmount" @@ -203,11 +208,14 @@ export * from "./threeDSecureData" export * from "./ticket" export * from "./travelAgency" export * from "./twintDetails" +export * from "./uPIPaymentMethod" export * from "./updatePaymentLinkRequest" export * from "./upiCollectDetails" export * from "./upiIntentDetails" export * from "./utilityRequest" export * from "./utilityResponse" +export * from "./validateShopperIdRequest" +export * from "./validateShopperIdResponse" export * from "./vippsDetails" export * from "./visaCheckoutDetails" export * from "./weChatPayDetails" diff --git a/src/typings/checkout/objectSerializer.ts b/src/typings/checkout/objectSerializer.ts index 7498e461f..4a50fae45 100644 --- a/src/typings/checkout/objectSerializer.ts +++ b/src/typings/checkout/objectSerializer.ts @@ -69,6 +69,7 @@ import { CreateCheckoutSessionRequest } from "./createCheckoutSessionRequest"; import { CreateCheckoutSessionResponse } from "./createCheckoutSessionResponse"; import { CreateOrderRequest } from "./createOrderRequest"; import { CreateOrderResponse } from "./createOrderResponse"; +import { DefaultErrorResponseEntity } from "./defaultErrorResponseEntity"; import { DeliveryAddress } from "./deliveryAddress"; import { DeliveryMethod } from "./deliveryMethod"; import { DetailsRequestAuthenticationData } from "./detailsRequestAuthenticationData"; @@ -102,6 +103,7 @@ import { IdealDonations } from "./idealDonations"; import { InputDetail } from "./inputDetail"; import { InstallmentOption } from "./installmentOption"; import { Installments } from "./installments"; +import { InvalidField } from "./invalidField"; import { Item } from "./item"; import { KlarnaDetails } from "./klarnaDetails"; import { Leg } from "./leg"; @@ -122,6 +124,7 @@ import { PayByBankDetails } from "./payByBankDetails"; import { PayPalDetails } from "./payPalDetails"; import { PayPayDetails } from "./payPayDetails"; import { PayToDetails } from "./payToDetails"; +import { PayToPaymentMethod } from "./payToPaymentMethod"; import { PayUUpiDetails } from "./payUUpiDetails"; import { PayWithGoogleDetails } from "./payWithGoogleDetails"; import { PayWithGoogleDonations } from "./payWithGoogleDonations"; @@ -173,6 +176,7 @@ import { ResponseAdditionalDataNetworkTokens } from "./responseAdditionalDataNet import { ResponseAdditionalDataOpi } from "./responseAdditionalDataOpi"; import { ResponseAdditionalDataSepa } from "./responseAdditionalDataSepa"; import { ResponsePaymentMethod } from "./responsePaymentMethod"; +import { Result } from "./result"; import { RiskData } from "./riskData"; import { RivertyDetails } from "./rivertyDetails"; import { SDKEphemPubKey } from "./sDKEphemPubKey"; @@ -180,6 +184,7 @@ import { SamsungPayDetails } from "./samsungPayDetails"; import { SepaDirectDebitDetails } from "./sepaDirectDebitDetails"; import { ServiceError } from "./serviceError"; import { SessionResultResponse } from "./sessionResultResponse"; +import { ShopperIdPaymentMethod } from "./shopperIdPaymentMethod"; import { ShopperInteractionDevice } from "./shopperInteractionDevice"; import { Split } from "./split"; import { SplitAmount } from "./splitAmount"; @@ -205,11 +210,14 @@ import { ThreeDSecureData } from "./threeDSecureData"; import { Ticket } from "./ticket"; import { TravelAgency } from "./travelAgency"; import { TwintDetails } from "./twintDetails"; +import { UPIPaymentMethod } from "./uPIPaymentMethod"; import { UpdatePaymentLinkRequest } from "./updatePaymentLinkRequest"; import { UpiCollectDetails } from "./upiCollectDetails"; import { UpiIntentDetails } from "./upiIntentDetails"; import { UtilityRequest } from "./utilityRequest"; import { UtilityResponse } from "./utilityResponse"; +import { ValidateShopperIdRequest } from "./validateShopperIdRequest"; +import { ValidateShopperIdResponse } from "./validateShopperIdResponse"; import { VippsDetails } from "./vippsDetails"; import { VisaCheckoutDetails } from "./visaCheckoutDetails"; import { WeChatPayDetails } from "./weChatPayDetails"; @@ -390,6 +398,9 @@ let enumsMap: Set = new Set([ "ResponseAdditionalDataCommon.FraudRiskLevelEnum", "ResponseAdditionalDataCommon.RecurringProcessingModelEnum", "ResponseAdditionalDataCommon.TokenizationStoreOperationTypeEnum", + Result.Valid, + Result.Invalid, + Result.Unknown, "RivertyDetails.TypeEnum", "SamsungPayDetails.FundingSourceEnum", "SamsungPayDetails.TypeEnum", @@ -505,6 +516,7 @@ let typeMap: {[index: string]: any} = { "CreateCheckoutSessionResponse": CreateCheckoutSessionResponse, "CreateOrderRequest": CreateOrderRequest, "CreateOrderResponse": CreateOrderResponse, + "DefaultErrorResponseEntity": DefaultErrorResponseEntity, "DeliveryAddress": DeliveryAddress, "DeliveryMethod": DeliveryMethod, "DetailsRequestAuthenticationData": DetailsRequestAuthenticationData, @@ -538,6 +550,7 @@ let typeMap: {[index: string]: any} = { "InputDetail": InputDetail, "InstallmentOption": InstallmentOption, "Installments": Installments, + "InvalidField": InvalidField, "Item": Item, "KlarnaDetails": KlarnaDetails, "Leg": Leg, @@ -558,6 +571,7 @@ let typeMap: {[index: string]: any} = { "PayPalDetails": PayPalDetails, "PayPayDetails": PayPayDetails, "PayToDetails": PayToDetails, + "PayToPaymentMethod": PayToPaymentMethod, "PayUUpiDetails": PayUUpiDetails, "PayWithGoogleDetails": PayWithGoogleDetails, "PayWithGoogleDonations": PayWithGoogleDonations, @@ -616,6 +630,7 @@ let typeMap: {[index: string]: any} = { "SepaDirectDebitDetails": SepaDirectDebitDetails, "ServiceError": ServiceError, "SessionResultResponse": SessionResultResponse, + "ShopperIdPaymentMethod": ShopperIdPaymentMethod, "ShopperInteractionDevice": ShopperInteractionDevice, "Split": Split, "SplitAmount": SplitAmount, @@ -641,11 +656,14 @@ let typeMap: {[index: string]: any} = { "Ticket": Ticket, "TravelAgency": TravelAgency, "TwintDetails": TwintDetails, + "UPIPaymentMethod": UPIPaymentMethod, "UpdatePaymentLinkRequest": UpdatePaymentLinkRequest, "UpiCollectDetails": UpiCollectDetails, "UpiIntentDetails": UpiIntentDetails, "UtilityRequest": UtilityRequest, "UtilityResponse": UtilityResponse, + "ValidateShopperIdRequest": ValidateShopperIdRequest, + "ValidateShopperIdResponse": ValidateShopperIdResponse, "VippsDetails": VippsDetails, "VisaCheckoutDetails": VisaCheckoutDetails, "WeChatPayDetails": WeChatPayDetails, diff --git a/src/typings/checkout/payToPaymentMethod.ts b/src/typings/checkout/payToPaymentMethod.ts new file mode 100644 index 000000000..9aa246ef4 --- /dev/null +++ b/src/typings/checkout/payToPaymentMethod.ts @@ -0,0 +1,36 @@ +/* + * 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. + */ + +import { ShopperIdPaymentMethod } from "./shopperIdPaymentMethod"; + + +export class PayToPaymentMethod extends ShopperIdPaymentMethod { + "shopperReference"?: string; + + static override readonly discriminator: string | undefined = undefined; + + static override readonly mapping: {[index: string]: string} | undefined = undefined; + + static override readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string", + "format": "" + } ]; + + static override getAttributeTypeMap() { + return super.getAttributeTypeMap().concat(PayToPaymentMethod.attributeTypeMap); + } + + public constructor() { + super(); + } +} + diff --git a/src/typings/checkout/paymentAmountUpdateResponse.ts b/src/typings/checkout/paymentAmountUpdateResponse.ts index 717b38192..2ffc14bcd 100644 --- a/src/typings/checkout/paymentAmountUpdateResponse.ts +++ b/src/typings/checkout/paymentAmountUpdateResponse.ts @@ -27,7 +27,7 @@ export class PaymentAmountUpdateResponse { */ "merchantAccount": string; /** - * The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment to update. + * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to update. */ "paymentPspReference": string; /** diff --git a/src/typings/checkout/paymentCancelResponse.ts b/src/typings/checkout/paymentCancelResponse.ts index fd5686193..87668b64a 100644 --- a/src/typings/checkout/paymentCancelResponse.ts +++ b/src/typings/checkout/paymentCancelResponse.ts @@ -14,7 +14,7 @@ export class PaymentCancelResponse { */ "merchantAccount": string; /** - * The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment to cancel. + * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to cancel. */ "paymentPspReference": string; /** diff --git a/src/typings/checkout/paymentCaptureResponse.ts b/src/typings/checkout/paymentCaptureResponse.ts index d99b4ccee..dc92d3263 100644 --- a/src/typings/checkout/paymentCaptureResponse.ts +++ b/src/typings/checkout/paymentCaptureResponse.ts @@ -25,7 +25,7 @@ export class PaymentCaptureResponse { */ "merchantAccount": string; /** - * The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment to capture. + * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to capture. */ "paymentPspReference": string; "platformChargebackLogic"?: PlatformChargebackLogic | null; diff --git a/src/typings/checkout/paymentDetailsResponse.ts b/src/typings/checkout/paymentDetailsResponse.ts index 51b776fb9..cd4c0b78e 100644 --- a/src/typings/checkout/paymentDetailsResponse.ts +++ b/src/typings/checkout/paymentDetailsResponse.ts @@ -9,6 +9,7 @@ import { Amount } from "./amount"; import { CheckoutOrderResponse } from "./checkoutOrderResponse"; +import { CheckoutThreeDS2Action } from "./checkoutThreeDS2Action"; import { FraudResult } from "./fraudResult"; import { ResponsePaymentMethod } from "./responsePaymentMethod"; import { ThreeDS2ResponseData } from "./threeDS2ResponseData"; @@ -16,6 +17,7 @@ import { ThreeDS2Result } from "./threeDS2Result"; export class PaymentDetailsResponse { + "action"?: CheckoutThreeDS2Action | null; /** * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. */ @@ -64,6 +66,12 @@ export class PaymentDetailsResponse { static readonly mapping: {[index: string]: string} | undefined = undefined; static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "action", + "baseName": "action", + "type": "CheckoutThreeDS2Action | null", + "format": "" + }, { "name": "additionalData", "baseName": "additionalData", diff --git a/src/typings/checkout/paymentLinkRequest.ts b/src/typings/checkout/paymentLinkRequest.ts index 2c2fd445f..3b8d8dd9f 100644 --- a/src/typings/checkout/paymentLinkRequest.ts +++ b/src/typings/checkout/paymentLinkRequest.ts @@ -65,7 +65,7 @@ export class PaymentLinkRequest { */ "installmentOptions"?: { [key: string]: InstallmentOption; }; /** - * Price and product information about the purchased items, to be included on the invoice sent to the shopper. This parameter is required for open invoice (_buy now, pay later_) payment methods such Afterpay, Clearpay, Klarna, RatePay, Riverty, and Zip. + * 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 Riverty. */ "lineItems"?: Array; /** @@ -152,7 +152,7 @@ export class PaymentLinkRequest { */ "storePaymentMethodMode"?: PaymentLinkRequest.StorePaymentMethodModeEnum; /** - * The shopper\'s telephone number. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we drop the value and do not submit it for authentication. + * The shopper\'s telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ "telephoneNumber"?: string; /** diff --git a/src/typings/checkout/paymentLinkResponse.ts b/src/typings/checkout/paymentLinkResponse.ts index 1bec61a3b..6eec6f769 100644 --- a/src/typings/checkout/paymentLinkResponse.ts +++ b/src/typings/checkout/paymentLinkResponse.ts @@ -69,7 +69,7 @@ export class PaymentLinkResponse { */ "installmentOptions"?: { [key: string]: InstallmentOption; }; /** - * Price and product information about the purchased items, to be included on the invoice sent to the shopper. This parameter is required for open invoice (_buy now, pay later_) payment methods such Afterpay, Clearpay, Klarna, RatePay, Riverty, and Zip. + * 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 Riverty. */ "lineItems"?: Array; /** @@ -160,7 +160,7 @@ export class PaymentLinkResponse { */ "storePaymentMethodMode"?: PaymentLinkResponse.StorePaymentMethodModeEnum; /** - * The shopper\'s telephone number. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we drop the value and do not submit it for authentication. + * The shopper\'s telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ "telephoneNumber"?: string; /** diff --git a/src/typings/checkout/paymentMethodsRequest.ts b/src/typings/checkout/paymentMethodsRequest.ts index 618e88230..1ce71dbca 100644 --- a/src/typings/checkout/paymentMethodsRequest.ts +++ b/src/typings/checkout/paymentMethodsRequest.ts @@ -49,7 +49,7 @@ export class PaymentMethodsRequest { */ "shopperEmail"?: string; /** - * The shopper\'s IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper\'s IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ "shopperIP"?: string; /** @@ -73,7 +73,7 @@ export class PaymentMethodsRequest { */ "storeFiltrationMode"?: PaymentMethodsRequest.StoreFiltrationModeEnum; /** - * The shopper\'s telephone number. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we drop the value and do not submit it for authentication. + * The shopper\'s telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ "telephoneNumber"?: string; diff --git a/src/typings/checkout/paymentRefundRequest.ts b/src/typings/checkout/paymentRefundRequest.ts index 77ea904ef..bcf9027c6 100644 --- a/src/typings/checkout/paymentRefundRequest.ts +++ b/src/typings/checkout/paymentRefundRequest.ts @@ -18,7 +18,7 @@ export class PaymentRefundRequest { "amount": Amount; "applicationInfo"?: ApplicationInfo | null; /** - * This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the specific capture to refund. + * This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the specific capture to refund. */ "capturePspReference"?: string; "enhancedSchemeData"?: EnhancedSchemeData | null; diff --git a/src/typings/checkout/paymentRefundResponse.ts b/src/typings/checkout/paymentRefundResponse.ts index 8e3c4eb91..59449ad69 100644 --- a/src/typings/checkout/paymentRefundResponse.ts +++ b/src/typings/checkout/paymentRefundResponse.ts @@ -15,7 +15,7 @@ import { Split } from "./split"; export class PaymentRefundResponse { "amount": Amount; /** - * This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the specific capture to refund. + * This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the specific capture to refund. */ "capturePspReference"?: string; /** @@ -31,7 +31,7 @@ export class PaymentRefundResponse { */ "merchantRefundReason"?: PaymentRefundResponse.MerchantRefundReasonEnum | null; /** - * The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment to refund. + * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to refund. */ "paymentPspReference": string; /** diff --git a/src/typings/checkout/paymentRequest.ts b/src/typings/checkout/paymentRequest.ts index 45b80c620..a08b55b00 100644 --- a/src/typings/checkout/paymentRequest.ts +++ b/src/typings/checkout/paymentRequest.ts @@ -123,7 +123,7 @@ export class PaymentRequest { "industryUsage"?: PaymentRequest.IndustryUsageEnum; "installments"?: Installments | null; /** - * 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, Riverty, and Zip. + * 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 Riverty. */ "lineItems"?: Array; /** @@ -185,7 +185,7 @@ export class PaymentRequest { */ "reference": string; /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. */ "returnUrl": string; "riskData"?: RiskData | null; @@ -202,7 +202,7 @@ export class PaymentRequest { */ "shopperEmail"?: string; /** - * The shopper\'s IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper\'s IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ "shopperIP"?: string; /** @@ -244,7 +244,7 @@ export class PaymentRequest { "subMerchants"?: Array; "surcharge"?: Surcharge | null; /** - * The shopper\'s telephone number. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we drop the value and do not submit it for authentication. + * The shopper\'s telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ "telephoneNumber"?: string; "threeDS2RequestData"?: ThreeDS2RequestFields | null; diff --git a/src/typings/checkout/paymentReversalResponse.ts b/src/typings/checkout/paymentReversalResponse.ts index 4b737ebb9..06eb526a6 100644 --- a/src/typings/checkout/paymentReversalResponse.ts +++ b/src/typings/checkout/paymentReversalResponse.ts @@ -14,7 +14,7 @@ export class PaymentReversalResponse { */ "merchantAccount": string; /** - * The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment to reverse. + * The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to reverse. */ "paymentPspReference": string; /** diff --git a/src/typings/checkout/phone.ts b/src/typings/checkout/phone.ts index 14dea2f8a..e7101e8b7 100644 --- a/src/typings/checkout/phone.ts +++ b/src/typings/checkout/phone.ts @@ -10,11 +10,11 @@ export class Phone { /** - * Country code. Length: 1–3 characters. + * Country code. Length: 1–3 digits. */ "cc"?: string; /** - * Subscriber number. Maximum length: 15 characters. + * Subscriber number. Length: 4-15 digits. */ "subscriber"?: string; diff --git a/src/typings/checkout/result.ts b/src/typings/checkout/result.ts new file mode 100644 index 000000000..ecdea6f16 --- /dev/null +++ b/src/typings/checkout/result.ts @@ -0,0 +1,14 @@ +/* + * 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 enum Result { + Valid = 'VALID', + Invalid = 'INVALID', + Unknown = 'UNKNOWN' +} diff --git a/src/typings/checkout/rivertyDetails.ts b/src/typings/checkout/rivertyDetails.ts index edc220f06..56ce02862 100644 --- a/src/typings/checkout/rivertyDetails.ts +++ b/src/typings/checkout/rivertyDetails.ts @@ -131,6 +131,7 @@ export namespace RivertyDetails { export enum TypeEnum { Riverty = 'riverty', RivertyAccount = 'riverty_account', + RivertyInstallments = 'riverty_installments', SepadirectdebitRiverty = 'sepadirectdebit_riverty' } } diff --git a/src/typings/checkout/shopperIdPaymentMethod.ts b/src/typings/checkout/shopperIdPaymentMethod.ts new file mode 100644 index 000000000..3c18f25ac --- /dev/null +++ b/src/typings/checkout/shopperIdPaymentMethod.ts @@ -0,0 +1,37 @@ +/* + * 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 ShopperIdPaymentMethod { + "type": string; + + static readonly discriminator: string | undefined = "type"; + + static readonly mapping: {[index: string]: string} | undefined = { + "payTo": "PayToPaymentMethod", + "upi_collect": "UPIPaymentMethod", + }; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return ShopperIdPaymentMethod.attributeTypeMap; + } + + public constructor() { + //this.type = "ShopperIdPaymentMethod"; + } +} + diff --git a/src/typings/checkout/uPIPaymentMethod.ts b/src/typings/checkout/uPIPaymentMethod.ts new file mode 100644 index 000000000..ebeccffff --- /dev/null +++ b/src/typings/checkout/uPIPaymentMethod.ts @@ -0,0 +1,36 @@ +/* + * 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. + */ + +import { ShopperIdPaymentMethod } from "./shopperIdPaymentMethod"; + + +export class UPIPaymentMethod extends ShopperIdPaymentMethod { + "virtualPaymentAddress"?: string; + + static override readonly discriminator: string | undefined = undefined; + + static override readonly mapping: {[index: string]: string} | undefined = undefined; + + static override readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "virtualPaymentAddress", + "baseName": "virtualPaymentAddress", + "type": "string", + "format": "" + } ]; + + static override getAttributeTypeMap() { + return super.getAttributeTypeMap().concat(UPIPaymentMethod.attributeTypeMap); + } + + public constructor() { + super(); + } +} + diff --git a/src/typings/checkout/validateShopperIdRequest.ts b/src/typings/checkout/validateShopperIdRequest.ts new file mode 100644 index 000000000..6a6755716 --- /dev/null +++ b/src/typings/checkout/validateShopperIdRequest.ts @@ -0,0 +1,66 @@ +/* + * 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. + */ + +import { ShopperIdPaymentMethod } from "./shopperIdPaymentMethod"; + + +export class ValidateShopperIdRequest { + /** + * The merchant account identifier, with which you want to process the transaction. + */ + "merchantAccount": string; + "paymentMethod": ShopperIdPaymentMethod; + "shopperEmail"?: string; + "shopperIP"?: string; + "shopperReference"?: 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": "merchantAccount", + "baseName": "merchantAccount", + "type": "string", + "format": "" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "ShopperIdPaymentMethod", + "format": "" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string", + "format": "" + }, + { + "name": "shopperIP", + "baseName": "shopperIP", + "type": "string", + "format": "" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return ValidateShopperIdRequest.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/checkout/validateShopperIdResponse.ts b/src/typings/checkout/validateShopperIdResponse.ts new file mode 100644 index 000000000..019403911 --- /dev/null +++ b/src/typings/checkout/validateShopperIdResponse.ts @@ -0,0 +1,44 @@ +/* + * 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. + */ + +import { Result } from "./result"; + + +export class ValidateShopperIdResponse { + "reason"?: string; + "result"?: Result; + + 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": "reason", + "baseName": "reason", + "type": "string", + "format": "" + }, + { + "name": "result", + "baseName": "result", + "type": "Result", + "format": "" + } ]; + + static getAttributeTypeMap() { + return ValidateShopperIdResponse.attributeTypeMap; + } + + public constructor() { + } +} + +export namespace ValidateShopperIdResponse { +} diff --git a/src/typings/configurationWebhooks/bankScoreSignalTriggeredData.ts b/src/typings/configurationWebhooks/bankScoreSignalTriggeredData.ts new file mode 100644 index 000000000..d7b7f4564 --- /dev/null +++ b/src/typings/configurationWebhooks/bankScoreSignalTriggeredData.ts @@ -0,0 +1,115 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ResourceReference } from "./resourceReference"; + + +export class BankScoreSignalTriggeredData { + "accountHolder"?: ResourceReference | null; + /** + * The status of the account holder. + */ + "accountHolderStatus"?: string; + /** + * The automated action(s) taken as a result of the score signals that were triggered. + */ + "automatedActions"?: Array; + /** + * The unique identifier of the balance platform. + */ + "balancePlatform"?: string; + /** + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. + */ + "creationDate"?: Date; + /** + * The ID of the resource. + */ + "id"?: string; + /** + * The score of the identity resulting from the signal(s) that were triggered. + */ + "riskScore"?: number; + /** + * The name(s) of the score signals that were triggered. + */ + "scoreSignalsTriggered"?: Array; + /** + * The type(s) of the score signals that were triggered. + */ + "signalSourceTypes"?: Array; + + 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": "accountHolder", + "baseName": "accountHolder", + "type": "ResourceReference | null", + "format": "" + }, + { + "name": "accountHolderStatus", + "baseName": "accountHolderStatus", + "type": "string", + "format": "" + }, + { + "name": "automatedActions", + "baseName": "automatedActions", + "type": "Array", + "format": "" + }, + { + "name": "balancePlatform", + "baseName": "balancePlatform", + "type": "string", + "format": "" + }, + { + "name": "creationDate", + "baseName": "creationDate", + "type": "Date", + "format": "date-time" + }, + { + "name": "id", + "baseName": "id", + "type": "string", + "format": "" + }, + { + "name": "riskScore", + "baseName": "riskScore", + "type": "number", + "format": "int32" + }, + { + "name": "scoreSignalsTriggered", + "baseName": "scoreSignalsTriggered", + "type": "Array", + "format": "" + }, + { + "name": "signalSourceTypes", + "baseName": "signalSourceTypes", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return BankScoreSignalTriggeredData.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/configurationWebhooks/configurationWebhooksHandler.ts b/src/typings/configurationWebhooks/configurationWebhooksHandler.ts index 292bc0110..db5d8617c 100644 --- a/src/typings/configurationWebhooks/configurationWebhooksHandler.ts +++ b/src/typings/configurationWebhooks/configurationWebhooksHandler.ts @@ -19,6 +19,7 @@ export type GenericWebhook = | configurationWebhooks.CardOrderNotificationRequest | configurationWebhooks.NetworkTokenNotificationRequest | configurationWebhooks.PaymentNotificationRequest + | configurationWebhooks.ScoreNotificationRequest | configurationWebhooks.SweepConfigurationNotificationRequest; /** @@ -64,6 +65,10 @@ export class ConfigurationWebhooksHandler { return this.getPaymentNotificationRequest(); } + if(Object.values(configurationWebhooks.ScoreNotificationRequest.TypeEnum).includes(type)) { + return this.getScoreNotificationRequest(); + } + if(Object.values(configurationWebhooks.SweepConfigurationNotificationRequest.TypeEnum).includes(type)) { return this.getSweepConfigurationNotificationRequest(); } @@ -117,6 +122,15 @@ export class ConfigurationWebhooksHandler { return configurationWebhooks.ObjectSerializer.deserialize(this.payload, "PaymentNotificationRequest"); } + /** + * Deserialize the webhook payload into a ScoreNotificationRequest + * + * @returns Deserialized ScoreNotificationRequest object. + */ + public getScoreNotificationRequest(): configurationWebhooks.ScoreNotificationRequest { + return configurationWebhooks.ObjectSerializer.deserialize(this.payload, "ScoreNotificationRequest"); + } + /** * Deserialize the webhook payload into a SweepConfigurationNotificationRequest * diff --git a/src/typings/configurationWebhooks/deliveryAddress.ts b/src/typings/configurationWebhooks/deliveryAddress.ts index 19f293186..328530904 100644 --- a/src/typings/configurationWebhooks/deliveryAddress.ts +++ b/src/typings/configurationWebhooks/deliveryAddress.ts @@ -34,7 +34,7 @@ export class DeliveryAddress { */ "postalCode"?: string; /** - * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The state or province code, maximum 3 characters. For example, **CA** for California in the US or **ON** for Ontario in Canada. > Required for the US and Canada. */ "stateOrProvince"?: string; diff --git a/src/typings/configurationWebhooks/models.ts b/src/typings/configurationWebhooks/models.ts index 7b9712252..83785b0b5 100644 --- a/src/typings/configurationWebhooks/models.ts +++ b/src/typings/configurationWebhooks/models.ts @@ -12,6 +12,7 @@ export * from "./balanceAccountNotificationData" export * from "./balanceAccountNotificationRequest" export * from "./balancePlatformNotificationResponse" export * from "./bankAccountDetails" +export * from "./bankScoreSignalTriggeredData" export * from "./bulkAddress" export * from "./capabilityProblem" export * from "./capabilityProblemEntity" @@ -45,6 +46,8 @@ export * from "./phoneNumber" export * from "./platformPaymentConfiguration" export * from "./remediatingAction" export * from "./resource" +export * from "./resourceReference" +export * from "./scoreNotificationRequest" export * from "./sweepConfigurationNotificationData" export * from "./sweepConfigurationNotificationRequest" export * from "./sweepConfigurationV2" diff --git a/src/typings/configurationWebhooks/objectSerializer.ts b/src/typings/configurationWebhooks/objectSerializer.ts index a552a697d..0d102e264 100644 --- a/src/typings/configurationWebhooks/objectSerializer.ts +++ b/src/typings/configurationWebhooks/objectSerializer.ts @@ -14,6 +14,7 @@ import { BalanceAccountNotificationData } from "./balanceAccountNotificationData import { BalanceAccountNotificationRequest } from "./balanceAccountNotificationRequest"; import { BalancePlatformNotificationResponse } from "./balancePlatformNotificationResponse"; import { BankAccountDetails } from "./bankAccountDetails"; +import { BankScoreSignalTriggeredData } from "./bankScoreSignalTriggeredData"; import { BulkAddress } from "./bulkAddress"; import { CapabilityProblem } from "./capabilityProblem"; import { CapabilityProblemEntity } from "./capabilityProblemEntity"; @@ -47,6 +48,8 @@ import { PhoneNumber } from "./phoneNumber"; import { PlatformPaymentConfiguration } from "./platformPaymentConfiguration"; import { RemediatingAction } from "./remediatingAction"; import { Resource } from "./resource"; +import { ResourceReference } from "./resourceReference"; +import { ScoreNotificationRequest } from "./scoreNotificationRequest"; import { SweepConfigurationNotificationData } from "./sweepConfigurationNotificationData"; import { SweepConfigurationNotificationRequest } from "./sweepConfigurationNotificationRequest"; import { SweepConfigurationV2 } from "./sweepConfigurationV2"; @@ -98,6 +101,7 @@ let enumsMap: Set = new Set([ "PaymentNotificationRequest.TypeEnum", "Phone.TypeEnum", "PhoneNumber.PhoneTypeEnum", + "ScoreNotificationRequest.TypeEnum", "SweepConfigurationNotificationRequest.TypeEnum", "SweepConfigurationV2.CategoryEnum", "SweepConfigurationV2.PrioritiesEnum", @@ -129,6 +133,7 @@ let typeMap: {[index: string]: any} = { "BalanceAccountNotificationRequest": BalanceAccountNotificationRequest, "BalancePlatformNotificationResponse": BalancePlatformNotificationResponse, "BankAccountDetails": BankAccountDetails, + "BankScoreSignalTriggeredData": BankScoreSignalTriggeredData, "BulkAddress": BulkAddress, "CapabilityProblem": CapabilityProblem, "CapabilityProblemEntity": CapabilityProblemEntity, @@ -162,6 +167,8 @@ let typeMap: {[index: string]: any} = { "PlatformPaymentConfiguration": PlatformPaymentConfiguration, "RemediatingAction": RemediatingAction, "Resource": Resource, + "ResourceReference": ResourceReference, + "ScoreNotificationRequest": ScoreNotificationRequest, "SweepConfigurationNotificationData": SweepConfigurationNotificationData, "SweepConfigurationNotificationRequest": SweepConfigurationNotificationRequest, "SweepConfigurationV2": SweepConfigurationV2, diff --git a/src/typings/configurationWebhooks/resourceReference.ts b/src/typings/configurationWebhooks/resourceReference.ts new file mode 100644 index 000000000..2e317838e --- /dev/null +++ b/src/typings/configurationWebhooks/resourceReference.ts @@ -0,0 +1,56 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * 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 ResourceReference { + /** + * The description of the resource. + */ + "description"?: string; + /** + * The unique identifier of the resource. + */ + "id"?: string; + /** + * The reference for the resource. + */ + "reference"?: 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": "description", + "baseName": "description", + "type": "string", + "format": "" + }, + { + "name": "id", + "baseName": "id", + "type": "string", + "format": "" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return ResourceReference.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/configurationWebhooks/scoreNotificationRequest.ts b/src/typings/configurationWebhooks/scoreNotificationRequest.ts new file mode 100644 index 000000000..dc40db9e8 --- /dev/null +++ b/src/typings/configurationWebhooks/scoreNotificationRequest.ts @@ -0,0 +1,70 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { BankScoreSignalTriggeredData } from "./bankScoreSignalTriggeredData"; + + +export class ScoreNotificationRequest { + "data": BankScoreSignalTriggeredData; + /** + * The environment from which the webhook originated. Possible values: **test**, **live**. + */ + "environment": string; + /** + * When the event was queued. + */ + "timestamp"?: Date; + /** + * Type of webhook. + */ + "type": ScoreNotificationRequest.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": "data", + "baseName": "data", + "type": "BankScoreSignalTriggeredData", + "format": "" + }, + { + "name": "environment", + "baseName": "environment", + "type": "string", + "format": "" + }, + { + "name": "timestamp", + "baseName": "timestamp", + "type": "Date", + "format": "date-time" + }, + { + "name": "type", + "baseName": "type", + "type": "ScoreNotificationRequest.TypeEnum", + "format": "" + } ]; + + static getAttributeTypeMap() { + return ScoreNotificationRequest.attributeTypeMap; + } + + public constructor() { + } +} + +export namespace ScoreNotificationRequest { + export enum TypeEnum { + BalancePlatformScoreTriggered = 'balancePlatform.score.triggered' + } +} diff --git a/src/typings/configurationWebhooks/wallet.ts b/src/typings/configurationWebhooks/wallet.ts index b3a483162..b35259c4a 100644 --- a/src/typings/configurationWebhooks/wallet.ts +++ b/src/typings/configurationWebhooks/wallet.ts @@ -21,7 +21,7 @@ export class Wallet { */ "deviceScore"?: string; /** - * The method used for provisioning the network token. Possible values: **push**, **manual**. + * The method used for provisioning the network token. Possible values: **push**, **manual**, **cof**, **unknown**. */ "provisioningMethod"?: string; /** diff --git a/src/typings/legalEntityManagement/acceptTermsOfServiceResponse.ts b/src/typings/legalEntityManagement/acceptTermsOfServiceResponse.ts index fe95ddc6f..f729981d4 100644 --- a/src/typings/legalEntityManagement/acceptTermsOfServiceResponse.ts +++ b/src/typings/legalEntityManagement/acceptTermsOfServiceResponse.ts @@ -22,7 +22,7 @@ export class AcceptTermsOfServiceResponse { */ "ipAddress"?: string; /** - * The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English. + * The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information. */ "language"?: string; /** diff --git a/src/typings/legalEntityManagement/getTermsOfServiceDocumentResponse.ts b/src/typings/legalEntityManagement/getTermsOfServiceDocumentResponse.ts index ca8e94b72..2b65cefa6 100644 --- a/src/typings/legalEntityManagement/getTermsOfServiceDocumentResponse.ts +++ b/src/typings/legalEntityManagement/getTermsOfServiceDocumentResponse.ts @@ -18,7 +18,7 @@ export class GetTermsOfServiceDocumentResponse { */ "id"?: string; /** - * The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English. + * The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information. */ "language"?: string; /** diff --git a/src/typings/management/alipayPlusInfo.ts b/src/typings/management/alipayPlusInfo.ts index d5a5168fe..2963de068 100644 --- a/src/typings/management/alipayPlusInfo.ts +++ b/src/typings/management/alipayPlusInfo.ts @@ -10,7 +10,7 @@ export class AlipayPlusInfo { /** - * currency used for settlement. Defaults to USD + * The currency used for settlement. Defaults to USD. */ "settlementCurrencyCode"?: string; diff --git a/src/typings/management/createCompanyWebhookRequest.ts b/src/typings/management/createCompanyWebhookRequest.ts index 223820349..da43a90f3 100644 --- a/src/typings/management/createCompanyWebhookRequest.ts +++ b/src/typings/management/createCompanyWebhookRequest.ts @@ -61,7 +61,7 @@ export class CreateCompanyWebhookRequest { */ "populateSoapActionHeader"?: boolean; /** - * The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications). + * The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). */ "type": string; /** diff --git a/src/typings/management/createMerchantWebhookRequest.ts b/src/typings/management/createMerchantWebhookRequest.ts index de90d2ce4..04afffaba 100644 --- a/src/typings/management/createMerchantWebhookRequest.ts +++ b/src/typings/management/createMerchantWebhookRequest.ts @@ -53,7 +53,7 @@ export class CreateMerchantWebhookRequest { */ "populateSoapActionHeader"?: boolean; /** - * The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications). + * The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). */ "type": string; /** diff --git a/src/typings/management/models.ts b/src/typings/management/models.ts index 467b62691..32581ba35 100644 --- a/src/typings/management/models.ts +++ b/src/typings/management/models.ts @@ -121,6 +121,7 @@ export * from "./restServiceError" export * from "./scheduleTerminalActionsRequest" export * from "./scheduleTerminalActionsRequestActionDetails" export * from "./scheduleTerminalActionsResponse" +export * from "./sepaDirectDebitInfo" export * from "./settings" export * from "./shippingLocation" export * from "./shippingLocationsResponse" diff --git a/src/typings/management/objectSerializer.ts b/src/typings/management/objectSerializer.ts index e68c245cc..954cc9bdf 100644 --- a/src/typings/management/objectSerializer.ts +++ b/src/typings/management/objectSerializer.ts @@ -123,6 +123,7 @@ import { RestServiceError } from "./restServiceError"; import { ScheduleTerminalActionsRequest } from "./scheduleTerminalActionsRequest"; import { ScheduleTerminalActionsRequestActionDetailsClass } from "./scheduleTerminalActionsRequestActionDetails"; import { ScheduleTerminalActionsResponse } from "./scheduleTerminalActionsResponse"; +import { SepaDirectDebitInfo } from "./sepaDirectDebitInfo"; import { Settings } from "./settings"; import { ShippingLocation } from "./shippingLocation"; import { ShippingLocationsResponse } from "./shippingLocationsResponse"; @@ -416,6 +417,7 @@ let typeMap: {[index: string]: any} = { "ScheduleTerminalActionsRequest": ScheduleTerminalActionsRequest, "ScheduleTerminalActionsRequestActionDetails": ScheduleTerminalActionsRequestActionDetailsClass, "ScheduleTerminalActionsResponse": ScheduleTerminalActionsResponse, + "SepaDirectDebitInfo": SepaDirectDebitInfo, "Settings": Settings, "ShippingLocation": ShippingLocation, "ShippingLocationsResponse": ShippingLocationsResponse, diff --git a/src/typings/management/payByBankPlaidInfo.ts b/src/typings/management/payByBankPlaidInfo.ts index 15385e16f..88bfa469c 100644 --- a/src/typings/management/payByBankPlaidInfo.ts +++ b/src/typings/management/payByBankPlaidInfo.ts @@ -11,98 +11,28 @@ import { TransactionDescriptionInfo } from "./transactionDescriptionInfo"; export class PayByBankPlaidInfo { - /** - * Country Code. - */ - "countryCode"?: string; /** * Merchant logo (max. size 150kB). Format: Base64-encoded string. */ "logo"?: string; - /** - * The city the merchant is doing business in. - */ - "merchantCity"?: string; - /** - * Legal Business Name of the Merchant. - */ - "merchantLegalName"?: string; - /** - * Merchant shop url. - */ - "merchantShopUrl"?: string; - /** - * The state/province of the merchant. - */ - "merchantStateProvince"?: string; - /** - * The street address of the merchant. - */ - "merchantStreetAddress"?: string; "transactionDescription"?: TransactionDescriptionInfo | null; - /** - * The zip code of the account. - */ - "zipCode"?: 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": "countryCode", - "baseName": "countryCode", - "type": "string", - "format": "" - }, { "name": "logo", "baseName": "logo", "type": "string", "format": "" }, - { - "name": "merchantCity", - "baseName": "merchantCity", - "type": "string", - "format": "" - }, - { - "name": "merchantLegalName", - "baseName": "merchantLegalName", - "type": "string", - "format": "" - }, - { - "name": "merchantShopUrl", - "baseName": "merchantShopUrl", - "type": "string", - "format": "" - }, - { - "name": "merchantStateProvince", - "baseName": "merchantStateProvince", - "type": "string", - "format": "" - }, - { - "name": "merchantStreetAddress", - "baseName": "merchantStreetAddress", - "type": "string", - "format": "" - }, { "name": "transactionDescription", "baseName": "transactionDescription", "type": "TransactionDescriptionInfo | null", "format": "" - }, - { - "name": "zipCode", - "baseName": "zipCode", - "type": "string", - "format": "" } ]; static getAttributeTypeMap() { diff --git a/src/typings/management/paymentMethod.ts b/src/typings/management/paymentMethod.ts index ba866bae9..cc55f3237 100644 --- a/src/typings/management/paymentMethod.ts +++ b/src/typings/management/paymentMethod.ts @@ -28,6 +28,7 @@ import { PayMeInfo } from "./payMeInfo"; import { PayPalInfo } from "./payPalInfo"; import { PayToInfo } from "./payToInfo"; import { PulseInfo } from "./pulseInfo"; +import { SepaDirectDebitInfo } from "./sepaDirectDebitInfo"; import { SodexoInfo } from "./sodexoInfo"; import { SofortInfo } from "./sofortInfo"; import { StarInfo } from "./starInfo"; @@ -102,6 +103,7 @@ export class PaymentMethod { * Your reference for the payment method. Supported characters a-z, A-Z, 0-9. */ "reference"?: string; + "sepadirectdebit"?: SepaDirectDebitInfo | null; /** * The sales channel. */ @@ -362,6 +364,12 @@ export class PaymentMethod { "type": "string", "format": "" }, + { + "name": "sepadirectdebit", + "baseName": "sepadirectdebit", + "type": "SepaDirectDebitInfo | null", + "format": "" + }, { "name": "shopperInteraction", "baseName": "shopperInteraction", diff --git a/src/typings/management/paymentMethodResponse.ts b/src/typings/management/paymentMethodResponse.ts index 89da87f35..c06d2d81d 100644 --- a/src/typings/management/paymentMethodResponse.ts +++ b/src/typings/management/paymentMethodResponse.ts @@ -26,7 +26,7 @@ export class PaymentMethodResponse { */ "pagesTotal": number; /** - * Payment method types with errors. + * The payment method types that were not successfully requested and their corresponding errors. */ "typesWithErrors"?: Array; @@ -76,6 +76,10 @@ export class PaymentMethodResponse { export namespace PaymentMethodResponse { export enum TypesWithErrorsEnum { + Abrapetite = 'abrapetite', + AbrapetiteCredit = 'abrapetite_credit', + AbrapetiteDebit = 'abrapetite_debit', + AbrapetitePrepaid = 'abrapetite_prepaid', Accel = 'accel', Ach = 'ach', Affirm = 'affirm', @@ -168,8 +172,12 @@ export namespace PaymentMethodResponse { PersonalCardCredit = 'personal_card_credit', PersonalCardDebit = 'personal_card_debit', Pulse = 'pulse', + Romcard = 'romcard', + RomcardCredit = 'romcard_credit', + RomcardDebit = 'romcard_debit', Senff = 'senff', SenffCredit = 'senff_credit', + Sepadirectdebit = 'sepadirectdebit', Sodexo = 'sodexo', Star = 'star', Swish = 'swish', diff --git a/src/typings/management/paymentMethodSetupInfo.ts b/src/typings/management/paymentMethodSetupInfo.ts index e18cced64..511bb0b06 100644 --- a/src/typings/management/paymentMethodSetupInfo.ts +++ b/src/typings/management/paymentMethodSetupInfo.ts @@ -28,6 +28,7 @@ import { PayMeInfo } from "./payMeInfo"; import { PayPalInfo } from "./payPalInfo"; import { PayToInfo } from "./payToInfo"; import { PulseInfo } from "./pulseInfo"; +import { SepaDirectDebitInfo } from "./sepaDirectDebitInfo"; import { SodexoInfo } from "./sodexoInfo"; import { SofortInfo } from "./sofortInfo"; import { StarInfo } from "./starInfo"; @@ -90,6 +91,7 @@ export class PaymentMethodSetupInfo { * Your reference for the payment method. Supported characters a-z, A-Z, 0-9. */ "reference"?: string; + "sepadirectdebit"?: SepaDirectDebitInfo | null; /** * The sales channel. Required if the merchant account does not have a sales channel. When you provide this field, it overrides the default sales channel set on the merchant account. Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. */ @@ -328,6 +330,12 @@ export class PaymentMethodSetupInfo { "type": "string", "format": "" }, + { + "name": "sepadirectdebit", + "baseName": "sepadirectdebit", + "type": "SepaDirectDebitInfo | null", + "format": "" + }, { "name": "shopperInteraction", "baseName": "shopperInteraction", @@ -423,6 +431,10 @@ export namespace PaymentMethodSetupInfo { ContAuth = 'contAuth' } export enum TypeEnum { + Abrapetite = 'abrapetite', + AbrapetiteCredit = 'abrapetite_credit', + AbrapetiteDebit = 'abrapetite_debit', + AbrapetitePrepaid = 'abrapetite_prepaid', Accel = 'accel', Ach = 'ach', Affirm = 'affirm', @@ -515,8 +527,12 @@ export namespace PaymentMethodSetupInfo { PersonalCardCredit = 'personal_card_credit', PersonalCardDebit = 'personal_card_debit', Pulse = 'pulse', + Romcard = 'romcard', + RomcardCredit = 'romcard_credit', + RomcardDebit = 'romcard_debit', Senff = 'senff', SenffCredit = 'senff_credit', + Sepadirectdebit = 'sepadirectdebit', Sodexo = 'sodexo', Star = 'star', Swish = 'swish', diff --git a/src/typings/management/sepaDirectDebitInfo.ts b/src/typings/management/sepaDirectDebitInfo.ts new file mode 100644 index 000000000..16db88b30 --- /dev/null +++ b/src/typings/management/sepaDirectDebitInfo.ts @@ -0,0 +1,45 @@ +/* + * The version of the OpenAPI document: v3 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { TransactionDescriptionInfo } from "./transactionDescriptionInfo"; + + +export class SepaDirectDebitInfo { + /** + * Creditor id + */ + "creditorId"?: string; + "transactionDescription"?: TransactionDescriptionInfo | null; + + 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": "creditorId", + "baseName": "creditorId", + "type": "string", + "format": "" + }, + { + "name": "transactionDescription", + "baseName": "transactionDescription", + "type": "TransactionDescriptionInfo | null", + "format": "" + } ]; + + static getAttributeTypeMap() { + return SepaDirectDebitInfo.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/management/splitConfigurationRule.ts b/src/typings/management/splitConfigurationRule.ts index fd90c43b4..1a6fbec7e 100644 --- a/src/typings/management/splitConfigurationRule.ts +++ b/src/typings/management/splitConfigurationRule.ts @@ -16,9 +16,9 @@ export class SplitConfigurationRule { */ "currency": string; /** - * The funding source of the payment method. This only applies to card transactions. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** + * The funding source of the payment method. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** */ - "fundingSource"?: SplitConfigurationRule.FundingSourceEnum; + "fundingSource": SplitConfigurationRule.FundingSourceEnum; /** * The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods. */ diff --git a/src/typings/management/testOutput.ts b/src/typings/management/testOutput.ts index d3fa8d9c7..052c4b422 100644 --- a/src/typings/management/testOutput.ts +++ b/src/typings/management/testOutput.ts @@ -14,7 +14,7 @@ export class TestOutput { */ "merchantId"?: string; /** - * A short, human-readable explanation of the test result. Your server must respond with **HTTP 2xx* for the test webhook to be successful (`data.status`: **success**). Find out more about [accepting notifications](https://docs.adyen.com/development-resources/webhooks#accept-notifications) You can use the value of this field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot unsuccessful test webhooks. + * A short, human-readable explanation of the test result. Your server must respond with **HTTP 2xx* for the test webhook to be successful (`data.status`: **success**). Find out more about [accepting notifications](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks) You can use the value of this field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot unsuccessful test webhooks. */ "output"?: string; /** diff --git a/src/typings/management/updatePaymentMethodInfo.ts b/src/typings/management/updatePaymentMethodInfo.ts index 660eecfc3..c42f275df 100644 --- a/src/typings/management/updatePaymentMethodInfo.ts +++ b/src/typings/management/updatePaymentMethodInfo.ts @@ -14,6 +14,7 @@ import { GenericPmWithTdiInfo } from "./genericPmWithTdiInfo"; import { NyceInfo } from "./nyceInfo"; import { PayByBankPlaidInfo } from "./payByBankPlaidInfo"; import { PulseInfo } from "./pulseInfo"; +import { SepaDirectDebitInfo } from "./sepaDirectDebitInfo"; import { StarInfo } from "./starInfo"; @@ -52,6 +53,7 @@ export class UpdatePaymentMethodInfo { "nyce"?: NyceInfo | null; "paybybank_plaid"?: PayByBankPlaidInfo | null; "pulse"?: PulseInfo | null; + "sepadirectdebit"?: SepaDirectDebitInfo | null; "star"?: StarInfo | null; /** * The store for this payment method @@ -203,6 +205,12 @@ export class UpdatePaymentMethodInfo { "type": "PulseInfo | null", "format": "" }, + { + "name": "sepadirectdebit", + "baseName": "sepadirectdebit", + "type": "SepaDirectDebitInfo | null", + "format": "" + }, { "name": "star", "baseName": "star", diff --git a/src/typings/management/updateSplitConfigurationRuleRequest.ts b/src/typings/management/updateSplitConfigurationRuleRequest.ts index 144e875f7..cc21e8a84 100644 --- a/src/typings/management/updateSplitConfigurationRuleRequest.ts +++ b/src/typings/management/updateSplitConfigurationRuleRequest.ts @@ -14,9 +14,9 @@ export class UpdateSplitConfigurationRuleRequest { */ "currency": string; /** - * The funding source of the payment method. This only applies to card transactions. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** + * The funding source of the payment method. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** */ - "fundingSource"?: string; + "fundingSource": string; /** * The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods. */ diff --git a/src/typings/management/webhook.ts b/src/typings/management/webhook.ts index 39a52733f..ccc72b5a5 100644 --- a/src/typings/management/webhook.ts +++ b/src/typings/management/webhook.ts @@ -83,7 +83,7 @@ export class Webhook { */ "populateSoapActionHeader"?: boolean; /** - * The type of webhook. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **terminal-api-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications). + * The type of webhook. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **terminal-api-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks). */ "type": string; /** diff --git a/src/typings/managementWebhooks/accountNotificationResponse.ts b/src/typings/managementWebhooks/accountNotificationResponse.ts index 88d502b36..686f052e4 100644 --- a/src/typings/managementWebhooks/accountNotificationResponse.ts +++ b/src/typings/managementWebhooks/accountNotificationResponse.ts @@ -10,7 +10,7 @@ export class AccountNotificationResponse { /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ "notificationResponse"?: string; diff --git a/src/typings/managementWebhooks/paymentMethodNotificationResponse.ts b/src/typings/managementWebhooks/paymentMethodNotificationResponse.ts index b1de7918a..294a808dc 100644 --- a/src/typings/managementWebhooks/paymentMethodNotificationResponse.ts +++ b/src/typings/managementWebhooks/paymentMethodNotificationResponse.ts @@ -10,7 +10,7 @@ export class PaymentMethodNotificationResponse { /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ "notificationResponse"?: string; diff --git a/src/typings/managementWebhooks/terminalAssignmentNotificationResponse.ts b/src/typings/managementWebhooks/terminalAssignmentNotificationResponse.ts index 3cc3ace08..7d963c094 100644 --- a/src/typings/managementWebhooks/terminalAssignmentNotificationResponse.ts +++ b/src/typings/managementWebhooks/terminalAssignmentNotificationResponse.ts @@ -10,7 +10,7 @@ export class TerminalAssignmentNotificationResponse { /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ "notificationResponse"?: string; diff --git a/src/typings/managementWebhooks/terminalBoardingNotificationResponse.ts b/src/typings/managementWebhooks/terminalBoardingNotificationResponse.ts index bf982d40f..6aeddf59c 100644 --- a/src/typings/managementWebhooks/terminalBoardingNotificationResponse.ts +++ b/src/typings/managementWebhooks/terminalBoardingNotificationResponse.ts @@ -10,7 +10,7 @@ export class TerminalBoardingNotificationResponse { /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ "notificationResponse"?: string; diff --git a/src/typings/managementWebhooks/terminalSettingsNotificationResponse.ts b/src/typings/managementWebhooks/terminalSettingsNotificationResponse.ts index 1bb45a20c..b41dd82a0 100644 --- a/src/typings/managementWebhooks/terminalSettingsNotificationResponse.ts +++ b/src/typings/managementWebhooks/terminalSettingsNotificationResponse.ts @@ -10,7 +10,7 @@ export class TerminalSettingsNotificationResponse { /** - * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). */ "notificationResponse"?: string; diff --git a/src/typings/payment/additionalDataAirline.ts b/src/typings/payment/additionalDataAirline.ts index ee12a042a..a15d61b96 100644 --- a/src/typings/payment/additionalDataAirline.ts +++ b/src/typings/payment/additionalDataAirline.ts @@ -74,7 +74,7 @@ export class AdditionalDataAirline { */ "airline_leg_destination_code"?: string; /** - * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 6 characters * Must not be all spaces * Must not be all zeros. + * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. */ "airline_leg_fare_base_code"?: string; /** diff --git a/src/typings/payment/additionalDataLevel23.ts b/src/typings/payment/additionalDataLevel23.ts index 82ee394b1..de1699509 100644 --- a/src/typings/payment/additionalDataLevel23.ts +++ b/src/typings/payment/additionalDataLevel23.ts @@ -38,7 +38,7 @@ export class AdditionalDataLevel23 { */ "enhancedSchemeData_itemDetailLine_itemNr_commodityCode"?: string; /** - * A description of the item. * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros. + * A description of the item, that provides details about the purchase. For Visa transactions with level 3 ESD, the description must not be the same or very similar to your merchant name, or, consist only of common words like \"product\", or \"service\". * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not be all special characters. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros. */ "enhancedSchemeData_itemDetailLine_itemNr_description"?: string; /** diff --git a/src/typings/payment/paymentRequest.ts b/src/typings/payment/paymentRequest.ts index 726f917e1..302171ae4 100644 --- a/src/typings/payment/paymentRequest.ts +++ b/src/typings/payment/paymentRequest.ts @@ -134,7 +134,7 @@ export class PaymentRequest { */ "shopperEmail"?: string; /** - * The shopper\'s IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper\'s IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ "shopperIP"?: string; /** @@ -167,7 +167,7 @@ export class PaymentRequest { */ "store"?: string; /** - * The shopper\'s telephone number. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we drop the value and do not submit it for authentication. + * The shopper\'s telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ "telephoneNumber"?: string; "threeDS2RequestData"?: ThreeDS2RequestData | null; diff --git a/src/typings/payment/paymentRequest3d.ts b/src/typings/payment/paymentRequest3d.ts index 01ba09b30..77e54730a 100644 --- a/src/typings/payment/paymentRequest3d.ts +++ b/src/typings/payment/paymentRequest3d.ts @@ -114,7 +114,7 @@ export class PaymentRequest3d { */ "shopperEmail"?: string; /** - * The shopper\'s IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper\'s IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ "shopperIP"?: string; /** @@ -147,7 +147,7 @@ export class PaymentRequest3d { */ "store"?: string; /** - * The shopper\'s telephone number. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we drop the value and do not submit it for authentication. + * The shopper\'s telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ "telephoneNumber"?: string; "threeDS2RequestData"?: ThreeDS2RequestData | null; diff --git a/src/typings/payment/paymentRequest3ds2.ts b/src/typings/payment/paymentRequest3ds2.ts index a8a9e57c7..f1e5b780f 100644 --- a/src/typings/payment/paymentRequest3ds2.ts +++ b/src/typings/payment/paymentRequest3ds2.ts @@ -107,7 +107,7 @@ export class PaymentRequest3ds2 { */ "shopperEmail"?: string; /** - * The shopper\'s IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper\'s IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ "shopperIP"?: string; /** @@ -140,7 +140,7 @@ export class PaymentRequest3ds2 { */ "store"?: string; /** - * The shopper\'s telephone number. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we drop the value and do not submit it for authentication. + * The shopper\'s telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ "telephoneNumber"?: string; "threeDS2RequestData"?: ThreeDS2RequestData | null; diff --git a/src/typings/payment/phone.ts b/src/typings/payment/phone.ts index dbd274237..5d66eb4b1 100644 --- a/src/typings/payment/phone.ts +++ b/src/typings/payment/phone.ts @@ -10,11 +10,11 @@ export class Phone { /** - * Country code. Length: 1–3 characters. + * Country code. Length: 1–3 digits. */ "cc"?: string; /** - * Subscriber number. Maximum length: 15 characters. + * Subscriber number. Length: 4-15 digits. */ "subscriber"?: string; diff --git a/src/typings/payout/payoutRequest.ts b/src/typings/payout/payoutRequest.ts index c3e85a45f..326739acc 100644 --- a/src/typings/payout/payoutRequest.ts +++ b/src/typings/payout/payoutRequest.ts @@ -51,7 +51,7 @@ export class PayoutRequest { */ "shopperReference"?: string; /** - * The shopper\'s telephone number. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we drop the value and do not submit it for authentication. + * The shopper\'s telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. */ "telephoneNumber"?: string;