Skip to content

Code generation: update services and models #1536

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 14, 2025
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
10 changes: 5 additions & 5 deletions src/services/checkout/modificationsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class ModificationsApi extends Service {

/**
* @summary Cancel an authorised payment
* @param paymentPspReference {@link string } The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to cancel.
* @param paymentPspReference {@link string } The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment that you want to cancel.
* @param paymentCancelRequest {@link PaymentCancelRequest }
* @param requestOptions {@link IRequest.Options }
* @return {@link PaymentCancelResponse }
Expand All @@ -85,7 +85,7 @@ export class ModificationsApi extends Service {

/**
* @summary Capture an authorised payment
* @param paymentPspReference {@link string } The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture.
* @param paymentPspReference {@link string } The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment that you want to capture.
* @param paymentCaptureRequest {@link PaymentCaptureRequest }
* @param requestOptions {@link IRequest.Options }
* @return {@link PaymentCaptureResponse }
Expand All @@ -107,7 +107,7 @@ export class ModificationsApi extends Service {

/**
* @summary Refund a captured payment
* @param paymentPspReference {@link string } The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to refund.
* @param paymentPspReference {@link string } The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment that you want to refund.
* @param paymentRefundRequest {@link PaymentRefundRequest }
* @param requestOptions {@link IRequest.Options }
* @return {@link PaymentRefundResponse }
Expand All @@ -129,7 +129,7 @@ export class ModificationsApi extends Service {

/**
* @summary Refund or cancel a payment
* @param paymentPspReference {@link string } The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to reverse.
* @param paymentPspReference {@link string } The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment that you want to reverse.
* @param paymentReversalRequest {@link PaymentReversalRequest }
* @param requestOptions {@link IRequest.Options }
* @return {@link PaymentReversalResponse }
Expand All @@ -151,7 +151,7 @@ export class ModificationsApi extends Service {

/**
* @summary Update an authorised amount
* @param paymentPspReference {@link string } The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment.
* @param paymentPspReference {@link string } The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment.
* @param paymentAmountUpdateRequest {@link PaymentAmountUpdateRequest }
* @param requestOptions {@link IRequest.Options }
* @return {@link PaymentAmountUpdateResponse }
Expand Down
22 changes: 22 additions & 0 deletions src/services/checkout/utilityApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import { PaypalUpdateOrderRequest } from "../../typings/checkout/models";
import { PaypalUpdateOrderResponse } from "../../typings/checkout/models";
import { UtilityRequest } from "../../typings/checkout/models";
import { UtilityResponse } from "../../typings/checkout/models";
import { ValidateShopperIdRequest } from "../../typings/checkout/models";
import { ValidateShopperIdResponse } from "../../typings/checkout/models";

/**
* API handler for UtilityApi
Expand Down Expand Up @@ -97,4 +99,24 @@ export class UtilityApi extends Service {
return ObjectSerializer.deserialize(response, "PaypalUpdateOrderResponse");
}

/**
* @summary Validates shopper Id
* @param validateShopperIdRequest {@link ValidateShopperIdRequest }
* @param requestOptions {@link IRequest.Options }
* @return {@link ValidateShopperIdResponse }
*/
public async validateShopperId(validateShopperIdRequest: ValidateShopperIdRequest, requestOptions?: IRequest.Options): Promise<ValidateShopperIdResponse> {
const endpoint = `${this.baseUrl}/validateShopperId`;
const resource = new Resource(this, endpoint);

const request: ValidateShopperIdRequest = ObjectSerializer.serialize(validateShopperIdRequest, "ValidateShopperIdRequest");
const response = await getJsonResponse<ValidateShopperIdRequest, ValidateShopperIdResponse>(
resource,
request,
{ ...requestOptions, method: "POST" }
);

return ObjectSerializer.deserialize(response, "ValidateShopperIdResponse");
}

}
2 changes: 1 addition & 1 deletion src/typings/balancePlatform/deliveryAddress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class DeliveryAddress {
*/
"postalCode"?: string;
/**
* The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada.
* The state or province code, maximum 3 characters. For example, **CA** for California in the US or **ON** for Ontario in Canada. > Required for the US and Canada.
*/
"stateOrProvince"?: string;

Expand Down
1 change: 1 addition & 0 deletions src/typings/balancePlatform/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ export * from "./transferRouteResponse"
export * from "./uKLocalAccountIdentification"
export * from "./uSInstantPayoutAddressRequirement"
export * from "./uSInternationalAchAddressRequirement"
export * from "./uSInternationalAchPriorityRequirement"
export * from "./uSLocalAccountIdentification"
export * from "./updateNetworkTokenRequest"
export * from "./updatePaymentInstrument"
Expand Down
3 changes: 3 additions & 0 deletions src/typings/balancePlatform/objectSerializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ import { TransferRouteResponse } from "./transferRouteResponse";
import { UKLocalAccountIdentification } from "./uKLocalAccountIdentification";
import { USInstantPayoutAddressRequirement } from "./uSInstantPayoutAddressRequirement";
import { USInternationalAchAddressRequirement } from "./uSInternationalAchAddressRequirement";
import { USInternationalAchPriorityRequirement } from "./uSInternationalAchPriorityRequirement";
import { USLocalAccountIdentification } from "./uSLocalAccountIdentification";
import { UpdateNetworkTokenRequest } from "./updateNetworkTokenRequest";
import { UpdatePaymentInstrument } from "./updatePaymentInstrument";
Expand Down Expand Up @@ -317,6 +318,7 @@ let enumsMap: Set<string> = new Set<string>([
"UKLocalAccountIdentification.TypeEnum",
"USInstantPayoutAddressRequirement.TypeEnum",
"USInternationalAchAddressRequirement.TypeEnum",
"USInternationalAchPriorityRequirement.TypeEnum",
"USLocalAccountIdentification.AccountTypeEnum",
"USLocalAccountIdentification.TypeEnum",
"UpdateNetworkTokenRequest.StatusEnum",
Expand Down Expand Up @@ -506,6 +508,7 @@ let typeMap: {[index: string]: any} = {
"UKLocalAccountIdentification": UKLocalAccountIdentification,
"USInstantPayoutAddressRequirement": USInstantPayoutAddressRequirement,
"USInternationalAchAddressRequirement": USInternationalAchAddressRequirement,
"USInternationalAchPriorityRequirement": USInternationalAchPriorityRequirement,
"USLocalAccountIdentification": USLocalAccountIdentification,
"UpdateNetworkTokenRequest": UpdateNetworkTokenRequest,
"UpdatePaymentInstrument": UpdatePaymentInstrument,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ import { IbanAccountIdentificationRequirement } from "./ibanAccountIdentificatio
import { PaymentInstrumentRequirement } from "./paymentInstrumentRequirement";
import { USInstantPayoutAddressRequirement } from "./uSInstantPayoutAddressRequirement";
import { USInternationalAchAddressRequirement } from "./uSInternationalAchAddressRequirement";
import { USInternationalAchPriorityRequirement } from "./uSInternationalAchPriorityRequirement";


/**
* @type TransferRouteRequirementsInner
* Type
* @export
*/
export type TransferRouteRequirementsInner = AdditionalBankIdentificationRequirement | AddressRequirement | AmountMinMaxRequirement | AmountNonZeroDecimalsRequirement | BankAccountIdentificationTypeRequirement | IbanAccountIdentificationRequirement | PaymentInstrumentRequirement | USInstantPayoutAddressRequirement | USInternationalAchAddressRequirement;
export type TransferRouteRequirementsInner = AdditionalBankIdentificationRequirement | AddressRequirement | AmountMinMaxRequirement | AmountNonZeroDecimalsRequirement | BankAccountIdentificationTypeRequirement | IbanAccountIdentificationRequirement | PaymentInstrumentRequirement | USInstantPayoutAddressRequirement | USInternationalAchAddressRequirement | USInternationalAchPriorityRequirement;

/**
* @type TransferRouteRequirementsInnerClass
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/*
* The version of the OpenAPI document: v2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit this class manually.
*/


export class USInternationalAchPriorityRequirement {
/**
* Specifies that transactions deemed to be International ACH (IAT) per OFAC/NACHA rules cannot have fast priority.
*/
"description"?: string;
/**
* **usInternationalAchPriorityRequirement**
*/
"type": USInternationalAchPriorityRequirement.TypeEnum;

static readonly discriminator: string | undefined = undefined;

static readonly mapping: {[index: string]: string} | undefined = undefined;

static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "description",
"baseName": "description",
"type": "string",
"format": ""
},
{
"name": "type",
"baseName": "type",
"type": "USInternationalAchPriorityRequirement.TypeEnum",
"format": ""
} ];

static getAttributeTypeMap() {
return USInternationalAchPriorityRequirement.attributeTypeMap;
}

public constructor() {
}
}

export namespace USInternationalAchPriorityRequirement {
export enum TypeEnum {
UsInternationalAchPriorityRequirement = 'usInternationalAchPriorityRequirement'
}
}
2 changes: 1 addition & 1 deletion src/typings/checkout/additionalDataAirline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class AdditionalDataAirline {
*/
"airline_leg_destination_code"?: string;
/**
* The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 6 characters * Must not be all spaces * Must not be all zeros.
* The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros.
*/
"airline_leg_fare_base_code"?: string;
/**
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 @@ -38,7 +38,7 @@ export class AdditionalDataLevel23 {
*/
"enhancedSchemeData_itemDetailLine_itemNr_commodityCode"?: string;
/**
* A description of the item. * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros.
* A description of the item, that provides details about the purchase. For Visa transactions with level 3 ESD, the description must not be the same or very similar to your merchant name, or, consist only of common words like \"product\", or \"service\". * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not be all special characters. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros.
*/
"enhancedSchemeData_itemDetailLine_itemNr_description"?: string;
/**
Expand Down
4 changes: 2 additions & 2 deletions src/typings/checkout/balanceCheckRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class BalanceCheckRequest {
*/
"shopperEmail"?: string;
/**
* The shopper\'s IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new).
* The shopper\'s IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new).
*/
"shopperIP"?: string;
/**
Expand Down Expand Up @@ -143,7 +143,7 @@ export class BalanceCheckRequest {
*/
"store"?: string;
/**
* The shopper\'s telephone number. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we drop the value and do not submit it for authentication.
* The shopper\'s telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`.
*/
"telephoneNumber"?: string;
"threeDS2RequestData"?: ThreeDS2RequestData | null;
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 @@ -66,7 +66,7 @@ export class CardDetails {
*/
"holderName"?: string;
/**
* The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment.
* The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment.
*/
"networkPaymentReference"?: string;
/**
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 @@ -26,7 +26,7 @@ export class CardDetailsRequest {
*/
"merchantAccount": string;
/**
* The card brands you support. This is the [`brands`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods__resParam_paymentMethods-brands) array from your [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. If not included, our API uses the ones configured for your merchant account and, if provided, the country code.
* The card brands you support. This is the [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) array from your [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. If not included, our API uses the ones configured for your merchant account and, if provided, the country code.
*/
"supportedBrands"?: Array<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 @@ -66,7 +66,7 @@ export class CardDonations {
*/
"holderName"?: string;
/**
* The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment.
* The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment.
*/
"networkPaymentReference"?: string;
/**
Expand Down
Loading
Loading