diff --git a/src/services/balancePlatform/index.ts b/src/services/balancePlatform/index.ts index ea649cd38..0db1994f1 100644 --- a/src/services/balancePlatform/index.ts +++ b/src/services/balancePlatform/index.ts @@ -21,6 +21,8 @@ import { NetworkTokensApi } from "./networkTokensApi"; import { PaymentInstrumentGroupsApi } from "./paymentInstrumentGroupsApi"; import { PaymentInstrumentsApi } from "./paymentInstrumentsApi"; import { PlatformApi } from "./platformApi"; +import { SCAAssociationManagementApi } from "./sCAAssociationManagementApi"; +import { SCADeviceManagementApi } from "./sCADeviceManagementApi"; import { TransactionRulesApi } from "./transactionRulesApi"; import { TransferLimitsBalanceAccountLevelApi } from "./transferLimitsBalanceAccountLevelApi"; import { TransferLimitsBalancePlatformLevelApi } from "./transferLimitsBalancePlatformLevelApi"; @@ -91,6 +93,14 @@ export default class BalancePlatformAPI extends Service { return new PlatformApi(this.client); } + public get SCAAssociationManagementApi() { + return new SCAAssociationManagementApi(this.client); + } + + public get SCADeviceManagementApi() { + return new SCADeviceManagementApi(this.client); + } + public get TransactionRulesApi() { return new TransactionRulesApi(this.client); } diff --git a/src/services/balancePlatform/sCAAssociationManagementApi.ts b/src/services/balancePlatform/sCAAssociationManagementApi.ts new file mode 100644 index 000000000..aa651cf75 --- /dev/null +++ b/src/services/balancePlatform/sCAAssociationManagementApi.ts @@ -0,0 +1,106 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +import getJsonResponse from "../../helpers/getJsonResponse"; +import Service from "../../service"; +import Client from "../../client"; +import { IRequest } from "../../typings/requestOptions"; +import Resource from "../resource"; + +import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; +import { ApproveAssociationRequest } from "../../typings/balancePlatform/models"; +import { ApproveAssociationResponse } from "../../typings/balancePlatform/models"; +import { ListAssociationsResponse } from "../../typings/balancePlatform/models"; +import { RemoveAssociationRequest } from "../../typings/balancePlatform/models"; +import { ScaEntityType } from "../../typings/balancePlatform/models"; + +/** + * API handler for SCAAssociationManagementApi + */ +export class SCAAssociationManagementApi extends Service { + + private readonly API_BASEPATH: string = "https://balanceplatform-api-test.adyen.com/bcl/v2"; + private baseUrl: string; + + public constructor(client: Client){ + super(client); + this.baseUrl = this.createBaseUrl(this.API_BASEPATH); + } + + /** + * @summary Approve a pending approval association + * @param approveAssociationRequest {@link ApproveAssociationRequest } + * @param requestOptions {@link IRequest.Options } + * @return {@link ApproveAssociationResponse } + */ + public async approveAssociation(approveAssociationRequest: ApproveAssociationRequest, requestOptions?: IRequest.Options): Promise { + const endpoint = `${this.baseUrl}/scaAssociations`; + const resource = new Resource(this, endpoint); + + const request: ApproveAssociationRequest = ObjectSerializer.serialize(approveAssociationRequest, "ApproveAssociationRequest"); + const response = await getJsonResponse( + resource, + request, + { ...requestOptions, method: "PATCH" } + ); + + return ObjectSerializer.deserialize(response, "ApproveAssociationResponse"); + } + + /** + * @summary Get a list of devices associated with an entity + * @param requestOptions {@link IRequest.Options } + * @param entityType {@link ScaEntityType } (Required) The type of entity you want to retrieve a list of associations for. Possible values: **accountHolder** or **paymentInstrument**. + * @param entityId {@link string } (Required) The unique identifier of the entity. + * @param pageSize {@link number } (Required) The number of items to have on a page. Default: **5**. + * @param pageNumber {@link number } (Required) The index of the page to retrieve. The index of the first page is **0** (zero). Default: **0**. + * @return {@link ListAssociationsResponse } + */ + public async listAssociations(entityType: ScaEntityType, entityId: string, pageSize: number, pageNumber: number, requestOptions?: IRequest.Options): Promise { + const endpoint = `${this.baseUrl}/scaAssociations`; + const resource = new Resource(this, endpoint); + + const hasDefinedQueryParams = entityType ?? entityId ?? pageSize ?? pageNumber; + if(hasDefinedQueryParams) { + if(!requestOptions) requestOptions = {}; + if(!requestOptions.params) requestOptions.params = {}; + if(entityType) requestOptions.params["entityType"] = entityType; + if(entityId) requestOptions.params["entityId"] = entityId; + if(pageSize) requestOptions.params["pageSize"] = pageSize; + if(pageNumber) requestOptions.params["pageNumber"] = pageNumber; + } + const response = await getJsonResponse( + resource, + "", + { ...requestOptions, method: "GET" } + ); + + return ObjectSerializer.deserialize(response, "ListAssociationsResponse"); + } + + /** + * @summary Delete association to devices + * @param removeAssociationRequest {@link RemoveAssociationRequest } + * @param requestOptions {@link IRequest.Options } + * @return {@link void } + */ + public async removeAssociation(removeAssociationRequest: RemoveAssociationRequest, requestOptions?: IRequest.Options): Promise { + const endpoint = `${this.baseUrl}/scaAssociations`; + const resource = new Resource(this, endpoint); + + const request: RemoveAssociationRequest = ObjectSerializer.serialize(removeAssociationRequest, "RemoveAssociationRequest"); + await getJsonResponse( + resource, + request, + { ...requestOptions, method: "DELETE" } + ); + } + +} diff --git a/src/services/balancePlatform/sCADeviceManagementApi.ts b/src/services/balancePlatform/sCADeviceManagementApi.ts new file mode 100644 index 000000000..43c896335 --- /dev/null +++ b/src/services/balancePlatform/sCADeviceManagementApi.ts @@ -0,0 +1,102 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +import getJsonResponse from "../../helpers/getJsonResponse"; +import Service from "../../service"; +import Client from "../../client"; +import { IRequest } from "../../typings/requestOptions"; +import Resource from "../resource"; + +import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; +import { BeginScaDeviceRegistrationRequest } from "../../typings/balancePlatform/models"; +import { BeginScaDeviceRegistrationResponse } from "../../typings/balancePlatform/models"; +import { FinishScaDeviceRegistrationRequest } from "../../typings/balancePlatform/models"; +import { FinishScaDeviceRegistrationResponse } from "../../typings/balancePlatform/models"; +import { SubmitScaAssociationRequest } from "../../typings/balancePlatform/models"; +import { SubmitScaAssociationResponse } from "../../typings/balancePlatform/models"; + +/** + * API handler for SCADeviceManagementApi + */ +export class SCADeviceManagementApi extends Service { + + private readonly API_BASEPATH: string = "https://balanceplatform-api-test.adyen.com/bcl/v2"; + private baseUrl: string; + + public constructor(client: Client){ + super(client); + this.baseUrl = this.createBaseUrl(this.API_BASEPATH); + } + + /** + * @summary Begin SCA device registration + * @param beginScaDeviceRegistrationRequest {@link BeginScaDeviceRegistrationRequest } + * @param requestOptions {@link IRequest.Options } + * @return {@link BeginScaDeviceRegistrationResponse } + */ + public async beginScaDeviceRegistration(beginScaDeviceRegistrationRequest: BeginScaDeviceRegistrationRequest, requestOptions?: IRequest.Options): Promise { + const endpoint = `${this.baseUrl}/scaDevices`; + const resource = new Resource(this, endpoint); + + const request: BeginScaDeviceRegistrationRequest = ObjectSerializer.serialize(beginScaDeviceRegistrationRequest, "BeginScaDeviceRegistrationRequest"); + const response = await getJsonResponse( + resource, + request, + { ...requestOptions, method: "POST" } + ); + + return ObjectSerializer.deserialize(response, "BeginScaDeviceRegistrationResponse"); + } + + /** + * @summary Finish registration process for a SCA device + * @param deviceId {@link string } The unique identifier of the SCA device that you are associating with a resource. + * @param finishScaDeviceRegistrationRequest {@link FinishScaDeviceRegistrationRequest } + * @param requestOptions {@link IRequest.Options } + * @return {@link FinishScaDeviceRegistrationResponse } + */ + public async finishScaDeviceRegistration(deviceId: string, finishScaDeviceRegistrationRequest: FinishScaDeviceRegistrationRequest, requestOptions?: IRequest.Options): Promise { + const endpoint = `${this.baseUrl}/scaDevices/{deviceId}` + .replace("{" + "deviceId" + "}", encodeURIComponent(String(deviceId))); + const resource = new Resource(this, endpoint); + + const request: FinishScaDeviceRegistrationRequest = ObjectSerializer.serialize(finishScaDeviceRegistrationRequest, "FinishScaDeviceRegistrationRequest"); + const response = await getJsonResponse( + resource, + request, + { ...requestOptions, method: "PATCH" } + ); + + return ObjectSerializer.deserialize(response, "FinishScaDeviceRegistrationResponse"); + } + + /** + * @summary Create a new SCA association for a device + * @param deviceId {@link string } The unique identifier of the SCA device that you are associating with a resource. + * @param submitScaAssociationRequest {@link SubmitScaAssociationRequest } + * @param requestOptions {@link IRequest.Options } + * @return {@link SubmitScaAssociationResponse } + */ + public async submitScaAssociation(deviceId: string, submitScaAssociationRequest: SubmitScaAssociationRequest, requestOptions?: IRequest.Options): Promise { + const endpoint = `${this.baseUrl}/scaDevices/{deviceId}/scaAssociations` + .replace("{" + "deviceId" + "}", encodeURIComponent(String(deviceId))); + const resource = new Resource(this, endpoint); + + const request: SubmitScaAssociationRequest = ObjectSerializer.serialize(submitScaAssociationRequest, "SubmitScaAssociationRequest"); + const response = await getJsonResponse( + resource, + request, + { ...requestOptions, method: "POST" } + ); + + return ObjectSerializer.deserialize(response, "SubmitScaAssociationResponse"); + } + +} diff --git a/src/services/legalEntityManagement/legalEntitiesApi.ts b/src/services/legalEntityManagement/legalEntitiesApi.ts index 05866b989..699f9594e 100644 --- a/src/services/legalEntityManagement/legalEntitiesApi.ts +++ b/src/services/legalEntityManagement/legalEntitiesApi.ts @@ -135,6 +135,24 @@ export class LegalEntitiesApi extends Service { return ObjectSerializer.deserialize(response, "LegalEntity"); } + /** + * @summary Request periodic data review. + * @param id {@link string } The unique identifier of the legal entity. + * @param requestOptions {@link IRequest.Options } + * @return {@link void } + */ + public async requestPeriodicReview(id: string, requestOptions?: IRequest.Options): Promise { + const endpoint = `${this.baseUrl}/legalEntities/{id}/requestPeriodicReview` + .replace("{" + "id" + "}", encodeURIComponent(String(id))); + const resource = new Resource(this, endpoint); + + await getJsonResponse( + resource, + "", + { ...requestOptions, method: "POST" } + ); + } + /** * @summary Update a legal entity * @param id {@link string } The unique identifier of the legal entity. diff --git a/src/services/recurring/recurringApi.ts b/src/services/recurring/recurringApi.ts index 9c703d544..75f2fe624 100644 --- a/src/services/recurring/recurringApi.ts +++ b/src/services/recurring/recurringApi.ts @@ -33,7 +33,7 @@ import { ScheduleAccountUpdaterResult } from "../../typings/recurring/models"; */ export class RecurringApi extends Service { - private readonly API_BASEPATH: string = "https://pal-test.adyen.com/pal/servlet/Recurring/v68"; + private readonly API_BASEPATH: string = "https://paltokenization-test.adyen.com/pal/servlet/Recurring/v68"; private baseUrl: string; public constructor(client: Client){ diff --git a/src/typings/balancePlatform/approveAssociationRequest.ts b/src/typings/balancePlatform/approveAssociationRequest.ts new file mode 100644 index 000000000..a88a281cd --- /dev/null +++ b/src/typings/balancePlatform/approveAssociationRequest.ts @@ -0,0 +1,65 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { AssociationStatus } from "./associationStatus"; +import { ScaEntityType } from "./scaEntityType"; + + +export class ApproveAssociationRequest { + /** + * The unique identifier of the entity. + */ + "entityId": string; + "entityType": ScaEntityType; + /** + * List of device ids associated to the entity that will be approved. + */ + "scaDeviceIds": Array; + "status": AssociationStatus; + + 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": "entityId", + "baseName": "entityId", + "type": "string", + "format": "" + }, + { + "name": "entityType", + "baseName": "entityType", + "type": "ScaEntityType", + "format": "" + }, + { + "name": "scaDeviceIds", + "baseName": "scaDeviceIds", + "type": "Array", + "format": "" + }, + { + "name": "status", + "baseName": "status", + "type": "AssociationStatus", + "format": "" + } ]; + + static getAttributeTypeMap() { + return ApproveAssociationRequest.attributeTypeMap; + } + + public constructor() { + } +} + +export namespace ApproveAssociationRequest { +} diff --git a/src/typings/balancePlatform/approveAssociationResponse.ts b/src/typings/balancePlatform/approveAssociationResponse.ts new file mode 100644 index 000000000..86579983c --- /dev/null +++ b/src/typings/balancePlatform/approveAssociationResponse.ts @@ -0,0 +1,38 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Association } from "./association"; + + +export class ApproveAssociationResponse { + /** + * The list of associations. + */ + "scaAssociations": Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "scaAssociations", + "baseName": "scaAssociations", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return ApproveAssociationResponse.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/balancePlatform/association.ts b/src/typings/balancePlatform/association.ts new file mode 100644 index 000000000..698bc3e8a --- /dev/null +++ b/src/typings/balancePlatform/association.ts @@ -0,0 +1,65 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { AssociationStatus } from "./associationStatus"; +import { ScaEntityType } from "./scaEntityType"; + + +export class Association { + /** + * The unique identifier of the entity. + */ + "entityId": string; + "entityType": ScaEntityType; + /** + * The unique identifier for the SCA device. + */ + "scaDeviceId": string; + "status": AssociationStatus; + + 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": "entityId", + "baseName": "entityId", + "type": "string", + "format": "" + }, + { + "name": "entityType", + "baseName": "entityType", + "type": "ScaEntityType", + "format": "" + }, + { + "name": "scaDeviceId", + "baseName": "scaDeviceId", + "type": "string", + "format": "" + }, + { + "name": "status", + "baseName": "status", + "type": "AssociationStatus", + "format": "" + } ]; + + static getAttributeTypeMap() { + return Association.attributeTypeMap; + } + + public constructor() { + } +} + +export namespace Association { +} diff --git a/src/typings/balancePlatform/associationListing.ts b/src/typings/balancePlatform/associationListing.ts new file mode 100644 index 000000000..b95e3c327 --- /dev/null +++ b/src/typings/balancePlatform/associationListing.ts @@ -0,0 +1,93 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { AssociationStatus } from "./associationStatus"; +import { ScaDeviceType } from "./scaDeviceType"; +import { ScaEntityType } from "./scaEntityType"; + + +export class AssociationListing { + /** + * The date and time when the association was created. + */ + "createdAt": Date; + /** + * The unique identifier of the entity. + */ + "entityId": string; + "entityType": ScaEntityType; + /** + * The unique identifier of the SCA device. + */ + "scaDeviceId": string; + /** + * The human-readable name for the SCA device that was registered. + */ + "scaDeviceName"?: string; + "scaDeviceType": ScaDeviceType; + "status": AssociationStatus; + + 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": "createdAt", + "baseName": "createdAt", + "type": "Date", + "format": "date-time" + }, + { + "name": "entityId", + "baseName": "entityId", + "type": "string", + "format": "" + }, + { + "name": "entityType", + "baseName": "entityType", + "type": "ScaEntityType", + "format": "" + }, + { + "name": "scaDeviceId", + "baseName": "scaDeviceId", + "type": "string", + "format": "" + }, + { + "name": "scaDeviceName", + "baseName": "scaDeviceName", + "type": "string", + "format": "" + }, + { + "name": "scaDeviceType", + "baseName": "scaDeviceType", + "type": "ScaDeviceType", + "format": "" + }, + { + "name": "status", + "baseName": "status", + "type": "AssociationStatus", + "format": "" + } ]; + + static getAttributeTypeMap() { + return AssociationListing.attributeTypeMap; + } + + public constructor() { + } +} + +export namespace AssociationListing { +} diff --git a/src/typings/balancePlatform/associationStatus.ts b/src/typings/balancePlatform/associationStatus.ts new file mode 100644 index 000000000..cc0d25acd --- /dev/null +++ b/src/typings/balancePlatform/associationStatus.ts @@ -0,0 +1,13 @@ +/* + * 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 enum AssociationStatus { + PendingApproval = 'pendingApproval', + Active = 'active' +} diff --git a/src/typings/balancePlatform/beginScaDeviceRegistrationRequest.ts b/src/typings/balancePlatform/beginScaDeviceRegistrationRequest.ts new file mode 100644 index 000000000..078ca933a --- /dev/null +++ b/src/typings/balancePlatform/beginScaDeviceRegistrationRequest.ts @@ -0,0 +1,46 @@ +/* + * 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 BeginScaDeviceRegistrationRequest { + /** + * The name of the SCA device that you are registering. You can use it to help your users identify the device. + */ + "name": string; + /** + * A base64-encoded block with the data required to register the SCA device. You obtain this information by using Adyen\'s authentication SDK. + */ + "sdkOutput": string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "name", + "baseName": "name", + "type": "string", + "format": "" + }, + { + "name": "sdkOutput", + "baseName": "sdkOutput", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return BeginScaDeviceRegistrationRequest.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/balancePlatform/beginScaDeviceRegistrationResponse.ts b/src/typings/balancePlatform/beginScaDeviceRegistrationResponse.ts new file mode 100644 index 000000000..d4f2bcc64 --- /dev/null +++ b/src/typings/balancePlatform/beginScaDeviceRegistrationResponse.ts @@ -0,0 +1,45 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ScaDevice } from "./scaDevice"; + + +export class BeginScaDeviceRegistrationResponse { + "scaDevice"?: ScaDevice | null; + /** + * A string that you must pass to the authentication SDK to continue with the registration process. + */ + "sdkInput"?: string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "scaDevice", + "baseName": "scaDevice", + "type": "ScaDevice | null", + "format": "" + }, + { + "name": "sdkInput", + "baseName": "sdkInput", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return BeginScaDeviceRegistrationResponse.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/balancePlatform/finishScaDeviceRegistrationRequest.ts b/src/typings/balancePlatform/finishScaDeviceRegistrationRequest.ts new file mode 100644 index 000000000..3e7a7a8e7 --- /dev/null +++ b/src/typings/balancePlatform/finishScaDeviceRegistrationRequest.ts @@ -0,0 +1,36 @@ +/* + * 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 FinishScaDeviceRegistrationRequest { + /** + * A base64-encoded block with the data required to register the SCA device. You obtain this information by using Adyen\'s authentication SDK. + */ + "sdkOutput": string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "sdkOutput", + "baseName": "sdkOutput", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return FinishScaDeviceRegistrationRequest.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/balancePlatform/finishScaDeviceRegistrationResponse.ts b/src/typings/balancePlatform/finishScaDeviceRegistrationResponse.ts new file mode 100644 index 000000000..d52a43299 --- /dev/null +++ b/src/typings/balancePlatform/finishScaDeviceRegistrationResponse.ts @@ -0,0 +1,35 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ScaDevice } from "./scaDevice"; + + +export class FinishScaDeviceRegistrationResponse { + "scaDevice"?: ScaDevice | null; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "scaDevice", + "baseName": "scaDevice", + "type": "ScaDevice | null", + "format": "" + } ]; + + static getAttributeTypeMap() { + return FinishScaDeviceRegistrationResponse.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/balancePlatform/listAssociationsResponse.ts b/src/typings/balancePlatform/listAssociationsResponse.ts new file mode 100644 index 000000000..90e325b2c --- /dev/null +++ b/src/typings/balancePlatform/listAssociationsResponse.ts @@ -0,0 +1,66 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { AssociationListing } from "./associationListing"; +import { Link } from "./link"; + + +export class ListAssociationsResponse { + "_links": Link; + /** + * Contains a list of associations and their corresponding details. + */ + "data": Array; + /** + * The total number of items available. + */ + "itemsTotal": number; + /** + * The total number of pages available. + */ + "pagesTotal": number; + + 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": "_links", + "baseName": "_links", + "type": "Link", + "format": "" + }, + { + "name": "data", + "baseName": "data", + "type": "Array", + "format": "" + }, + { + "name": "itemsTotal", + "baseName": "itemsTotal", + "type": "number", + "format": "int32" + }, + { + "name": "pagesTotal", + "baseName": "pagesTotal", + "type": "number", + "format": "int32" + } ]; + + static getAttributeTypeMap() { + return ListAssociationsResponse.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/balancePlatform/models.ts b/src/typings/balancePlatform/models.ts index 216e5d50b..ff9620160 100644 --- a/src/typings/balancePlatform/models.ts +++ b/src/typings/balancePlatform/models.ts @@ -12,12 +12,17 @@ export * from "./addressRequirement" export * from "./amount" export * from "./amountMinMaxRequirement" export * from "./amountNonZeroDecimalsRequirement" +export * from "./approveAssociationRequest" +export * from "./approveAssociationResponse" export * from "./approveTransferLimitRequest" +export * from "./association" export * from "./associationDelegatedAuthenticationData" export * from "./associationFinaliseRequest" export * from "./associationFinaliseResponse" export * from "./associationInitiateRequest" export * from "./associationInitiateResponse" +export * from "./associationListing" +export * from "./associationStatus" export * from "./authentication" export * from "./authorisedCardUsers" export * from "./bRLocalAccountIdentification" @@ -39,6 +44,8 @@ export * from "./bankAccountIdentificationValidationRequest" export * from "./bankAccountIdentificationValidationRequestAccountIdentification" export * from "./bankAccountModel" export * from "./bankIdentification" +export * from "./beginScaDeviceRegistrationRequest" +export * from "./beginScaDeviceRegistrationResponse" export * from "./brandVariantsRestriction" export * from "./bulkAddress" export * from "./cALocalAccountIdentification" @@ -77,6 +84,8 @@ export * from "./duration" export * from "./entryModesRestriction" export * from "./expiry" export * from "./fee" +export * from "./finishScaDeviceRegistrationRequest" +export * from "./finishScaDeviceRegistrationResponse" export * from "./getNetworkTokenResponse" export * from "./getTaxFormResponse" export * from "./grantLimit" @@ -91,6 +100,7 @@ export * from "./internationalTransactionRestriction" export * from "./invalidField" export * from "./limitStatus" export * from "./link" +export * from "./listAssociationsResponse" export * from "./listNetworkTokensResponse" export * from "./matchingTransactionsRestriction" export * from "./matchingValuesRestriction" @@ -133,6 +143,7 @@ export * from "./registerSCAFinalResponse" export * from "./registerSCARequest" export * from "./registerSCAResponse" export * from "./remediatingAction" +export * from "./removeAssociationRequest" export * from "./repayment" export * from "./repaymentTerm" export * from "./restServiceError" @@ -144,6 +155,10 @@ export * from "./sELocalAccountIdentification" export * from "./sGLocalAccountIdentification" export * from "./sameAmountRestriction" export * from "./sameCounterpartyRestriction" +export * from "./scaDevice" +export * from "./scaDeviceType" +export * from "./scaEntity" +export * from "./scaEntityType" export * from "./scaExemption" export * from "./scaInformation" export * from "./scaStatus" @@ -152,6 +167,8 @@ export * from "./searchRegisteredDevicesResponse" export * from "./settingType" export * from "./sourceAccountTypesRestriction" export * from "./stringMatch" +export * from "./submitScaAssociationRequest" +export * from "./submitScaAssociationResponse" export * from "./sweepConfigurationV2" export * from "./sweepCounterparty" export * from "./sweepSchedule" diff --git a/src/typings/balancePlatform/objectSerializer.ts b/src/typings/balancePlatform/objectSerializer.ts index 0ca0fdea0..a916eed3c 100644 --- a/src/typings/balancePlatform/objectSerializer.ts +++ b/src/typings/balancePlatform/objectSerializer.ts @@ -14,12 +14,17 @@ import { AddressRequirement } from "./addressRequirement"; import { Amount } from "./amount"; import { AmountMinMaxRequirement } from "./amountMinMaxRequirement"; import { AmountNonZeroDecimalsRequirement } from "./amountNonZeroDecimalsRequirement"; +import { ApproveAssociationRequest } from "./approveAssociationRequest"; +import { ApproveAssociationResponse } from "./approveAssociationResponse"; import { ApproveTransferLimitRequest } from "./approveTransferLimitRequest"; +import { Association } from "./association"; import { AssociationDelegatedAuthenticationData } from "./associationDelegatedAuthenticationData"; import { AssociationFinaliseRequest } from "./associationFinaliseRequest"; import { AssociationFinaliseResponse } from "./associationFinaliseResponse"; import { AssociationInitiateRequest } from "./associationInitiateRequest"; import { AssociationInitiateResponse } from "./associationInitiateResponse"; +import { AssociationListing } from "./associationListing"; +import { AssociationStatus } from "./associationStatus"; import { Authentication } from "./authentication"; import { AuthorisedCardUsers } from "./authorisedCardUsers"; import { BRLocalAccountIdentification } from "./bRLocalAccountIdentification"; @@ -41,6 +46,8 @@ import { BankAccountIdentificationValidationRequest } from "./bankAccountIdentif import { BankAccountIdentificationValidationRequestAccountIdentificationClass } from "./bankAccountIdentificationValidationRequestAccountIdentification"; import { BankAccountModel } from "./bankAccountModel"; import { BankIdentification } from "./bankIdentification"; +import { BeginScaDeviceRegistrationRequest } from "./beginScaDeviceRegistrationRequest"; +import { BeginScaDeviceRegistrationResponse } from "./beginScaDeviceRegistrationResponse"; import { BrandVariantsRestriction } from "./brandVariantsRestriction"; import { BulkAddress } from "./bulkAddress"; import { CALocalAccountIdentification } from "./cALocalAccountIdentification"; @@ -79,6 +86,8 @@ import { Duration } from "./duration"; import { EntryModesRestriction } from "./entryModesRestriction"; import { Expiry } from "./expiry"; import { Fee } from "./fee"; +import { FinishScaDeviceRegistrationRequest } from "./finishScaDeviceRegistrationRequest"; +import { FinishScaDeviceRegistrationResponse } from "./finishScaDeviceRegistrationResponse"; import { GetNetworkTokenResponse } from "./getNetworkTokenResponse"; import { GetTaxFormResponse } from "./getTaxFormResponse"; import { GrantLimit } from "./grantLimit"; @@ -93,6 +102,7 @@ import { InternationalTransactionRestriction } from "./internationalTransactionR import { InvalidField } from "./invalidField"; import { LimitStatus } from "./limitStatus"; import { Link } from "./link"; +import { ListAssociationsResponse } from "./listAssociationsResponse"; import { ListNetworkTokensResponse } from "./listNetworkTokensResponse"; import { MatchingTransactionsRestriction } from "./matchingTransactionsRestriction"; import { MatchingValuesRestriction } from "./matchingValuesRestriction"; @@ -135,6 +145,7 @@ import { RegisterSCAFinalResponse } from "./registerSCAFinalResponse"; import { RegisterSCARequest } from "./registerSCARequest"; import { RegisterSCAResponse } from "./registerSCAResponse"; import { RemediatingAction } from "./remediatingAction"; +import { RemoveAssociationRequest } from "./removeAssociationRequest"; import { Repayment } from "./repayment"; import { RepaymentTerm } from "./repaymentTerm"; import { RestServiceError } from "./restServiceError"; @@ -146,6 +157,10 @@ import { SELocalAccountIdentification } from "./sELocalAccountIdentification"; import { SGLocalAccountIdentification } from "./sGLocalAccountIdentification"; import { SameAmountRestriction } from "./sameAmountRestriction"; import { SameCounterpartyRestriction } from "./sameCounterpartyRestriction"; +import { ScaDevice } from "./scaDevice"; +import { ScaDeviceType } from "./scaDeviceType"; +import { ScaEntity } from "./scaEntity"; +import { ScaEntityType } from "./scaEntityType"; import { ScaExemption } from "./scaExemption"; import { ScaInformation } from "./scaInformation"; import { ScaStatus } from "./scaStatus"; @@ -154,6 +169,8 @@ import { SearchRegisteredDevicesResponse } from "./searchRegisteredDevicesRespon import { SettingType } from "./settingType"; import { SourceAccountTypesRestriction } from "./sourceAccountTypesRestriction"; import { StringMatch } from "./stringMatch"; +import { SubmitScaAssociationRequest } from "./submitScaAssociationRequest"; +import { SubmitScaAssociationResponse } from "./submitScaAssociationResponse"; import { SweepConfigurationV2 } from "./sweepConfigurationV2"; import { SweepCounterparty } from "./sweepCounterparty"; import { SweepSchedule } from "./sweepSchedule"; @@ -227,6 +244,8 @@ let enumsMap: Set = new Set([ "AssociationFinaliseRequest.TypeEnum", "AssociationFinaliseResponse.TypeEnum", "AssociationInitiateRequest.TypeEnum", + AssociationStatus.PendingApproval, + AssociationStatus.Active, "BRLocalAccountIdentification.TypeEnum", "BalanceAccount.StatusEnum", "BalanceAccountBase.StatusEnum", @@ -300,6 +319,11 @@ let enumsMap: Set = new Set([ "ProcessingTypesRestriction.ValueEnum", "SELocalAccountIdentification.TypeEnum", "SGLocalAccountIdentification.TypeEnum", + ScaDeviceType.Browser, + ScaDeviceType.Ios, + ScaDeviceType.Android, + ScaEntityType.AccountHolder, + ScaEntityType.PaymentInstrument, ScaExemption.SetByPlatform, ScaExemption.InitialLimit, ScaExemption.LowerLimit, @@ -380,12 +404,16 @@ let typeMap: {[index: string]: any} = { "Amount": Amount, "AmountMinMaxRequirement": AmountMinMaxRequirement, "AmountNonZeroDecimalsRequirement": AmountNonZeroDecimalsRequirement, + "ApproveAssociationRequest": ApproveAssociationRequest, + "ApproveAssociationResponse": ApproveAssociationResponse, "ApproveTransferLimitRequest": ApproveTransferLimitRequest, + "Association": Association, "AssociationDelegatedAuthenticationData": AssociationDelegatedAuthenticationData, "AssociationFinaliseRequest": AssociationFinaliseRequest, "AssociationFinaliseResponse": AssociationFinaliseResponse, "AssociationInitiateRequest": AssociationInitiateRequest, "AssociationInitiateResponse": AssociationInitiateResponse, + "AssociationListing": AssociationListing, "Authentication": Authentication, "AuthorisedCardUsers": AuthorisedCardUsers, "BRLocalAccountIdentification": BRLocalAccountIdentification, @@ -407,6 +435,8 @@ let typeMap: {[index: string]: any} = { "BankAccountIdentificationValidationRequestAccountIdentification": BankAccountIdentificationValidationRequestAccountIdentificationClass, "BankAccountModel": BankAccountModel, "BankIdentification": BankIdentification, + "BeginScaDeviceRegistrationRequest": BeginScaDeviceRegistrationRequest, + "BeginScaDeviceRegistrationResponse": BeginScaDeviceRegistrationResponse, "BrandVariantsRestriction": BrandVariantsRestriction, "BulkAddress": BulkAddress, "CALocalAccountIdentification": CALocalAccountIdentification, @@ -445,6 +475,8 @@ let typeMap: {[index: string]: any} = { "EntryModesRestriction": EntryModesRestriction, "Expiry": Expiry, "Fee": Fee, + "FinishScaDeviceRegistrationRequest": FinishScaDeviceRegistrationRequest, + "FinishScaDeviceRegistrationResponse": FinishScaDeviceRegistrationResponse, "GetNetworkTokenResponse": GetNetworkTokenResponse, "GetTaxFormResponse": GetTaxFormResponse, "GrantLimit": GrantLimit, @@ -458,6 +490,7 @@ let typeMap: {[index: string]: any} = { "InternationalTransactionRestriction": InternationalTransactionRestriction, "InvalidField": InvalidField, "Link": Link, + "ListAssociationsResponse": ListAssociationsResponse, "ListNetworkTokensResponse": ListNetworkTokensResponse, "MatchingTransactionsRestriction": MatchingTransactionsRestriction, "MatchingValuesRestriction": MatchingValuesRestriction, @@ -500,6 +533,7 @@ let typeMap: {[index: string]: any} = { "RegisterSCARequest": RegisterSCARequest, "RegisterSCAResponse": RegisterSCAResponse, "RemediatingAction": RemediatingAction, + "RemoveAssociationRequest": RemoveAssociationRequest, "Repayment": Repayment, "RepaymentTerm": RepaymentTerm, "RestServiceError": RestServiceError, @@ -511,10 +545,14 @@ let typeMap: {[index: string]: any} = { "SGLocalAccountIdentification": SGLocalAccountIdentification, "SameAmountRestriction": SameAmountRestriction, "SameCounterpartyRestriction": SameCounterpartyRestriction, + "ScaDevice": ScaDevice, + "ScaEntity": ScaEntity, "ScaInformation": ScaInformation, "SearchRegisteredDevicesResponse": SearchRegisteredDevicesResponse, "SourceAccountTypesRestriction": SourceAccountTypesRestriction, "StringMatch": StringMatch, + "SubmitScaAssociationRequest": SubmitScaAssociationRequest, + "SubmitScaAssociationResponse": SubmitScaAssociationResponse, "SweepConfigurationV2": SweepConfigurationV2, "SweepCounterparty": SweepCounterparty, "SweepSchedule": SweepSchedule, @@ -877,4 +915,4 @@ export class ObjectSerializer { throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse."); } -} \ No newline at end of file +} diff --git a/src/typings/balancePlatform/removeAssociationRequest.ts b/src/typings/balancePlatform/removeAssociationRequest.ts new file mode 100644 index 000000000..f06bdcbd5 --- /dev/null +++ b/src/typings/balancePlatform/removeAssociationRequest.ts @@ -0,0 +1,57 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ScaEntityType } from "./scaEntityType"; + + +export class RemoveAssociationRequest { + /** + * The unique identifier of the entity. + */ + "entityId": string; + "entityType": ScaEntityType; + /** + * A list of device ids associated with the entity that should be removed. + */ + "scaDeviceIds": Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "entityId", + "baseName": "entityId", + "type": "string", + "format": "" + }, + { + "name": "entityType", + "baseName": "entityType", + "type": "ScaEntityType", + "format": "" + }, + { + "name": "scaDeviceIds", + "baseName": "scaDeviceIds", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return RemoveAssociationRequest.attributeTypeMap; + } + + public constructor() { + } +} + +export namespace RemoveAssociationRequest { +} diff --git a/src/typings/balancePlatform/scaDevice.ts b/src/typings/balancePlatform/scaDevice.ts new file mode 100644 index 000000000..a02c06cd1 --- /dev/null +++ b/src/typings/balancePlatform/scaDevice.ts @@ -0,0 +1,61 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ScaDeviceType } from "./scaDeviceType"; + +/** +* A resource that contains information about a device, including its unique ID, name, and type. +*/ + + +export class ScaDevice { + /** + * The unique identifier of the SCA device you are registering. + */ + "id": string; + /** + * The name of the SCA device that you are registering. You can use it to help your users identify the device. + */ + "name": string; + "type": ScaDeviceType; + + 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": "id", + "baseName": "id", + "type": "string", + "format": "" + }, + { + "name": "name", + "baseName": "name", + "type": "string", + "format": "" + }, + { + "name": "type", + "baseName": "type", + "type": "ScaDeviceType", + "format": "" + } ]; + + static getAttributeTypeMap() { + return ScaDevice.attributeTypeMap; + } + + public constructor() { + } +} + +export namespace ScaDevice { +} diff --git a/src/typings/balancePlatform/scaDeviceType.ts b/src/typings/balancePlatform/scaDeviceType.ts new file mode 100644 index 000000000..4463d8d25 --- /dev/null +++ b/src/typings/balancePlatform/scaDeviceType.ts @@ -0,0 +1,14 @@ +/* + * 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 enum ScaDeviceType { + Browser = 'browser', + Ios = 'ios', + Android = 'android' +} diff --git a/src/typings/balancePlatform/scaEntity.ts b/src/typings/balancePlatform/scaEntity.ts new file mode 100644 index 000000000..9e687783e --- /dev/null +++ b/src/typings/balancePlatform/scaEntity.ts @@ -0,0 +1,47 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ScaEntityType } from "./scaEntityType"; + + +export class ScaEntity { + /** + * The unique identifier of the entity. + */ + "id": string; + "type": ScaEntityType; + + 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": "id", + "baseName": "id", + "type": "string", + "format": "" + }, + { + "name": "type", + "baseName": "type", + "type": "ScaEntityType", + "format": "" + } ]; + + static getAttributeTypeMap() { + return ScaEntity.attributeTypeMap; + } + + public constructor() { + } +} + +export namespace ScaEntity { +} diff --git a/src/typings/balancePlatform/scaEntityType.ts b/src/typings/balancePlatform/scaEntityType.ts new file mode 100644 index 000000000..df6791149 --- /dev/null +++ b/src/typings/balancePlatform/scaEntityType.ts @@ -0,0 +1,13 @@ +/* + * 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 enum ScaEntityType { + AccountHolder = 'accountHolder', + PaymentInstrument = 'paymentInstrument' +} diff --git a/src/typings/balancePlatform/submitScaAssociationRequest.ts b/src/typings/balancePlatform/submitScaAssociationRequest.ts new file mode 100644 index 000000000..5d2aa86da --- /dev/null +++ b/src/typings/balancePlatform/submitScaAssociationRequest.ts @@ -0,0 +1,38 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ScaEntity } from "./scaEntity"; + + +export class SubmitScaAssociationRequest { + /** + * The list of entities to be associated. + */ + "entities": Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "entities", + "baseName": "entities", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return SubmitScaAssociationRequest.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/balancePlatform/submitScaAssociationResponse.ts b/src/typings/balancePlatform/submitScaAssociationResponse.ts new file mode 100644 index 000000000..10af2b4aa --- /dev/null +++ b/src/typings/balancePlatform/submitScaAssociationResponse.ts @@ -0,0 +1,38 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Association } from "./association"; + + +export class SubmitScaAssociationResponse { + /** + * List of associations created to the entities and their statuses. + */ + "scaAssociations": Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "scaAssociations", + "baseName": "scaAssociations", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return SubmitScaAssociationResponse.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/checkout/achDetails.ts b/src/typings/checkout/achDetails.ts index 3da8192b3..307b303d9 100644 --- a/src/typings/checkout/achDetails.ts +++ b/src/typings/checkout/achDetails.ts @@ -49,6 +49,10 @@ export class AchDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -120,6 +124,12 @@ export class AchDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/checkout/additionalDataLevel23.ts b/src/typings/checkout/additionalDataLevel23.ts index 0ca134b9f..2991ac154 100644 --- a/src/typings/checkout/additionalDataLevel23.ts +++ b/src/typings/checkout/additionalDataLevel23.ts @@ -34,7 +34,7 @@ export class AdditionalDataLevel23 { */ "enhancedSchemeData_freightAmount"?: string; /** - * 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. + * The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.ungm.org/public/unspsc) * [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; /** diff --git a/src/typings/checkout/affirmDetails.ts b/src/typings/checkout/affirmDetails.ts index a4f2800c6..054a88076 100644 --- a/src/typings/checkout/affirmDetails.ts +++ b/src/typings/checkout/affirmDetails.ts @@ -14,6 +14,10 @@ export class AffirmDetails { */ "checkoutAttemptId"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * **affirm** */ "type"?: AffirmDetails.TypeEnum; @@ -29,6 +33,12 @@ export class AffirmDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "type", "baseName": "type", diff --git a/src/typings/checkout/afterpayDetails.ts b/src/typings/checkout/afterpayDetails.ts index f4fbac506..d45c37593 100644 --- a/src/typings/checkout/afterpayDetails.ts +++ b/src/typings/checkout/afterpayDetails.ts @@ -33,6 +33,10 @@ export class AfterpayDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -76,6 +80,12 @@ export class AfterpayDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/checkout/amazonPayDetails.ts b/src/typings/checkout/amazonPayDetails.ts index 9110174e1..513813771 100644 --- a/src/typings/checkout/amazonPayDetails.ts +++ b/src/typings/checkout/amazonPayDetails.ts @@ -22,6 +22,10 @@ export class AmazonPayDetails { */ "checkoutSessionId"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * **amazonpay** */ "type"?: AmazonPayDetails.TypeEnum; @@ -49,6 +53,12 @@ export class AmazonPayDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "type", "baseName": "type", diff --git a/src/typings/checkout/ancvDetails.ts b/src/typings/checkout/ancvDetails.ts index 81af60d0c..4b70ef7d5 100644 --- a/src/typings/checkout/ancvDetails.ts +++ b/src/typings/checkout/ancvDetails.ts @@ -25,6 +25,10 @@ export class AncvDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -56,6 +60,12 @@ export class AncvDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/checkout/androidPayDetails.ts b/src/typings/checkout/androidPayDetails.ts index b8af148d0..ab1afec1a 100644 --- a/src/typings/checkout/androidPayDetails.ts +++ b/src/typings/checkout/androidPayDetails.ts @@ -14,6 +14,10 @@ export class AndroidPayDetails { */ "checkoutAttemptId"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * **androidpay** */ "type"?: AndroidPayDetails.TypeEnum; @@ -29,6 +33,12 @@ export class AndroidPayDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "type", "baseName": "type", diff --git a/src/typings/checkout/applePayDetails.ts b/src/typings/checkout/applePayDetails.ts index 9156c8b46..8c5720542 100644 --- a/src/typings/checkout/applePayDetails.ts +++ b/src/typings/checkout/applePayDetails.ts @@ -29,6 +29,10 @@ export class ApplePayDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -66,6 +70,12 @@ export class ApplePayDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/checkout/applePayDonations.ts b/src/typings/checkout/applePayDonations.ts index 246012055..85acac5d7 100644 --- a/src/typings/checkout/applePayDonations.ts +++ b/src/typings/checkout/applePayDonations.ts @@ -29,6 +29,10 @@ export class ApplePayDonations { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -66,6 +70,12 @@ export class ApplePayDonations { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/checkout/bacsDirectDebitDetails.ts b/src/typings/checkout/bacsDirectDebitDetails.ts index fb78deee4..d10b17f21 100644 --- a/src/typings/checkout/bacsDirectDebitDetails.ts +++ b/src/typings/checkout/bacsDirectDebitDetails.ts @@ -33,6 +33,10 @@ export class BacsDirectDebitDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -80,6 +84,12 @@ export class BacsDirectDebitDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/checkout/balanceCheckRequest.ts b/src/typings/checkout/balanceCheckRequest.ts index 0d23526da..9a8f4ae64 100644 --- a/src/typings/checkout/balanceCheckRequest.ts +++ b/src/typings/checkout/balanceCheckRequest.ts @@ -56,7 +56,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 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. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If this parameter is left empty, not provided, or not applicable (in case of cross-border transactions), then **shopperStatement** is used. Currently, `localizedShopperStatement` is only supported for payments with Visa, Mastercard, JCB, Diners, and Discover. **Supported characters**: Hiragana, Katakana, Kanji, and alphanumeric. */ "localizedShopperStatement"?: { [key: string]: string; }; /** diff --git a/src/typings/checkout/billDeskDetails.ts b/src/typings/checkout/billDeskDetails.ts index 60c7fe54c..5a452e524 100644 --- a/src/typings/checkout/billDeskDetails.ts +++ b/src/typings/checkout/billDeskDetails.ts @@ -18,6 +18,10 @@ export class BillDeskDetails { */ "issuer": string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * **billdesk** */ "type": BillDeskDetails.TypeEnum; @@ -39,6 +43,12 @@ export class BillDeskDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "type", "baseName": "type", diff --git a/src/typings/checkout/blikDetails.ts b/src/typings/checkout/blikDetails.ts index c2a9e1956..84e7a300c 100644 --- a/src/typings/checkout/blikDetails.ts +++ b/src/typings/checkout/blikDetails.ts @@ -25,6 +25,10 @@ export class BlikDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -56,6 +60,12 @@ export class BlikDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/checkout/cardDetails.ts b/src/typings/checkout/cardDetails.ts index d9fc4670d..2d7cff2a4 100644 --- a/src/typings/checkout/cardDetails.ts +++ b/src/typings/checkout/cardDetails.ts @@ -9,6 +9,10 @@ export class CardDetails { + /** + * The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper. + */ + "billingSequenceNumber"?: string; /** * Secondary brand of the card. For example: **plastix**, **hmclub**. */ @@ -85,6 +89,10 @@ export class CardDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India. */ "shopperNotificationReference"?: string; @@ -122,6 +130,12 @@ export class CardDetails { static readonly mapping: {[index: string]: string} | undefined = undefined; static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "billingSequenceNumber", + "baseName": "billingSequenceNumber", + "type": "string", + "format": "" + }, { "name": "brand", "baseName": "brand", @@ -230,6 +244,12 @@ export class CardDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "shopperNotificationReference", "baseName": "shopperNotificationReference", diff --git a/src/typings/checkout/cardDonations.ts b/src/typings/checkout/cardDonations.ts index 2cf90951d..c4c6d1d84 100644 --- a/src/typings/checkout/cardDonations.ts +++ b/src/typings/checkout/cardDonations.ts @@ -9,6 +9,10 @@ export class CardDonations { + /** + * The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper. + */ + "billingSequenceNumber"?: string; /** * Secondary brand of the card. For example: **plastix**, **hmclub**. */ @@ -85,6 +89,10 @@ export class CardDonations { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India. */ "shopperNotificationReference"?: string; @@ -122,6 +130,12 @@ export class CardDonations { static readonly mapping: {[index: string]: string} | undefined = undefined; static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "billingSequenceNumber", + "baseName": "billingSequenceNumber", + "type": "string", + "format": "" + }, { "name": "brand", "baseName": "brand", @@ -230,6 +244,12 @@ export class CardDonations { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "shopperNotificationReference", "baseName": "shopperNotificationReference", diff --git a/src/typings/checkout/cashAppDetails.ts b/src/typings/checkout/cashAppDetails.ts index 8d8d4e894..4b5440dae 100644 --- a/src/typings/checkout/cashAppDetails.ts +++ b/src/typings/checkout/cashAppDetails.ts @@ -41,6 +41,10 @@ export class CashAppDetails { */ "requestId"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -100,6 +104,12 @@ export class CashAppDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/checkout/cellulantDetails.ts b/src/typings/checkout/cellulantDetails.ts index b5c345944..3fc4b772d 100644 --- a/src/typings/checkout/cellulantDetails.ts +++ b/src/typings/checkout/cellulantDetails.ts @@ -18,6 +18,10 @@ export class CellulantDetails { */ "issuer"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * **Cellulant** */ "type"?: CellulantDetails.TypeEnum; @@ -39,6 +43,12 @@ export class CellulantDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "type", "baseName": "type", diff --git a/src/typings/checkout/checkoutBankTransferAction.ts b/src/typings/checkout/checkoutBankTransferAction.ts index 16ddfa866..aeaf85b40 100644 --- a/src/typings/checkout/checkoutBankTransferAction.ts +++ b/src/typings/checkout/checkoutBankTransferAction.ts @@ -16,6 +16,10 @@ export class CheckoutBankTransferAction { */ "accountNumber"?: string; /** + * The bank code of the bank transfer. + */ + "bankCode"?: string; + /** * The name of the account holder. */ "beneficiary"?: string; @@ -24,6 +28,10 @@ export class CheckoutBankTransferAction { */ "bic"?: string; /** + * The branch code of the bank transfer. + */ + "branchCode"?: string; + /** * The url to download payment details with. */ "downloadUrl"?: string; @@ -72,6 +80,12 @@ export class CheckoutBankTransferAction { "type": "string", "format": "" }, + { + "name": "bankCode", + "baseName": "bankCode", + "type": "string", + "format": "" + }, { "name": "beneficiary", "baseName": "beneficiary", @@ -84,6 +98,12 @@ export class CheckoutBankTransferAction { "type": "string", "format": "" }, + { + "name": "branchCode", + "baseName": "branchCode", + "type": "string", + "format": "" + }, { "name": "downloadUrl", "baseName": "downloadUrl", diff --git a/src/typings/checkout/dokuDetails.ts b/src/typings/checkout/dokuDetails.ts index 2dce369c1..d71d327aa 100644 --- a/src/typings/checkout/dokuDetails.ts +++ b/src/typings/checkout/dokuDetails.ts @@ -22,6 +22,10 @@ export class DokuDetails { */ "lastName": string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * The shopper\'s email. */ "shopperEmail": string; @@ -53,6 +57,12 @@ export class DokuDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "shopperEmail", "baseName": "shopperEmail", diff --git a/src/typings/checkout/donationPaymentRequest.ts b/src/typings/checkout/donationPaymentRequest.ts index 828765ba7..da17ff55b 100644 --- a/src/typings/checkout/donationPaymentRequest.ts +++ b/src/typings/checkout/donationPaymentRequest.ts @@ -99,7 +99,7 @@ export class DonationPaymentRequest { * > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this to the origin URL of the page where you are rendering the Drop-in/Component. Do not include subdirectories and a trailing slash. */ "origin"?: string; - "paymentMethod": DonationPaymentRequestPaymentMethod; + "paymentMethod"?: DonationPaymentRequestPaymentMethod | null; /** * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder\'s balance drops below a certain amount. */ @@ -320,7 +320,7 @@ export class DonationPaymentRequest { { "name": "paymentMethod", "baseName": "paymentMethod", - "type": "DonationPaymentRequestPaymentMethod", + "type": "DonationPaymentRequestPaymentMethod | null", "format": "" }, { diff --git a/src/typings/checkout/donationPaymentRequestPaymentMethod.ts b/src/typings/checkout/donationPaymentRequestPaymentMethod.ts index 221f75156..47c0c8a16 100644 --- a/src/typings/checkout/donationPaymentRequestPaymentMethod.ts +++ b/src/typings/checkout/donationPaymentRequestPaymentMethod.ts @@ -14,7 +14,7 @@ import { IdealDonations } from "./idealDonations"; import { PayWithGoogleDonations } from "./payWithGoogleDonations"; /** -* The type and required details of a payment method to use. +* The type and required details of a payment method to use. When `donationToken` is provided, the payment method is derived from the token and this field becomes optional. If you are [PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide), and make donations using raw card details, you must explicitly provide the payment method details. */ @@ -27,7 +27,7 @@ export type DonationPaymentRequestPaymentMethod = ApplePayDonations | CardDonati /** * @type DonationPaymentRequestPaymentMethodClass - * The type and required details of a payment method to use. + * The type and required details of a payment method to use. When `donationToken` is provided, the payment method is derived from the token and this field becomes optional. If you are [PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide), and make donations using raw card details, you must explicitly provide the payment method details. * @export */ export class DonationPaymentRequestPaymentMethodClass { diff --git a/src/typings/checkout/dragonpayDetails.ts b/src/typings/checkout/dragonpayDetails.ts index 3c9f62d5a..f21408484 100644 --- a/src/typings/checkout/dragonpayDetails.ts +++ b/src/typings/checkout/dragonpayDetails.ts @@ -18,6 +18,10 @@ export class DragonpayDetails { */ "issuer": string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * The shopper’s email address. */ "shopperEmail"?: string; @@ -43,6 +47,12 @@ export class DragonpayDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "shopperEmail", "baseName": "shopperEmail", diff --git a/src/typings/checkout/eBankingFinlandDetails.ts b/src/typings/checkout/eBankingFinlandDetails.ts index db64145ae..b2e75f0fc 100644 --- a/src/typings/checkout/eBankingFinlandDetails.ts +++ b/src/typings/checkout/eBankingFinlandDetails.ts @@ -18,6 +18,10 @@ export class EBankingFinlandDetails { */ "issuer"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * **ebanking_FI** */ "type": EBankingFinlandDetails.TypeEnum; @@ -39,6 +43,12 @@ export class EBankingFinlandDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "type", "baseName": "type", diff --git a/src/typings/checkout/econtextVoucherDetails.ts b/src/typings/checkout/econtextVoucherDetails.ts index ba082c1d8..945f46fe6 100644 --- a/src/typings/checkout/econtextVoucherDetails.ts +++ b/src/typings/checkout/econtextVoucherDetails.ts @@ -22,6 +22,10 @@ export class EcontextVoucherDetails { */ "lastName": string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * The shopper\'s email. */ "shopperEmail": string; @@ -57,6 +61,12 @@ export class EcontextVoucherDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "shopperEmail", "baseName": "shopperEmail", diff --git a/src/typings/checkout/eftDetails.ts b/src/typings/checkout/eftDetails.ts index 6a66c03b7..531052d28 100644 --- a/src/typings/checkout/eftDetails.ts +++ b/src/typings/checkout/eftDetails.ts @@ -37,6 +37,10 @@ export class EftDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -86,6 +90,12 @@ export class EftDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/checkout/fastlaneDetails.ts b/src/typings/checkout/fastlaneDetails.ts index 6cdcfd11e..41b9a4c4a 100644 --- a/src/typings/checkout/fastlaneDetails.ts +++ b/src/typings/checkout/fastlaneDetails.ts @@ -25,6 +25,10 @@ export class FastlaneDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -56,6 +60,12 @@ export class FastlaneDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/checkout/genericIssuerPaymentMethodDetails.ts b/src/typings/checkout/genericIssuerPaymentMethodDetails.ts index 9f93f389f..49d870494 100644 --- a/src/typings/checkout/genericIssuerPaymentMethodDetails.ts +++ b/src/typings/checkout/genericIssuerPaymentMethodDetails.ts @@ -25,6 +25,10 @@ export class GenericIssuerPaymentMethodDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -56,6 +60,12 @@ export class GenericIssuerPaymentMethodDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", @@ -82,6 +92,7 @@ export namespace GenericIssuerPaymentMethodDetails { OnlineBankingPl = 'onlineBanking_PL', Eps = 'eps', OnlineBankingSk = 'onlineBanking_SK', - OnlineBankingCz = 'onlineBanking_CZ' + OnlineBankingCz = 'onlineBanking_CZ', + OnlinebankingIn = 'onlinebanking_IN' } } diff --git a/src/typings/checkout/googlePayDetails.ts b/src/typings/checkout/googlePayDetails.ts index 91d6a6458..b7fff0c85 100644 --- a/src/typings/checkout/googlePayDetails.ts +++ b/src/typings/checkout/googlePayDetails.ts @@ -33,6 +33,10 @@ export class GooglePayDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -80,6 +84,12 @@ export class GooglePayDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/checkout/googlePayDonations.ts b/src/typings/checkout/googlePayDonations.ts index c2a1c4ff4..602f3c5a3 100644 --- a/src/typings/checkout/googlePayDonations.ts +++ b/src/typings/checkout/googlePayDonations.ts @@ -33,6 +33,10 @@ export class GooglePayDonations { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -80,6 +84,12 @@ export class GooglePayDonations { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/checkout/idealDetails.ts b/src/typings/checkout/idealDetails.ts index aa6fe29a6..4e2537797 100644 --- a/src/typings/checkout/idealDetails.ts +++ b/src/typings/checkout/idealDetails.ts @@ -25,6 +25,10 @@ export class IdealDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -56,6 +60,12 @@ export class IdealDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/checkout/idealDonations.ts b/src/typings/checkout/idealDonations.ts index 233c340c3..39574799e 100644 --- a/src/typings/checkout/idealDonations.ts +++ b/src/typings/checkout/idealDonations.ts @@ -25,6 +25,10 @@ export class IdealDonations { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -56,6 +60,12 @@ export class IdealDonations { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/checkout/klarnaDetails.ts b/src/typings/checkout/klarnaDetails.ts index 86837ab1b..5d9e66960 100644 --- a/src/typings/checkout/klarnaDetails.ts +++ b/src/typings/checkout/klarnaDetails.ts @@ -33,6 +33,10 @@ export class KlarnaDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -80,6 +84,12 @@ export class KlarnaDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/checkout/masterpassDetails.ts b/src/typings/checkout/masterpassDetails.ts index 76484c46f..cfc2901fa 100644 --- a/src/typings/checkout/masterpassDetails.ts +++ b/src/typings/checkout/masterpassDetails.ts @@ -22,6 +22,10 @@ export class MasterpassDetails { */ "masterpassTransactionId": string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * **masterpass** */ "type"?: MasterpassDetails.TypeEnum; @@ -49,6 +53,12 @@ export class MasterpassDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "type", "baseName": "type", diff --git a/src/typings/checkout/mbwayDetails.ts b/src/typings/checkout/mbwayDetails.ts index 17b6cf95b..1e64df74b 100644 --- a/src/typings/checkout/mbwayDetails.ts +++ b/src/typings/checkout/mbwayDetails.ts @@ -14,6 +14,10 @@ export class MbwayDetails { */ "checkoutAttemptId"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * */ "shopperEmail": string; @@ -37,6 +41,12 @@ export class MbwayDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "shopperEmail", "baseName": "shopperEmail", diff --git a/src/typings/checkout/mobilePayDetails.ts b/src/typings/checkout/mobilePayDetails.ts index cb322006e..54b9b6ca8 100644 --- a/src/typings/checkout/mobilePayDetails.ts +++ b/src/typings/checkout/mobilePayDetails.ts @@ -14,6 +14,10 @@ export class MobilePayDetails { */ "checkoutAttemptId"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * **mobilepay** */ "type"?: MobilePayDetails.TypeEnum; @@ -29,6 +33,12 @@ export class MobilePayDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "type", "baseName": "type", diff --git a/src/typings/checkout/models.ts b/src/typings/checkout/models.ts index a7d836e18..794bacbd1 100644 --- a/src/typings/checkout/models.ts +++ b/src/typings/checkout/models.ts @@ -154,6 +154,11 @@ export * from "./paymentResponse" export * from "./paymentResponseAction" export * from "./paymentReversalRequest" export * from "./paymentReversalResponse" +export * from "./paymentValidations" +export * from "./paymentValidationsNameResponse" +export * from "./paymentValidationsNameResultRawResponse" +export * from "./paymentValidationsNameResultResponse" +export * from "./paymentValidationsResponse" export * from "./paypalUpdateOrderRequest" export * from "./paypalUpdateOrderResponse" export * from "./phone" @@ -208,6 +213,7 @@ export * from "./threeDSRequestorAuthenticationInfo" export * from "./threeDSRequestorPriorAuthenticationInfo" export * from "./threeDSecureData" export * from "./ticket" +export * from "./tokenMandate" export * from "./travelAgency" export * from "./twintDetails" export * from "./uPIPaymentMethod" diff --git a/src/typings/checkout/molPayDetails.ts b/src/typings/checkout/molPayDetails.ts index 97bc5e03d..0b53b72ac 100644 --- a/src/typings/checkout/molPayDetails.ts +++ b/src/typings/checkout/molPayDetails.ts @@ -18,6 +18,10 @@ export class MolPayDetails { */ "issuer": string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * **molpay** */ "type": MolPayDetails.TypeEnum; @@ -39,6 +43,12 @@ export class MolPayDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "type", "baseName": "type", diff --git a/src/typings/checkout/objectSerializer.ts b/src/typings/checkout/objectSerializer.ts index 2bc9d75f9..37d07ca9a 100644 --- a/src/typings/checkout/objectSerializer.ts +++ b/src/typings/checkout/objectSerializer.ts @@ -156,6 +156,11 @@ import { PaymentResponse } from "./paymentResponse"; import { PaymentResponseActionClass } from "./paymentResponseAction"; import { PaymentReversalRequest } from "./paymentReversalRequest"; import { PaymentReversalResponse } from "./paymentReversalResponse"; +import { PaymentValidations } from "./paymentValidations"; +import { PaymentValidationsNameResponse } from "./paymentValidationsNameResponse"; +import { PaymentValidationsNameResultRawResponse } from "./paymentValidationsNameResultRawResponse"; +import { PaymentValidationsNameResultResponse } from "./paymentValidationsNameResultResponse"; +import { PaymentValidationsResponse } from "./paymentValidationsResponse"; import { PaypalUpdateOrderRequest } from "./paypalUpdateOrderRequest"; import { PaypalUpdateOrderResponse } from "./paypalUpdateOrderResponse"; import { Phone } from "./phone"; @@ -210,6 +215,7 @@ import { ThreeDSRequestorAuthenticationInfo } from "./threeDSRequestorAuthentica import { ThreeDSRequestorPriorAuthenticationInfo } from "./threeDSRequestorPriorAuthenticationInfo"; import { ThreeDSecureData } from "./threeDSecureData"; import { Ticket } from "./ticket"; +import { TokenMandate } from "./tokenMandate"; import { TravelAgency } from "./travelAgency"; import { TwintDetails } from "./twintDetails"; import { UPIPaymentMethod } from "./uPIPaymentMethod"; @@ -387,6 +393,7 @@ let enumsMap: Set = new Set([ "PaymentResponse.ResultCodeEnum", "PaymentResponseAction.TypeEnum", "PaymentReversalResponse.StatusEnum", + "PaymentValidationsNameResponse.StatusEnum", "PaypalUpdateOrderResponse.StatusEnum", "PixDetails.TypeEnum", "PixRecurring.FrequencyEnum", @@ -437,6 +444,9 @@ let enumsMap: Set = new Set([ "ThreeDSecureData.AuthenticationResponseEnum", "ThreeDSecureData.ChallengeCancelEnum", "ThreeDSecureData.DirectoryResponseEnum", + "TokenMandate.AmountRuleEnum", + "TokenMandate.BillingAttemptsRuleEnum", + "TokenMandate.FrequencyEnum", "TwintDetails.TypeEnum", "UpdatePaymentLinkRequest.StatusEnum", "UpiCollectDetails.TypeEnum", @@ -607,6 +617,11 @@ let typeMap: {[index: string]: any} = { "PaymentResponseAction": PaymentResponseActionClass, "PaymentReversalRequest": PaymentReversalRequest, "PaymentReversalResponse": PaymentReversalResponse, + "PaymentValidations": PaymentValidations, + "PaymentValidationsNameResponse": PaymentValidationsNameResponse, + "PaymentValidationsNameResultRawResponse": PaymentValidationsNameResultRawResponse, + "PaymentValidationsNameResultResponse": PaymentValidationsNameResultResponse, + "PaymentValidationsResponse": PaymentValidationsResponse, "PaypalUpdateOrderRequest": PaypalUpdateOrderRequest, "PaypalUpdateOrderResponse": PaypalUpdateOrderResponse, "Phone": Phone, @@ -660,6 +675,7 @@ let typeMap: {[index: string]: any} = { "ThreeDSRequestorPriorAuthenticationInfo": ThreeDSRequestorPriorAuthenticationInfo, "ThreeDSecureData": ThreeDSecureData, "Ticket": Ticket, + "TokenMandate": TokenMandate, "TravelAgency": TravelAgency, "TwintDetails": TwintDetails, "UPIPaymentMethod": UPIPaymentMethod, diff --git a/src/typings/checkout/openInvoiceDetails.ts b/src/typings/checkout/openInvoiceDetails.ts index fdabd716b..7e64773a8 100644 --- a/src/typings/checkout/openInvoiceDetails.ts +++ b/src/typings/checkout/openInvoiceDetails.ts @@ -33,6 +33,10 @@ export class OpenInvoiceDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -76,6 +80,12 @@ export class OpenInvoiceDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/checkout/payByBankAISDirectDebitDetails.ts b/src/typings/checkout/payByBankAISDirectDebitDetails.ts index 6640452bc..439375a2e 100644 --- a/src/typings/checkout/payByBankAISDirectDebitDetails.ts +++ b/src/typings/checkout/payByBankAISDirectDebitDetails.ts @@ -21,6 +21,10 @@ export class PayByBankAISDirectDebitDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -46,6 +50,12 @@ export class PayByBankAISDirectDebitDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/checkout/payByBankDetails.ts b/src/typings/checkout/payByBankDetails.ts index 015f25838..eab7abdf0 100644 --- a/src/typings/checkout/payByBankDetails.ts +++ b/src/typings/checkout/payByBankDetails.ts @@ -18,6 +18,10 @@ export class PayByBankDetails { */ "issuer"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * **paybybank** */ "type": PayByBankDetails.TypeEnum; @@ -39,6 +43,12 @@ export class PayByBankDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "type", "baseName": "type", diff --git a/src/typings/checkout/payPalDetails.ts b/src/typings/checkout/payPalDetails.ts index 1e874c8c7..6f3e0c901 100644 --- a/src/typings/checkout/payPalDetails.ts +++ b/src/typings/checkout/payPalDetails.ts @@ -37,6 +37,10 @@ export class PayPalDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -90,6 +94,12 @@ export class PayPalDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/checkout/payPayDetails.ts b/src/typings/checkout/payPayDetails.ts index 57b724041..9580ce9f5 100644 --- a/src/typings/checkout/payPayDetails.ts +++ b/src/typings/checkout/payPayDetails.ts @@ -21,6 +21,10 @@ export class PayPayDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -46,6 +50,12 @@ export class PayPayDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/checkout/payToDetails.ts b/src/typings/checkout/payToDetails.ts index b3da9c995..e312db3aa 100644 --- a/src/typings/checkout/payToDetails.ts +++ b/src/typings/checkout/payToDetails.ts @@ -21,6 +21,10 @@ export class PayToDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * The shopper\'s banking details or payId reference, used to complete payment. */ "shopperAccountIdentifier"?: string; @@ -50,6 +54,12 @@ export class PayToDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "shopperAccountIdentifier", "baseName": "shopperAccountIdentifier", diff --git a/src/typings/checkout/payUUpiDetails.ts b/src/typings/checkout/payUUpiDetails.ts index f0a46fcf5..e03a2a2a1 100644 --- a/src/typings/checkout/payUUpiDetails.ts +++ b/src/typings/checkout/payUUpiDetails.ts @@ -21,6 +21,10 @@ export class PayUUpiDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. */ "shopperNotificationReference"?: string; @@ -54,6 +58,12 @@ export class PayUUpiDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "shopperNotificationReference", "baseName": "shopperNotificationReference", diff --git a/src/typings/checkout/payWithGoogleDetails.ts b/src/typings/checkout/payWithGoogleDetails.ts index ba59b386a..95bb8afad 100644 --- a/src/typings/checkout/payWithGoogleDetails.ts +++ b/src/typings/checkout/payWithGoogleDetails.ts @@ -29,6 +29,10 @@ export class PayWithGoogleDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -70,6 +74,12 @@ export class PayWithGoogleDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/checkout/payWithGoogleDonations.ts b/src/typings/checkout/payWithGoogleDonations.ts index 9517ed7ab..c645ac28f 100644 --- a/src/typings/checkout/payWithGoogleDonations.ts +++ b/src/typings/checkout/payWithGoogleDonations.ts @@ -29,6 +29,10 @@ export class PayWithGoogleDonations { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -70,6 +74,12 @@ export class PayWithGoogleDonations { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/checkout/paymentDetails.ts b/src/typings/checkout/paymentDetails.ts index 5f78c3c14..fe4f3684b 100644 --- a/src/typings/checkout/paymentDetails.ts +++ b/src/typings/checkout/paymentDetails.ts @@ -14,6 +14,10 @@ export class PaymentDetails { */ "checkoutAttemptId"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * The payment method type. */ "type"?: PaymentDetails.TypeEnum; @@ -29,6 +33,12 @@ export class PaymentDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "type", "baseName": "type", @@ -106,10 +116,8 @@ export namespace PaymentDetails { Omannet = 'omannet', GopayWallet = 'gopay_wallet', KcpNaverpay = 'kcp_naverpay', - OnlinebankingIn = 'onlinebanking_IN', Fawry = 'fawry', Atome = 'atome', - Moneybookers = 'moneybookers', Naps = 'naps', Nordea = 'nordea', BoletobancarioBradesco = 'boletobancario_bradesco', diff --git a/src/typings/checkout/paymentDetailsResponse.ts b/src/typings/checkout/paymentDetailsResponse.ts index cd4c0b78e..86009739f 100644 --- a/src/typings/checkout/paymentDetailsResponse.ts +++ b/src/typings/checkout/paymentDetailsResponse.ts @@ -11,6 +11,7 @@ import { Amount } from "./amount"; import { CheckoutOrderResponse } from "./checkoutOrderResponse"; import { CheckoutThreeDS2Action } from "./checkoutThreeDS2Action"; import { FraudResult } from "./fraudResult"; +import { PaymentValidationsResponse } from "./paymentValidationsResponse"; import { ResponsePaymentMethod } from "./responsePaymentMethod"; import { ThreeDS2ResponseData } from "./threeDS2ResponseData"; import { ThreeDS2Result } from "./threeDS2Result"; @@ -34,6 +35,7 @@ export class PaymentDetailsResponse { "merchantReference"?: string; "order"?: CheckoutOrderResponse | null; "paymentMethod"?: ResponsePaymentMethod | null; + "paymentValidations"?: PaymentValidationsResponse | null; /** * Adyen\'s 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @@ -114,6 +116,12 @@ export class PaymentDetailsResponse { "type": "ResponsePaymentMethod | null", "format": "" }, + { + "name": "paymentValidations", + "baseName": "paymentValidations", + "type": "PaymentValidationsResponse | null", + "format": "" + }, { "name": "pspReference", "baseName": "pspReference", diff --git a/src/typings/checkout/paymentRequest.ts b/src/typings/checkout/paymentRequest.ts index 78964d019..2690a3f19 100644 --- a/src/typings/checkout/paymentRequest.ts +++ b/src/typings/checkout/paymentRequest.ts @@ -26,6 +26,7 @@ import { LineItem } from "./lineItem"; import { Mandate } from "./mandate"; import { MerchantRiskIndicator } from "./merchantRiskIndicator"; import { PaymentRequestPaymentMethod } from "./paymentRequestPaymentMethod"; +import { PaymentValidations } from "./paymentValidations"; import { PlatformChargebackLogic } from "./platformChargebackLogic"; import { RiskData } from "./riskData"; import { ShopperName } from "./shopperName"; @@ -127,7 +128,7 @@ export class PaymentRequest { */ "lineItems"?: Array; /** - * 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 this parameter is left empty, not provided, or not applicable (in case of cross-border transactions), then **shopperStatement** is used. Currently, `localizedShopperStatement` is only supported for payments with Visa, Mastercard, JCB, Diners, and Discover. **Supported characters**: Hiragana, Katakana, Kanji, and alphanumeric. */ "localizedShopperStatement"?: { [key: string]: string; }; "mandate"?: Mandate | null; @@ -159,6 +160,7 @@ export class PaymentRequest { */ "origin"?: string; "paymentMethod": PaymentRequestPaymentMethod; + "paymentValidations"?: PaymentValidations | null; "platformChargebackLogic"?: PlatformChargebackLogic | null; /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. @@ -533,6 +535,12 @@ export class PaymentRequest { "type": "PaymentRequestPaymentMethod", "format": "" }, + { + "name": "paymentValidations", + "baseName": "paymentValidations", + "type": "PaymentValidations | null", + "format": "" + }, { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", diff --git a/src/typings/checkout/paymentResponse.ts b/src/typings/checkout/paymentResponse.ts index a5c8a1552..930f945fe 100644 --- a/src/typings/checkout/paymentResponse.ts +++ b/src/typings/checkout/paymentResponse.ts @@ -11,6 +11,7 @@ import { Amount } from "./amount"; import { CheckoutOrderResponse } from "./checkoutOrderResponse"; import { FraudResult } from "./fraudResult"; import { PaymentResponseAction } from "./paymentResponseAction"; +import { PaymentValidationsResponse } from "./paymentValidationsResponse"; import { ResponsePaymentMethod } from "./responsePaymentMethod"; import { ThreeDS2ResponseData } from "./threeDS2ResponseData"; import { ThreeDS2Result } from "./threeDS2Result"; @@ -34,6 +35,7 @@ export class PaymentResponse { "merchantReference"?: string; "order"?: CheckoutOrderResponse | null; "paymentMethod"?: ResponsePaymentMethod | null; + "paymentValidations"?: PaymentValidationsResponse | null; /** * Adyen\'s 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. > For payment methods that require a redirect or additional action, you will get this value in the `/payments/details` response. */ @@ -110,6 +112,12 @@ export class PaymentResponse { "type": "ResponsePaymentMethod | null", "format": "" }, + { + "name": "paymentValidations", + "baseName": "paymentValidations", + "type": "PaymentValidationsResponse | null", + "format": "" + }, { "name": "pspReference", "baseName": "pspReference", diff --git a/src/typings/checkout/paymentValidations.ts b/src/typings/checkout/paymentValidations.ts new file mode 100644 index 000000000..dc88cf814 --- /dev/null +++ b/src/typings/checkout/paymentValidations.ts @@ -0,0 +1,35 @@ +/* + * 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 { Name } from "./name"; + + +export class PaymentValidations { + "name"?: Name | null; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "name", + "baseName": "name", + "type": "Name | null", + "format": "" + } ]; + + static getAttributeTypeMap() { + return PaymentValidations.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/checkout/paymentValidationsNameResponse.ts b/src/typings/checkout/paymentValidationsNameResponse.ts new file mode 100644 index 000000000..db38dbf97 --- /dev/null +++ b/src/typings/checkout/paymentValidationsNameResponse.ts @@ -0,0 +1,60 @@ +/* + * 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 { PaymentValidationsNameResultRawResponse } from "./paymentValidationsNameResultRawResponse"; +import { PaymentValidationsNameResultResponse } from "./paymentValidationsNameResultResponse"; + + +export class PaymentValidationsNameResponse { + "rawResponse"?: PaymentValidationsNameResultRawResponse | null; + "result"?: PaymentValidationsNameResultResponse | null; + /** + * Informs you if the name validation was performed. Possible values: **performed**, **notPerformed**, **notSupported** + */ + "status"?: PaymentValidationsNameResponse.StatusEnum; + + 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": "rawResponse", + "baseName": "rawResponse", + "type": "PaymentValidationsNameResultRawResponse | null", + "format": "" + }, + { + "name": "result", + "baseName": "result", + "type": "PaymentValidationsNameResultResponse | null", + "format": "" + }, + { + "name": "status", + "baseName": "status", + "type": "PaymentValidationsNameResponse.StatusEnum", + "format": "" + } ]; + + static getAttributeTypeMap() { + return PaymentValidationsNameResponse.attributeTypeMap; + } + + public constructor() { + } +} + +export namespace PaymentValidationsNameResponse { + export enum StatusEnum { + NotPerformed = 'notPerformed', + NotSupported = 'notSupported', + Performed = 'performed' + } +} diff --git a/src/typings/checkout/paymentValidationsNameResultRawResponse.ts b/src/typings/checkout/paymentValidationsNameResultRawResponse.ts new file mode 100644 index 000000000..f8a4bb061 --- /dev/null +++ b/src/typings/checkout/paymentValidationsNameResultRawResponse.ts @@ -0,0 +1,76 @@ +/* + * 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 PaymentValidationsNameResultRawResponse { + /** + * The raw first name validation result that Adyen received from the scheme. First name validation result is only returned for Visa. + */ + "firstName"?: string; + /** + * The raw full name validation result that Adyen received from the scheme. Full name is the only field that is validated for Mastercard + */ + "fullName"?: string; + /** + * The raw last name validation result that Adyen received from the scheme. Last name validation result is only returned for Visa. + */ + "lastName"?: string; + /** + * The raw middle name validation result that Adyen received from the scheme. Middle name validation result is only returned for Visa. + */ + "middleName"?: string; + /** + * The raw name validation status value that Adyen received from the scheme. Only returned for Visa. + */ + "status"?: string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "firstName", + "baseName": "firstName", + "type": "string", + "format": "" + }, + { + "name": "fullName", + "baseName": "fullName", + "type": "string", + "format": "" + }, + { + "name": "lastName", + "baseName": "lastName", + "type": "string", + "format": "" + }, + { + "name": "middleName", + "baseName": "middleName", + "type": "string", + "format": "" + }, + { + "name": "status", + "baseName": "status", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return PaymentValidationsNameResultRawResponse.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/checkout/paymentValidationsNameResultResponse.ts b/src/typings/checkout/paymentValidationsNameResultResponse.ts new file mode 100644 index 000000000..44d3a8b45 --- /dev/null +++ b/src/typings/checkout/paymentValidationsNameResultResponse.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 PaymentValidationsNameResultResponse { + /** + * Informs you if the first name your shopper provided matches the cardholder first name on file at the issuing bank. The first name is only validated for Visa. Possible values: **match**, **partialMatch**, **noMatch** + */ + "firstName"?: string; + /** + * Informs you if the full name your shopper provided matches the cardholder name on file at the issuing bank. The full name is the only field that is validated for Mastercard. Possible values: **match**, **partialMatch**, **noMatch** + */ + "fullName"?: string; + /** + * Informs you if the last name your shopper provided matches the cardholder last name on file at the issuing bank. The last name is only validated for Visa. Possible values: **match**, **partialMatch**, **noMatch** + */ + "lastName"?: string; + /** + * Informs you if the middle name your shopper provided matches the cardholder middle name on file at the issuing bank. The middle name is only validated for Visa. Possible values: **match**, **partialMatch**, **noMatch** + */ + "middleName"?: string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "firstName", + "baseName": "firstName", + "type": "string", + "format": "" + }, + { + "name": "fullName", + "baseName": "fullName", + "type": "string", + "format": "" + }, + { + "name": "lastName", + "baseName": "lastName", + "type": "string", + "format": "" + }, + { + "name": "middleName", + "baseName": "middleName", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return PaymentValidationsNameResultResponse.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/checkout/paymentValidationsResponse.ts b/src/typings/checkout/paymentValidationsResponse.ts new file mode 100644 index 000000000..8df5a636c --- /dev/null +++ b/src/typings/checkout/paymentValidationsResponse.ts @@ -0,0 +1,35 @@ +/* + * 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 { PaymentValidationsNameResponse } from "./paymentValidationsNameResponse"; + + +export class PaymentValidationsResponse { + "name"?: PaymentValidationsNameResponse | null; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "name", + "baseName": "name", + "type": "PaymentValidationsNameResponse | null", + "format": "" + } ]; + + static getAttributeTypeMap() { + return PaymentValidationsResponse.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/checkout/pixDetails.ts b/src/typings/checkout/pixDetails.ts index 768981ae6..b87e675fb 100644 --- a/src/typings/checkout/pixDetails.ts +++ b/src/typings/checkout/pixDetails.ts @@ -24,6 +24,10 @@ export class PixDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -55,6 +59,12 @@ export class PixDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/checkout/pseDetails.ts b/src/typings/checkout/pseDetails.ts index 7c066cd01..5f1e0e8b5 100644 --- a/src/typings/checkout/pseDetails.ts +++ b/src/typings/checkout/pseDetails.ts @@ -30,6 +30,10 @@ export class PseDetails { */ "identificationType": string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * The payment method type. */ "type"?: PseDetails.TypeEnum; @@ -69,6 +73,12 @@ export class PseDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "type", "baseName": "type", diff --git a/src/typings/checkout/rakutenPayDetails.ts b/src/typings/checkout/rakutenPayDetails.ts index bfc8863c5..83445b768 100644 --- a/src/typings/checkout/rakutenPayDetails.ts +++ b/src/typings/checkout/rakutenPayDetails.ts @@ -21,6 +21,10 @@ export class RakutenPayDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -46,6 +50,12 @@ export class RakutenPayDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/checkout/ratepayDetails.ts b/src/typings/checkout/ratepayDetails.ts index 6c3c91575..01f3b60b7 100644 --- a/src/typings/checkout/ratepayDetails.ts +++ b/src/typings/checkout/ratepayDetails.ts @@ -33,6 +33,10 @@ export class RatepayDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -76,6 +80,12 @@ export class RatepayDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/checkout/responseAdditionalDataSepa.ts b/src/typings/checkout/responseAdditionalDataSepa.ts index 1707e01bf..cb0c4b44c 100644 --- a/src/typings/checkout/responseAdditionalDataSepa.ts +++ b/src/typings/checkout/responseAdditionalDataSepa.ts @@ -18,6 +18,10 @@ export class ResponseAdditionalDataSepa { */ "sepadirectdebit_mandateId"?: string; /** + * The date that the the shopper\'s bank account is charged. + */ + "sepadirectdebit_sepadirectdebit_dueDate"?: string; + /** * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF */ "sepadirectdebit_sequenceType"?: string; @@ -39,6 +43,12 @@ export class ResponseAdditionalDataSepa { "type": "string", "format": "" }, + { + "name": "sepadirectdebit_sepadirectdebit_dueDate", + "baseName": "sepadirectdebit.sepadirectdebit.dueDate", + "type": "string", + "format": "" + }, { "name": "sepadirectdebit_sequenceType", "baseName": "sepadirectdebit.sequenceType", diff --git a/src/typings/checkout/rivertyDetails.ts b/src/typings/checkout/rivertyDetails.ts index 56ce02862..e9bf5d913 100644 --- a/src/typings/checkout/rivertyDetails.ts +++ b/src/typings/checkout/rivertyDetails.ts @@ -41,6 +41,10 @@ export class RivertyDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -100,6 +104,12 @@ export class RivertyDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/checkout/samsungPayDetails.ts b/src/typings/checkout/samsungPayDetails.ts index 02036a207..100327be3 100644 --- a/src/typings/checkout/samsungPayDetails.ts +++ b/src/typings/checkout/samsungPayDetails.ts @@ -29,6 +29,10 @@ export class SamsungPayDetails { */ "samsungPayToken": string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -66,6 +70,12 @@ export class SamsungPayDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/checkout/sepaDirectDebitDetails.ts b/src/typings/checkout/sepaDirectDebitDetails.ts index 615f8fcc6..39cbbc8e8 100644 --- a/src/typings/checkout/sepaDirectDebitDetails.ts +++ b/src/typings/checkout/sepaDirectDebitDetails.ts @@ -14,6 +14,10 @@ export class SepaDirectDebitDetails { */ "checkoutAttemptId"?: string; /** + * The date that the the shopper\'s bank account is charged. + */ + "dueDate"?: string; + /** * The International Bank Account Number (IBAN). */ "iban": string; @@ -29,6 +33,10 @@ export class SepaDirectDebitDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -52,6 +60,12 @@ export class SepaDirectDebitDetails { "type": "string", "format": "" }, + { + "name": "dueDate", + "baseName": "dueDate", + "type": "string", + "format": "" + }, { "name": "iban", "baseName": "iban", @@ -70,6 +84,12 @@ export class SepaDirectDebitDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/checkout/storedPaymentMethodDetails.ts b/src/typings/checkout/storedPaymentMethodDetails.ts index ba8463e0d..6ecacd23f 100644 --- a/src/typings/checkout/storedPaymentMethodDetails.ts +++ b/src/typings/checkout/storedPaymentMethodDetails.ts @@ -21,6 +21,10 @@ export class StoredPaymentMethodDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -46,6 +50,12 @@ export class StoredPaymentMethodDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/checkout/storedPaymentMethodResource.ts b/src/typings/checkout/storedPaymentMethodResource.ts index d4bdff68b..637bc4fdd 100644 --- a/src/typings/checkout/storedPaymentMethodResource.ts +++ b/src/typings/checkout/storedPaymentMethodResource.ts @@ -7,6 +7,8 @@ * Do not edit this class manually. */ +import { TokenMandate } from "./tokenMandate"; + export class StoredPaymentMethodResource { /** @@ -49,6 +51,7 @@ export class StoredPaymentMethodResource { * The last four digits of the PAN. */ "lastFour"?: string; + "mandate"?: TokenMandate | null; /** * The display name of the stored payment method. */ @@ -143,6 +146,12 @@ export class StoredPaymentMethodResource { "type": "string", "format": "" }, + { + "name": "mandate", + "baseName": "mandate", + "type": "TokenMandate | null", + "format": "" + }, { "name": "name", "baseName": "name", diff --git a/src/typings/checkout/tokenMandate.ts b/src/typings/checkout/tokenMandate.ts new file mode 100644 index 000000000..af89535a2 --- /dev/null +++ b/src/typings/checkout/tokenMandate.ts @@ -0,0 +1,207 @@ +/* + * 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 TokenMandate { + /** + * The type of account identifier for the masked account number. + */ + "accountIdType"?: string; + /** + * The billing amount (in minor units) of the recurring transactions. + */ + "amount": string; + /** + * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. + */ + "amountRule"?: TokenMandate.AmountRuleEnum; + /** + * The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. + */ + "billingAttemptsRule"?: TokenMandate.BillingAttemptsRuleEnum; + /** + * The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`. + */ + "billingDay"?: string; + /** + * The number of transactions that can be performed within the given frequency. + */ + "count"?: string; + /** + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + */ + "currency": string; + /** + * End date of the billing plan, in YYYY-MM-DD format. + */ + "endsAt": string; + /** + * The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. + */ + "frequency": TokenMandate.FrequencyEnum; + /** + * The unique identifier of the mandate. + */ + "mandateId": string; + /** + * The masked account number associated with the mandate. + */ + "maskedAccountId"?: string; + /** + * The provider-specific identifier for this mandate. + */ + "providerId": string; + /** + * Additional remarks or notes about the mandate. + */ + "remarks"?: string; + /** + * Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. + */ + "startsAt"?: string; + /** + * The status of the mandate. Examples : active, revoked, completed, expired + */ + "status": string; + /** + * The transaction variant used for this mandate. + */ + "txVariant": string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "accountIdType", + "baseName": "accountIdType", + "type": "string", + "format": "" + }, + { + "name": "amount", + "baseName": "amount", + "type": "string", + "format": "" + }, + { + "name": "amountRule", + "baseName": "amountRule", + "type": "TokenMandate.AmountRuleEnum", + "format": "" + }, + { + "name": "billingAttemptsRule", + "baseName": "billingAttemptsRule", + "type": "TokenMandate.BillingAttemptsRuleEnum", + "format": "" + }, + { + "name": "billingDay", + "baseName": "billingDay", + "type": "string", + "format": "" + }, + { + "name": "count", + "baseName": "count", + "type": "string", + "format": "" + }, + { + "name": "currency", + "baseName": "currency", + "type": "string", + "format": "" + }, + { + "name": "endsAt", + "baseName": "endsAt", + "type": "string", + "format": "" + }, + { + "name": "frequency", + "baseName": "frequency", + "type": "TokenMandate.FrequencyEnum", + "format": "" + }, + { + "name": "mandateId", + "baseName": "mandateId", + "type": "string", + "format": "" + }, + { + "name": "maskedAccountId", + "baseName": "maskedAccountId", + "type": "string", + "format": "" + }, + { + "name": "providerId", + "baseName": "providerId", + "type": "string", + "format": "" + }, + { + "name": "remarks", + "baseName": "remarks", + "type": "string", + "format": "" + }, + { + "name": "startsAt", + "baseName": "startsAt", + "type": "string", + "format": "" + }, + { + "name": "status", + "baseName": "status", + "type": "string", + "format": "" + }, + { + "name": "txVariant", + "baseName": "txVariant", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return TokenMandate.attributeTypeMap; + } + + public constructor() { + } +} + +export namespace TokenMandate { + export enum AmountRuleEnum { + Max = 'max', + Exact = 'exact' + } + export enum BillingAttemptsRuleEnum { + On = 'on', + Before = 'before', + After = 'after' + } + export enum FrequencyEnum { + Adhoc = 'adhoc', + Daily = 'daily', + Weekly = 'weekly', + BiWeekly = 'biWeekly', + Monthly = 'monthly', + Quarterly = 'quarterly', + HalfYearly = 'halfYearly', + Yearly = 'yearly' + } +} diff --git a/src/typings/checkout/twintDetails.ts b/src/typings/checkout/twintDetails.ts index 25180ac79..7857677fc 100644 --- a/src/typings/checkout/twintDetails.ts +++ b/src/typings/checkout/twintDetails.ts @@ -21,6 +21,10 @@ export class TwintDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -50,6 +54,12 @@ export class TwintDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/checkout/upiCollectDetails.ts b/src/typings/checkout/upiCollectDetails.ts index d6cdc918f..699c39d32 100644 --- a/src/typings/checkout/upiCollectDetails.ts +++ b/src/typings/checkout/upiCollectDetails.ts @@ -25,6 +25,10 @@ export class UpiCollectDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. */ "shopperNotificationReference"?: string; @@ -64,6 +68,12 @@ export class UpiCollectDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "shopperNotificationReference", "baseName": "shopperNotificationReference", diff --git a/src/typings/checkout/upiIntentDetails.ts b/src/typings/checkout/upiIntentDetails.ts index f8e45fd07..f66f39448 100644 --- a/src/typings/checkout/upiIntentDetails.ts +++ b/src/typings/checkout/upiIntentDetails.ts @@ -29,6 +29,10 @@ export class UpiIntentDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. */ "shopperNotificationReference"?: string; @@ -70,6 +74,12 @@ export class UpiIntentDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "shopperNotificationReference", "baseName": "shopperNotificationReference", diff --git a/src/typings/checkout/upiQrDetails.ts b/src/typings/checkout/upiQrDetails.ts index b51daf290..5477b5ccc 100644 --- a/src/typings/checkout/upiQrDetails.ts +++ b/src/typings/checkout/upiQrDetails.ts @@ -25,6 +25,10 @@ export class UpiQrDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. */ "shopperNotificationReference"?: string; @@ -60,6 +64,12 @@ export class UpiQrDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "shopperNotificationReference", "baseName": "shopperNotificationReference", diff --git a/src/typings/checkout/vippsDetails.ts b/src/typings/checkout/vippsDetails.ts index c75ffc21f..de899df41 100644 --- a/src/typings/checkout/vippsDetails.ts +++ b/src/typings/checkout/vippsDetails.ts @@ -21,6 +21,10 @@ export class VippsDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -50,6 +54,12 @@ export class VippsDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/checkout/visaCheckoutDetails.ts b/src/typings/checkout/visaCheckoutDetails.ts index b4279b4f9..6711e157e 100644 --- a/src/typings/checkout/visaCheckoutDetails.ts +++ b/src/typings/checkout/visaCheckoutDetails.ts @@ -18,6 +18,10 @@ export class VisaCheckoutDetails { */ "fundingSource"?: VisaCheckoutDetails.FundingSourceEnum; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * **visacheckout** */ "type"?: VisaCheckoutDetails.TypeEnum; @@ -43,6 +47,12 @@ export class VisaCheckoutDetails { "type": "VisaCheckoutDetails.FundingSourceEnum", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "type", "baseName": "type", diff --git a/src/typings/checkout/weChatPayDetails.ts b/src/typings/checkout/weChatPayDetails.ts index 0e574c9fc..7454097e0 100644 --- a/src/typings/checkout/weChatPayDetails.ts +++ b/src/typings/checkout/weChatPayDetails.ts @@ -14,6 +14,10 @@ export class WeChatPayDetails { */ "checkoutAttemptId"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * **wechatpay** */ "type"?: WeChatPayDetails.TypeEnum; @@ -29,6 +33,12 @@ export class WeChatPayDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "type", "baseName": "type", diff --git a/src/typings/checkout/weChatPayMiniProgramDetails.ts b/src/typings/checkout/weChatPayMiniProgramDetails.ts index 50c0c398a..54b350711 100644 --- a/src/typings/checkout/weChatPayMiniProgramDetails.ts +++ b/src/typings/checkout/weChatPayMiniProgramDetails.ts @@ -16,6 +16,21 @@ export class WeChatPayMiniProgramDetails { "checkoutAttemptId"?: string; "openid"?: string; /** + * This is the `recurringDetailReference` returned in the response when you created the token. + * + * @deprecated since Adyen Checkout API v49 + * Use `storedPaymentMethodId` instead. + */ + "recurringDetailReference"?: string; + /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** + * This is the `recurringDetailReference` returned in the response when you created the token. + */ + "storedPaymentMethodId"?: string; + /** * **wechatpayMiniProgram** */ "type"?: WeChatPayMiniProgramDetails.TypeEnum; @@ -43,6 +58,24 @@ export class WeChatPayMiniProgramDetails { "type": "string", "format": "" }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string", + "format": "" + }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string", + "format": "" + }, { "name": "type", "baseName": "type", diff --git a/src/typings/checkout/zipDetails.ts b/src/typings/checkout/zipDetails.ts index 86458bed1..4140a38b4 100644 --- a/src/typings/checkout/zipDetails.ts +++ b/src/typings/checkout/zipDetails.ts @@ -25,6 +25,10 @@ export class ZipDetails { */ "recurringDetailReference"?: string; /** + * Base64-encoded JSON object containing SDK related parameters required by the SDK + */ + "sdkData"?: string; + /** * This is the `recurringDetailReference` returned in the response when you created the token. */ "storedPaymentMethodId"?: string; @@ -56,6 +60,12 @@ export class ZipDetails { "type": "string", "format": "" }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "string", + "format": "" + }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", diff --git a/src/typings/legalEntityManagement/financialReport.ts b/src/typings/legalEntityManagement/financialReport.ts index 5411aa856..58239ac6c 100644 --- a/src/typings/legalEntityManagement/financialReport.ts +++ b/src/typings/legalEntityManagement/financialReport.ts @@ -24,7 +24,7 @@ export class FinancialReport { /** * The date the financial data were provided, in YYYY-MM-DD format. */ - "dateOfFinancialData": string; + "dateOfFinancialData"?: string; /** * The number of employees of the business. */ diff --git a/src/typings/management/affirmInfo.ts b/src/typings/management/affirmInfo.ts index b64e42c38..4110f9841 100644 --- a/src/typings/management/affirmInfo.ts +++ b/src/typings/management/affirmInfo.ts @@ -9,6 +9,10 @@ export class AffirmInfo { + /** + * Merchant price plan + */ + "pricePlan"?: AffirmInfo.PricePlanEnum; /** * Merchant support email */ @@ -19,6 +23,12 @@ export class AffirmInfo { static readonly mapping: {[index: string]: string} | undefined = undefined; static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "pricePlan", + "baseName": "pricePlan", + "type": "AffirmInfo.PricePlanEnum", + "format": "" + }, { "name": "supportEmail", "baseName": "supportEmail", @@ -34,3 +44,10 @@ export class AffirmInfo { } } +export namespace AffirmInfo { + export enum PricePlanEnum { + Bronze = 'BRONZE', + Silver = 'SILVER', + Gold = 'GOLD' + } +} diff --git a/src/typings/management/cardholderReceipt.ts b/src/typings/management/cardholderReceipt.ts index 12b669ab7..baecfc4b0 100644 --- a/src/typings/management/cardholderReceipt.ts +++ b/src/typings/management/cardholderReceipt.ts @@ -10,7 +10,7 @@ export class CardholderReceipt { /** - * A custom header to show on the shopper receipt for an authorised transaction. Allows one or two comma-separated header lines, and blank lines. For example, `header,header,filler` + * The structure of the header to show on the shopper receipt. You can define the order of one or two header lines and blank lines. For example, **header1,header2,filler**. The text of the header lines is defined in the Customer Area under **In-person payments** > **Terminal settings** > **Receipts** in the **Receipt lines** block. */ "headerForAuthorizedReceipt"?: string; diff --git a/src/typings/management/key.ts b/src/typings/management/key.ts index f5173f57f..17a7c82d6 100644 --- a/src/typings/management/key.ts +++ b/src/typings/management/key.ts @@ -14,7 +14,7 @@ export class Key { */ "identifier"?: string; /** - * The secure passphrase to protect the shared key. Must consist of: * At least 12 characters. * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase letter: `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special character. Limited to the following: `~`, `@`, `$`, `%`, `^`, `&`, `*`, `(`, `)`, `_`, `+`, `=`, `}`, `{`, `]`, `[`, `;`, `:`, `?`, `.`, `,`, `>`, `<`. + * The secure passphrase to protect the shared key. Must consist of: * At least 12 characters. * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase letter: `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special character. Limited to the following: `~`, `!`, `@`, `#`, `$`, `%`, `^`, `&`, `*`, `(`, `)`, `_`, `+`, `=`, `}`, `{`, `]`, `[`, `;`, `:`, `?`, `.`, `,`, `>`, `<`. */ "passphrase"?: string; /** diff --git a/src/typings/management/models.ts b/src/typings/management/models.ts index 4b9b73c0f..99ae1b5bb 100644 --- a/src/typings/management/models.ts +++ b/src/typings/management/models.ts @@ -143,6 +143,7 @@ export * from "./storeSplitConfiguration" export * from "./subMerchantData" export * from "./supportedCardTypes" export * from "./surcharge" +export * from "./svsInfo" export * from "./swishInfo" export * from "./tapToPay" export * from "./terminal" @@ -192,6 +193,7 @@ export * from "./uploadAndroidAppResponse" export * from "./uploadAndroidCertificateResponse" export * from "./url" export * from "./user" +export * from "./valueLinkInfo" export * from "./vippsInfo" export * from "./weChatPayInfo" export * from "./weChatPayPosInfo" diff --git a/src/typings/management/objectSerializer.ts b/src/typings/management/objectSerializer.ts index 5d950b570..919de89a9 100644 --- a/src/typings/management/objectSerializer.ts +++ b/src/typings/management/objectSerializer.ts @@ -145,6 +145,7 @@ import { StoreSplitConfiguration } from "./storeSplitConfiguration"; import { SubMerchantData } from "./subMerchantData"; import { SupportedCardTypes } from "./supportedCardTypes"; import { Surcharge } from "./surcharge"; +import { SvsInfo } from "./svsInfo"; import { SwishInfo } from "./swishInfo"; import { TapToPay } from "./tapToPay"; import { Terminal } from "./terminal"; @@ -194,6 +195,7 @@ import { UploadAndroidAppResponse } from "./uploadAndroidAppResponse"; import { UploadAndroidCertificateResponse } from "./uploadAndroidCertificateResponse"; import { Url } from "./url"; import { User } from "./user"; +import { ValueLinkInfo } from "./valueLinkInfo"; import { VippsInfo } from "./vippsInfo"; import { WeChatPayInfo } from "./weChatPayInfo"; import { WeChatPayPosInfo } from "./weChatPayPosInfo"; @@ -215,6 +217,7 @@ let primitives = [ let enumsMap: Set = new Set([ "AccelInfo.ProcessingTypeEnum", + "AffirmInfo.PricePlanEnum", "AmexInfo.ServiceLevelEnum", "AndroidApp.StatusEnum", "Connectivity.SimcardStatusEnum", @@ -289,6 +292,7 @@ let enumsMap: Set = new Set([ "UpdateSplitConfigurationLogicRequest.SurchargeEnum", "UpdateSplitConfigurationLogicRequest.TipEnum", "UpdateStoreRequest.StatusEnum", + "ValueLinkInfo.PinSupportEnum", "Webhook.CommunicationFormatEnum", "Webhook.EncryptionProtocolEnum", "Webhook.FilterMerchantAccountTypeEnum", @@ -441,6 +445,7 @@ let typeMap: {[index: string]: any} = { "SubMerchantData": SubMerchantData, "SupportedCardTypes": SupportedCardTypes, "Surcharge": Surcharge, + "SvsInfo": SvsInfo, "SwishInfo": SwishInfo, "TapToPay": TapToPay, "Terminal": Terminal, @@ -490,6 +495,7 @@ let typeMap: {[index: string]: any} = { "UploadAndroidCertificateResponse": UploadAndroidCertificateResponse, "Url": Url, "User": User, + "ValueLinkInfo": ValueLinkInfo, "VippsInfo": VippsInfo, "WeChatPayInfo": WeChatPayInfo, "WeChatPayPosInfo": WeChatPayPosInfo, diff --git a/src/typings/management/paymentMethod.ts b/src/typings/management/paymentMethod.ts index cc55f3237..2ed413642 100644 --- a/src/typings/management/paymentMethod.ts +++ b/src/typings/management/paymentMethod.ts @@ -32,9 +32,11 @@ import { SepaDirectDebitInfo } from "./sepaDirectDebitInfo"; import { SodexoInfo } from "./sodexoInfo"; import { SofortInfo } from "./sofortInfo"; import { StarInfo } from "./starInfo"; +import { SvsInfo } from "./svsInfo"; import { SwishInfo } from "./swishInfo"; import { TicketInfo } from "./ticketInfo"; import { TwintInfo } from "./twintInfo"; +import { ValueLinkInfo } from "./valueLinkInfo"; import { VippsInfo } from "./vippsInfo"; import { WeChatPayInfo } from "./weChatPayInfo"; import { WeChatPayPosInfo } from "./weChatPayPosInfo"; @@ -115,6 +117,7 @@ export class PaymentMethod { * The unique identifier of the store for which to configure the payment method, if any. */ "storeIds"?: Array; + "svs"?: SvsInfo | null; "swish"?: SwishInfo | null; "ticket"?: TicketInfo | null; "twint"?: TwintInfo | null; @@ -122,6 +125,7 @@ export class PaymentMethod { * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). */ "type"?: string; + "valueLink"?: ValueLinkInfo | null; /** * Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** */ @@ -400,6 +404,12 @@ export class PaymentMethod { "type": "Array", "format": "" }, + { + "name": "svs", + "baseName": "svs", + "type": "SvsInfo | null", + "format": "" + }, { "name": "swish", "baseName": "swish", @@ -424,6 +434,12 @@ export class PaymentMethod { "type": "string", "format": "" }, + { + "name": "valueLink", + "baseName": "valueLink", + "type": "ValueLinkInfo | null", + "format": "" + }, { "name": "verificationStatus", "baseName": "verificationStatus", diff --git a/src/typings/management/paymentMethodResponse.ts b/src/typings/management/paymentMethodResponse.ts index 74b38ec7a..3a3151fbd 100644 --- a/src/typings/management/paymentMethodResponse.ts +++ b/src/typings/management/paymentMethodResponse.ts @@ -140,6 +140,7 @@ export namespace PaymentMethodResponse { Jcb = 'jcb', Klarna = 'klarna', KlarnaAccount = 'klarna_account', + KlarnaB2b = 'klarna_b2b', KlarnaPaynow = 'klarna_paynow', LeCard = 'le_card', LeCardCredit = 'le_card_credit', @@ -181,6 +182,7 @@ export namespace PaymentMethodResponse { Sepadirectdebit = 'sepadirectdebit', Sodexo = 'sodexo', Star = 'star', + Svs = 'svs', Swish = 'swish', Ticket = 'ticket', TodoGiftcard = 'todo_giftcard', @@ -193,6 +195,7 @@ export namespace PaymentMethodResponse { UpBrazilPrepaid = 'up_brazil_prepaid', ValeRefeicao = 'vale_refeicao', ValeRefeicaoPrepaid = 'vale_refeicao_prepaid', + ValueLink = 'valueLink', VegasCard = 'vegas_card', VegasCardCredit = 'vegas_card_credit', VegasCardDebit = 'vegas_card_debit', diff --git a/src/typings/management/paymentMethodSetupInfo.ts b/src/typings/management/paymentMethodSetupInfo.ts index 41dd16c07..a408c6f1d 100644 --- a/src/typings/management/paymentMethodSetupInfo.ts +++ b/src/typings/management/paymentMethodSetupInfo.ts @@ -32,9 +32,11 @@ import { SepaDirectDebitInfo } from "./sepaDirectDebitInfo"; import { SodexoInfo } from "./sodexoInfo"; import { SofortInfo } from "./sofortInfo"; import { StarInfo } from "./starInfo"; +import { SvsInfo } from "./svsInfo"; import { SwishInfo } from "./swishInfo"; import { TicketInfo } from "./ticketInfo"; import { TwintInfo } from "./twintInfo"; +import { ValueLinkInfo } from "./valueLinkInfo"; import { VippsInfo } from "./vippsInfo"; import { WeChatPayInfo } from "./weChatPayInfo"; import { WeChatPayPosInfo } from "./weChatPayPosInfo"; @@ -103,6 +105,7 @@ export class PaymentMethodSetupInfo { * The unique identifier of the store for which to configure the payment method, if any. */ "storeIds"?: Array; + "svs"?: SvsInfo | null; "swish"?: SwishInfo | null; "ticket"?: TicketInfo | null; "twint"?: TwintInfo | null; @@ -110,6 +113,7 @@ export class PaymentMethodSetupInfo { * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). */ "type": PaymentMethodSetupInfo.TypeEnum; + "valueLink"?: ValueLinkInfo | null; "vipps"?: VippsInfo | null; "visa"?: GenericPmWithTdiInfo | null; "wechatpay"?: WeChatPayInfo | null; @@ -366,6 +370,12 @@ export class PaymentMethodSetupInfo { "type": "Array", "format": "" }, + { + "name": "svs", + "baseName": "svs", + "type": "SvsInfo | null", + "format": "" + }, { "name": "swish", "baseName": "swish", @@ -390,6 +400,12 @@ export class PaymentMethodSetupInfo { "type": "PaymentMethodSetupInfo.TypeEnum", "format": "" }, + { + "name": "valueLink", + "baseName": "valueLink", + "type": "ValueLinkInfo | null", + "format": "" + }, { "name": "vipps", "baseName": "vipps", @@ -495,6 +511,7 @@ export namespace PaymentMethodSetupInfo { Jcb = 'jcb', Klarna = 'klarna', KlarnaAccount = 'klarna_account', + KlarnaB2b = 'klarna_b2b', KlarnaPaynow = 'klarna_paynow', LeCard = 'le_card', LeCardCredit = 'le_card_credit', @@ -536,6 +553,7 @@ export namespace PaymentMethodSetupInfo { Sepadirectdebit = 'sepadirectdebit', Sodexo = 'sodexo', Star = 'star', + Svs = 'svs', Swish = 'swish', Ticket = 'ticket', TodoGiftcard = 'todo_giftcard', @@ -548,6 +566,7 @@ export namespace PaymentMethodSetupInfo { UpBrazilPrepaid = 'up_brazil_prepaid', ValeRefeicao = 'vale_refeicao', ValeRefeicaoPrepaid = 'vale_refeicao_prepaid', + ValueLink = 'valueLink', VegasCard = 'vegas_card', VegasCardCredit = 'vegas_card_credit', VegasCardDebit = 'vegas_card_debit', diff --git a/src/typings/management/svsInfo.ts b/src/typings/management/svsInfo.ts new file mode 100644 index 000000000..1c6d32f6d --- /dev/null +++ b/src/typings/management/svsInfo.ts @@ -0,0 +1,46 @@ +/* + * The version of the OpenAPI document: v3 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class SvsInfo { + /** + * Authorisation Mid + */ + "authorisationMid": string; + /** + * CurrencyCode + */ + "currencyCode": string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "authorisationMid", + "baseName": "authorisationMid", + "type": "string", + "format": "" + }, + { + "name": "currencyCode", + "baseName": "currencyCode", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return SvsInfo.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/management/valueLinkInfo.ts b/src/typings/management/valueLinkInfo.ts new file mode 100644 index 000000000..1a8c3d8d9 --- /dev/null +++ b/src/typings/management/valueLinkInfo.ts @@ -0,0 +1,72 @@ +/* + * The version of the OpenAPI document: v3 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ValueLinkInfo { + /** + * Authorisation Mid + */ + "authorisationMid": string; + /** + * PIN Support. For ecommerce, PIN is required. + */ + "pinSupport": ValueLinkInfo.PinSupportEnum; + /** + * Submitter ID + */ + "submitterId"?: string; + /** + * Terminal ID + */ + "terminalId"?: string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "authorisationMid", + "baseName": "authorisationMid", + "type": "string", + "format": "" + }, + { + "name": "pinSupport", + "baseName": "pinSupport", + "type": "ValueLinkInfo.PinSupportEnum", + "format": "" + }, + { + "name": "submitterId", + "baseName": "submitterId", + "type": "string", + "format": "" + }, + { + "name": "terminalId", + "baseName": "terminalId", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return ValueLinkInfo.attributeTypeMap; + } + + public constructor() { + } +} + +export namespace ValueLinkInfo { + export enum PinSupportEnum { + Pin = 'PIN', + NoPin = 'NO PIN' + } +} diff --git a/src/typings/payment/additionalDataLevel23.ts b/src/typings/payment/additionalDataLevel23.ts index 98adcefa4..ea7a2d959 100644 --- a/src/typings/payment/additionalDataLevel23.ts +++ b/src/typings/payment/additionalDataLevel23.ts @@ -34,7 +34,7 @@ export class AdditionalDataLevel23 { */ "enhancedSchemeData_freightAmount"?: string; /** - * 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. + * The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.ungm.org/public/unspsc) * [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; /** diff --git a/src/typings/payment/paymentRequest.ts b/src/typings/payment/paymentRequest.ts index 302171ae4..4d47e7618 100644 --- a/src/typings/payment/paymentRequest.ts +++ b/src/typings/payment/paymentRequest.ts @@ -76,7 +76,7 @@ export class PaymentRequest { "fundingSource"?: PaymentRequest.FundingSourceEnum; "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 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. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If this parameter is left empty, not provided, or not applicable (in case of cross-border transactions), then **shopperStatement** is used. Currently, `localizedShopperStatement` is only supported for payments with Visa, Mastercard, JCB, Diners, and Discover. **Supported characters**: Hiragana, Katakana, Kanji, and alphanumeric. */ "localizedShopperStatement"?: { [key: string]: string; }; "mandate"?: Mandate | null; diff --git a/src/typings/payment/paymentRequest3d.ts b/src/typings/payment/paymentRequest3d.ts index 77e54730a..33e2103bb 100644 --- a/src/typings/payment/paymentRequest3d.ts +++ b/src/typings/payment/paymentRequest3d.ts @@ -56,7 +56,7 @@ export class PaymentRequest3d { "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 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. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If this parameter is left empty, not provided, or not applicable (in case of cross-border transactions), then **shopperStatement** is used. Currently, `localizedShopperStatement` is only supported for payments with Visa, Mastercard, JCB, Diners, and Discover. **Supported characters**: Hiragana, Katakana, Kanji, and alphanumeric. */ "localizedShopperStatement"?: { [key: string]: string; }; /** diff --git a/src/typings/payment/paymentRequest3ds2.ts b/src/typings/payment/paymentRequest3ds2.ts index f1e5b780f..13c28f840 100644 --- a/src/typings/payment/paymentRequest3ds2.ts +++ b/src/typings/payment/paymentRequest3ds2.ts @@ -57,7 +57,7 @@ export class PaymentRequest3ds2 { "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 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. + * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If this parameter is left empty, not provided, or not applicable (in case of cross-border transactions), then **shopperStatement** is used. Currently, `localizedShopperStatement` is only supported for payments with Visa, Mastercard, JCB, Diners, and Discover. **Supported characters**: Hiragana, Katakana, Kanji, and alphanumeric. */ "localizedShopperStatement"?: { [key: string]: string; }; /** diff --git a/src/typings/payment/responseAdditionalDataSepa.ts b/src/typings/payment/responseAdditionalDataSepa.ts index 43e2c5931..a6579835e 100644 --- a/src/typings/payment/responseAdditionalDataSepa.ts +++ b/src/typings/payment/responseAdditionalDataSepa.ts @@ -18,6 +18,10 @@ export class ResponseAdditionalDataSepa { */ "sepadirectdebit_mandateId"?: string; /** + * The date that the the shopper\'s bank account is charged. + */ + "sepadirectdebit_sepadirectdebit_dueDate"?: string; + /** * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF */ "sepadirectdebit_sequenceType"?: string; @@ -39,6 +43,12 @@ export class ResponseAdditionalDataSepa { "type": "string", "format": "" }, + { + "name": "sepadirectdebit_sepadirectdebit_dueDate", + "baseName": "sepadirectdebit.sepadirectdebit.dueDate", + "type": "string", + "format": "" + }, { "name": "sepadirectdebit_sequenceType", "baseName": "sepadirectdebit.sequenceType", diff --git a/src/typings/transferWebhooks/transferDataTracking.ts b/src/typings/transferWebhooks/transferDataTracking.ts index 3d942bc34..336ee1789 100644 --- a/src/typings/transferWebhooks/transferDataTracking.ts +++ b/src/typings/transferWebhooks/transferDataTracking.ts @@ -30,11 +30,7 @@ export type TransferDataTracking = ConfirmationTrackingData | EstimationTracking */ export class TransferDataTrackingClass { - static readonly discriminator: string | undefined = "type"; + static readonly discriminator: string = "type"; - static readonly mapping: {[index: string]: string} | undefined = { - "confirmation": "ConfirmationTrackingData", - "estimation": "EstimationTrackingData", - "internalReview": "InternalReviewTrackingData" - }; + static readonly mapping: {[index: string]: string} | undefined = undefined; }