Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/services/checkout/donationsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class DonationsApi extends Service {
}

/**
* @summary Start a transaction for donations
* @summary Make a donation
* @param donationPaymentRequest {@link DonationPaymentRequest }
* @param requestOptions {@link IRequest.Options }
* @return {@link DonationPaymentResponse }
Expand Down
14 changes: 7 additions & 7 deletions src/services/management/splitConfigurationMerchantLevelApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class SplitConfigurationMerchantLevelApi extends Service {
}

/**
* @summary Create a split configuration
* @summary Create a split configuration profile
* @param merchantId {@link string } The unique identifier of the merchant account.
* @param splitConfiguration {@link SplitConfiguration }
* @param requestOptions {@link IRequest.Options }
Expand All @@ -82,7 +82,7 @@ export class SplitConfigurationMerchantLevelApi extends Service {
}

/**
* @summary Delete a split configuration
* @summary Delete a split configuration profile
* @param merchantId {@link string } The unique identifier of the merchant account.
* @param splitConfigurationId {@link string } The unique identifier of the split configuration.
* @param requestOptions {@link IRequest.Options }
Expand All @@ -104,7 +104,7 @@ export class SplitConfigurationMerchantLevelApi extends Service {
}

/**
* @summary Delete a split configuration rule
* @summary Delete a rule
* @param merchantId {@link string } The unique identifier of the merchant account.
* @param splitConfigurationId {@link string } The unique identifier of the split configuration.
* @param ruleId {@link string }
Expand All @@ -128,7 +128,7 @@ export class SplitConfigurationMerchantLevelApi extends Service {
}

/**
* @summary Get a split configuration
* @summary Get a split configuration profile
* @param merchantId {@link string } The unique identifier of the merchant account.
* @param splitConfigurationId {@link string } The unique identifier of the split configuration.
* @param requestOptions {@link IRequest.Options }
Expand All @@ -150,7 +150,7 @@ export class SplitConfigurationMerchantLevelApi extends Service {
}

/**
* @summary Get a list of split configurations
* @summary Get a list of split configuration profiles
* @param merchantId {@link string } The unique identifier of the merchant account.
* @param requestOptions {@link IRequest.Options }
* @return {@link SplitConfigurationList }
Expand All @@ -170,7 +170,7 @@ export class SplitConfigurationMerchantLevelApi extends Service {
}

/**
* @summary Update split conditions
* @summary Update the split conditions
* @param merchantId {@link string } The unique identifier of the merchant account.
* @param splitConfigurationId {@link string } The identifier of the split configuration.
* @param ruleId {@link string } The unique identifier of the split configuration rule.
Expand All @@ -196,7 +196,7 @@ export class SplitConfigurationMerchantLevelApi extends Service {
}

/**
* @summary Update split configuration description
* @summary Update the description of the split configuration profile
* @param merchantId {@link string } The unique identifier of the merchant account.
* @param splitConfigurationId {@link string } The unique identifier of the split configuration.
* @param updateSplitConfigurationRequest {@link UpdateSplitConfigurationRequest }
Expand Down
6 changes: 4 additions & 2 deletions src/typings/binLookup/recurring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

export class Recurring {
/**
* The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts).
* The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). * `EXTERNAL` - Use this when you store payment details and send the raw card number or network token directly in your API request.
*/
"contract"?: Recurring.ContractEnum;
/**
Expand Down Expand Up @@ -77,8 +77,10 @@ export class Recurring {
export namespace Recurring {
export enum ContractEnum {
Oneclick = 'ONECLICK',
Oneclickrecurring = 'ONECLICK,RECURRING',
Recurring = 'RECURRING',
Payout = 'PAYOUT'
Payout = 'PAYOUT',
External = 'EXTERNAL'
}
export enum TokenServiceEnum {
Visatokenservice = 'VISATOKENSERVICE',
Expand Down
2 changes: 1 addition & 1 deletion src/typings/checkout/additionalDataLevel23.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class AdditionalDataLevel23 {
*/
"enhancedSchemeData_shipFromPostalCode"?: string;
/**
* The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros.
* The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * For L2 data: must not be all zeroes. * For L3 data: can be zero.
*/
"enhancedSchemeData_totalTaxAmount"?: string;

Expand Down
2 changes: 1 addition & 1 deletion src/typings/checkout/additionalDataSubMerchant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class AdditionalDataSubMerchant {
*/
"subMerchant_subSeller_subSellerNr_name"?: string;
/**
* Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters
* Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant. * Format: Alphanumeric and special characters * Maximum length: 20 characters
*/
"subMerchant_subSeller_subSellerNr_phoneNumber"?: string;
/**
Expand Down
2 changes: 1 addition & 1 deletion src/typings/checkout/cardDetailsRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class CardDetailsRequest {
/**
* A minimum of the first six digits of the card number. The full card number gives the best result. You must be [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect raw card data. Alternatively, you can use the `encryptedCardNumber` field.
*/
"cardNumber": string;
"cardNumber"?: string;
/**
* The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE
*/
Expand Down
6 changes: 3 additions & 3 deletions src/typings/checkout/createCheckoutSessionRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import { FundOrigin } from "./fundOrigin";
import { FundRecipient } from "./fundRecipient";
import { LineItem } from "./lineItem";
import { Mandate } from "./mandate";
import { Name } from "./name";
import { PlatformChargebackLogic } from "./platformChargebackLogic";
import { RiskData } from "./riskData";
import { ShopperName } from "./shopperName";
import { Split } from "./split";
import { ThreeDSecureData } from "./threeDSecureData";

Expand Down Expand Up @@ -162,7 +162,7 @@ export class CreateCheckoutSessionRequest {
* The combination of a language code and a country code to specify the language to be used in the payment.
*/
"shopperLocale"?: string;
"shopperName"?: Name | null;
"shopperName"?: ShopperName | null;
/**
* Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
*/
Expand Down Expand Up @@ -500,7 +500,7 @@ export class CreateCheckoutSessionRequest {
{
"name": "shopperName",
"baseName": "shopperName",
"type": "Name | null",
"type": "ShopperName | null",
"format": ""
},
{
Expand Down
6 changes: 3 additions & 3 deletions src/typings/checkout/createCheckoutSessionResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import { FundOrigin } from "./fundOrigin";
import { FundRecipient } from "./fundRecipient";
import { LineItem } from "./lineItem";
import { Mandate } from "./mandate";
import { Name } from "./name";
import { PlatformChargebackLogic } from "./platformChargebackLogic";
import { RiskData } from "./riskData";
import { ShopperName } from "./shopperName";
import { Split } from "./split";
import { ThreeDSecureData } from "./threeDSecureData";

Expand Down Expand Up @@ -170,7 +170,7 @@ export class CreateCheckoutSessionResponse {
* The combination of a language code and a country code to specify the language to be used in the payment.
*/
"shopperLocale"?: string;
"shopperName"?: Name | null;
"shopperName"?: ShopperName | null;
/**
* Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
*/
Expand Down Expand Up @@ -524,7 +524,7 @@ export class CreateCheckoutSessionResponse {
{
"name": "shopperName",
"baseName": "shopperName",
"type": "Name | null",
"type": "ShopperName | null",
"format": ""
},
{
Expand Down
6 changes: 3 additions & 3 deletions src/typings/checkout/donationPaymentRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { DeliveryAddress } from "./deliveryAddress";
import { DonationPaymentRequestPaymentMethod } from "./donationPaymentRequestPaymentMethod";
import { LineItem } from "./lineItem";
import { MerchantRiskIndicator } from "./merchantRiskIndicator";
import { Name } from "./name";
import { ShopperName } from "./shopperName";
import { ThreeDS2RequestFields } from "./threeDS2RequestFields";
import { ThreeDSecureData } from "./threeDSecureData";

Expand Down Expand Up @@ -140,7 +140,7 @@ export class DonationPaymentRequest {
* The combination of a language code and a country code to specify the language to be used in the payment.
*/
"shopperLocale"?: string;
"shopperName"?: Name | null;
"shopperName"?: ShopperName | null;
/**
* Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
*/
Expand Down Expand Up @@ -386,7 +386,7 @@ export class DonationPaymentRequest {
{
"name": "shopperName",
"baseName": "shopperName",
"type": "Name | null",
"type": "ShopperName | null",
"format": ""
},
{
Expand Down
2 changes: 2 additions & 0 deletions src/typings/checkout/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ export * from "./serviceError"
export * from "./sessionResultResponse"
export * from "./shopperIdPaymentMethod"
export * from "./shopperInteractionDevice"
export * from "./shopperName"
export * from "./split"
export * from "./splitAmount"
export * from "./standalonePaymentCancelRequest"
Expand Down Expand Up @@ -213,6 +214,7 @@ export * from "./uPIPaymentMethod"
export * from "./updatePaymentLinkRequest"
export * from "./upiCollectDetails"
export * from "./upiIntentDetails"
export * from "./upiQrDetails"
export * from "./utilityRequest"
export * from "./utilityResponse"
export * from "./validateShopperIdRequest"
Expand Down
5 changes: 5 additions & 0 deletions src/typings/checkout/objectSerializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ import { ServiceError } from "./serviceError";
import { SessionResultResponse } from "./sessionResultResponse";
import { ShopperIdPaymentMethod } from "./shopperIdPaymentMethod";
import { ShopperInteractionDevice } from "./shopperInteractionDevice";
import { ShopperName } from "./shopperName";
import { Split } from "./split";
import { SplitAmount } from "./splitAmount";
import { StandalonePaymentCancelRequest } from "./standalonePaymentCancelRequest";
Expand Down Expand Up @@ -215,6 +216,7 @@ import { UPIPaymentMethod } from "./uPIPaymentMethod";
import { UpdatePaymentLinkRequest } from "./updatePaymentLinkRequest";
import { UpiCollectDetails } from "./upiCollectDetails";
import { UpiIntentDetails } from "./upiIntentDetails";
import { UpiQrDetails } from "./upiQrDetails";
import { UtilityRequest } from "./utilityRequest";
import { UtilityResponse } from "./utilityResponse";
import { ValidateShopperIdRequest } from "./validateShopperIdRequest";
Expand Down Expand Up @@ -439,6 +441,7 @@ let enumsMap: Set<string> = new Set<string>([
"UpdatePaymentLinkRequest.StatusEnum",
"UpiCollectDetails.TypeEnum",
"UpiIntentDetails.TypeEnum",
"UpiQrDetails.TypeEnum",
"VippsDetails.TypeEnum",
"VisaCheckoutDetails.FundingSourceEnum",
"VisaCheckoutDetails.TypeEnum",
Expand Down Expand Up @@ -634,6 +637,7 @@ let typeMap: {[index: string]: any} = {
"SessionResultResponse": SessionResultResponse,
"ShopperIdPaymentMethod": ShopperIdPaymentMethod,
"ShopperInteractionDevice": ShopperInteractionDevice,
"ShopperName": ShopperName,
"Split": Split,
"SplitAmount": SplitAmount,
"StandalonePaymentCancelRequest": StandalonePaymentCancelRequest,
Expand Down Expand Up @@ -662,6 +666,7 @@ let typeMap: {[index: string]: any} = {
"UpdatePaymentLinkRequest": UpdatePaymentLinkRequest,
"UpiCollectDetails": UpiCollectDetails,
"UpiIntentDetails": UpiIntentDetails,
"UpiQrDetails": UpiQrDetails,
"UtilityRequest": UtilityRequest,
"UtilityResponse": UtilityResponse,
"ValidateShopperIdRequest": ValidateShopperIdRequest,
Expand Down
2 changes: 1 addition & 1 deletion src/typings/checkout/paymentDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export namespace PaymentDetails {
Paybright = 'paybright',
Paynow = 'paynow',
AffirmPos = 'affirm_pos',
Iris = 'iris',
Trustly = 'trustly',
Trustlyvector = 'trustlyvector',
Oney = 'oney',
Expand All @@ -73,7 +74,6 @@ export namespace PaymentDetails {
WalletIn = 'wallet_IN',
PayuInCashcard = 'payu_IN_cashcard',
PayuInNb = 'payu_IN_nb',
UpiQr = 'upi_qr',
Paytm = 'paytm',
MolpayEbankingVn = 'molpay_ebanking_VN',
MolpayEbankingMy = 'molpay_ebanking_MY',
Expand Down
16 changes: 13 additions & 3 deletions src/typings/checkout/paymentRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ import { Installments } from "./installments";
import { LineItem } from "./lineItem";
import { Mandate } from "./mandate";
import { MerchantRiskIndicator } from "./merchantRiskIndicator";
import { Name } from "./name";
import { PaymentRequestPaymentMethod } from "./paymentRequestPaymentMethod";
import { PlatformChargebackLogic } from "./platformChargebackLogic";
import { RiskData } from "./riskData";
import { ShopperName } from "./shopperName";
import { Split } from "./split";
import { SubMerchantInfo } from "./subMerchantInfo";
import { Surcharge } from "./surcharge";
Expand Down Expand Up @@ -190,6 +190,10 @@ export class PaymentRequest {
"returnUrl": string;
"riskData"?: RiskData | null;
/**
* Base64-encoded JSON object containing SDK related parameters required by the SDK to function optimally. Clients must not add unrelated or sensitive personal information.
*/
"sdkData"?: string;
/**
* The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00
*/
"sessionValidity"?: string;
Expand All @@ -213,7 +217,7 @@ export class PaymentRequest {
* The combination of a language code and a country code to specify the language to be used in the payment.
*/
"shopperLocale"?: string;
"shopperName"?: Name | null;
"shopperName"?: ShopperName | null;
/**
* Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
*/
Expand Down Expand Up @@ -583,6 +587,12 @@ export class PaymentRequest {
"type": "RiskData | null",
"format": ""
},
{
"name": "sdkData",
"baseName": "sdkData",
"type": "string",
"format": ""
},
{
"name": "sessionValidity",
"baseName": "sessionValidity",
Expand Down Expand Up @@ -622,7 +632,7 @@ export class PaymentRequest {
{
"name": "shopperName",
"baseName": "shopperName",
"type": "Name | null",
"type": "ShopperName | null",
"format": ""
},
{
Expand Down
3 changes: 2 additions & 1 deletion src/typings/checkout/paymentRequestPaymentMethod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ import { StoredPaymentMethodDetails } from "./storedPaymentMethodDetails";
import { TwintDetails } from "./twintDetails";
import { UpiCollectDetails } from "./upiCollectDetails";
import { UpiIntentDetails } from "./upiIntentDetails";
import { UpiQrDetails } from "./upiQrDetails";
import { VippsDetails } from "./vippsDetails";
import { VisaCheckoutDetails } from "./visaCheckoutDetails";
import { WeChatPayDetails } from "./weChatPayDetails";
Expand All @@ -70,7 +71,7 @@ import { ZipDetails } from "./zipDetails";
* Type
* @export
*/
export type PaymentRequestPaymentMethod = AchDetails | AffirmDetails | AfterpayDetails | AmazonPayDetails | AncvDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CashAppDetails | CellulantDetails | DokuDetails | DragonpayDetails | EBankingFinlandDetails | EcontextVoucherDetails | EftDetails | FastlaneDetails | GenericIssuerPaymentMethodDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayByBankAISDirectDebitDetails | PayByBankDetails | PayPalDetails | PayPayDetails | PayToDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | PixDetails | PseDetails | RakutenPayDetails | RatepayDetails | RivertyDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | TwintDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails;
export type PaymentRequestPaymentMethod = AchDetails | AffirmDetails | AfterpayDetails | AmazonPayDetails | AncvDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CashAppDetails | CellulantDetails | DokuDetails | DragonpayDetails | EBankingFinlandDetails | EcontextVoucherDetails | EftDetails | FastlaneDetails | GenericIssuerPaymentMethodDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayByBankAISDirectDebitDetails | PayByBankDetails | PayPalDetails | PayPayDetails | PayToDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | PixDetails | PseDetails | RakutenPayDetails | RatepayDetails | RivertyDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | TwintDetails | UpiCollectDetails | UpiIntentDetails | UpiQrDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails;

/**
* @type PaymentRequestPaymentMethodClass
Expand Down
Loading
Loading