Skip to content

Commit

Permalink
Update all services (#1394)
Browse files Browse the repository at this point in the history
* [reformat][adyen-sdk-automation] automated change

* style(fmt): code formatted

* Update transferRoute.ts

removed faulty import untill sustainable fix implemented

---------

Co-authored-by: AdyenAutomationBot <Adyen Automation plugins_dev@adyen.com>
Co-authored-by: Djoyke Reijans <115019123+DjoykeAbyah@users.noreply.github.com>
  • Loading branch information
3 people authored Sep 16, 2024
1 parent 3777b25 commit f465849
Show file tree
Hide file tree
Showing 32 changed files with 741 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/typings/checkout/additionalData3DSecure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

export class AdditionalData3DSecure {
/**
* Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen still selects the version of 3D Secure based on configuration to optimize authorisation rates and improve the shopper\'s experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen will not offer 3D Secure 2 to your shopper regardless of your configuration.
* Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper\'s experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration.
*/
'allow3DS2'?: string;
/**
Expand Down
6 changes: 3 additions & 3 deletions src/typings/checkout/additionalDataLodging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class AdditionalDataLodging {
*/
'lodging_checkOutDate'?: string;
/**
* The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros.
* The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros.
*/
'lodging_customerServiceTollFreeNumber'?: string;
/**
Expand All @@ -34,7 +34,7 @@ export class AdditionalDataLodging {
*/
'lodging_folioCashAdvances'?: string;
/**
* The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters. * Must not start with a space *Must not be all zeros.
* The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros.
*/
'lodging_folioNumber'?: string;
/**
Expand All @@ -50,7 +50,7 @@ export class AdditionalDataLodging {
*/
'lodging_prepaidExpenses'?: string;
/**
* The lodging property location\'s phone number. * Format: numeric. * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros.
* The lodging property location\'s phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros.
*/
'lodging_propertyPhoneNumber'?: string;
/**
Expand Down
2 changes: 1 addition & 1 deletion src/typings/checkout/cardDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class CardDetails {
*/
'holderName'?: string;
/**
* The network token reference. 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/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment.
*/
'networkPaymentReference'?: string;
/**
Expand Down
2 changes: 1 addition & 1 deletion src/typings/checkout/cardDonations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class CardDonations {
*/
'holderName'?: string;
/**
* The network token reference. 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/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment.
*/
'networkPaymentReference'?: string;
/**
Expand Down
141 changes: 141 additions & 0 deletions src/typings/checkout/checkoutBankTransferAction.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
/*
* 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 { Amount } from './amount';

export class CheckoutBankTransferAction {
/**
* The account number of the bank transfer.
*/
'accountNumber'?: string;
/**
* The name of the account holder.
*/
'beneficiary'?: string;
/**
* The BIC of the IBAN.
*/
'bic'?: string;
/**
* The url to download payment details with.
*/
'downloadUrl'?: string;
/**
* The IBAN of the bank transfer.
*/
'iban'?: string;
/**
* Specifies the payment method.
*/
'paymentMethodType'?: string;
/**
* The transfer reference.
*/
'reference'?: string;
/**
* The routing number of the bank transfer.
*/
'routingNumber'?: string;
/**
* The e-mail of the shopper, included if an e-mail was sent to the shopper.
*/
'shopperEmail'?: string;
/**
* The sort code of the bank transfer.
*/
'sortCode'?: string;
'totalAmount'?: Amount;
/**
* The type of the action.
*/
'type': CheckoutBankTransferAction.TypeEnum;
/**
* Specifies the URL to redirect to.
*/
'url'?: string;

static discriminator: string | undefined = undefined;

static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "accountNumber",
"baseName": "accountNumber",
"type": "string"
},
{
"name": "beneficiary",
"baseName": "beneficiary",
"type": "string"
},
{
"name": "bic",
"baseName": "bic",
"type": "string"
},
{
"name": "downloadUrl",
"baseName": "downloadUrl",
"type": "string"
},
{
"name": "iban",
"baseName": "iban",
"type": "string"
},
{
"name": "paymentMethodType",
"baseName": "paymentMethodType",
"type": "string"
},
{
"name": "reference",
"baseName": "reference",
"type": "string"
},
{
"name": "routingNumber",
"baseName": "routingNumber",
"type": "string"
},
{
"name": "shopperEmail",
"baseName": "shopperEmail",
"type": "string"
},
{
"name": "sortCode",
"baseName": "sortCode",
"type": "string"
},
{
"name": "totalAmount",
"baseName": "totalAmount",
"type": "Amount"
},
{
"name": "type",
"baseName": "type",
"type": "CheckoutBankTransferAction.TypeEnum"
},
{
"name": "url",
"baseName": "url",
"type": "string"
} ];

static getAttributeTypeMap() {
return CheckoutBankTransferAction.attributeTypeMap;
}
}

export namespace CheckoutBankTransferAction {
export enum TypeEnum {
BankTransfer = 'bankTransfer'
}
}
2 changes: 1 addition & 1 deletion src/typings/checkout/donationPaymentRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export class DonationPaymentRequest {
*/
'reference': string;
/**
* The URL to return to in case of a redirection. The format depends on the channel. This URL can have a maximum of 1024 characters. * 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. This URL can have a maximum of 1024 characters. * 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.
*/
'returnUrl': string;
/**
Expand Down
98 changes: 98 additions & 0 deletions src/typings/checkout/eftDetails.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
/*
* 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 EftDetails {
/**
* The bank account number (without separators).
*/
'bankAccountNumber'?: string;
/**
* The financial institution code.
*/
'bankCode'?: string;
/**
* The bank routing number of the account.
*/
'bankLocationId'?: string;
/**
* The checkout attempt identifier.
*/
'checkoutAttemptId'?: string;
/**
* The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don\'t accept \'ø\'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don\'t match the required format, the response returns the error message: 203 \'Invalid bank account holder name\'.
*/
'ownerName'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*/
'recurringDetailReference'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*/
'storedPaymentMethodId'?: string;
/**
* **eft**
*/
'type'?: EftDetails.TypeEnum;

static discriminator: string | undefined = undefined;

static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "bankAccountNumber",
"baseName": "bankAccountNumber",
"type": "string"
},
{
"name": "bankCode",
"baseName": "bankCode",
"type": "string"
},
{
"name": "bankLocationId",
"baseName": "bankLocationId",
"type": "string"
},
{
"name": "checkoutAttemptId",
"baseName": "checkoutAttemptId",
"type": "string"
},
{
"name": "ownerName",
"baseName": "ownerName",
"type": "string"
},
{
"name": "recurringDetailReference",
"baseName": "recurringDetailReference",
"type": "string"
},
{
"name": "storedPaymentMethodId",
"baseName": "storedPaymentMethodId",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "EftDetails.TypeEnum"
} ];

static getAttributeTypeMap() {
return EftDetails.attributeTypeMap;
}
}

export namespace EftDetails {
export enum TypeEnum {
EftDirectdebitCa = 'eft_directdebit_CA'
}
}
7 changes: 5 additions & 2 deletions src/typings/checkout/fundOrigin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,17 @@ import { Name } from './name';
export class FundOrigin {
'billingAddress'?: Address;
/**
* Email address of the person.
* The email address of the person funding the money.
*/
'shopperEmail'?: string;
'shopperName'?: Name;
/**
* Phone number of the person
* The phone number of the person funding the money.
*/
'telephoneNumber'?: string;
/**
* The unique identifier of the wallet where the funds are coming from.
*/
'walletIdentifier'?: string;

static discriminator: string | undefined = undefined;
Expand Down
8 changes: 8 additions & 0 deletions src/typings/checkout/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export * from './cardDonations';
export * from './cashAppDetails';
export * from './cellulantDetails';
export * from './checkoutAwaitAction';
export * from './checkoutBankTransferAction';
export * from './checkoutDelegatedAuthenticationAction';
export * from './checkoutNativeRedirectAction';
export * from './checkoutOrderResponse';
Expand Down Expand Up @@ -90,6 +91,7 @@ export * from './donationPaymentResponse';
export * from './dotpayDetails';
export * from './dragonpayDetails';
export * from './econtextVoucherDetails';
export * from './eftDetails';
export * from './encryptedOrderData';
export * from './externalPlatform';
export * from './forexQuote';
Expand Down Expand Up @@ -266,6 +268,7 @@ import { CardDonations } from './cardDonations';
import { CashAppDetails } from './cashAppDetails';
import { CellulantDetails } from './cellulantDetails';
import { CheckoutAwaitAction } from './checkoutAwaitAction';
import { CheckoutBankTransferAction } from './checkoutBankTransferAction';
import { CheckoutDelegatedAuthenticationAction } from './checkoutDelegatedAuthenticationAction';
import { CheckoutNativeRedirectAction } from './checkoutNativeRedirectAction';
import { CheckoutOrderResponse } from './checkoutOrderResponse';
Expand Down Expand Up @@ -297,6 +300,7 @@ import { DonationPaymentResponse } from './donationPaymentResponse';
import { DotpayDetails } from './dotpayDetails';
import { DragonpayDetails } from './dragonpayDetails';
import { EcontextVoucherDetails } from './econtextVoucherDetails';
import { EftDetails } from './eftDetails';
import { EncryptedOrderData } from './encryptedOrderData';
import { ExternalPlatform } from './externalPlatform';
import { ForexQuote } from './forexQuote';
Expand Down Expand Up @@ -475,6 +479,7 @@ let enumsMap: {[index: string]: any} = {
"CashAppDetails.TypeEnum": CashAppDetails.TypeEnum,
"CellulantDetails.TypeEnum": CellulantDetails.TypeEnum,
"CheckoutAwaitAction.TypeEnum": CheckoutAwaitAction.TypeEnum,
"CheckoutBankTransferAction.TypeEnum": CheckoutBankTransferAction.TypeEnum,
"CheckoutDelegatedAuthenticationAction.TypeEnum": CheckoutDelegatedAuthenticationAction.TypeEnum,
"CheckoutNativeRedirectAction.TypeEnum": CheckoutNativeRedirectAction.TypeEnum,
"CheckoutQrCodeAction.TypeEnum": CheckoutQrCodeAction.TypeEnum,
Expand Down Expand Up @@ -509,6 +514,7 @@ let enumsMap: {[index: string]: any} = {
"DotpayDetails.TypeEnum": DotpayDetails.TypeEnum,
"DragonpayDetails.TypeEnum": DragonpayDetails.TypeEnum,
"EcontextVoucherDetails.TypeEnum": EcontextVoucherDetails.TypeEnum,
"EftDetails.TypeEnum": EftDetails.TypeEnum,
"GenericIssuerPaymentMethodDetails.TypeEnum": GenericIssuerPaymentMethodDetails.TypeEnum,
"GiropayDetails.TypeEnum": GiropayDetails.TypeEnum,
"GooglePayDetails.FundingSourceEnum": GooglePayDetails.FundingSourceEnum,
Expand Down Expand Up @@ -678,6 +684,7 @@ let typeMap: {[index: string]: any} = {
"CashAppDetails": CashAppDetails,
"CellulantDetails": CellulantDetails,
"CheckoutAwaitAction": CheckoutAwaitAction,
"CheckoutBankTransferAction": CheckoutBankTransferAction,
"CheckoutDelegatedAuthenticationAction": CheckoutDelegatedAuthenticationAction,
"CheckoutNativeRedirectAction": CheckoutNativeRedirectAction,
"CheckoutOrderResponse": CheckoutOrderResponse,
Expand Down Expand Up @@ -709,6 +716,7 @@ let typeMap: {[index: string]: any} = {
"DotpayDetails": DotpayDetails,
"DragonpayDetails": DragonpayDetails,
"EcontextVoucherDetails": EcontextVoucherDetails,
"EftDetails": EftDetails,
"EncryptedOrderData": EncryptedOrderData,
"ExternalPlatform": ExternalPlatform,
"ForexQuote": ForexQuote,
Expand Down
Loading

0 comments on commit f465849

Please sign in to comment.