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/typings/balancePlatform/amount.ts b/src/typings/balancePlatform/amount.ts index e35a6e195..edc8881f6 100644 --- a/src/typings/balancePlatform/amount.ts +++ b/src/typings/balancePlatform/amount.ts @@ -10,11 +10,11 @@ export class Amount { /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes) of the amount. */ "currency": string; /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). + * The numeric value of the amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ "value": number; 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/bulkAddress.ts b/src/typings/balancePlatform/bulkAddress.ts index 6b5251626..d396a5160 100644 --- a/src/typings/balancePlatform/bulkAddress.ts +++ b/src/typings/balancePlatform/bulkAddress.ts @@ -46,6 +46,10 @@ export class BulkAddress { */ "mobile"?: string; /** + * The recipient’s name (person or contact), for example ‘John Doe’. + */ + "name"?: string; + /** * The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries. */ "postalCode"?: string; @@ -117,6 +121,12 @@ export class BulkAddress { "type": "string", "format": "" }, + { + "name": "name", + "baseName": "name", + "type": "string", + "format": "" + }, { "name": "postalCode", "baseName": "postalCode", diff --git a/src/typings/balancePlatform/card.ts b/src/typings/balancePlatform/card.ts index 3fd874fc3..b80c5c98f 100644 --- a/src/typings/balancePlatform/card.ts +++ b/src/typings/balancePlatform/card.ts @@ -49,7 +49,7 @@ export class Card { /** * The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards. */ - "number": string; + "number"?: string; /** * The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. */ diff --git a/src/typings/balancePlatform/cardConfiguration.ts b/src/typings/balancePlatform/cardConfiguration.ts index 5d0757c1d..322ab5b8b 100644 --- a/src/typings/balancePlatform/cardConfiguration.ts +++ b/src/typings/balancePlatform/cardConfiguration.ts @@ -12,7 +12,7 @@ import { BulkAddress } from "./bulkAddress"; export class CardConfiguration { /** - * Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions. + * The activation label attached to the card that contains the activation instructions. This field overrides the activation label design ID defined in the card configuration profile. */ "activation"?: string; /** @@ -21,31 +21,31 @@ export class CardConfiguration { "activationUrl"?: string; "bulkAddress"?: BulkAddress | null; /** - * The ID of the card image. This is the image that will be printed on the full front of the card. + * The unique identifier of the card image. This image is printed on the full front of the card. */ "cardImageId"?: string; /** - * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. + * The letter or packaging to which the card is attached. This field overrides the carrier design ID defined in the card configuration profile. */ "carrier"?: string; /** - * The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. + * The unique identifier of the carrier image. This image is printed on the letter to which the card is attached. */ "carrierImageId"?: string; /** - * The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the profile are applied to the card, unless you provide other fields to override them. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. + * The unique identifier of the card configuration profile that contains the settings that are applied to the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. You can override some of the existing settings in the configuration profile by providing the corresponding fields in the `configuration` object. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. */ "configurationProfileId": string; /** - * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. + * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. This field overrides the existing currency setting on the card configuration profile. */ "currency"?: string; /** - * Overrides the envelope design ID defined in the `configurationProfileId`. + * Overrides the envelope design ID defined in the card configuration profile. */ "envelope"?: string; /** - * Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card. + * Any additional material, such as marketing material, that is shipped together with the card. This field overrides the insert design ID defined in the card configuration profile. */ "insert"?: string; /** @@ -53,15 +53,15 @@ export class CardConfiguration { */ "language"?: string; /** - * The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner. + * The unique identifier of the logo image. This image is printed on the partial front of the card, for example, a logo on the upper right corner. */ "logoImageId"?: string; /** - * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. + * The letter on which the PIN of the card is printed. This field overrides the PIN mailer design ID defined in the card configuration profile. */ "pinMailer"?: string; /** - * Overrides the logistics company defined in the `configurationProfileId`. + * The logistics company that ships the card. This field overrides the logistics company defined in the card configuration profile. */ "shipmentMethod"?: string; diff --git a/src/typings/balancePlatform/createSweepConfigurationV2.ts b/src/typings/balancePlatform/createSweepConfigurationV2.ts index 5006ce693..0cbd52823 100644 --- a/src/typings/balancePlatform/createSweepConfigurationV2.ts +++ b/src/typings/balancePlatform/createSweepConfigurationV2.ts @@ -27,7 +27,7 @@ export class CreateSweepConfigurationV2 { */ "description"?: string; /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: For normal, low-value transactions. * **fast**: A faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: The fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: For instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: For high-value transfers to a recipient in a different country. * **internal**: For transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). */ "priorities"?: Array; /** @@ -201,6 +201,7 @@ export namespace CreateSweepConfigurationV2 { RefusedByCustomer = 'refusedByCustomer', RouteNotFound = 'routeNotFound', ScaFailed = 'scaFailed', + SchemeAdvice = 'schemeAdvice', TransferInstrumentDoesNotExist = 'transferInstrumentDoesNotExist', Unknown = 'unknown' } diff --git a/src/typings/balancePlatform/deviceInfo.ts b/src/typings/balancePlatform/deviceInfo.ts index 64430e442..b7dd06cd7 100644 --- a/src/typings/balancePlatform/deviceInfo.ts +++ b/src/typings/balancePlatform/deviceInfo.ts @@ -10,120 +10,30 @@ export class DeviceInfo { /** - * The technology used to capture the card details. - */ - "cardCaptureTechnology"?: string; - /** - * The name of the device. - */ - "deviceName"?: string; - /** - * The form factor of the device to be provisioned. + * The type of device used to provision the network token. */ "formFactor"?: string; /** - * The IMEI number of the device being provisioned. - */ - "imei"?: string; - /** - * The 2-digit device type provided on the ISO messages that the token is being provisioned to. - */ - "isoDeviceType"?: string; - /** - * The MSISDN of the device being provisioned. - */ - "msisdn"?: string; - /** - * The name of the device operating system. + * The operating system of the device used to provision the network token. */ "osName"?: string; - /** - * The version of the device operating system. - */ - "osVersion"?: string; - /** - * Different types of payments supported for the network token. - */ - "paymentTypes"?: Array; - /** - * The serial number of the device. - */ - "serialNumber"?: string; - /** - * The architecture or technology used for network token storage. - */ - "storageTechnology"?: 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": "cardCaptureTechnology", - "baseName": "cardCaptureTechnology", - "type": "string", - "format": "" - }, - { - "name": "deviceName", - "baseName": "deviceName", - "type": "string", - "format": "" - }, { "name": "formFactor", "baseName": "formFactor", "type": "string", "format": "" }, - { - "name": "imei", - "baseName": "imei", - "type": "string", - "format": "" - }, - { - "name": "isoDeviceType", - "baseName": "isoDeviceType", - "type": "string", - "format": "" - }, - { - "name": "msisdn", - "baseName": "msisdn", - "type": "string", - "format": "" - }, { "name": "osName", "baseName": "osName", "type": "string", "format": "" - }, - { - "name": "osVersion", - "baseName": "osVersion", - "type": "string", - "format": "" - }, - { - "name": "paymentTypes", - "baseName": "paymentTypes", - "type": "Array", - "format": "" - }, - { - "name": "serialNumber", - "baseName": "serialNumber", - "type": "string", - "format": "" - }, - { - "name": "storageTechnology", - "baseName": "storageTechnology", - "type": "string", - "format": "" } ]; static getAttributeTypeMap() { 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/balancePlatform/sweepConfigurationV2.ts b/src/typings/balancePlatform/sweepConfigurationV2.ts index d3dd16c85..d51d5ff21 100644 --- a/src/typings/balancePlatform/sweepConfigurationV2.ts +++ b/src/typings/balancePlatform/sweepConfigurationV2.ts @@ -31,7 +31,7 @@ export class SweepConfigurationV2 { */ "id": string; /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: For normal, low-value transactions. * **fast**: A faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: The fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: For instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: For high-value transfers to a recipient in a different country. * **internal**: For transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). */ "priorities"?: Array; /** @@ -211,6 +211,7 @@ export namespace SweepConfigurationV2 { RefusedByCustomer = 'refusedByCustomer', RouteNotFound = 'routeNotFound', ScaFailed = 'scaFailed', + SchemeAdvice = 'schemeAdvice', TransferInstrumentDoesNotExist = 'transferInstrumentDoesNotExist', Unknown = 'unknown' } diff --git a/src/typings/balancePlatform/transferRoute.ts b/src/typings/balancePlatform/transferRoute.ts index 2c8b34613..c5bd3c147 100644 --- a/src/typings/balancePlatform/transferRoute.ts +++ b/src/typings/balancePlatform/transferRoute.ts @@ -24,7 +24,7 @@ export class TransferRoute { */ "currency"?: string; /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Possible values: * **regular**: For normal, low-value transactions. * **fast**: A faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: The fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: For instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: For high-value transfers to a recipient in a different country. * **internal**: For transfers to an Adyen-issued business bank account (by bank account number/IBAN). */ "priority"?: TransferRoute.PriorityEnum; /** diff --git a/src/typings/balancePlatform/transferRouteRequest.ts b/src/typings/balancePlatform/transferRouteRequest.ts index 6e07569dd..f4f2ed9d1 100644 --- a/src/typings/balancePlatform/transferRouteRequest.ts +++ b/src/typings/balancePlatform/transferRouteRequest.ts @@ -33,7 +33,7 @@ export class TransferRouteRequest { */ "currency": string; /** - * The list of priorities for the bank transfer. Priorities set the speed at which the transfer is sent and the fees that you have to pay. Multiple values can be provided. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * The list of priorities for the bank transfer. Priorities set the speed at which the transfer is sent and the fees that you have to pay. Multiple values can be provided. Possible values: * **regular**: For normal, low-value transactions. * **fast**: A faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: The fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: For instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: For high-value transfers to a recipient in a different country. * **internal**: For transfers to an Adyen-issued business bank account (by bank account number/IBAN). */ "priorities"?: Array; diff --git a/src/typings/balancePlatform/updateSweepConfigurationV2.ts b/src/typings/balancePlatform/updateSweepConfigurationV2.ts index 6b3a2b9f8..d2566eeb3 100644 --- a/src/typings/balancePlatform/updateSweepConfigurationV2.ts +++ b/src/typings/balancePlatform/updateSweepConfigurationV2.ts @@ -31,7 +31,7 @@ export class UpdateSweepConfigurationV2 { */ "id"?: string; /** - * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: For normal, low-value transactions. * **fast**: A faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: The fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: For instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: For high-value transfers to a recipient in a different country. * **internal**: For transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). */ "priorities"?: Array; /** @@ -211,6 +211,7 @@ export namespace UpdateSweepConfigurationV2 { RefusedByCustomer = 'refusedByCustomer', RouteNotFound = 'routeNotFound', ScaFailed = 'scaFailed', + SchemeAdvice = 'schemeAdvice', TransferInstrumentDoesNotExist = 'transferInstrumentDoesNotExist', Unknown = 'unknown' }