diff --git a/src/typings/checkout/achDetails.ts b/src/typings/checkout/achDetails.ts index 0d6013e6d..573ca5555 100644 --- a/src/typings/checkout/achDetails.ts +++ b/src/typings/checkout/achDetails.ts @@ -9,6 +9,10 @@ export class AchDetails { + /** + * The account holder type (personal or business). + */ + 'accountHolderType'?: AchDetails.AccountHolderTypeEnum; /** * The bank account number (without separators). */ @@ -60,6 +64,11 @@ export class AchDetails { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountHolderType", + "baseName": "accountHolderType", + "type": "AchDetails.AccountHolderTypeEnum" + }, { "name": "bankAccountNumber", "baseName": "bankAccountNumber", @@ -122,6 +131,10 @@ export class AchDetails { } export namespace AchDetails { + export enum AccountHolderTypeEnum { + Business = 'business', + Personal = 'personal' + } export enum BankAccountTypeEnum { Balance = 'balance', Checking = 'checking', diff --git a/src/typings/checkout/additionalDataAirline.ts b/src/typings/checkout/additionalDataAirline.ts index 8d28250e1..c7f24251c 100644 --- a/src/typings/checkout/additionalDataAirline.ts +++ b/src/typings/checkout/additionalDataAirline.ts @@ -18,11 +18,11 @@ export class AdditionalDataAirline { */ 'airline_agency_plan_name'?: string; /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces *Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. */ 'airline_airline_code'?: string; /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces *Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. */ 'airline_airline_designator_code'?: string; /** @@ -50,11 +50,11 @@ export class AdditionalDataAirline { */ 'airline_issue_date'?: string; /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces *Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. */ 'airline_leg_carrier_code'?: string; /** - * A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces *Must not be all zeros. + * A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not be all zeros. */ 'airline_leg_class_of_travel'?: string; /** @@ -62,23 +62,23 @@ export class AdditionalDataAirline { */ 'airline_leg_date_of_travel'?: string; /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces *Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. */ 'airline_leg_depart_airport'?: string; /** - * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 *Must not be all zeros. + * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 * Must not be all zeros. */ 'airline_leg_depart_tax'?: string; /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces *Must not be all zeros. + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. */ '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: 6 characters * Must not be all spaces * Must not be all zeros. */ 'airline_leg_fare_base_code'?: string; /** - * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces *Must not be all zeros. + * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces * Must not be all zeros. */ 'airline_leg_flight_number'?: string; /** @@ -106,7 +106,7 @@ export class AdditionalDataAirline { */ 'airline_passenger_traveller_type'?: string; /** - * The passenger\'s name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces *Must not be all zeros. + * The passenger\'s name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all zeros. */ 'airline_passenger_name': string; /** @@ -114,15 +114,15 @@ export class AdditionalDataAirline { */ 'airline_ticket_issue_address'?: string; /** - * The ticket\'s unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces *Must not be all zeros. + * The ticket\'s unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. */ 'airline_ticket_number'?: string; /** - * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces *Must not be all zeros. + * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * Must not be all zeros. */ 'airline_travel_agency_code'?: string; /** - * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces *Must not be all zeros. + * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. */ 'airline_travel_agency_name'?: string; diff --git a/src/typings/checkout/additionalDataCommon.ts b/src/typings/checkout/additionalDataCommon.ts index af754f1d7..f3fb98287 100644 --- a/src/typings/checkout/additionalDataCommon.ts +++ b/src/typings/checkout/additionalDataCommon.ts @@ -9,6 +9,10 @@ export class AdditionalDataCommon { + /** + * Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing result codes and refusal reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the possible values, and the `refusalReason` values you can trigger. + */ + 'RequestedTestAcquirerResponseCode'?: string; /** * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn\'t a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. */ @@ -58,6 +62,10 @@ export class AdditionalDataCommon { */ 'subMerchantCountry'?: string; /** + * This field is required for transactions performed by registered payment facilitators. This field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + */ + 'subMerchantEmail'?: string; + /** * This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. */ 'subMerchantID'?: string; @@ -66,6 +74,10 @@ export class AdditionalDataCommon { */ 'subMerchantName'?: string; /** + * This field is required for transactions performed by registered payment facilitators. This field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + */ + 'subMerchantPhoneNumber'?: string; + /** * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant\'s address. * Format: alpha-numeric. * Maximum length: 10 characters. */ 'subMerchantPostalCode'?: string; @@ -85,6 +97,11 @@ export class AdditionalDataCommon { static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "RequestedTestAcquirerResponseCode", + "baseName": "RequestedTestAcquirerResponseCode", + "type": "string" + }, { "name": "RequestedTestErrorResponseCode", "baseName": "RequestedTestErrorResponseCode", @@ -145,6 +162,11 @@ export class AdditionalDataCommon { "baseName": "subMerchantCountry", "type": "string" }, + { + "name": "subMerchantEmail", + "baseName": "subMerchantEmail", + "type": "string" + }, { "name": "subMerchantID", "baseName": "subMerchantID", @@ -155,6 +177,11 @@ export class AdditionalDataCommon { "baseName": "subMerchantName", "type": "string" }, + { + "name": "subMerchantPhoneNumber", + "baseName": "subMerchantPhoneNumber", + "type": "string" + }, { "name": "subMerchantPostalCode", "baseName": "subMerchantPostalCode", diff --git a/src/typings/checkout/additionalDataLevel23.ts b/src/typings/checkout/additionalDataLevel23.ts index 0cf298c90..2782bd466 100644 --- a/src/typings/checkout/additionalDataLevel23.ts +++ b/src/typings/checkout/additionalDataLevel23.ts @@ -10,7 +10,7 @@ export class AdditionalDataLevel23 { /** - * The customer code. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or be all spaces * Must not be all zeros. + * The reference number to identify the customer and their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ 'enhancedSchemeData_customerReference'?: string; /** @@ -18,27 +18,27 @@ export class AdditionalDataLevel23 { */ 'enhancedSchemeData_destinationCountryCode'?: string; /** - * The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space + * The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. */ 'enhancedSchemeData_destinationPostalCode'?: string; /** - * Destination state or province code. * Encoding: ASCII * Max length: 3 characters * Must not start with a space + * The state or province code of the destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a space. */ 'enhancedSchemeData_destinationStateProvinceCode'?: string; /** - * The duty amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters + * The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ 'enhancedSchemeData_dutyAmount'?: string; /** - * The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric *Max length: 12 characters + * The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ 'enhancedSchemeData_freightAmount'?: string; /** - * The [UNSPC commodity code](https://www.unspsc.org/) of the item. * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces * Must not be all zeros. + * The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ 'enhancedSchemeData_itemDetailLine_itemNr_commodityCode'?: string; /** - * A description of the item. * Encoding: ASCII * Max length: 26 characters * Must not start with a space or be all spaces * Must not be all zeros. + * 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. */ 'enhancedSchemeData_itemDetailLine_itemNr_description'?: string; /** @@ -46,19 +46,19 @@ export class AdditionalDataLevel23 { */ 'enhancedSchemeData_itemDetailLine_itemNr_discountAmount'?: string; /** - * The product code. * Encoding: ASCII. * Max length: 12 characters * Must not start with a space or be all spaces * Must not be all zeros. + * The product code. Must be a unique product code associated with the item or service. This can be your unique code for the item, or the manufacturer\'s product code. * Encoding: ASCII. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ 'enhancedSchemeData_itemDetailLine_itemNr_productCode'?: string; /** - * The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a space or be all spaces + * The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a space or be all spaces. */ 'enhancedSchemeData_itemDetailLine_itemNr_quantity'?: string; /** - * The total amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Max length: 12 characters * Must not start with a space or be all spaces * Must not be all zeros. + * The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements for level 2/3 ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ 'enhancedSchemeData_itemDetailLine_itemNr_totalAmount'?: string; /** - * The unit of measurement for an item. * Encoding: ASCII Max length: 3 characters * Must not start with a space or be all spaces * Must not be all zeros. + * The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ 'enhancedSchemeData_itemDetailLine_itemNr_unitOfMeasure'?: string; /** @@ -70,11 +70,11 @@ export class AdditionalDataLevel23 { */ 'enhancedSchemeData_orderDate'?: string; /** - * The postal code of the address the item is shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space or be all spaces * Must not be all zeros. + * The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. */ 'enhancedSchemeData_shipFromPostalCode'?: string; /** - * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. *Encoding: Numeric *Max length: 12 characters * Must not be all zeros. + * The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. */ 'enhancedSchemeData_totalTaxAmount'?: string; diff --git a/src/typings/checkout/additionalDataSubMerchant.ts b/src/typings/checkout/additionalDataSubMerchant.ts index 4d048df31..07f167bc4 100644 --- a/src/typings/checkout/additionalDataSubMerchant.ts +++ b/src/typings/checkout/additionalDataSubMerchant.ts @@ -22,6 +22,10 @@ export class AdditionalDataSubMerchant { */ 'subMerchant_subSeller_subSellerNr_country'?: string; /** + * Required for transactions performed by registered payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters + */ + 'subMerchant_subSeller_subSellerNr_email'?: string; + /** * Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters */ 'subMerchant_subSeller_subSellerNr_id'?: string; @@ -34,6 +38,10 @@ export class AdditionalDataSubMerchant { */ 'subMerchant_subSeller_subSellerNr_name'?: string; /** + * Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + */ + 'subMerchant_subSeller_subSellerNr_phoneNumber'?: string; + /** * Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant\'s address, without dashes. * Format: Numeric * Fixed length: 8 digits */ 'subMerchant_subSeller_subSellerNr_postalCode'?: string; @@ -68,6 +76,11 @@ export class AdditionalDataSubMerchant { "baseName": "subMerchant.subSeller[subSellerNr].country", "type": "string" }, + { + "name": "subMerchant_subSeller_subSellerNr_email", + "baseName": "subMerchant.subSeller[subSellerNr].email", + "type": "string" + }, { "name": "subMerchant_subSeller_subSellerNr_id", "baseName": "subMerchant.subSeller[subSellerNr].id", @@ -83,6 +96,11 @@ export class AdditionalDataSubMerchant { "baseName": "subMerchant.subSeller[subSellerNr].name", "type": "string" }, + { + "name": "subMerchant_subSeller_subSellerNr_phoneNumber", + "baseName": "subMerchant.subSeller[subSellerNr].phoneNumber", + "type": "string" + }, { "name": "subMerchant_subSeller_subSellerNr_postalCode", "baseName": "subMerchant.subSeller[subSellerNr].postalCode", diff --git a/src/typings/checkout/agency.ts b/src/typings/checkout/agency.ts new file mode 100644 index 000000000..3821cc692 --- /dev/null +++ b/src/typings/checkout/agency.ts @@ -0,0 +1,39 @@ +/* + * 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 Agency { + /** + * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters + */ + 'invoiceNumber'?: string; + /** + * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters + */ + 'planName'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "invoiceNumber", + "baseName": "invoiceNumber", + "type": "string" + }, + { + "name": "planName", + "baseName": "planName", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Agency.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/airline.ts b/src/typings/checkout/airline.ts new file mode 100644 index 000000000..eac592f19 --- /dev/null +++ b/src/typings/checkout/airline.ts @@ -0,0 +1,128 @@ +/* + * 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 { Agency } from './agency'; +import { Leg } from './leg'; +import { Passenger } from './passenger'; +import { Ticket } from './ticket'; +import { TravelAgency } from './travelAgency'; + +export class Airline { + 'agency'?: Agency | null; + /** + * The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 11 characters + */ + 'boardingFee'?: number; + /** + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + */ + 'code'?: string; + /** + * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters + */ + 'computerizedReservationSystem'?: string; + /** + * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not start with a space or be all spaces. + */ + 'customerReferenceNumber'?: string; + /** + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. + */ + 'designatorCode'?: string; + /** + * A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters + */ + 'documentType'?: string; + /** + * The flight departure date. Time is optional. * Format for date only: `yyyy-MM-dd` * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local time of departure airport. * minLength: 10 characters * maxLength: 16 characters + */ + 'flightDate'?: Date; + 'legs'?: Array; + /** + * The passenger\'s name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not start with a space or be all spaces. * Must not be all zeros. + */ + 'passengerName': string; + 'passengers'?: Array; + 'ticket'?: Ticket | null; + 'travelAgency'?: TravelAgency | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "agency", + "baseName": "agency", + "type": "Agency | null" + }, + { + "name": "boardingFee", + "baseName": "boardingFee", + "type": "number" + }, + { + "name": "code", + "baseName": "code", + "type": "string" + }, + { + "name": "computerizedReservationSystem", + "baseName": "computerizedReservationSystem", + "type": "string" + }, + { + "name": "customerReferenceNumber", + "baseName": "customerReferenceNumber", + "type": "string" + }, + { + "name": "designatorCode", + "baseName": "designatorCode", + "type": "string" + }, + { + "name": "documentType", + "baseName": "documentType", + "type": "string" + }, + { + "name": "flightDate", + "baseName": "flightDate", + "type": "Date" + }, + { + "name": "legs", + "baseName": "legs", + "type": "Array" + }, + { + "name": "passengerName", + "baseName": "passengerName", + "type": "string" + }, + { + "name": "passengers", + "baseName": "passengers", + "type": "Array" + }, + { + "name": "ticket", + "baseName": "ticket", + "type": "Ticket | null" + }, + { + "name": "travelAgency", + "baseName": "travelAgency", + "type": "TravelAgency | null" + } ]; + + static getAttributeTypeMap() { + return Airline.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/balanceCheckRequest.ts b/src/typings/checkout/balanceCheckRequest.ts index 8318dd70e..2330552c3 100644 --- a/src/typings/checkout/balanceCheckRequest.ts +++ b/src/typings/checkout/balanceCheckRequest.ts @@ -55,7 +55,7 @@ export class BalanceCheckRequest { 'fraudOffset'?: number; 'installments'?: Installments | null; /** - * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, capital letters, numbers and special characters. * Half-width or full-width characters. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. */ 'localizedShopperStatement'?: { [key: string]: string; }; /** @@ -134,7 +134,7 @@ export class BalanceCheckRequest { */ 'socialSecurityNumber'?: string; /** - * An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms]((https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). + * An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). */ 'splits'?: Array; /** diff --git a/src/typings/checkout/cardDetailsRequest.ts b/src/typings/checkout/cardDetailsRequest.ts index 125f189a1..67c95f7b3 100644 --- a/src/typings/checkout/cardDetailsRequest.ts +++ b/src/typings/checkout/cardDetailsRequest.ts @@ -10,7 +10,7 @@ export class CardDetailsRequest { /** - * A minimum of the first eight digits of the card number. The full card number gives the best result. You must be [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect raw card data. + * A minimum of the first eight digits of the card number. The full card number gives the best result. You must be [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect raw card data. Alternatively, you can use the `encryptedCardNumber` field. */ 'cardNumber': string; /** diff --git a/src/typings/checkout/checkoutSessionInstallmentOption.ts b/src/typings/checkout/checkoutSessionInstallmentOption.ts index 46ff4967f..76132d9e7 100644 --- a/src/typings/checkout/checkoutSessionInstallmentOption.ts +++ b/src/typings/checkout/checkoutSessionInstallmentOption.ts @@ -10,7 +10,7 @@ export class CheckoutSessionInstallmentOption { /** - * Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving** + * Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving*** **bonus** * **with_interest** * **buynow_paylater** * **nointerest_bonus** * **interest_bonus** * **refund_prctg** * **nointeres_refund_prctg** * **interes_refund_prctg** */ 'plans'?: Array; /** @@ -48,6 +48,7 @@ export class CheckoutSessionInstallmentOption { export namespace CheckoutSessionInstallmentOption { export enum PlansEnum { + Bonus = 'bonus', BuynowPaylater = 'buynow_paylater', InteresRefundPrctg = 'interes_refund_prctg', InterestBonus = 'interest_bonus', diff --git a/src/typings/checkout/createCheckoutSessionRequest.ts b/src/typings/checkout/createCheckoutSessionRequest.ts index 7ea8b68b0..f3b7423f2 100644 --- a/src/typings/checkout/createCheckoutSessionRequest.ts +++ b/src/typings/checkout/createCheckoutSessionRequest.ts @@ -34,7 +34,7 @@ export class CreateCheckoutSessionRequest { */ 'additionalData'?: { [key: string]: string; }; /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"giropay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` */ 'allowedPaymentMethods'?: Array; 'amount': Amount; @@ -42,7 +42,7 @@ export class CreateCheckoutSessionRequest { 'authenticationData'?: AuthenticationData | null; 'billingAddress'?: BillingAddress | null; /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"giropay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` */ 'blockedPaymentMethods'?: Array; /** diff --git a/src/typings/checkout/createCheckoutSessionResponse.ts b/src/typings/checkout/createCheckoutSessionResponse.ts index df1db81c1..f06288d6b 100644 --- a/src/typings/checkout/createCheckoutSessionResponse.ts +++ b/src/typings/checkout/createCheckoutSessionResponse.ts @@ -34,7 +34,7 @@ export class CreateCheckoutSessionResponse { */ 'additionalData'?: { [key: string]: string; }; /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"giropay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` */ 'allowedPaymentMethods'?: Array; 'amount': Amount; @@ -42,7 +42,7 @@ export class CreateCheckoutSessionResponse { 'authenticationData'?: AuthenticationData | null; 'billingAddress'?: BillingAddress | null; /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"giropay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` */ 'blockedPaymentMethods'?: Array; /** diff --git a/src/typings/checkout/donation.ts b/src/typings/checkout/donation.ts index 3c394c030..7334a3a2b 100644 --- a/src/typings/checkout/donation.ts +++ b/src/typings/checkout/donation.ts @@ -22,6 +22,10 @@ export class Donation { */ 'maxRoundupAmount'?: number; /** + * The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donation amounts that the shopper can select from. + */ + 'type': string; + /** * The fixed donation amounts in [minor units](https://docs.adyen.com/development-resources/currency-codes//#minor-units). This field is only present when `donationType` is **fixedAmounts**. */ 'values'?: Array; @@ -44,6 +48,11 @@ export class Donation { "baseName": "maxRoundupAmount", "type": "number" }, + { + "name": "type", + "baseName": "type", + "type": "string" + }, { "name": "values", "baseName": "values", diff --git a/src/typings/checkout/dotpayDetails.ts b/src/typings/checkout/dotpayDetails.ts deleted file mode 100644 index 733123c5b..000000000 --- a/src/typings/checkout/dotpayDetails.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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 DotpayDetails { - /** - * The checkout attempt identifier. - */ - 'checkoutAttemptId'?: string; - /** - * The Dotpay issuer value of the shopper\'s selected bank. Set this to an **id** of a Dotpay issuer to preselect it. - */ - 'issuer': string; - /** - * **dotpay** - */ - 'type'?: DotpayDetails.TypeEnum; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "checkoutAttemptId", - "baseName": "checkoutAttemptId", - "type": "string" - }, - { - "name": "issuer", - "baseName": "issuer", - "type": "string" - }, - { - "name": "type", - "baseName": "type", - "type": "DotpayDetails.TypeEnum" - } ]; - - static getAttributeTypeMap() { - return DotpayDetails.attributeTypeMap; - } -} - -export namespace DotpayDetails { - export enum TypeEnum { - Dotpay = 'dotpay' - } -} diff --git a/src/typings/checkout/enhancedSchemeData.ts b/src/typings/checkout/enhancedSchemeData.ts new file mode 100644 index 000000000..132b501db --- /dev/null +++ b/src/typings/checkout/enhancedSchemeData.ts @@ -0,0 +1,28 @@ +/* + * 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 { Airline } from './airline'; + +export class EnhancedSchemeData { + 'airline'?: Airline | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "airline", + "baseName": "airline", + "type": "Airline | null" + } ]; + + static getAttributeTypeMap() { + return EnhancedSchemeData.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/installmentOption.ts b/src/typings/checkout/installmentOption.ts index 14e1964b5..17bc28e0e 100644 --- a/src/typings/checkout/installmentOption.ts +++ b/src/typings/checkout/installmentOption.ts @@ -57,6 +57,7 @@ export class InstallmentOption { export namespace InstallmentOption { export enum PlansEnum { + Bonus = 'bonus', BuynowPaylater = 'buynow_paylater', InteresRefundPrctg = 'interes_refund_prctg', InterestBonus = 'interest_bonus', diff --git a/src/typings/checkout/installments.ts b/src/typings/checkout/installments.ts index 379c4a0c9..424ce11fb 100644 --- a/src/typings/checkout/installments.ts +++ b/src/typings/checkout/installments.ts @@ -48,6 +48,7 @@ export class Installments { export namespace Installments { export enum PlanEnum { + Bonus = 'bonus', BuynowPaylater = 'buynow_paylater', InteresRefundPrctg = 'interes_refund_prctg', InterestBonus = 'interest_bonus', diff --git a/src/typings/checkout/leg.ts b/src/typings/checkout/leg.ts new file mode 100644 index 000000000..9a143a6be --- /dev/null +++ b/src/typings/checkout/leg.ts @@ -0,0 +1,102 @@ +/* + * 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 Leg { + /** + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. * Must not be all zeros. + */ + 'carrierCode'?: string; + /** + * A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not start with a space or be all spaces. * Must not be all zeros. + */ + 'classOfTravel'?: string; + /** + * Date and time of travel in format `yyyy-MM-ddTHH:mm`. * Use local time of departure airport. * minLength: 16 characters * maxLength: 16 characters + */ + 'dateOfTravel'?: Date; + /** + * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + */ + 'departureAirportCode'?: string; + /** + * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 11 * Must not be all zeros. + */ + 'departureTax'?: number; + /** + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + */ + '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. + */ + 'fareBasisCode'?: string; + /** + * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not start with a space or be all spaces. * Must not be all zeros. + */ + 'flightNumber'?: string; + /** + * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character + */ + 'stopOverCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "carrierCode", + "baseName": "carrierCode", + "type": "string" + }, + { + "name": "classOfTravel", + "baseName": "classOfTravel", + "type": "string" + }, + { + "name": "dateOfTravel", + "baseName": "dateOfTravel", + "type": "Date" + }, + { + "name": "departureAirportCode", + "baseName": "departureAirportCode", + "type": "string" + }, + { + "name": "departureTax", + "baseName": "departureTax", + "type": "number" + }, + { + "name": "destinationAirportCode", + "baseName": "destinationAirportCode", + "type": "string" + }, + { + "name": "fareBasisCode", + "baseName": "fareBasisCode", + "type": "string" + }, + { + "name": "flightNumber", + "baseName": "flightNumber", + "type": "string" + }, + { + "name": "stopOverCode", + "baseName": "stopOverCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Leg.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/models.ts b/src/typings/checkout/models.ts index 1111ffb1b..09e55a543 100644 --- a/src/typings/checkout/models.ts +++ b/src/typings/checkout/models.ts @@ -29,6 +29,8 @@ export * from './additionalDataWallets'; export * from './address'; export * from './affirmDetails'; export * from './afterpayDetails'; +export * from './agency'; +export * from './airline'; export * from './amazonPayDetails'; export * from './amount'; export * from './amounts'; @@ -86,12 +88,12 @@ export * from './donationCampaignsRequest'; export * from './donationCampaignsResponse'; export * from './donationPaymentRequest'; export * from './donationPaymentResponse'; -export * from './dotpayDetails'; export * from './dragonpayDetails'; export * from './eBankingFinlandDetails'; export * from './econtextVoucherDetails'; export * from './eftDetails'; export * from './encryptedOrderData'; +export * from './enhancedSchemeData'; export * from './externalPlatform'; export * from './fastlaneDetails'; export * from './forexQuote'; @@ -100,7 +102,6 @@ export * from './fraudResult'; export * from './fundOrigin'; export * from './fundRecipient'; export * from './genericIssuerPaymentMethodDetails'; -export * from './giropayDetails'; export * from './googlePayDetails'; export * from './googlePayDonations'; export * from './idealDetails'; @@ -110,6 +111,7 @@ export * from './installmentOption'; export * from './installments'; export * from './item'; export * from './klarnaDetails'; +export * from './leg'; export * from './lineItem'; export * from './listStoredPaymentMethodsResponse'; export * from './mandate'; @@ -121,6 +123,7 @@ export * from './mobilePayDetails'; export * from './molPayDetails'; export * from './name'; export * from './openInvoiceDetails'; +export * from './passenger'; export * from './payByBankAISDirectDebitDetails'; export * from './payByBankDetails'; export * from './payPalDetails'; @@ -161,6 +164,7 @@ export * from './pixDetails'; export * from './pixRecurring'; export * from './platformChargebackLogic'; export * from './pseDetails'; +export * from './rakutenPayDetails'; export * from './ratepayDetails'; export * from './recurring'; export * from './responseAdditionalData3DSecure'; @@ -192,6 +196,7 @@ export * from './storedPaymentMethodResource'; export * from './subInputDetail'; export * from './subMerchant'; export * from './subMerchantInfo'; +export * from './surcharge'; export * from './taxTotal'; export * from './threeDS2RequestData'; export * from './threeDS2RequestFields'; @@ -201,6 +206,8 @@ export * from './threeDSRequestData'; export * from './threeDSRequestorAuthenticationInfo'; export * from './threeDSRequestorPriorAuthenticationInfo'; export * from './threeDSecureData'; +export * from './ticket'; +export * from './travelAgency'; export * from './twintDetails'; export * from './updatePaymentLinkRequest'; export * from './upiCollectDetails'; @@ -235,6 +242,8 @@ import { AdditionalDataWallets } from './additionalDataWallets'; import { Address } from './address'; import { AffirmDetails } from './affirmDetails'; import { AfterpayDetails } from './afterpayDetails'; +import { Agency } from './agency'; +import { Airline } from './airline'; import { AmazonPayDetails } from './amazonPayDetails'; import { Amount } from './amount'; import { Amounts } from './amounts'; @@ -292,12 +301,12 @@ import { DonationCampaignsRequest } from './donationCampaignsRequest'; import { DonationCampaignsResponse } from './donationCampaignsResponse'; import { DonationPaymentRequest } from './donationPaymentRequest'; import { DonationPaymentResponse } from './donationPaymentResponse'; -import { DotpayDetails } from './dotpayDetails'; import { DragonpayDetails } from './dragonpayDetails'; import { EBankingFinlandDetails } from './eBankingFinlandDetails'; import { EcontextVoucherDetails } from './econtextVoucherDetails'; import { EftDetails } from './eftDetails'; import { EncryptedOrderData } from './encryptedOrderData'; +import { EnhancedSchemeData } from './enhancedSchemeData'; import { ExternalPlatform } from './externalPlatform'; import { FastlaneDetails } from './fastlaneDetails'; import { ForexQuote } from './forexQuote'; @@ -306,7 +315,6 @@ import { FraudResult } from './fraudResult'; import { FundOrigin } from './fundOrigin'; import { FundRecipient } from './fundRecipient'; import { GenericIssuerPaymentMethodDetails } from './genericIssuerPaymentMethodDetails'; -import { GiropayDetails } from './giropayDetails'; import { GooglePayDetails } from './googlePayDetails'; import { GooglePayDonations } from './googlePayDonations'; import { IdealDetails } from './idealDetails'; @@ -316,6 +324,7 @@ import { InstallmentOption } from './installmentOption'; import { Installments } from './installments'; import { Item } from './item'; import { KlarnaDetails } from './klarnaDetails'; +import { Leg } from './leg'; import { LineItem } from './lineItem'; import { ListStoredPaymentMethodsResponse } from './listStoredPaymentMethodsResponse'; import { Mandate } from './mandate'; @@ -327,6 +336,7 @@ import { MobilePayDetails } from './mobilePayDetails'; import { MolPayDetails } from './molPayDetails'; import { Name } from './name'; import { OpenInvoiceDetails } from './openInvoiceDetails'; +import { Passenger } from './passenger'; import { PayByBankAISDirectDebitDetails } from './payByBankAISDirectDebitDetails'; import { PayByBankDetails } from './payByBankDetails'; import { PayPalDetails } from './payPalDetails'; @@ -367,6 +377,7 @@ import { PixDetails } from './pixDetails'; import { PixRecurring } from './pixRecurring'; import { PlatformChargebackLogic } from './platformChargebackLogic'; import { PseDetails } from './pseDetails'; +import { RakutenPayDetails } from './rakutenPayDetails'; import { RatepayDetails } from './ratepayDetails'; import { Recurring } from './recurring'; import { ResponseAdditionalData3DSecure } from './responseAdditionalData3DSecure'; @@ -398,6 +409,7 @@ import { StoredPaymentMethodResource } from './storedPaymentMethodResource'; import { SubInputDetail } from './subInputDetail'; import { SubMerchant } from './subMerchant'; import { SubMerchantInfo } from './subMerchantInfo'; +import { Surcharge } from './surcharge'; import { TaxTotal } from './taxTotal'; import { ThreeDS2RequestData } from './threeDS2RequestData'; import { ThreeDS2RequestFields } from './threeDS2RequestFields'; @@ -407,6 +419,8 @@ import { ThreeDSRequestData } from './threeDSRequestData'; import { ThreeDSRequestorAuthenticationInfo } from './threeDSRequestorAuthenticationInfo'; import { ThreeDSRequestorPriorAuthenticationInfo } from './threeDSRequestorPriorAuthenticationInfo'; import { ThreeDSecureData } from './threeDSecureData'; +import { Ticket } from './ticket'; +import { TravelAgency } from './travelAgency'; import { TwintDetails } from './twintDetails'; import { UpdatePaymentLinkRequest } from './updatePaymentLinkRequest'; import { UpiCollectDetails } from './upiCollectDetails'; @@ -445,6 +459,7 @@ let enumsMap: {[index: string]: any} = { "AcctInfo.ShipAddressUsageIndEnum": AcctInfo.ShipAddressUsageIndEnum, "AcctInfo.ShipNameIndicatorEnum": AcctInfo.ShipNameIndicatorEnum, "AcctInfo.SuspiciousAccActivityEnum": AcctInfo.SuspiciousAccActivityEnum, + "AchDetails.AccountHolderTypeEnum": AchDetails.AccountHolderTypeEnum, "AchDetails.BankAccountTypeEnum": AchDetails.BankAccountTypeEnum, "AchDetails.TypeEnum": AchDetails.TypeEnum, "AdditionalData3DSecure.ChallengeWindowSizeEnum": AdditionalData3DSecure.ChallengeWindowSizeEnum, @@ -505,7 +520,6 @@ let enumsMap: {[index: string]: any} = { "DonationPaymentRequest.RecurringProcessingModelEnum": DonationPaymentRequest.RecurringProcessingModelEnum, "DonationPaymentRequest.ShopperInteractionEnum": DonationPaymentRequest.ShopperInteractionEnum, "DonationPaymentResponse.StatusEnum": DonationPaymentResponse.StatusEnum, - "DotpayDetails.TypeEnum": DotpayDetails.TypeEnum, "DragonpayDetails.TypeEnum": DragonpayDetails.TypeEnum, "EBankingFinlandDetails.TypeEnum": EBankingFinlandDetails.TypeEnum, "EcontextVoucherDetails.TypeEnum": EcontextVoucherDetails.TypeEnum, @@ -513,7 +527,6 @@ let enumsMap: {[index: string]: any} = { "FastlaneDetails.TypeEnum": FastlaneDetails.TypeEnum, "FundRecipient.WalletPurposeEnum": FundRecipient.WalletPurposeEnum, "GenericIssuerPaymentMethodDetails.TypeEnum": GenericIssuerPaymentMethodDetails.TypeEnum, - "GiropayDetails.TypeEnum": GiropayDetails.TypeEnum, "GooglePayDetails.FundingSourceEnum": GooglePayDetails.FundingSourceEnum, "GooglePayDetails.TypeEnum": GooglePayDetails.TypeEnum, "GooglePayDonations.FundingSourceEnum": GooglePayDonations.FundingSourceEnum, @@ -577,11 +590,13 @@ let enumsMap: {[index: string]: any} = { "PixRecurring.FrequencyEnum": PixRecurring.FrequencyEnum, "PlatformChargebackLogic.BehaviorEnum": PlatformChargebackLogic.BehaviorEnum, "PseDetails.TypeEnum": PseDetails.TypeEnum, + "RakutenPayDetails.TypeEnum": RakutenPayDetails.TypeEnum, "RatepayDetails.TypeEnum": RatepayDetails.TypeEnum, "Recurring.ContractEnum": Recurring.ContractEnum, "Recurring.TokenServiceEnum": Recurring.TokenServiceEnum, "ResponseAdditionalDataCard.CardProductIdEnum": ResponseAdditionalDataCard.CardProductIdEnum, "ResponseAdditionalDataCommon.FraudResultTypeEnum": ResponseAdditionalDataCommon.FraudResultTypeEnum, + "ResponseAdditionalDataCommon.FraudRiskLevelEnum": ResponseAdditionalDataCommon.FraudRiskLevelEnum, "ResponseAdditionalDataCommon.RecurringProcessingModelEnum": ResponseAdditionalDataCommon.RecurringProcessingModelEnum, "ResponseAdditionalDataCommon.TokenizationStoreOperationTypeEnum": ResponseAdditionalDataCommon.TokenizationStoreOperationTypeEnum, "RivertyDetails.TypeEnum": RivertyDetails.TypeEnum, @@ -651,6 +666,8 @@ let typeMap: {[index: string]: any} = { "Address": Address, "AffirmDetails": AffirmDetails, "AfterpayDetails": AfterpayDetails, + "Agency": Agency, + "Airline": Airline, "AmazonPayDetails": AmazonPayDetails, "Amount": Amount, "Amounts": Amounts, @@ -708,12 +725,12 @@ let typeMap: {[index: string]: any} = { "DonationCampaignsResponse": DonationCampaignsResponse, "DonationPaymentRequest": DonationPaymentRequest, "DonationPaymentResponse": DonationPaymentResponse, - "DotpayDetails": DotpayDetails, "DragonpayDetails": DragonpayDetails, "EBankingFinlandDetails": EBankingFinlandDetails, "EcontextVoucherDetails": EcontextVoucherDetails, "EftDetails": EftDetails, "EncryptedOrderData": EncryptedOrderData, + "EnhancedSchemeData": EnhancedSchemeData, "ExternalPlatform": ExternalPlatform, "FastlaneDetails": FastlaneDetails, "ForexQuote": ForexQuote, @@ -722,7 +739,6 @@ let typeMap: {[index: string]: any} = { "FundOrigin": FundOrigin, "FundRecipient": FundRecipient, "GenericIssuerPaymentMethodDetails": GenericIssuerPaymentMethodDetails, - "GiropayDetails": GiropayDetails, "GooglePayDetails": GooglePayDetails, "GooglePayDonations": GooglePayDonations, "IdealDetails": IdealDetails, @@ -732,6 +748,7 @@ let typeMap: {[index: string]: any} = { "Installments": Installments, "Item": Item, "KlarnaDetails": KlarnaDetails, + "Leg": Leg, "LineItem": LineItem, "ListStoredPaymentMethodsResponse": ListStoredPaymentMethodsResponse, "Mandate": Mandate, @@ -743,6 +760,7 @@ let typeMap: {[index: string]: any} = { "MolPayDetails": MolPayDetails, "Name": Name, "OpenInvoiceDetails": OpenInvoiceDetails, + "Passenger": Passenger, "PayByBankAISDirectDebitDetails": PayByBankAISDirectDebitDetails, "PayByBankDetails": PayByBankDetails, "PayPalDetails": PayPalDetails, @@ -783,6 +801,7 @@ let typeMap: {[index: string]: any} = { "PixRecurring": PixRecurring, "PlatformChargebackLogic": PlatformChargebackLogic, "PseDetails": PseDetails, + "RakutenPayDetails": RakutenPayDetails, "RatepayDetails": RatepayDetails, "Recurring": Recurring, "ResponseAdditionalData3DSecure": ResponseAdditionalData3DSecure, @@ -814,6 +833,7 @@ let typeMap: {[index: string]: any} = { "SubInputDetail": SubInputDetail, "SubMerchant": SubMerchant, "SubMerchantInfo": SubMerchantInfo, + "Surcharge": Surcharge, "TaxTotal": TaxTotal, "ThreeDS2RequestData": ThreeDS2RequestData, "ThreeDS2RequestFields": ThreeDS2RequestFields, @@ -823,6 +843,8 @@ let typeMap: {[index: string]: any} = { "ThreeDSRequestorAuthenticationInfo": ThreeDSRequestorAuthenticationInfo, "ThreeDSRequestorPriorAuthenticationInfo": ThreeDSRequestorPriorAuthenticationInfo, "ThreeDSecureData": ThreeDSecureData, + "Ticket": Ticket, + "TravelAgency": TravelAgency, "TwintDetails": TwintDetails, "UpdatePaymentLinkRequest": UpdatePaymentLinkRequest, "UpiCollectDetails": UpiCollectDetails, diff --git a/src/typings/checkout/passenger.ts b/src/typings/checkout/passenger.ts new file mode 100644 index 000000000..95be693b7 --- /dev/null +++ b/src/typings/checkout/passenger.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. + */ + + +export class Passenger { + /** + * The passenger\'s date of birth. * Format `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + */ + 'dateOfBirth'?: string; + /** + * The passenger\'s first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + */ + 'firstName'?: string; + /** + * The passenger\'s last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + */ + 'lastName'?: string; + /** + * The passenger\'s phone number, including country code. This is an alphanumeric field that can include the \'+\' and \'-\' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters + */ + 'phoneNumber'?: string; + /** + * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters + */ + 'travellerType'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "string" + }, + { + "name": "firstName", + "baseName": "firstName", + "type": "string" + }, + { + "name": "lastName", + "baseName": "lastName", + "type": "string" + }, + { + "name": "phoneNumber", + "baseName": "phoneNumber", + "type": "string" + }, + { + "name": "travellerType", + "baseName": "travellerType", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Passenger.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/payByBankAISDirectDebitDetails.ts b/src/typings/checkout/payByBankAISDirectDebitDetails.ts index e7e13f378..9d3664f6d 100644 --- a/src/typings/checkout/payByBankAISDirectDebitDetails.ts +++ b/src/typings/checkout/payByBankAISDirectDebitDetails.ts @@ -25,7 +25,7 @@ export class PayByBankAISDirectDebitDetails { */ 'storedPaymentMethodId'?: string; /** - * **paybybank_** + * **paybybank_AIS_DD** */ 'type': PayByBankAISDirectDebitDetails.TypeEnum; diff --git a/src/typings/checkout/paymentCaptureRequest.ts b/src/typings/checkout/paymentCaptureRequest.ts index cea76b74a..e0b80408e 100644 --- a/src/typings/checkout/paymentCaptureRequest.ts +++ b/src/typings/checkout/paymentCaptureRequest.ts @@ -9,6 +9,7 @@ import { Amount } from './amount'; import { ApplicationInfo } from './applicationInfo'; +import { EnhancedSchemeData } from './enhancedSchemeData'; import { LineItem } from './lineItem'; import { PlatformChargebackLogic } from './platformChargebackLogic'; import { Split } from './split'; @@ -17,6 +18,7 @@ import { SubMerchantInfo } from './subMerchantInfo'; export class PaymentCaptureRequest { 'amount': Amount; 'applicationInfo'?: ApplicationInfo | null; + 'enhancedSchemeData'?: EnhancedSchemeData | null; /** * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. */ @@ -52,6 +54,11 @@ export class PaymentCaptureRequest { "baseName": "applicationInfo", "type": "ApplicationInfo | null" }, + { + "name": "enhancedSchemeData", + "baseName": "enhancedSchemeData", + "type": "EnhancedSchemeData | null" + }, { "name": "lineItems", "baseName": "lineItems", diff --git a/src/typings/checkout/paymentDetails.ts b/src/typings/checkout/paymentDetails.ts index fbf420377..68c7b35ad 100644 --- a/src/typings/checkout/paymentDetails.ts +++ b/src/typings/checkout/paymentDetails.ts @@ -84,7 +84,6 @@ export namespace PaymentDetails { DirectEbanking = 'directEbanking', Boletobancario = 'boletobancario', Neteller = 'neteller', - Paysafecard = 'paysafecard', Cashticket = 'cashticket', Ikano = 'ikano', Karenmillen = 'karenmillen', diff --git a/src/typings/checkout/paymentLinkRequest.ts b/src/typings/checkout/paymentLinkRequest.ts index 23e23737b..79f916c6c 100644 --- a/src/typings/checkout/paymentLinkRequest.ts +++ b/src/typings/checkout/paymentLinkRequest.ts @@ -22,14 +22,14 @@ import { Split } from './split'; export class PaymentLinkRequest { /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"giropay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` */ 'allowedPaymentMethods'?: Array; 'amount': Amount; 'applicationInfo'?: ApplicationInfo | null; 'billingAddress'?: Address | null; /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"giropay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` */ 'blockedPaymentMethods'?: Array; /** diff --git a/src/typings/checkout/paymentLinkResponse.ts b/src/typings/checkout/paymentLinkResponse.ts index 4bbed5d93..c640809c8 100644 --- a/src/typings/checkout/paymentLinkResponse.ts +++ b/src/typings/checkout/paymentLinkResponse.ts @@ -22,14 +22,14 @@ import { Split } from './split'; export class PaymentLinkResponse { /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"giropay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` */ 'allowedPaymentMethods'?: Array; 'amount': Amount; 'applicationInfo'?: ApplicationInfo | null; 'billingAddress'?: Address | null; /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"giropay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` */ 'blockedPaymentMethods'?: Array; /** diff --git a/src/typings/checkout/paymentMethodToStore.ts b/src/typings/checkout/paymentMethodToStore.ts index 1f4b10940..cc51e656c 100644 --- a/src/typings/checkout/paymentMethodToStore.ts +++ b/src/typings/checkout/paymentMethodToStore.ts @@ -18,6 +18,10 @@ export class PaymentMethodToStore { */ 'cvc'?: string; /** + * The encrypted card. + */ + 'encryptedCard'?: string; + /** * The encrypted card number. */ 'encryptedCardNumber'?: string; @@ -67,6 +71,11 @@ export class PaymentMethodToStore { "baseName": "cvc", "type": "string" }, + { + "name": "encryptedCard", + "baseName": "encryptedCard", + "type": "string" + }, { "name": "encryptedCardNumber", "baseName": "encryptedCardNumber", diff --git a/src/typings/checkout/paymentMethodsRequest.ts b/src/typings/checkout/paymentMethodsRequest.ts index c8138b5f7..8a05973bc 100644 --- a/src/typings/checkout/paymentMethodsRequest.ts +++ b/src/typings/checkout/paymentMethodsRequest.ts @@ -16,12 +16,12 @@ export class PaymentMethodsRequest { */ 'additionalData'?: { [key: string]: string; }; /** - * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"giropay\"]` + * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` */ 'allowedPaymentMethods'?: Array; 'amount'?: Amount | null; /** - * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"giropay\"]` + * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` */ 'blockedPaymentMethods'?: Array; /** diff --git a/src/typings/checkout/paymentRequest.ts b/src/typings/checkout/paymentRequest.ts index 4be01cbd0..360760bd8 100644 --- a/src/typings/checkout/paymentRequest.ts +++ b/src/typings/checkout/paymentRequest.ts @@ -30,18 +30,17 @@ import { CheckoutBankAccount } from './checkoutBankAccount'; import { Company } from './company'; import { DeliveryAddress } from './deliveryAddress'; import { DokuDetails } from './dokuDetails'; -import { DotpayDetails } from './dotpayDetails'; import { DragonpayDetails } from './dragonpayDetails'; import { EBankingFinlandDetails } from './eBankingFinlandDetails'; import { EcontextVoucherDetails } from './econtextVoucherDetails'; import { EftDetails } from './eftDetails'; import { EncryptedOrderData } from './encryptedOrderData'; +import { EnhancedSchemeData } from './enhancedSchemeData'; import { FastlaneDetails } from './fastlaneDetails'; import { ForexQuote } from './forexQuote'; import { FundOrigin } from './fundOrigin'; import { FundRecipient } from './fundRecipient'; import { GenericIssuerPaymentMethodDetails } from './genericIssuerPaymentMethodDetails'; -import { GiropayDetails } from './giropayDetails'; import { GooglePayDetails } from './googlePayDetails'; import { IdealDetails } from './idealDetails'; import { Installments } from './installments'; @@ -66,6 +65,7 @@ import { PaymentDetails } from './paymentDetails'; import { PixDetails } from './pixDetails'; import { PlatformChargebackLogic } from './platformChargebackLogic'; import { PseDetails } from './pseDetails'; +import { RakutenPayDetails } from './rakutenPayDetails'; import { RatepayDetails } from './ratepayDetails'; import { RiskData } from './riskData'; import { RivertyDetails } from './rivertyDetails'; @@ -74,6 +74,7 @@ import { SepaDirectDebitDetails } from './sepaDirectDebitDetails'; import { Split } from './split'; import { StoredPaymentMethodDetails } from './storedPaymentMethodDetails'; import { SubMerchantInfo } from './subMerchantInfo'; +import { Surcharge } from './surcharge'; import { ThreeDS2RequestFields } from './threeDS2RequestFields'; import { ThreeDSecureData } from './threeDSecureData'; import { TwintDetails } from './twintDetails'; @@ -155,6 +156,7 @@ export class PaymentRequest { * When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. */ 'enableRecurring'?: boolean; + 'enhancedSchemeData'?: EnhancedSchemeData | null; /** * The type of the entity the payment is processed for. */ @@ -209,7 +211,7 @@ export class PaymentRequest { /** * The type and required details of a payment method to use. */ - 'paymentMethod': AchDetails | AffirmDetails | AfterpayDetails | AmazonPayDetails | AncvDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CashAppDetails | CellulantDetails | DokuDetails | DotpayDetails | DragonpayDetails | EBankingFinlandDetails | EcontextVoucherDetails | EftDetails | FastlaneDetails | GenericIssuerPaymentMethodDetails | GiropayDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayByBankAISDirectDebitDetails | PayByBankDetails | PayPalDetails | PayPayDetails | PayToDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | PixDetails | PseDetails | RatepayDetails | RivertyDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | TwintDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails; + 'paymentMethod': AchDetails | AffirmDetails | AfterpayDetails | AmazonPayDetails | AncvDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CashAppDetails | CellulantDetails | DokuDetails | DragonpayDetails | EBankingFinlandDetails | EcontextVoucherDetails | EftDetails | FastlaneDetails | GenericIssuerPaymentMethodDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayByBankAISDirectDebitDetails | PayByBankDetails | PayPalDetails | PayPayDetails | PayToDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | PixDetails | PseDetails | RakutenPayDetails | RatepayDetails | RivertyDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | TwintDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails; 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. @@ -236,7 +238,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. > 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. > The URL must not include personally identifiable information (PII), for example name or email address. */ 'returnUrl': string; 'riskData'?: RiskData | null; @@ -293,6 +295,7 @@ export class PaymentRequest { * This field contains additional information on the submerchant, who is onboarded to an acquirer through a payment facilitator or aggregator */ 'subMerchants'?: Array; + 'surcharge'?: Surcharge | null; /** * The shopper\'s telephone number. */ @@ -433,6 +436,11 @@ export class PaymentRequest { "baseName": "enableRecurring", "type": "boolean" }, + { + "name": "enhancedSchemeData", + "baseName": "enhancedSchemeData", + "type": "EnhancedSchemeData | null" + }, { "name": "entityType", "baseName": "entityType", @@ -526,7 +534,7 @@ export class PaymentRequest { { "name": "paymentMethod", "baseName": "paymentMethod", - "type": "AchDetails | AffirmDetails | AfterpayDetails | AmazonPayDetails | AncvDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CashAppDetails | CellulantDetails | DokuDetails | DotpayDetails | DragonpayDetails | EBankingFinlandDetails | EcontextVoucherDetails | EftDetails | FastlaneDetails | GenericIssuerPaymentMethodDetails | GiropayDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayByBankAISDirectDebitDetails | PayByBankDetails | PayPalDetails | PayPayDetails | PayToDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | PixDetails | PseDetails | RatepayDetails | RivertyDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | TwintDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails" + "type": "AchDetails | AffirmDetails | AfterpayDetails | AmazonPayDetails | AncvDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CashAppDetails | CellulantDetails | DokuDetails | DragonpayDetails | EBankingFinlandDetails | EcontextVoucherDetails | EftDetails | FastlaneDetails | GenericIssuerPaymentMethodDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayByBankAISDirectDebitDetails | PayByBankDetails | PayPalDetails | PayPayDetails | PayToDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | PixDetails | PseDetails | RakutenPayDetails | RatepayDetails | RivertyDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | TwintDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails" }, { "name": "platformChargebackLogic", @@ -643,6 +651,11 @@ export class PaymentRequest { "baseName": "subMerchants", "type": "Array" }, + { + "name": "surcharge", + "baseName": "surcharge", + "type": "Surcharge | null" + }, { "name": "telephoneNumber", "baseName": "telephoneNumber", diff --git a/src/typings/checkout/giropayDetails.ts b/src/typings/checkout/rakutenPayDetails.ts similarity index 84% rename from src/typings/checkout/giropayDetails.ts rename to src/typings/checkout/rakutenPayDetails.ts index ca17d10bf..757937f39 100644 --- a/src/typings/checkout/giropayDetails.ts +++ b/src/typings/checkout/rakutenPayDetails.ts @@ -8,7 +8,7 @@ */ -export class GiropayDetails { +export class RakutenPayDetails { /** * The checkout attempt identifier. */ @@ -25,9 +25,9 @@ export class GiropayDetails { */ 'storedPaymentMethodId'?: string; /** - * **giropay** + * **rakutenpay** */ - 'type'?: GiropayDetails.TypeEnum; + 'type'?: RakutenPayDetails.TypeEnum; static discriminator: string | undefined = undefined; @@ -50,16 +50,16 @@ export class GiropayDetails { { "name": "type", "baseName": "type", - "type": "GiropayDetails.TypeEnum" + "type": "RakutenPayDetails.TypeEnum" } ]; static getAttributeTypeMap() { - return GiropayDetails.attributeTypeMap; + return RakutenPayDetails.attributeTypeMap; } } -export namespace GiropayDetails { +export namespace RakutenPayDetails { export enum TypeEnum { - Giropay = 'giropay' + Rakutenpay = 'rakutenpay' } } diff --git a/src/typings/checkout/responseAdditionalDataCommon.ts b/src/typings/checkout/responseAdditionalDataCommon.ts index ad33282a8..0b25f96f4 100644 --- a/src/typings/checkout/responseAdditionalDataCommon.ts +++ b/src/typings/checkout/responseAdditionalDataCommon.ts @@ -102,6 +102,10 @@ export class ResponseAdditionalDataCommon { */ 'fraudResultType'?: ResponseAdditionalDataCommon.FraudResultTypeEnum; /** + * The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are:\\n* veryLow\\n* low\\n* medium\\n* high\\n* veryHigh\\n\\n> + */ + 'fraudRiskLevel'?: ResponseAdditionalDataCommon.FraudRiskLevelEnum; + /** * Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen\'s end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. */ 'fundingSource'?: string; @@ -382,6 +386,11 @@ export class ResponseAdditionalDataCommon { "baseName": "fraudResultType", "type": "ResponseAdditionalDataCommon.FraudResultTypeEnum" }, + { + "name": "fraudRiskLevel", + "baseName": "fraudRiskLevel", + "type": "ResponseAdditionalDataCommon.FraudRiskLevelEnum" + }, { "name": "fundingSource", "baseName": "fundingSource", @@ -588,6 +597,13 @@ export namespace ResponseAdditionalDataCommon { Green = 'GREEN', Fraud = 'FRAUD' } + export enum FraudRiskLevelEnum { + VeryLow = 'veryLow', + Low = 'low', + Medium = 'medium', + High = 'high', + VeryHigh = 'veryHigh' + } export enum RecurringProcessingModelEnum { CardOnFile = 'CardOnFile', Subscription = 'Subscription', diff --git a/src/typings/checkout/sessionResultResponse.ts b/src/typings/checkout/sessionResultResponse.ts index 4508efde4..4804b8987 100644 --- a/src/typings/checkout/sessionResultResponse.ts +++ b/src/typings/checkout/sessionResultResponse.ts @@ -14,7 +14,7 @@ export class SessionResultResponse { */ 'id'?: string; /** - * The status of the session. The status included in the response doesn\'t get updated. Don\'t make the request again to check for payment status updates. Possible values: * **completed** – The shopper completed the payment. This means that the payment was authorized. * **paymentPending** – The shopper is in the process of making the payment. This applies to payment methods with an asynchronous flow. * **refused** – The session has been refused, due to too many refused payment attempts. Shoppers can no longer complete the payment with this session. * **canceled** – The shopper canceled the payment. * **active** – The session is still active and can be paid. * **expired** – The session expired (default: 1 hour after session creation). Shoppers can no longer complete the payment with this session. + * The status of the session. The status included in the response doesn\'t get updated. Don\'t make the request again to check for payment status updates. Possible values: * **completed**: the shopper completed the payment, and the payment was authorized. * **paymentPending**: the shopper is in the process of making the payment. This applies to payment methods with an asynchronous flow, like voucher payments where the shopper completes the payment in a physical shop. * **refused**: the session has been refused, because of too many refused payment attempts. The shopper can no longer complete the payment with this session. * **canceled**: the shopper canceled the payment. * **expired**: the session expired. The shopper can no longer complete the payment with this session. By default, the session expires one hour after it is created. */ 'status'?: SessionResultResponse.StatusEnum; diff --git a/src/typings/checkout/storedPaymentMethod.ts b/src/typings/checkout/storedPaymentMethod.ts index 68075c702..2381f7200 100644 --- a/src/typings/checkout/storedPaymentMethod.ts +++ b/src/typings/checkout/storedPaymentMethod.ts @@ -22,7 +22,7 @@ export class StoredPaymentMethod { */ 'brand'?: string; /** - * The month the card expires. + * The two-digit month when the card expires */ 'expiryMonth'?: string; /** diff --git a/src/typings/checkout/storedPaymentMethodDetails.ts b/src/typings/checkout/storedPaymentMethodDetails.ts index 540c10b00..d70366a27 100644 --- a/src/typings/checkout/storedPaymentMethodDetails.ts +++ b/src/typings/checkout/storedPaymentMethodDetails.ts @@ -76,6 +76,7 @@ export namespace StoredPaymentMethodDetails { Gcash = 'gcash', Dana = 'dana', Kakaopay = 'kakaopay', - Truemoney = 'truemoney' + Truemoney = 'truemoney', + Paysafecard = 'paysafecard' } } diff --git a/src/typings/checkout/surcharge.ts b/src/typings/checkout/surcharge.ts new file mode 100644 index 000000000..dd96b6435 --- /dev/null +++ b/src/typings/checkout/surcharge.ts @@ -0,0 +1,30 @@ +/* + * 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 Surcharge { + /** + * The [surcharge](https://docs.adyen.com/online-payments/surcharge/) amount to apply to the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). When you apply surcharge, include the surcharge in the `amount.value` field. Review our [Surcharge compliance guide](https://docs.adyen.com/development-resources/surcharge-compliance/) to learn about how to comply with regulatory requirements when applying surcharge. + */ + 'value': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "value", + "baseName": "value", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return Surcharge.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/ticket.ts b/src/typings/checkout/ticket.ts new file mode 100644 index 000000000..9fffb19a6 --- /dev/null +++ b/src/typings/checkout/ticket.ts @@ -0,0 +1,48 @@ +/* + * 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 Ticket { + /** + * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters + */ + 'issueAddress'?: string; + /** + * The date that the ticket was issued to the passenger. * minLength: 10 characters * maxLength: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd + */ + 'issueDate'?: string; + /** + * The ticket\'s unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. + */ + 'number'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "issueAddress", + "baseName": "issueAddress", + "type": "string" + }, + { + "name": "issueDate", + "baseName": "issueDate", + "type": "string" + }, + { + "name": "number", + "baseName": "number", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Ticket.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/travelAgency.ts b/src/typings/checkout/travelAgency.ts new file mode 100644 index 000000000..bd2d6a043 --- /dev/null +++ b/src/typings/checkout/travelAgency.ts @@ -0,0 +1,39 @@ +/* + * 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 TravelAgency { + /** + * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not start with a space or be all spaces. * Must not be all zeros. + */ + 'code'?: string; + /** + * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. + */ + 'name'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "code", + "baseName": "code", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return TravelAgency.attributeTypeMap; + } +} +