diff --git a/src/services/balancePlatform/accountHoldersApi.ts b/src/services/balancePlatform/accountHoldersApi.ts index bd5b6934e..4b8464068 100644 --- a/src/services/balancePlatform/accountHoldersApi.ts +++ b/src/services/balancePlatform/accountHoldersApi.ts @@ -7,24 +7,22 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + AccountHolder, + AccountHolderInfo, + AccountHolderUpdateRequest, + GetTaxFormResponse, + PaginatedBalanceAccountsResponse, + RestServiceError, + TransactionRulesResponse, + ObjectSerializer +} from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; -import { AccountHolder } from "../../typings/balancePlatform/models"; -import { AccountHolderInfo } from "../../typings/balancePlatform/models"; -import { AccountHolderUpdateRequest } from "../../typings/balancePlatform/models"; -import { GetTaxFormResponse } from "../../typings/balancePlatform/models"; -import { PaginatedBalanceAccountsResponse } from "../../typings/balancePlatform/models"; -import { TransactionRulesResponse } from "../../typings/balancePlatform/models"; - -/** - * API handler for AccountHoldersApi - */ export class AccountHoldersApi extends Service { private readonly API_BASEPATH: string = "https://balanceplatform-api-test.adyen.com/bcl/v2"; @@ -44,14 +42,12 @@ export class AccountHoldersApi extends Service { public async createAccountHolder(accountHolderInfo: AccountHolderInfo, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/accountHolders`; const resource = new Resource(this, endpoint); - const request: AccountHolderInfo = ObjectSerializer.serialize(accountHolderInfo, "AccountHolderInfo"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "AccountHolder"); } @@ -65,13 +61,11 @@ export class AccountHoldersApi extends Service { const endpoint = `${this.baseUrl}/accountHolders/{id}` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "AccountHolder"); } @@ -87,7 +81,6 @@ export class AccountHoldersApi extends Service { const endpoint = `${this.baseUrl}/accountHolders/{id}/balanceAccounts` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = offset ?? limit; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -100,7 +93,6 @@ export class AccountHoldersApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "PaginatedBalanceAccountsResponse"); } @@ -114,13 +106,11 @@ export class AccountHoldersApi extends Service { const endpoint = `${this.baseUrl}/accountHolders/{id}/transactionRules` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "TransactionRulesResponse"); } @@ -128,28 +118,28 @@ export class AccountHoldersApi extends Service { * @summary Get a tax form * @param id {@link string } The unique identifier of the account holder. * @param requestOptions {@link IRequest.Options } - * @param formType {@link 'US1099k' | 'US1099nec' } (Required) The type of tax form you want to retrieve. Accepted values are **US1099k** and **US1099nec** - * @param year {@link number } (Required) The tax year in YYYY format for the tax form you want to retrieve + * @param formType {@link 'US1099k' | 'US1099nec' } The type of tax form you want to retrieve. Accepted values are **US1099k** and **US1099nec** + * @param year {@link number } The tax year in YYYY format for the tax form you want to retrieve + * @param legalEntityId {@link string } The legal entity reference whose tax form you want to retrieve * @return {@link GetTaxFormResponse } */ - public async getTaxForm(id: string, formType: "US1099k" | "US1099nec", year: number, requestOptions?: IRequest.Options): Promise { + public async getTaxForm(id: string, formType: 'US1099k' | 'US1099nec', year: number, legalEntityId?: string, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/accountHolders/{id}/taxForms` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - - const hasDefinedQueryParams = formType ?? year; + const hasDefinedQueryParams = formType ?? year ?? legalEntityId; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; if(!requestOptions.params) requestOptions.params = {}; if(formType) requestOptions.params["formType"] = formType; if(year) requestOptions.params["year"] = year; + if(legalEntityId) requestOptions.params["legalEntityId"] = legalEntityId; } const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "GetTaxFormResponse"); } @@ -164,15 +154,12 @@ export class AccountHoldersApi extends Service { const endpoint = `${this.baseUrl}/accountHolders/{id}` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const request: AccountHolderUpdateRequest = ObjectSerializer.serialize(accountHolderUpdateRequest, "AccountHolderUpdateRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "AccountHolder"); } - } diff --git a/src/services/balancePlatform/authorizedCardUsersApi.ts b/src/services/balancePlatform/authorizedCardUsersApi.ts new file mode 100644 index 000000000..fdda99251 --- /dev/null +++ b/src/services/balancePlatform/authorizedCardUsersApi.ts @@ -0,0 +1,100 @@ +/* + * 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 { + AuthorisedCardUsers, + DefaultErrorResponseEntity, + ObjectSerializer +} from "../../typings/balancePlatform/models"; +import { IRequest } from "../../typings/requestOptions"; +import Resource from "../resource"; + +export class AuthorizedCardUsersApi 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 Create authorized users for a card. + * @param paymentInstrumentId {@link string } + * @param authorisedCardUsers {@link AuthorisedCardUsers } + * @param requestOptions {@link IRequest.Options } + */ + public async createAuthorisedCardUsers(paymentInstrumentId: string, authorisedCardUsers: AuthorisedCardUsers, requestOptions?: IRequest.Options): Promise { + const endpoint = `${this.baseUrl}/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers` + .replace("{" + "paymentInstrumentId" + "}", encodeURIComponent(String(paymentInstrumentId))); + const resource = new Resource(this, endpoint); + const request: AuthorisedCardUsers = ObjectSerializer.serialize(authorisedCardUsers, "AuthorisedCardUsers"); + await getJsonResponse( + resource, + request, + { ...requestOptions, method: "POST" } + ); + } + + /** + * @summary Delete the authorized users for a card. + * @param paymentInstrumentId {@link string } + * @param requestOptions {@link IRequest.Options } + */ + public async deleteAuthorisedCardUsers(paymentInstrumentId: string, requestOptions?: IRequest.Options): Promise { + const endpoint = `${this.baseUrl}/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers` + .replace("{" + "paymentInstrumentId" + "}", encodeURIComponent(String(paymentInstrumentId))); + const resource = new Resource(this, endpoint); + await getJsonResponse( + resource, + "", + { ...requestOptions, method: "DELETE" } + ); + } + + /** + * @summary Get authorized users for a card. + * @param paymentInstrumentId {@link string } + * @param requestOptions {@link IRequest.Options } + * @return {@link AuthorisedCardUsers } + */ + public async getAllAuthorisedCardUsers(paymentInstrumentId: string, requestOptions?: IRequest.Options): Promise { + const endpoint = `${this.baseUrl}/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers` + .replace("{" + "paymentInstrumentId" + "}", encodeURIComponent(String(paymentInstrumentId))); + const resource = new Resource(this, endpoint); + const response = await getJsonResponse( + resource, + "", + { ...requestOptions, method: "GET" } + ); + return ObjectSerializer.deserialize(response, "AuthorisedCardUsers"); + } + + /** + * @summary Update the authorized users for a card. + * @param paymentInstrumentId {@link string } + * @param authorisedCardUsers {@link AuthorisedCardUsers } + * @param requestOptions {@link IRequest.Options } + */ + public async updateAuthorisedCardUsers(paymentInstrumentId: string, authorisedCardUsers: AuthorisedCardUsers, requestOptions?: IRequest.Options): Promise { + const endpoint = `${this.baseUrl}/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers` + .replace("{" + "paymentInstrumentId" + "}", encodeURIComponent(String(paymentInstrumentId))); + const resource = new Resource(this, endpoint); + const request: AuthorisedCardUsers = ObjectSerializer.serialize(authorisedCardUsers, "AuthorisedCardUsers"); + await getJsonResponse( + resource, + request, + { ...requestOptions, method: "PATCH" } + ); + } +} diff --git a/src/services/balancePlatform/balanceAccountsApi.ts b/src/services/balancePlatform/balanceAccountsApi.ts index a40814d96..3d8249f10 100644 --- a/src/services/balancePlatform/balanceAccountsApi.ts +++ b/src/services/balancePlatform/balanceAccountsApi.ts @@ -7,27 +7,25 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + BalanceAccount, + BalanceAccountInfo, + BalanceAccountUpdateRequest, + BalanceSweepConfigurationsResponse, + CreateSweepConfigurationV2, + PaginatedPaymentInstrumentsResponse, + RestServiceError, + SweepConfigurationV2, + TransactionRulesResponse, + UpdateSweepConfigurationV2, + ObjectSerializer +} from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; -import { BalanceAccount } from "../../typings/balancePlatform/models"; -import { BalanceAccountInfo } from "../../typings/balancePlatform/models"; -import { BalanceAccountUpdateRequest } from "../../typings/balancePlatform/models"; -import { BalanceSweepConfigurationsResponse } from "../../typings/balancePlatform/models"; -import { CreateSweepConfigurationV2 } from "../../typings/balancePlatform/models"; -import { PaginatedPaymentInstrumentsResponse } from "../../typings/balancePlatform/models"; -import { SweepConfigurationV2 } from "../../typings/balancePlatform/models"; -import { TransactionRulesResponse } from "../../typings/balancePlatform/models"; -import { UpdateSweepConfigurationV2 } from "../../typings/balancePlatform/models"; - -/** - * API handler for BalanceAccountsApi - */ export class BalanceAccountsApi extends Service { private readonly API_BASEPATH: string = "https://balanceplatform-api-test.adyen.com/bcl/v2"; @@ -47,14 +45,12 @@ export class BalanceAccountsApi extends Service { public async createBalanceAccount(balanceAccountInfo: BalanceAccountInfo, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/balanceAccounts`; const resource = new Resource(this, endpoint); - const request: BalanceAccountInfo = ObjectSerializer.serialize(balanceAccountInfo, "BalanceAccountInfo"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "BalanceAccount"); } @@ -69,14 +65,12 @@ export class BalanceAccountsApi extends Service { const endpoint = `${this.baseUrl}/balanceAccounts/{balanceAccountId}/sweeps` .replace("{" + "balanceAccountId" + "}", encodeURIComponent(String(balanceAccountId))); const resource = new Resource(this, endpoint); - const request: CreateSweepConfigurationV2 = ObjectSerializer.serialize(createSweepConfigurationV2, "CreateSweepConfigurationV2"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "SweepConfigurationV2"); } @@ -85,14 +79,12 @@ export class BalanceAccountsApi extends Service { * @param balanceAccountId {@link string } The unique identifier of the balance account. * @param sweepId {@link string } The unique identifier of the sweep. * @param requestOptions {@link IRequest.Options } - * @return {@link void } */ public async deleteSweep(balanceAccountId: string, sweepId: string, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}` .replace("{" + "balanceAccountId" + "}", encodeURIComponent(String(balanceAccountId))) .replace("{" + "sweepId" + "}", encodeURIComponent(String(sweepId))); const resource = new Resource(this, endpoint); - await getJsonResponse( resource, "", @@ -112,7 +104,6 @@ export class BalanceAccountsApi extends Service { const endpoint = `${this.baseUrl}/balanceAccounts/{balanceAccountId}/sweeps` .replace("{" + "balanceAccountId" + "}", encodeURIComponent(String(balanceAccountId))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = offset ?? limit; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -125,7 +116,6 @@ export class BalanceAccountsApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "BalanceSweepConfigurationsResponse"); } @@ -139,13 +129,11 @@ export class BalanceAccountsApi extends Service { const endpoint = `${this.baseUrl}/balanceAccounts/{id}/transactionRules` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "TransactionRulesResponse"); } @@ -159,13 +147,11 @@ export class BalanceAccountsApi extends Service { const endpoint = `${this.baseUrl}/balanceAccounts/{id}` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "BalanceAccount"); } @@ -182,7 +168,6 @@ export class BalanceAccountsApi extends Service { const endpoint = `${this.baseUrl}/balanceAccounts/{id}/paymentInstruments` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = offset ?? limit ?? status; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -196,7 +181,6 @@ export class BalanceAccountsApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "PaginatedPaymentInstrumentsResponse"); } @@ -212,13 +196,11 @@ export class BalanceAccountsApi extends Service { .replace("{" + "balanceAccountId" + "}", encodeURIComponent(String(balanceAccountId))) .replace("{" + "sweepId" + "}", encodeURIComponent(String(sweepId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "SweepConfigurationV2"); } @@ -233,14 +215,12 @@ export class BalanceAccountsApi extends Service { const endpoint = `${this.baseUrl}/balanceAccounts/{id}` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const request: BalanceAccountUpdateRequest = ObjectSerializer.serialize(balanceAccountUpdateRequest, "BalanceAccountUpdateRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "BalanceAccount"); } @@ -257,15 +237,12 @@ export class BalanceAccountsApi extends Service { .replace("{" + "balanceAccountId" + "}", encodeURIComponent(String(balanceAccountId))) .replace("{" + "sweepId" + "}", encodeURIComponent(String(sweepId))); const resource = new Resource(this, endpoint); - const request: UpdateSweepConfigurationV2 = ObjectSerializer.serialize(updateSweepConfigurationV2, "UpdateSweepConfigurationV2"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "SweepConfigurationV2"); } - } diff --git a/src/services/balancePlatform/balancesApi.ts b/src/services/balancePlatform/balancesApi.ts index ce43eaf34..23818ff83 100644 --- a/src/services/balancePlatform/balancesApi.ts +++ b/src/services/balancePlatform/balancesApi.ts @@ -7,22 +7,20 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + BalanceWebhookSettingInfo, + BalanceWebhookSettingInfoUpdate, + DefaultErrorResponseEntity, + WebhookSetting, + WebhookSettings, + ObjectSerializer +} from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; -import { BalanceWebhookSettingInfo } from "../../typings/balancePlatform/models"; -import { BalanceWebhookSettingInfoUpdate } from "../../typings/balancePlatform/models"; -import { WebhookSetting } from "../../typings/balancePlatform/models"; -import { WebhookSettings } from "../../typings/balancePlatform/models"; - -/** - * API handler for BalancesApi - */ export class BalancesApi extends Service { private readonly API_BASEPATH: string = "https://balanceplatform-api-test.adyen.com/bcl/v2"; @@ -46,14 +44,12 @@ export class BalancesApi extends Service { .replace("{" + "balancePlatformId" + "}", encodeURIComponent(String(balancePlatformId))) .replace("{" + "webhookId" + "}", encodeURIComponent(String(webhookId))); const resource = new Resource(this, endpoint); - const request: BalanceWebhookSettingInfo = ObjectSerializer.serialize(balanceWebhookSettingInfo, "BalanceWebhookSettingInfo"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "WebhookSetting"); } @@ -63,7 +59,6 @@ export class BalancesApi extends Service { * @param webhookId {@link string } The unique identifier of the balance webhook. * @param settingId {@link string } The unique identifier of the balance webhook setting. * @param requestOptions {@link IRequest.Options } - * @return {@link void } */ public async deleteWebhookSetting(balancePlatformId: string, webhookId: string, settingId: string, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}` @@ -71,7 +66,6 @@ export class BalancesApi extends Service { .replace("{" + "webhookId" + "}", encodeURIComponent(String(webhookId))) .replace("{" + "settingId" + "}", encodeURIComponent(String(settingId))); const resource = new Resource(this, endpoint); - await getJsonResponse( resource, "", @@ -91,13 +85,11 @@ export class BalancesApi extends Service { .replace("{" + "balancePlatformId" + "}", encodeURIComponent(String(balancePlatformId))) .replace("{" + "webhookId" + "}", encodeURIComponent(String(webhookId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "WebhookSettings"); } @@ -115,13 +107,11 @@ export class BalancesApi extends Service { .replace("{" + "webhookId" + "}", encodeURIComponent(String(webhookId))) .replace("{" + "settingId" + "}", encodeURIComponent(String(settingId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "WebhookSetting"); } @@ -140,15 +130,12 @@ export class BalancesApi extends Service { .replace("{" + "webhookId" + "}", encodeURIComponent(String(webhookId))) .replace("{" + "settingId" + "}", encodeURIComponent(String(settingId))); const resource = new Resource(this, endpoint); - const request: BalanceWebhookSettingInfoUpdate = ObjectSerializer.serialize(balanceWebhookSettingInfoUpdate, "BalanceWebhookSettingInfoUpdate"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "WebhookSetting"); } - } diff --git a/src/services/balancePlatform/bankAccountValidationApi.ts b/src/services/balancePlatform/bankAccountValidationApi.ts index 5ecdd1c25..e58593d70 100644 --- a/src/services/balancePlatform/bankAccountValidationApi.ts +++ b/src/services/balancePlatform/bankAccountValidationApi.ts @@ -7,19 +7,17 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + BankAccountIdentificationValidationRequest, + RestServiceError, + ObjectSerializer +} from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; -import { BankAccountIdentificationValidationRequest } from "../../typings/balancePlatform/models"; - -/** - * API handler for BankAccountValidationApi - */ export class BankAccountValidationApi extends Service { private readonly API_BASEPATH: string = "https://balanceplatform-api-test.adyen.com/bcl/v2"; @@ -34,12 +32,10 @@ export class BankAccountValidationApi extends Service { * @summary Validate a bank account * @param bankAccountIdentificationValidationRequest {@link BankAccountIdentificationValidationRequest } * @param requestOptions {@link IRequest.Options } - * @return {@link void } */ public async validateBankAccountIdentification(bankAccountIdentificationValidationRequest: BankAccountIdentificationValidationRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/validateBankAccountIdentification`; const resource = new Resource(this, endpoint); - const request: BankAccountIdentificationValidationRequest = ObjectSerializer.serialize(bankAccountIdentificationValidationRequest, "BankAccountIdentificationValidationRequest"); await getJsonResponse( resource, @@ -47,5 +43,4 @@ export class BankAccountValidationApi extends Service { { ...requestOptions, method: "POST" } ); } - } diff --git a/src/services/balancePlatform/cardOrdersApi.ts b/src/services/balancePlatform/cardOrdersApi.ts index 1579f71f8..990c03d5c 100644 --- a/src/services/balancePlatform/cardOrdersApi.ts +++ b/src/services/balancePlatform/cardOrdersApi.ts @@ -7,20 +7,18 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + PaginatedGetCardOrderItemResponse, + PaginatedGetCardOrderResponse, + RestServiceError, + ObjectSerializer +} from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; -import { PaginatedGetCardOrderItemResponse } from "../../typings/balancePlatform/models"; -import { PaginatedGetCardOrderResponse } from "../../typings/balancePlatform/models"; - -/** - * API handler for CardOrdersApi - */ export class CardOrdersApi extends Service { private readonly API_BASEPATH: string = "https://balanceplatform-api-test.adyen.com/bcl/v2"; @@ -43,7 +41,6 @@ export class CardOrdersApi extends Service { const endpoint = `${this.baseUrl}/cardorders/{id}/items` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = offset ?? limit; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -56,7 +53,6 @@ export class CardOrdersApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "PaginatedGetCardOrderItemResponse"); } @@ -79,7 +75,6 @@ export class CardOrdersApi extends Service { public async listCardOrders(id?: string, cardManufacturingProfileId?: string, status?: string, txVariantCode?: string, createdSince?: Date, createdUntil?: Date, lockedSince?: Date, lockedUntil?: Date, serviceCenter?: string, offset?: number, limit?: number, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/cardorders`; const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = id ?? cardManufacturingProfileId ?? status ?? txVariantCode ?? createdSince ?? createdUntil ?? lockedSince ?? lockedUntil ?? serviceCenter ?? offset ?? limit; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -101,8 +96,6 @@ export class CardOrdersApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "PaginatedGetCardOrderResponse"); } - } diff --git a/src/services/balancePlatform/grantAccountsApi.ts b/src/services/balancePlatform/grantAccountsApi.ts index 25cc1651a..c07dca090 100644 --- a/src/services/balancePlatform/grantAccountsApi.ts +++ b/src/services/balancePlatform/grantAccountsApi.ts @@ -7,19 +7,17 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + CapitalGrantAccount, + RestServiceError, + ObjectSerializer +} from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; -import { CapitalGrantAccount } from "../../typings/balancePlatform/models"; - -/** - * API handler for GrantAccountsApi - */ export class GrantAccountsApi extends Service { private readonly API_BASEPATH: string = "https://balanceplatform-api-test.adyen.com/bcl/v2"; @@ -43,14 +41,11 @@ export class GrantAccountsApi extends Service { const endpoint = `${this.baseUrl}/grantAccounts/{id}` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "CapitalGrantAccount"); } - } diff --git a/src/services/balancePlatform/grantOffersApi.ts b/src/services/balancePlatform/grantOffersApi.ts index 87f5e6467..0e15c615e 100644 --- a/src/services/balancePlatform/grantOffersApi.ts +++ b/src/services/balancePlatform/grantOffersApi.ts @@ -7,20 +7,18 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + GrantOffer, + GrantOffers, + RestServiceError, + ObjectSerializer +} from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; -import { GrantOffer } from "../../typings/balancePlatform/models"; -import { GrantOffers } from "../../typings/balancePlatform/models"; - -/** - * API handler for GrantOffersApi - */ export class GrantOffersApi extends Service { private readonly API_BASEPATH: string = "https://balanceplatform-api-test.adyen.com/bcl/v2"; @@ -34,7 +32,7 @@ export class GrantOffersApi extends Service { /** * @summary Get all available grant offers * @param requestOptions {@link IRequest.Options } - * @param accountHolderId {@link string } (Required) The unique identifier of the grant account. + * @param accountHolderId {@link string } The unique identifier of the grant account. * @return {@link GrantOffers } * * @deprecated since Configuration API v2 @@ -43,7 +41,6 @@ export class GrantOffersApi extends Service { public async getAllAvailableGrantOffers(accountHolderId: string, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/grantOffers`; const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = accountHolderId; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -55,7 +52,6 @@ export class GrantOffersApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "GrantOffers"); } @@ -72,14 +68,11 @@ export class GrantOffersApi extends Service { const endpoint = `${this.baseUrl}/grantOffers/{grantOfferId}` .replace("{" + "grantOfferId" + "}", encodeURIComponent(String(grantOfferId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "GrantOffer"); } - } diff --git a/src/services/balancePlatform/index.ts b/src/services/balancePlatform/index.ts index 9c2e1759e..866481a7c 100644 --- a/src/services/balancePlatform/index.ts +++ b/src/services/balancePlatform/index.ts @@ -8,6 +8,7 @@ */ import { AccountHoldersApi } from "./accountHoldersApi"; +import { AuthorizedCardUsersApi } from "./authorizedCardUsersApi"; import { BalanceAccountsApi } from "./balanceAccountsApi"; import { BalancesApi } from "./balancesApi"; import { BankAccountValidationApi } from "./bankAccountValidationApi"; @@ -36,6 +37,10 @@ export default class BalancePlatformAPI extends Service { return new AccountHoldersApi(this.client); } + public get AuthorizedCardUsersApi() { + return new AuthorizedCardUsersApi(this.client); + } + public get BalanceAccountsApi() { return new BalanceAccountsApi(this.client); } diff --git a/src/services/balancePlatform/manageCardPINApi.ts b/src/services/balancePlatform/manageCardPINApi.ts index 763493a72..c94f194b0 100644 --- a/src/services/balancePlatform/manageCardPINApi.ts +++ b/src/services/balancePlatform/manageCardPINApi.ts @@ -7,23 +7,21 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + PinChangeRequest, + PinChangeResponse, + PublicKeyResponse, + RestServiceError, + RevealPinRequest, + RevealPinResponse, + ObjectSerializer +} from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; -import { PinChangeRequest } from "../../typings/balancePlatform/models"; -import { PinChangeResponse } from "../../typings/balancePlatform/models"; -import { PublicKeyResponse } from "../../typings/balancePlatform/models"; -import { RevealPinRequest } from "../../typings/balancePlatform/models"; -import { RevealPinResponse } from "../../typings/balancePlatform/models"; - -/** - * API handler for ManageCardPINApi - */ export class ManageCardPINApi extends Service { private readonly API_BASEPATH: string = "https://balanceplatform-api-test.adyen.com/bcl/v2"; @@ -43,14 +41,12 @@ export class ManageCardPINApi extends Service { public async changeCardPin(pinChangeRequest: PinChangeRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/pins/change`; const resource = new Resource(this, endpoint); - const request: PinChangeRequest = ObjectSerializer.serialize(pinChangeRequest, "PinChangeRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "PinChangeResponse"); } @@ -64,7 +60,6 @@ export class ManageCardPINApi extends Service { public async publicKey(purpose?: string, format?: string, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/publicKey`; const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = purpose ?? format; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -77,7 +72,6 @@ export class ManageCardPINApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "PublicKeyResponse"); } @@ -90,15 +84,12 @@ export class ManageCardPINApi extends Service { public async revealCardPin(revealPinRequest: RevealPinRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/pins/reveal`; const resource = new Resource(this, endpoint); - const request: RevealPinRequest = ObjectSerializer.serialize(revealPinRequest, "RevealPinRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "RevealPinResponse"); } - } diff --git a/src/services/balancePlatform/manageSCADevicesApi.ts b/src/services/balancePlatform/manageSCADevicesApi.ts index 6041c1e29..a01aedb07 100644 --- a/src/services/balancePlatform/manageSCADevicesApi.ts +++ b/src/services/balancePlatform/manageSCADevicesApi.ts @@ -7,26 +7,24 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + AssociationFinaliseRequest, + AssociationFinaliseResponse, + AssociationInitiateRequest, + AssociationInitiateResponse, + RegisterSCAFinalResponse, + RegisterSCARequest, + RegisterSCAResponse, + RestServiceError, + SearchRegisteredDevicesResponse, + ObjectSerializer +} from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; -import { AssociationFinaliseRequest } from "../../typings/balancePlatform/models"; -import { AssociationFinaliseResponse } from "../../typings/balancePlatform/models"; -import { AssociationInitiateRequest } from "../../typings/balancePlatform/models"; -import { AssociationInitiateResponse } from "../../typings/balancePlatform/models"; -import { RegisterSCAFinalResponse } from "../../typings/balancePlatform/models"; -import { RegisterSCARequest } from "../../typings/balancePlatform/models"; -import { RegisterSCAResponse } from "../../typings/balancePlatform/models"; -import { SearchRegisteredDevicesResponse } from "../../typings/balancePlatform/models"; - -/** - * API handler for ManageSCADevicesApi - */ export class ManageSCADevicesApi extends Service { private readonly API_BASEPATH: string = "https://balanceplatform-api-test.adyen.com/bcl/v2"; @@ -48,14 +46,12 @@ export class ManageSCADevicesApi extends Service { const endpoint = `${this.baseUrl}/registeredDevices/{deviceId}/associations` .replace("{" + "deviceId" + "}", encodeURIComponent(String(deviceId))); const resource = new Resource(this, endpoint); - const request: AssociationFinaliseRequest = ObjectSerializer.serialize(associationFinaliseRequest, "AssociationFinaliseRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "AssociationFinaliseResponse"); } @@ -70,14 +66,12 @@ export class ManageSCADevicesApi extends Service { const endpoint = `${this.baseUrl}/registeredDevices/{id}` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const request: RegisterSCARequest = ObjectSerializer.serialize(registerSCARequest, "RegisterSCARequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "RegisterSCAFinalResponse"); } @@ -85,14 +79,12 @@ export class ManageSCADevicesApi extends Service { * @summary Delete a registration of an SCA device * @param id {@link string } The unique identifier of the SCA device. * @param requestOptions {@link IRequest.Options } - * @param paymentInstrumentId {@link string } (Required) The unique identifier of the payment instrument linked to the SCA device. - * @return {@link void } + * @param paymentInstrumentId {@link string } The unique identifier of the payment instrument linked to the SCA device. */ public async deleteRegistrationOfScaDevice(id: string, paymentInstrumentId: string, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/registeredDevices/{id}` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = paymentInstrumentId; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -117,14 +109,12 @@ export class ManageSCADevicesApi extends Service { const endpoint = `${this.baseUrl}/registeredDevices/{deviceId}/associations` .replace("{" + "deviceId" + "}", encodeURIComponent(String(deviceId))); const resource = new Resource(this, endpoint); - const request: AssociationInitiateRequest = ObjectSerializer.serialize(associationInitiateRequest, "AssociationInitiateRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "AssociationInitiateResponse"); } @@ -137,21 +127,19 @@ export class ManageSCADevicesApi extends Service { public async initiateRegistrationOfScaDevice(registerSCARequest: RegisterSCARequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/registeredDevices`; const resource = new Resource(this, endpoint); - const request: RegisterSCARequest = ObjectSerializer.serialize(registerSCARequest, "RegisterSCARequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "RegisterSCAResponse"); } /** * @summary Get a list of registered SCA devices * @param requestOptions {@link IRequest.Options } - * @param paymentInstrumentId {@link string } (Required) The unique identifier of a payment instrument. It limits the returned list to SCA devices associated to this payment instrument. + * @param paymentInstrumentId {@link string } The unique identifier of a payment instrument. It limits the returned list to SCA devices associated to this payment instrument. * @param pageNumber {@link number } The index of the page to retrieve. The index of the first page is 0 (zero). Default: 0. * @param pageSize {@link number } The number of items to have on a page. Default: 20. Maximum: 100. * @return {@link SearchRegisteredDevicesResponse } @@ -159,7 +147,6 @@ export class ManageSCADevicesApi extends Service { public async listRegisteredScaDevices(paymentInstrumentId: string, pageNumber?: number, pageSize?: number, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/registeredDevices`; const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = paymentInstrumentId ?? pageNumber ?? pageSize; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -173,8 +160,6 @@ export class ManageSCADevicesApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "SearchRegisteredDevicesResponse"); } - } diff --git a/src/services/balancePlatform/networkTokensApi.ts b/src/services/balancePlatform/networkTokensApi.ts index 1ee1b904d..8620e5b5a 100644 --- a/src/services/balancePlatform/networkTokensApi.ts +++ b/src/services/balancePlatform/networkTokensApi.ts @@ -7,20 +7,18 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + GetNetworkTokenResponse, + RestServiceError, + UpdateNetworkTokenRequest, + ObjectSerializer +} from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; -import { GetNetworkTokenResponse } from "../../typings/balancePlatform/models"; -import { UpdateNetworkTokenRequest } from "../../typings/balancePlatform/models"; - -/** - * API handler for NetworkTokensApi - */ export class NetworkTokensApi extends Service { private readonly API_BASEPATH: string = "https://balanceplatform-api-test.adyen.com/bcl/v2"; @@ -41,13 +39,11 @@ export class NetworkTokensApi extends Service { const endpoint = `${this.baseUrl}/networkTokens/{networkTokenId}` .replace("{" + "networkTokenId" + "}", encodeURIComponent(String(networkTokenId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "GetNetworkTokenResponse"); } @@ -56,13 +52,11 @@ export class NetworkTokensApi extends Service { * @param networkTokenId {@link string } The unique identifier of the network token. * @param updateNetworkTokenRequest {@link UpdateNetworkTokenRequest } * @param requestOptions {@link IRequest.Options } - * @return {@link void } */ public async updateNetworkToken(networkTokenId: string, updateNetworkTokenRequest: UpdateNetworkTokenRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/networkTokens/{networkTokenId}` .replace("{" + "networkTokenId" + "}", encodeURIComponent(String(networkTokenId))); const resource = new Resource(this, endpoint); - const request: UpdateNetworkTokenRequest = ObjectSerializer.serialize(updateNetworkTokenRequest, "UpdateNetworkTokenRequest"); await getJsonResponse( resource, @@ -70,5 +64,4 @@ export class NetworkTokensApi extends Service { { ...requestOptions, method: "PATCH" } ); } - } diff --git a/src/services/balancePlatform/paymentInstrumentGroupsApi.ts b/src/services/balancePlatform/paymentInstrumentGroupsApi.ts index 5d330c23b..603d1b874 100644 --- a/src/services/balancePlatform/paymentInstrumentGroupsApi.ts +++ b/src/services/balancePlatform/paymentInstrumentGroupsApi.ts @@ -7,21 +7,19 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + PaymentInstrumentGroup, + PaymentInstrumentGroupInfo, + RestServiceError, + TransactionRulesResponse, + ObjectSerializer +} from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; -import { PaymentInstrumentGroup } from "../../typings/balancePlatform/models"; -import { PaymentInstrumentGroupInfo } from "../../typings/balancePlatform/models"; -import { TransactionRulesResponse } from "../../typings/balancePlatform/models"; - -/** - * API handler for PaymentInstrumentGroupsApi - */ export class PaymentInstrumentGroupsApi extends Service { private readonly API_BASEPATH: string = "https://balanceplatform-api-test.adyen.com/bcl/v2"; @@ -41,14 +39,12 @@ export class PaymentInstrumentGroupsApi extends Service { public async createPaymentInstrumentGroup(paymentInstrumentGroupInfo: PaymentInstrumentGroupInfo, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/paymentInstrumentGroups`; const resource = new Resource(this, endpoint); - const request: PaymentInstrumentGroupInfo = ObjectSerializer.serialize(paymentInstrumentGroupInfo, "PaymentInstrumentGroupInfo"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "PaymentInstrumentGroup"); } @@ -62,13 +58,11 @@ export class PaymentInstrumentGroupsApi extends Service { const endpoint = `${this.baseUrl}/paymentInstrumentGroups/{id}/transactionRules` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "TransactionRulesResponse"); } @@ -82,14 +76,11 @@ export class PaymentInstrumentGroupsApi extends Service { const endpoint = `${this.baseUrl}/paymentInstrumentGroups/{id}` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "PaymentInstrumentGroup"); } - } diff --git a/src/services/balancePlatform/paymentInstrumentsApi.ts b/src/services/balancePlatform/paymentInstrumentsApi.ts index 3628c38f1..9375f8fc3 100644 --- a/src/services/balancePlatform/paymentInstrumentsApi.ts +++ b/src/services/balancePlatform/paymentInstrumentsApi.ts @@ -7,27 +7,27 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + ListNetworkTokensResponse, + NetworkTokenActivationDataRequest, + NetworkTokenActivationDataResponse, + PaymentInstrument, + PaymentInstrumentInfo, + PaymentInstrumentRevealInfo, + PaymentInstrumentRevealRequest, + PaymentInstrumentRevealResponse, + PaymentInstrumentUpdateRequest, + RestServiceError, + TransactionRulesResponse, + UpdatePaymentInstrument, + ObjectSerializer +} from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; -import { ListNetworkTokensResponse } from "../../typings/balancePlatform/models"; -import { PaymentInstrument } from "../../typings/balancePlatform/models"; -import { PaymentInstrumentInfo } from "../../typings/balancePlatform/models"; -import { PaymentInstrumentRevealInfo } from "../../typings/balancePlatform/models"; -import { PaymentInstrumentRevealRequest } from "../../typings/balancePlatform/models"; -import { PaymentInstrumentRevealResponse } from "../../typings/balancePlatform/models"; -import { PaymentInstrumentUpdateRequest } from "../../typings/balancePlatform/models"; -import { TransactionRulesResponse } from "../../typings/balancePlatform/models"; -import { UpdatePaymentInstrument } from "../../typings/balancePlatform/models"; - -/** - * API handler for PaymentInstrumentsApi - */ export class PaymentInstrumentsApi extends Service { private readonly API_BASEPATH: string = "https://balanceplatform-api-test.adyen.com/bcl/v2"; @@ -38,6 +38,26 @@ export class PaymentInstrumentsApi extends Service { this.baseUrl = this.createBaseUrl(this.API_BASEPATH); } + /** + * @summary Create network token activation data + * @param id {@link string } The unique identifier of the payment instrument. + * @param networkTokenActivationDataRequest {@link NetworkTokenActivationDataRequest } + * @param requestOptions {@link IRequest.Options } + * @return {@link NetworkTokenActivationDataResponse } + */ + public async createNetworkTokenActivationData(id: string, networkTokenActivationDataRequest: NetworkTokenActivationDataRequest, requestOptions?: IRequest.Options): Promise { + const endpoint = `${this.baseUrl}/paymentInstruments/{id}/networkTokenActivationData` + .replace("{" + "id" + "}", encodeURIComponent(String(id))); + const resource = new Resource(this, endpoint); + const request: NetworkTokenActivationDataRequest = ObjectSerializer.serialize(networkTokenActivationDataRequest, "NetworkTokenActivationDataRequest"); + const response = await getJsonResponse( + resource, + request, + { ...requestOptions, method: "POST" } + ); + return ObjectSerializer.deserialize(response, "NetworkTokenActivationDataResponse"); + } + /** * @summary Create a payment instrument * @param paymentInstrumentInfo {@link PaymentInstrumentInfo } @@ -47,14 +67,12 @@ export class PaymentInstrumentsApi extends Service { public async createPaymentInstrument(paymentInstrumentInfo: PaymentInstrumentInfo, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/paymentInstruments`; const resource = new Resource(this, endpoint); - const request: PaymentInstrumentInfo = ObjectSerializer.serialize(paymentInstrumentInfo, "PaymentInstrumentInfo"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "PaymentInstrument"); } @@ -68,16 +86,32 @@ export class PaymentInstrumentsApi extends Service { const endpoint = `${this.baseUrl}/paymentInstruments/{id}/transactionRules` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "TransactionRulesResponse"); } + /** + * @summary Get network token activation data + * @param id {@link string } The unique identifier of the payment instrument. + * @param requestOptions {@link IRequest.Options } + * @return {@link NetworkTokenActivationDataResponse } + */ + public async getNetworkTokenActivationData(id: string, requestOptions?: IRequest.Options): Promise { + const endpoint = `${this.baseUrl}/paymentInstruments/{id}/networkTokenActivationData` + .replace("{" + "id" + "}", encodeURIComponent(String(id))); + const resource = new Resource(this, endpoint); + const response = await getJsonResponse( + resource, + "", + { ...requestOptions, method: "GET" } + ); + return ObjectSerializer.deserialize(response, "NetworkTokenActivationDataResponse"); + } + /** * @summary Get the PAN of a payment instrument * @param id {@link string } The unique identifier of the payment instrument. @@ -88,13 +122,11 @@ export class PaymentInstrumentsApi extends Service { const endpoint = `${this.baseUrl}/paymentInstruments/{id}/reveal` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "PaymentInstrumentRevealInfo"); } @@ -108,13 +140,11 @@ export class PaymentInstrumentsApi extends Service { const endpoint = `${this.baseUrl}/paymentInstruments/{id}` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "PaymentInstrument"); } @@ -128,13 +158,11 @@ export class PaymentInstrumentsApi extends Service { const endpoint = `${this.baseUrl}/paymentInstruments/{id}/networkTokens` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "ListNetworkTokensResponse"); } @@ -147,14 +175,12 @@ export class PaymentInstrumentsApi extends Service { public async revealDataOfPaymentInstrument(paymentInstrumentRevealRequest: PaymentInstrumentRevealRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/paymentInstruments/reveal`; const resource = new Resource(this, endpoint); - const request: PaymentInstrumentRevealRequest = ObjectSerializer.serialize(paymentInstrumentRevealRequest, "PaymentInstrumentRevealRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "PaymentInstrumentRevealResponse"); } @@ -169,15 +195,12 @@ export class PaymentInstrumentsApi extends Service { const endpoint = `${this.baseUrl}/paymentInstruments/{id}` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const request: PaymentInstrumentUpdateRequest = ObjectSerializer.serialize(paymentInstrumentUpdateRequest, "PaymentInstrumentUpdateRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "UpdatePaymentInstrument"); } - } diff --git a/src/services/balancePlatform/platformApi.ts b/src/services/balancePlatform/platformApi.ts index bf068a966..7f909fc60 100644 --- a/src/services/balancePlatform/platformApi.ts +++ b/src/services/balancePlatform/platformApi.ts @@ -7,21 +7,19 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + BalancePlatform, + PaginatedAccountHoldersResponse, + RestServiceError, + TransactionRulesResponse, + ObjectSerializer +} from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; -import { BalancePlatform } from "../../typings/balancePlatform/models"; -import { PaginatedAccountHoldersResponse } from "../../typings/balancePlatform/models"; -import { TransactionRulesResponse } from "../../typings/balancePlatform/models"; - -/** - * API handler for PlatformApi - */ export class PlatformApi extends Service { private readonly API_BASEPATH: string = "https://balanceplatform-api-test.adyen.com/bcl/v2"; @@ -44,7 +42,6 @@ export class PlatformApi extends Service { const endpoint = `${this.baseUrl}/balancePlatforms/{id}/accountHolders` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = offset ?? limit; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -57,7 +54,6 @@ export class PlatformApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "PaginatedAccountHoldersResponse"); } @@ -71,13 +67,11 @@ export class PlatformApi extends Service { const endpoint = `${this.baseUrl}/balancePlatforms/{id}/transactionRules` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "TransactionRulesResponse"); } @@ -91,14 +85,11 @@ export class PlatformApi extends Service { const endpoint = `${this.baseUrl}/balancePlatforms/{id}` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "BalancePlatform"); } - } diff --git a/src/services/balancePlatform/transactionRulesApi.ts b/src/services/balancePlatform/transactionRulesApi.ts index f60370dd7..2a0cf66a5 100644 --- a/src/services/balancePlatform/transactionRulesApi.ts +++ b/src/services/balancePlatform/transactionRulesApi.ts @@ -7,21 +7,19 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + RestServiceError, + TransactionRule, + TransactionRuleInfo, + TransactionRuleResponse, + ObjectSerializer +} from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; -import { TransactionRule } from "../../typings/balancePlatform/models"; -import { TransactionRuleInfo } from "../../typings/balancePlatform/models"; -import { TransactionRuleResponse } from "../../typings/balancePlatform/models"; - -/** - * API handler for TransactionRulesApi - */ export class TransactionRulesApi extends Service { private readonly API_BASEPATH: string = "https://balanceplatform-api-test.adyen.com/bcl/v2"; @@ -41,14 +39,12 @@ export class TransactionRulesApi extends Service { public async createTransactionRule(transactionRuleInfo: TransactionRuleInfo, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/transactionRules`; const resource = new Resource(this, endpoint); - const request: TransactionRuleInfo = ObjectSerializer.serialize(transactionRuleInfo, "TransactionRuleInfo"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "TransactionRule"); } @@ -62,13 +58,11 @@ export class TransactionRulesApi extends Service { const endpoint = `${this.baseUrl}/transactionRules/{transactionRuleId}` .replace("{" + "transactionRuleId" + "}", encodeURIComponent(String(transactionRuleId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "DELETE" } ); - return ObjectSerializer.deserialize(response, "TransactionRule"); } @@ -82,13 +76,11 @@ export class TransactionRulesApi extends Service { const endpoint = `${this.baseUrl}/transactionRules/{transactionRuleId}` .replace("{" + "transactionRuleId" + "}", encodeURIComponent(String(transactionRuleId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "TransactionRuleResponse"); } @@ -103,15 +95,12 @@ export class TransactionRulesApi extends Service { const endpoint = `${this.baseUrl}/transactionRules/{transactionRuleId}` .replace("{" + "transactionRuleId" + "}", encodeURIComponent(String(transactionRuleId))); const resource = new Resource(this, endpoint); - const request: TransactionRuleInfo = ObjectSerializer.serialize(transactionRuleInfo, "TransactionRuleInfo"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "TransactionRule"); } - } diff --git a/src/services/balancePlatform/transferRoutesApi.ts b/src/services/balancePlatform/transferRoutesApi.ts index edd6e3762..585e29eaa 100644 --- a/src/services/balancePlatform/transferRoutesApi.ts +++ b/src/services/balancePlatform/transferRoutesApi.ts @@ -7,20 +7,18 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + RestServiceError, + TransferRouteRequest, + TransferRouteResponse, + ObjectSerializer +} from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; -import { TransferRouteRequest } from "../../typings/balancePlatform/models"; -import { TransferRouteResponse } from "../../typings/balancePlatform/models"; - -/** - * API handler for TransferRoutesApi - */ export class TransferRoutesApi extends Service { private readonly API_BASEPATH: string = "https://balanceplatform-api-test.adyen.com/bcl/v2"; @@ -40,15 +38,12 @@ export class TransferRoutesApi extends Service { public async calculateTransferRoutes(transferRouteRequest: TransferRouteRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/transferRoutes/calculate`; const resource = new Resource(this, endpoint); - const request: TransferRouteRequest = ObjectSerializer.serialize(transferRouteRequest, "TransferRouteRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "TransferRouteResponse"); } - } diff --git a/src/services/checkout/donationsApi.ts b/src/services/checkout/donationsApi.ts index 7c640358e..e53db3720 100644 --- a/src/services/checkout/donationsApi.ts +++ b/src/services/checkout/donationsApi.ts @@ -7,22 +7,20 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + DonationCampaignsRequest, + DonationCampaignsResponse, + DonationPaymentRequest, + DonationPaymentResponse, + ServiceError, + ObjectSerializer +} from "../../typings/checkout/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/checkout/objectSerializer"; -import { DonationCampaignsRequest } from "../../typings/checkout/models"; -import { DonationCampaignsResponse } from "../../typings/checkout/models"; -import { DonationPaymentRequest } from "../../typings/checkout/models"; -import { DonationPaymentResponse } from "../../typings/checkout/models"; - -/** - * API handler for DonationsApi - */ export class DonationsApi extends Service { private readonly API_BASEPATH: string = "https://checkout-test.adyen.com/v71"; @@ -42,14 +40,12 @@ export class DonationsApi extends Service { public async donationCampaigns(donationCampaignsRequest: DonationCampaignsRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/donationCampaigns`; const resource = new Resource(this, endpoint); - const request: DonationCampaignsRequest = ObjectSerializer.serialize(donationCampaignsRequest, "DonationCampaignsRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "DonationCampaignsResponse"); } @@ -62,15 +58,12 @@ export class DonationsApi extends Service { public async donations(donationPaymentRequest: DonationPaymentRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/donations`; const resource = new Resource(this, endpoint); - const request: DonationPaymentRequest = ObjectSerializer.serialize(donationPaymentRequest, "DonationPaymentRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "DonationPaymentResponse"); } - } diff --git a/src/services/checkout/modificationsApi.ts b/src/services/checkout/modificationsApi.ts index 8fe53856d..ac7d1e267 100644 --- a/src/services/checkout/modificationsApi.ts +++ b/src/services/checkout/modificationsApi.ts @@ -7,30 +7,28 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + PaymentAmountUpdateRequest, + PaymentAmountUpdateResponse, + PaymentCancelRequest, + PaymentCancelResponse, + PaymentCaptureRequest, + PaymentCaptureResponse, + PaymentRefundRequest, + PaymentRefundResponse, + PaymentReversalRequest, + PaymentReversalResponse, + ServiceError, + StandalonePaymentCancelRequest, + StandalonePaymentCancelResponse, + ObjectSerializer +} from "../../typings/checkout/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/checkout/objectSerializer"; -import { PaymentAmountUpdateRequest } from "../../typings/checkout/models"; -import { PaymentAmountUpdateResponse } from "../../typings/checkout/models"; -import { PaymentCancelRequest } from "../../typings/checkout/models"; -import { PaymentCancelResponse } from "../../typings/checkout/models"; -import { PaymentCaptureRequest } from "../../typings/checkout/models"; -import { PaymentCaptureResponse } from "../../typings/checkout/models"; -import { PaymentRefundRequest } from "../../typings/checkout/models"; -import { PaymentRefundResponse } from "../../typings/checkout/models"; -import { PaymentReversalRequest } from "../../typings/checkout/models"; -import { PaymentReversalResponse } from "../../typings/checkout/models"; -import { StandalonePaymentCancelRequest } from "../../typings/checkout/models"; -import { StandalonePaymentCancelResponse } from "../../typings/checkout/models"; - -/** - * API handler for ModificationsApi - */ export class ModificationsApi extends Service { private readonly API_BASEPATH: string = "https://checkout-test.adyen.com/v71"; @@ -50,14 +48,12 @@ export class ModificationsApi extends Service { public async cancelAuthorisedPayment(standalonePaymentCancelRequest: StandalonePaymentCancelRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/cancels`; const resource = new Resource(this, endpoint); - const request: StandalonePaymentCancelRequest = ObjectSerializer.serialize(standalonePaymentCancelRequest, "StandalonePaymentCancelRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "StandalonePaymentCancelResponse"); } @@ -72,14 +68,12 @@ export class ModificationsApi extends Service { const endpoint = `${this.baseUrl}/payments/{paymentPspReference}/cancels` .replace("{" + "paymentPspReference" + "}", encodeURIComponent(String(paymentPspReference))); const resource = new Resource(this, endpoint); - const request: PaymentCancelRequest = ObjectSerializer.serialize(paymentCancelRequest, "PaymentCancelRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "PaymentCancelResponse"); } @@ -94,14 +88,12 @@ export class ModificationsApi extends Service { const endpoint = `${this.baseUrl}/payments/{paymentPspReference}/captures` .replace("{" + "paymentPspReference" + "}", encodeURIComponent(String(paymentPspReference))); const resource = new Resource(this, endpoint); - const request: PaymentCaptureRequest = ObjectSerializer.serialize(paymentCaptureRequest, "PaymentCaptureRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "PaymentCaptureResponse"); } @@ -116,14 +108,12 @@ export class ModificationsApi extends Service { const endpoint = `${this.baseUrl}/payments/{paymentPspReference}/refunds` .replace("{" + "paymentPspReference" + "}", encodeURIComponent(String(paymentPspReference))); const resource = new Resource(this, endpoint); - const request: PaymentRefundRequest = ObjectSerializer.serialize(paymentRefundRequest, "PaymentRefundRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "PaymentRefundResponse"); } @@ -138,14 +128,12 @@ export class ModificationsApi extends Service { const endpoint = `${this.baseUrl}/payments/{paymentPspReference}/reversals` .replace("{" + "paymentPspReference" + "}", encodeURIComponent(String(paymentPspReference))); const resource = new Resource(this, endpoint); - const request: PaymentReversalRequest = ObjectSerializer.serialize(paymentReversalRequest, "PaymentReversalRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "PaymentReversalResponse"); } @@ -160,15 +148,12 @@ export class ModificationsApi extends Service { const endpoint = `${this.baseUrl}/payments/{paymentPspReference}/amountUpdates` .replace("{" + "paymentPspReference" + "}", encodeURIComponent(String(paymentPspReference))); const resource = new Resource(this, endpoint); - const request: PaymentAmountUpdateRequest = ObjectSerializer.serialize(paymentAmountUpdateRequest, "PaymentAmountUpdateRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "PaymentAmountUpdateResponse"); } - } diff --git a/src/services/checkout/ordersApi.ts b/src/services/checkout/ordersApi.ts index 3c34ea6dc..4ae182408 100644 --- a/src/services/checkout/ordersApi.ts +++ b/src/services/checkout/ordersApi.ts @@ -7,24 +7,22 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + BalanceCheckRequest, + BalanceCheckResponse, + CancelOrderRequest, + CancelOrderResponse, + CreateOrderRequest, + CreateOrderResponse, + ServiceError, + ObjectSerializer +} from "../../typings/checkout/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/checkout/objectSerializer"; -import { BalanceCheckRequest } from "../../typings/checkout/models"; -import { BalanceCheckResponse } from "../../typings/checkout/models"; -import { CancelOrderRequest } from "../../typings/checkout/models"; -import { CancelOrderResponse } from "../../typings/checkout/models"; -import { CreateOrderRequest } from "../../typings/checkout/models"; -import { CreateOrderResponse } from "../../typings/checkout/models"; - -/** - * API handler for OrdersApi - */ export class OrdersApi extends Service { private readonly API_BASEPATH: string = "https://checkout-test.adyen.com/v71"; @@ -44,14 +42,12 @@ export class OrdersApi extends Service { public async cancelOrder(cancelOrderRequest: CancelOrderRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/orders/cancel`; const resource = new Resource(this, endpoint); - const request: CancelOrderRequest = ObjectSerializer.serialize(cancelOrderRequest, "CancelOrderRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "CancelOrderResponse"); } @@ -64,14 +60,12 @@ export class OrdersApi extends Service { public async getBalanceOfGiftCard(balanceCheckRequest: BalanceCheckRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/paymentMethods/balance`; const resource = new Resource(this, endpoint); - const request: BalanceCheckRequest = ObjectSerializer.serialize(balanceCheckRequest, "BalanceCheckRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "BalanceCheckResponse"); } @@ -84,15 +78,12 @@ export class OrdersApi extends Service { public async orders(createOrderRequest: CreateOrderRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/orders`; const resource = new Resource(this, endpoint); - const request: CreateOrderRequest = ObjectSerializer.serialize(createOrderRequest, "CreateOrderRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "CreateOrderResponse"); } - } diff --git a/src/services/checkout/paymentLinksApi.ts b/src/services/checkout/paymentLinksApi.ts index 37047adb2..548d781a8 100644 --- a/src/services/checkout/paymentLinksApi.ts +++ b/src/services/checkout/paymentLinksApi.ts @@ -7,21 +7,19 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + PaymentLinkRequest, + PaymentLinkResponse, + ServiceError, + UpdatePaymentLinkRequest, + ObjectSerializer +} from "../../typings/checkout/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/checkout/objectSerializer"; -import { PaymentLinkRequest } from "../../typings/checkout/models"; -import { PaymentLinkResponse } from "../../typings/checkout/models"; -import { UpdatePaymentLinkRequest } from "../../typings/checkout/models"; - -/** - * API handler for PaymentLinksApi - */ export class PaymentLinksApi extends Service { private readonly API_BASEPATH: string = "https://checkout-test.adyen.com/v71"; @@ -42,13 +40,11 @@ export class PaymentLinksApi extends Service { const endpoint = `${this.baseUrl}/paymentLinks/{linkId}` .replace("{" + "linkId" + "}", encodeURIComponent(String(linkId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "PaymentLinkResponse"); } @@ -61,14 +57,12 @@ export class PaymentLinksApi extends Service { public async paymentLinks(paymentLinkRequest: PaymentLinkRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/paymentLinks`; const resource = new Resource(this, endpoint); - const request: PaymentLinkRequest = ObjectSerializer.serialize(paymentLinkRequest, "PaymentLinkRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "PaymentLinkResponse"); } @@ -83,15 +77,12 @@ export class PaymentLinksApi extends Service { const endpoint = `${this.baseUrl}/paymentLinks/{linkId}` .replace("{" + "linkId" + "}", encodeURIComponent(String(linkId))); const resource = new Resource(this, endpoint); - const request: UpdatePaymentLinkRequest = ObjectSerializer.serialize(updatePaymentLinkRequest, "UpdatePaymentLinkRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "PaymentLinkResponse"); } - } diff --git a/src/services/checkout/paymentsApi.ts b/src/services/checkout/paymentsApi.ts index e7ea34920..1fb973458 100644 --- a/src/services/checkout/paymentsApi.ts +++ b/src/services/checkout/paymentsApi.ts @@ -7,29 +7,27 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + CardDetailsRequest, + CardDetailsResponse, + CreateCheckoutSessionRequest, + CreateCheckoutSessionResponse, + PaymentDetailsRequest, + PaymentDetailsResponse, + PaymentMethodsRequest, + PaymentMethodsResponse, + PaymentRequest, + PaymentResponse, + ServiceError, + SessionResultResponse, + ObjectSerializer +} from "../../typings/checkout/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/checkout/objectSerializer"; -import { CardDetailsRequest } from "../../typings/checkout/models"; -import { CardDetailsResponse } from "../../typings/checkout/models"; -import { CreateCheckoutSessionRequest } from "../../typings/checkout/models"; -import { CreateCheckoutSessionResponse } from "../../typings/checkout/models"; -import { PaymentDetailsRequest } from "../../typings/checkout/models"; -import { PaymentDetailsResponse } from "../../typings/checkout/models"; -import { PaymentMethodsRequest } from "../../typings/checkout/models"; -import { PaymentMethodsResponse } from "../../typings/checkout/models"; -import { PaymentRequest } from "../../typings/checkout/models"; -import { PaymentResponse } from "../../typings/checkout/models"; -import { SessionResultResponse } from "../../typings/checkout/models"; - -/** - * API handler for PaymentsApi - */ export class PaymentsApi extends Service { private readonly API_BASEPATH: string = "https://checkout-test.adyen.com/v71"; @@ -49,14 +47,12 @@ export class PaymentsApi extends Service { public async cardDetails(cardDetailsRequest: CardDetailsRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/cardDetails`; const resource = new Resource(this, endpoint); - const request: CardDetailsRequest = ObjectSerializer.serialize(cardDetailsRequest, "CardDetailsRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "CardDetailsResponse"); } @@ -64,14 +60,13 @@ export class PaymentsApi extends Service { * @summary Get the result of a payment session * @param sessionId {@link string } A unique identifier of the session. * @param requestOptions {@link IRequest.Options } - * @param sessionResult {@link string } (Required) The `sessionResult` value from the Drop-in or Component. + * @param sessionResult {@link string } The `sessionResult` value from the Drop-in or Component. * @return {@link SessionResultResponse } */ public async getResultOfPaymentSession(sessionId: string, sessionResult: string, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/sessions/{sessionId}` .replace("{" + "sessionId" + "}", encodeURIComponent(String(sessionId))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = sessionResult; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -83,7 +78,6 @@ export class PaymentsApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "SessionResultResponse"); } @@ -96,14 +90,12 @@ export class PaymentsApi extends Service { public async paymentMethods(paymentMethodsRequest: PaymentMethodsRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/paymentMethods`; const resource = new Resource(this, endpoint); - const request: PaymentMethodsRequest = ObjectSerializer.serialize(paymentMethodsRequest, "PaymentMethodsRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "PaymentMethodsResponse"); } @@ -116,14 +108,12 @@ export class PaymentsApi extends Service { public async payments(paymentRequest: PaymentRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/payments`; const resource = new Resource(this, endpoint); - const request: PaymentRequest = ObjectSerializer.serialize(paymentRequest, "PaymentRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "PaymentResponse"); } @@ -136,14 +126,12 @@ export class PaymentsApi extends Service { public async paymentsDetails(paymentDetailsRequest: PaymentDetailsRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/payments/details`; const resource = new Resource(this, endpoint); - const request: PaymentDetailsRequest = ObjectSerializer.serialize(paymentDetailsRequest, "PaymentDetailsRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "PaymentDetailsResponse"); } @@ -156,15 +144,12 @@ export class PaymentsApi extends Service { public async sessions(createCheckoutSessionRequest: CreateCheckoutSessionRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/sessions`; const resource = new Resource(this, endpoint); - const request: CreateCheckoutSessionRequest = ObjectSerializer.serialize(createCheckoutSessionRequest, "CreateCheckoutSessionRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "CreateCheckoutSessionResponse"); } - } diff --git a/src/services/checkout/recurringApi.ts b/src/services/checkout/recurringApi.ts index 7a8e3bd89..50e2aec4b 100644 --- a/src/services/checkout/recurringApi.ts +++ b/src/services/checkout/recurringApi.ts @@ -7,21 +7,18 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + ListStoredPaymentMethodsResponse, + StoredPaymentMethodRequest, + StoredPaymentMethodResource, + ObjectSerializer +} from "../../typings/checkout/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/checkout/objectSerializer"; -import { ListStoredPaymentMethodsResponse } from "../../typings/checkout/models"; -import { StoredPaymentMethodRequest } from "../../typings/checkout/models"; -import { StoredPaymentMethodResource } from "../../typings/checkout/models"; - -/** - * API handler for RecurringApi - */ export class RecurringApi extends Service { private readonly API_BASEPATH: string = "https://checkout-test.adyen.com/v71"; @@ -36,14 +33,13 @@ export class RecurringApi extends Service { * @summary Delete a token for stored payment details * @param storedPaymentMethodId {@link string } The unique identifier of the token. * @param requestOptions {@link IRequest.Options } - * @param shopperReference {@link string } (Required) Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. - * @param merchantAccount {@link string } (Required) Your merchant account. + * @param shopperReference {@link string } Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. + * @param merchantAccount {@link string } Your merchant account. */ public async deleteTokenForStoredPaymentDetails(storedPaymentMethodId: string, shopperReference: string, merchantAccount: string, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/storedPaymentMethods/{storedPaymentMethodId}` .replace("{" + "storedPaymentMethodId" + "}", encodeURIComponent(String(storedPaymentMethodId))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = shopperReference ?? merchantAccount; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -68,7 +64,6 @@ export class RecurringApi extends Service { public async getTokensForStoredPaymentDetails(shopperReference?: string, merchantAccount?: string, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/storedPaymentMethods`; const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = shopperReference ?? merchantAccount; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -81,7 +76,6 @@ export class RecurringApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "ListStoredPaymentMethodsResponse"); } @@ -94,15 +88,12 @@ export class RecurringApi extends Service { public async storedPaymentMethods(storedPaymentMethodRequest: StoredPaymentMethodRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/storedPaymentMethods`; const resource = new Resource(this, endpoint); - const request: StoredPaymentMethodRequest = ObjectSerializer.serialize(storedPaymentMethodRequest, "StoredPaymentMethodRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "StoredPaymentMethodResource"); } - } diff --git a/src/services/checkout/utilityApi.ts b/src/services/checkout/utilityApi.ts index fd3210c08..156549273 100644 --- a/src/services/checkout/utilityApi.ts +++ b/src/services/checkout/utilityApi.ts @@ -7,24 +7,22 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + ApplePaySessionRequest, + ApplePaySessionResponse, + PaypalUpdateOrderRequest, + PaypalUpdateOrderResponse, + ServiceError, + UtilityRequest, + UtilityResponse, + ObjectSerializer +} from "../../typings/checkout/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/checkout/objectSerializer"; -import { ApplePaySessionRequest } from "../../typings/checkout/models"; -import { ApplePaySessionResponse } from "../../typings/checkout/models"; -import { PaypalUpdateOrderRequest } from "../../typings/checkout/models"; -import { PaypalUpdateOrderResponse } from "../../typings/checkout/models"; -import { UtilityRequest } from "../../typings/checkout/models"; -import { UtilityResponse } from "../../typings/checkout/models"; - -/** - * API handler for UtilityApi - */ export class UtilityApi extends Service { private readonly API_BASEPATH: string = "https://checkout-test.adyen.com/v71"; @@ -44,14 +42,12 @@ export class UtilityApi extends Service { public async getApplePaySession(applePaySessionRequest: ApplePaySessionRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/applePay/sessions`; const resource = new Resource(this, endpoint); - const request: ApplePaySessionRequest = ObjectSerializer.serialize(applePaySessionRequest, "ApplePaySessionRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "ApplePaySessionResponse"); } @@ -66,14 +62,12 @@ export class UtilityApi extends Service { public async originKeys(utilityRequest: UtilityRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/originKeys`; const resource = new Resource(this, endpoint); - const request: UtilityRequest = ObjectSerializer.serialize(utilityRequest, "UtilityRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "UtilityResponse"); } @@ -86,15 +80,12 @@ export class UtilityApi extends Service { public async updatesOrderForPaypalExpressCheckout(paypalUpdateOrderRequest: PaypalUpdateOrderRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/paypal/updateOrder`; const resource = new Resource(this, endpoint); - const request: PaypalUpdateOrderRequest = ObjectSerializer.serialize(paypalUpdateOrderRequest, "PaypalUpdateOrderRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "PaypalUpdateOrderResponse"); } - } diff --git a/src/services/legalEntityManagement/businessLinesApi.ts b/src/services/legalEntityManagement/businessLinesApi.ts index fb9a9e5cf..6c7796f6f 100644 --- a/src/services/legalEntityManagement/businessLinesApi.ts +++ b/src/services/legalEntityManagement/businessLinesApi.ts @@ -7,21 +7,19 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + BusinessLine, + BusinessLineInfo, + BusinessLineInfoUpdate, + ServiceError, + ObjectSerializer +} from "../../typings/legalEntityManagement/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/legalEntityManagement/objectSerializer"; -import { BusinessLine } from "../../typings/legalEntityManagement/models"; -import { BusinessLineInfo } from "../../typings/legalEntityManagement/models"; -import { BusinessLineInfoUpdate } from "../../typings/legalEntityManagement/models"; - -/** - * API handler for BusinessLinesApi - */ export class BusinessLinesApi extends Service { private readonly API_BASEPATH: string = "https://kyc-test.adyen.com/lem/v3"; @@ -41,14 +39,12 @@ export class BusinessLinesApi extends Service { public async createBusinessLine(businessLineInfo: BusinessLineInfo, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/businessLines`; const resource = new Resource(this, endpoint); - const request: BusinessLineInfo = ObjectSerializer.serialize(businessLineInfo, "BusinessLineInfo"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "BusinessLine"); } @@ -56,13 +52,11 @@ export class BusinessLinesApi extends Service { * @summary Delete a business line * @param id {@link string } The unique identifier of the business line to be deleted. * @param requestOptions {@link IRequest.Options } - * @return {@link void } */ public async deleteBusinessLine(id: string, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/businessLines/{id}` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - await getJsonResponse( resource, "", @@ -80,13 +74,11 @@ export class BusinessLinesApi extends Service { const endpoint = `${this.baseUrl}/businessLines/{id}` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "BusinessLine"); } @@ -101,15 +93,12 @@ export class BusinessLinesApi extends Service { const endpoint = `${this.baseUrl}/businessLines/{id}` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const request: BusinessLineInfoUpdate = ObjectSerializer.serialize(businessLineInfoUpdate, "BusinessLineInfoUpdate"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "BusinessLine"); } - } diff --git a/src/services/legalEntityManagement/documentsApi.ts b/src/services/legalEntityManagement/documentsApi.ts index 064290fb7..3a25c7d8a 100644 --- a/src/services/legalEntityManagement/documentsApi.ts +++ b/src/services/legalEntityManagement/documentsApi.ts @@ -7,19 +7,17 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + Document, + ServiceError, + ObjectSerializer +} from "../../typings/legalEntityManagement/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/legalEntityManagement/objectSerializer"; -import { Document } from "../../typings/legalEntityManagement/models"; - -/** - * API handler for DocumentsApi - */ export class DocumentsApi extends Service { private readonly API_BASEPATH: string = "https://kyc-test.adyen.com/lem/v3"; @@ -34,13 +32,11 @@ export class DocumentsApi extends Service { * @summary Delete a document * @param id {@link string } The unique identifier of the document to be deleted. * @param requestOptions {@link IRequest.Options } - * @return {@link void } */ public async deleteDocument(id: string, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/documents/{id}` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - await getJsonResponse( resource, "", @@ -59,7 +55,6 @@ export class DocumentsApi extends Service { const endpoint = `${this.baseUrl}/documents/{id}` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = skipContent; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -71,7 +66,6 @@ export class DocumentsApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "Document"); } @@ -86,14 +80,12 @@ export class DocumentsApi extends Service { const endpoint = `${this.baseUrl}/documents/{id}` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const request: Document = ObjectSerializer.serialize(document, "Document"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "Document"); } @@ -106,15 +98,12 @@ export class DocumentsApi extends Service { public async uploadDocumentForVerificationChecks(document: Document, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/documents`; const resource = new Resource(this, endpoint); - const request: Document = ObjectSerializer.serialize(document, "Document"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "Document"); } - } diff --git a/src/services/legalEntityManagement/hostedOnboardingApi.ts b/src/services/legalEntityManagement/hostedOnboardingApi.ts index ad88a1e84..8467218db 100644 --- a/src/services/legalEntityManagement/hostedOnboardingApi.ts +++ b/src/services/legalEntityManagement/hostedOnboardingApi.ts @@ -7,22 +7,20 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + OnboardingLink, + OnboardingLinkInfo, + OnboardingTheme, + OnboardingThemes, + ServiceError, + ObjectSerializer +} from "../../typings/legalEntityManagement/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/legalEntityManagement/objectSerializer"; -import { OnboardingLink } from "../../typings/legalEntityManagement/models"; -import { OnboardingLinkInfo } from "../../typings/legalEntityManagement/models"; -import { OnboardingTheme } from "../../typings/legalEntityManagement/models"; -import { OnboardingThemes } from "../../typings/legalEntityManagement/models"; - -/** - * API handler for HostedOnboardingApi - */ export class HostedOnboardingApi extends Service { private readonly API_BASEPATH: string = "https://kyc-test.adyen.com/lem/v3"; @@ -44,14 +42,12 @@ export class HostedOnboardingApi extends Service { const endpoint = `${this.baseUrl}/legalEntities/{id}/onboardingLinks` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const request: OnboardingLinkInfo = ObjectSerializer.serialize(onboardingLinkInfo, "OnboardingLinkInfo"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "OnboardingLink"); } @@ -65,13 +61,11 @@ export class HostedOnboardingApi extends Service { const endpoint = `${this.baseUrl}/themes/{id}` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "OnboardingTheme"); } @@ -83,14 +77,11 @@ export class HostedOnboardingApi extends Service { public async listHostedOnboardingPageThemes(requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/themes`; const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "OnboardingThemes"); } - } diff --git a/src/services/legalEntityManagement/legalEntitiesApi.ts b/src/services/legalEntityManagement/legalEntitiesApi.ts index 9948a00e2..fb12a96a2 100644 --- a/src/services/legalEntityManagement/legalEntitiesApi.ts +++ b/src/services/legalEntityManagement/legalEntitiesApi.ts @@ -7,24 +7,22 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + BusinessLines, + DataReviewConfirmationResponse, + LegalEntity, + LegalEntityInfo, + LegalEntityInfoRequiredType, + ServiceError, + VerificationErrors, + ObjectSerializer +} from "../../typings/legalEntityManagement/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/legalEntityManagement/objectSerializer"; -import { BusinessLines } from "../../typings/legalEntityManagement/models"; -import { DataReviewConfirmationResponse } from "../../typings/legalEntityManagement/models"; -import { LegalEntity } from "../../typings/legalEntityManagement/models"; -import { LegalEntityInfo } from "../../typings/legalEntityManagement/models"; -import { LegalEntityInfoRequiredType } from "../../typings/legalEntityManagement/models"; -import { VerificationErrors } from "../../typings/legalEntityManagement/models"; - -/** - * API handler for LegalEntitiesApi - */ export class LegalEntitiesApi extends Service { private readonly API_BASEPATH: string = "https://kyc-test.adyen.com/lem/v3"; @@ -45,13 +43,11 @@ export class LegalEntitiesApi extends Service { const endpoint = `${this.baseUrl}/legalEntities/{id}/checkVerificationErrors` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "VerificationErrors"); } @@ -65,13 +61,11 @@ export class LegalEntitiesApi extends Service { const endpoint = `${this.baseUrl}/legalEntities/{id}/confirmDataReview` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "DataReviewConfirmationResponse"); } @@ -84,14 +78,12 @@ export class LegalEntitiesApi extends Service { public async createLegalEntity(legalEntityInfoRequiredType: LegalEntityInfoRequiredType, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/legalEntities`; const resource = new Resource(this, endpoint); - const request: LegalEntityInfoRequiredType = ObjectSerializer.serialize(legalEntityInfoRequiredType, "LegalEntityInfoRequiredType"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "LegalEntity"); } @@ -105,13 +97,11 @@ export class LegalEntitiesApi extends Service { const endpoint = `${this.baseUrl}/legalEntities/{id}/businessLines` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "BusinessLines"); } @@ -125,13 +115,11 @@ export class LegalEntitiesApi extends Service { const endpoint = `${this.baseUrl}/legalEntities/{id}` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "LegalEntity"); } @@ -146,15 +134,12 @@ export class LegalEntitiesApi extends Service { const endpoint = `${this.baseUrl}/legalEntities/{id}` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const request: LegalEntityInfo = ObjectSerializer.serialize(legalEntityInfo, "LegalEntityInfo"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "LegalEntity"); } - } diff --git a/src/services/legalEntityManagement/pCIQuestionnairesApi.ts b/src/services/legalEntityManagement/pCIQuestionnairesApi.ts index 04df88f5b..e04ff6f70 100644 --- a/src/services/legalEntityManagement/pCIQuestionnairesApi.ts +++ b/src/services/legalEntityManagement/pCIQuestionnairesApi.ts @@ -7,26 +7,24 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + CalculatePciStatusRequest, + CalculatePciStatusResponse, + GeneratePciDescriptionRequest, + GeneratePciDescriptionResponse, + GetPciQuestionnaireInfosResponse, + GetPciQuestionnaireResponse, + PciSigningRequest, + PciSigningResponse, + ServiceError, + ObjectSerializer +} from "../../typings/legalEntityManagement/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/legalEntityManagement/objectSerializer"; -import { CalculatePciStatusRequest } from "../../typings/legalEntityManagement/models"; -import { CalculatePciStatusResponse } from "../../typings/legalEntityManagement/models"; -import { GeneratePciDescriptionRequest } from "../../typings/legalEntityManagement/models"; -import { GeneratePciDescriptionResponse } from "../../typings/legalEntityManagement/models"; -import { GetPciQuestionnaireInfosResponse } from "../../typings/legalEntityManagement/models"; -import { GetPciQuestionnaireResponse } from "../../typings/legalEntityManagement/models"; -import { PciSigningRequest } from "../../typings/legalEntityManagement/models"; -import { PciSigningResponse } from "../../typings/legalEntityManagement/models"; - -/** - * API handler for PCIQuestionnairesApi - */ export class PCIQuestionnairesApi extends Service { private readonly API_BASEPATH: string = "https://kyc-test.adyen.com/lem/v3"; @@ -48,14 +46,12 @@ export class PCIQuestionnairesApi extends Service { const endpoint = `${this.baseUrl}/legalEntities/{id}/pciQuestionnaires/signingRequired` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const request: CalculatePciStatusRequest = ObjectSerializer.serialize(calculatePciStatusRequest, "CalculatePciStatusRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "CalculatePciStatusResponse"); } @@ -70,14 +66,12 @@ export class PCIQuestionnairesApi extends Service { const endpoint = `${this.baseUrl}/legalEntities/{id}/pciQuestionnaires/generatePciTemplates` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const request: GeneratePciDescriptionRequest = ObjectSerializer.serialize(generatePciDescriptionRequest, "GeneratePciDescriptionRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "GeneratePciDescriptionResponse"); } @@ -93,13 +87,11 @@ export class PCIQuestionnairesApi extends Service { .replace("{" + "id" + "}", encodeURIComponent(String(id))) .replace("{" + "pciid" + "}", encodeURIComponent(String(pciid))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "GetPciQuestionnaireResponse"); } @@ -113,13 +105,11 @@ export class PCIQuestionnairesApi extends Service { const endpoint = `${this.baseUrl}/legalEntities/{id}/pciQuestionnaires` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "GetPciQuestionnaireInfosResponse"); } @@ -134,15 +124,12 @@ export class PCIQuestionnairesApi extends Service { const endpoint = `${this.baseUrl}/legalEntities/{id}/pciQuestionnaires/signPciTemplates` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const request: PciSigningRequest = ObjectSerializer.serialize(pciSigningRequest, "PciSigningRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "PciSigningResponse"); } - } diff --git a/src/services/legalEntityManagement/taxEDeliveryConsentApi.ts b/src/services/legalEntityManagement/taxEDeliveryConsentApi.ts index 55d2fa4b0..288149b2e 100644 --- a/src/services/legalEntityManagement/taxEDeliveryConsentApi.ts +++ b/src/services/legalEntityManagement/taxEDeliveryConsentApi.ts @@ -7,20 +7,18 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + CheckTaxElectronicDeliveryConsentResponse, + ServiceError, + SetTaxElectronicDeliveryConsentRequest, + ObjectSerializer +} from "../../typings/legalEntityManagement/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/legalEntityManagement/objectSerializer"; -import { CheckTaxElectronicDeliveryConsentResponse } from "../../typings/legalEntityManagement/models"; -import { SetTaxElectronicDeliveryConsentRequest } from "../../typings/legalEntityManagement/models"; - -/** - * API handler for TaxEDeliveryConsentApi - */ export class TaxEDeliveryConsentApi extends Service { private readonly API_BASEPATH: string = "https://kyc-test.adyen.com/lem/v3"; @@ -41,13 +39,11 @@ export class TaxEDeliveryConsentApi extends Service { const endpoint = `${this.baseUrl}/legalEntities/{id}/checkTaxElectronicDeliveryConsent` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "CheckTaxElectronicDeliveryConsentResponse"); } @@ -56,13 +52,11 @@ export class TaxEDeliveryConsentApi extends Service { * @param id {@link string } The unique identifier of the legal entity. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. * @param setTaxElectronicDeliveryConsentRequest {@link SetTaxElectronicDeliveryConsentRequest } * @param requestOptions {@link IRequest.Options } - * @return {@link void } */ public async setConsentStatusForElectronicDeliveryOfTaxForms(id: string, setTaxElectronicDeliveryConsentRequest: SetTaxElectronicDeliveryConsentRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/legalEntities/{id}/setTaxElectronicDeliveryConsent` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const request: SetTaxElectronicDeliveryConsentRequest = ObjectSerializer.serialize(setTaxElectronicDeliveryConsentRequest, "SetTaxElectronicDeliveryConsentRequest"); await getJsonResponse( resource, @@ -70,5 +64,4 @@ export class TaxEDeliveryConsentApi extends Service { { ...requestOptions, method: "POST" } ); } - } diff --git a/src/services/legalEntityManagement/termsOfServiceApi.ts b/src/services/legalEntityManagement/termsOfServiceApi.ts index bb9e5078b..102d9ba26 100644 --- a/src/services/legalEntityManagement/termsOfServiceApi.ts +++ b/src/services/legalEntityManagement/termsOfServiceApi.ts @@ -7,25 +7,23 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + AcceptTermsOfServiceRequest, + AcceptTermsOfServiceResponse, + CalculateTermsOfServiceStatusResponse, + GetAcceptedTermsOfServiceDocumentResponse, + GetTermsOfServiceAcceptanceInfosResponse, + GetTermsOfServiceDocumentRequest, + GetTermsOfServiceDocumentResponse, + ServiceError, + ObjectSerializer +} from "../../typings/legalEntityManagement/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/legalEntityManagement/objectSerializer"; -import { AcceptTermsOfServiceRequest } from "../../typings/legalEntityManagement/models"; -import { AcceptTermsOfServiceResponse } from "../../typings/legalEntityManagement/models"; -import { CalculateTermsOfServiceStatusResponse } from "../../typings/legalEntityManagement/models"; -import { GetAcceptedTermsOfServiceDocumentResponse } from "../../typings/legalEntityManagement/models"; -import { GetTermsOfServiceAcceptanceInfosResponse } from "../../typings/legalEntityManagement/models"; -import { GetTermsOfServiceDocumentRequest } from "../../typings/legalEntityManagement/models"; -import { GetTermsOfServiceDocumentResponse } from "../../typings/legalEntityManagement/models"; - -/** - * API handler for TermsOfServiceApi - */ export class TermsOfServiceApi extends Service { private readonly API_BASEPATH: string = "https://kyc-test.adyen.com/lem/v3"; @@ -49,14 +47,12 @@ export class TermsOfServiceApi extends Service { .replace("{" + "id" + "}", encodeURIComponent(String(id))) .replace("{" + "termsofservicedocumentid" + "}", encodeURIComponent(String(termsofservicedocumentid))); const resource = new Resource(this, endpoint); - const request: AcceptTermsOfServiceRequest = ObjectSerializer.serialize(acceptTermsOfServiceRequest, "AcceptTermsOfServiceRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "AcceptTermsOfServiceResponse"); } @@ -73,7 +69,6 @@ export class TermsOfServiceApi extends Service { .replace("{" + "id" + "}", encodeURIComponent(String(id))) .replace("{" + "termsofserviceacceptancereference" + "}", encodeURIComponent(String(termsofserviceacceptancereference))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = termsOfServiceDocumentFormat; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -85,7 +80,6 @@ export class TermsOfServiceApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "GetAcceptedTermsOfServiceDocumentResponse"); } @@ -100,14 +94,12 @@ export class TermsOfServiceApi extends Service { const endpoint = `${this.baseUrl}/legalEntities/{id}/termsOfService` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const request: GetTermsOfServiceDocumentRequest = ObjectSerializer.serialize(getTermsOfServiceDocumentRequest, "GetTermsOfServiceDocumentRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "GetTermsOfServiceDocumentResponse"); } @@ -121,13 +113,11 @@ export class TermsOfServiceApi extends Service { const endpoint = `${this.baseUrl}/legalEntities/{id}/termsOfServiceAcceptanceInfos` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "GetTermsOfServiceAcceptanceInfosResponse"); } @@ -141,14 +131,11 @@ export class TermsOfServiceApi extends Service { const endpoint = `${this.baseUrl}/legalEntities/{id}/termsOfServiceStatus` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "CalculateTermsOfServiceStatusResponse"); } - } diff --git a/src/services/legalEntityManagement/transferInstrumentsApi.ts b/src/services/legalEntityManagement/transferInstrumentsApi.ts index bb67e4173..7f6073adf 100644 --- a/src/services/legalEntityManagement/transferInstrumentsApi.ts +++ b/src/services/legalEntityManagement/transferInstrumentsApi.ts @@ -7,20 +7,18 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + ServiceError, + TransferInstrument, + TransferInstrumentInfo, + ObjectSerializer +} from "../../typings/legalEntityManagement/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/legalEntityManagement/objectSerializer"; -import { TransferInstrument } from "../../typings/legalEntityManagement/models"; -import { TransferInstrumentInfo } from "../../typings/legalEntityManagement/models"; - -/** - * API handler for TransferInstrumentsApi - */ export class TransferInstrumentsApi extends Service { private readonly API_BASEPATH: string = "https://kyc-test.adyen.com/lem/v3"; @@ -40,14 +38,12 @@ export class TransferInstrumentsApi extends Service { public async createTransferInstrument(transferInstrumentInfo: TransferInstrumentInfo, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/transferInstruments`; const resource = new Resource(this, endpoint); - const request: TransferInstrumentInfo = ObjectSerializer.serialize(transferInstrumentInfo, "TransferInstrumentInfo"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "TransferInstrument"); } @@ -55,13 +51,11 @@ export class TransferInstrumentsApi extends Service { * @summary Delete a transfer instrument * @param id {@link string } The unique identifier of the transfer instrument to be deleted. * @param requestOptions {@link IRequest.Options } - * @return {@link void } */ public async deleteTransferInstrument(id: string, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/transferInstruments/{id}` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - await getJsonResponse( resource, "", @@ -79,13 +73,11 @@ export class TransferInstrumentsApi extends Service { const endpoint = `${this.baseUrl}/transferInstruments/{id}` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "TransferInstrument"); } @@ -100,15 +92,12 @@ export class TransferInstrumentsApi extends Service { const endpoint = `${this.baseUrl}/transferInstruments/{id}` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const request: TransferInstrumentInfo = ObjectSerializer.serialize(transferInstrumentInfo, "TransferInstrumentInfo"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "TransferInstrument"); } - } diff --git a/src/services/management/aPICredentialsCompanyLevelApi.ts b/src/services/management/aPICredentialsCompanyLevelApi.ts index 2d43153c3..9bdb6cb02 100644 --- a/src/services/management/aPICredentialsCompanyLevelApi.ts +++ b/src/services/management/aPICredentialsCompanyLevelApi.ts @@ -7,23 +7,21 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + CompanyApiCredential, + CreateCompanyApiCredentialRequest, + CreateCompanyApiCredentialResponse, + ListCompanyApiCredentialsResponse, + RestServiceError, + UpdateCompanyApiCredentialRequest, + ObjectSerializer +} from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { CompanyApiCredential } from "../../typings/management/models"; -import { CreateCompanyApiCredentialRequest } from "../../typings/management/models"; -import { CreateCompanyApiCredentialResponse } from "../../typings/management/models"; -import { ListCompanyApiCredentialsResponse } from "../../typings/management/models"; -import { UpdateCompanyApiCredentialRequest } from "../../typings/management/models"; - -/** - * API handler for APICredentialsCompanyLevelApi - */ export class APICredentialsCompanyLevelApi extends Service { private readonly API_BASEPATH: string = "https://management-test.adyen.com/v3"; @@ -45,14 +43,12 @@ export class APICredentialsCompanyLevelApi extends Service { const endpoint = `${this.baseUrl}/companies/{companyId}/apiCredentials` .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))); const resource = new Resource(this, endpoint); - const request: CreateCompanyApiCredentialRequest = ObjectSerializer.serialize(createCompanyApiCredentialRequest, "CreateCompanyApiCredentialRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "CreateCompanyApiCredentialResponse"); } @@ -68,13 +64,11 @@ export class APICredentialsCompanyLevelApi extends Service { .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))) .replace("{" + "apiCredentialId" + "}", encodeURIComponent(String(apiCredentialId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "CompanyApiCredential"); } @@ -90,7 +84,6 @@ export class APICredentialsCompanyLevelApi extends Service { const endpoint = `${this.baseUrl}/companies/{companyId}/apiCredentials` .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = pageNumber ?? pageSize; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -103,7 +96,6 @@ export class APICredentialsCompanyLevelApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "ListCompanyApiCredentialsResponse"); } @@ -120,15 +112,12 @@ export class APICredentialsCompanyLevelApi extends Service { .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))) .replace("{" + "apiCredentialId" + "}", encodeURIComponent(String(apiCredentialId))); const resource = new Resource(this, endpoint); - const request: UpdateCompanyApiCredentialRequest = ObjectSerializer.serialize(updateCompanyApiCredentialRequest, "UpdateCompanyApiCredentialRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "CompanyApiCredential"); } - } diff --git a/src/services/management/aPICredentialsMerchantLevelApi.ts b/src/services/management/aPICredentialsMerchantLevelApi.ts index 42dc3cad4..86830c0d6 100644 --- a/src/services/management/aPICredentialsMerchantLevelApi.ts +++ b/src/services/management/aPICredentialsMerchantLevelApi.ts @@ -7,23 +7,21 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + ApiCredential, + CreateApiCredentialResponse, + CreateMerchantApiCredentialRequest, + ListMerchantApiCredentialsResponse, + RestServiceError, + UpdateMerchantApiCredentialRequest, + ObjectSerializer +} from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { ApiCredential } from "../../typings/management/models"; -import { CreateApiCredentialResponse } from "../../typings/management/models"; -import { CreateMerchantApiCredentialRequest } from "../../typings/management/models"; -import { ListMerchantApiCredentialsResponse } from "../../typings/management/models"; -import { UpdateMerchantApiCredentialRequest } from "../../typings/management/models"; - -/** - * API handler for APICredentialsMerchantLevelApi - */ export class APICredentialsMerchantLevelApi extends Service { private readonly API_BASEPATH: string = "https://management-test.adyen.com/v3"; @@ -45,14 +43,12 @@ export class APICredentialsMerchantLevelApi extends Service { const endpoint = `${this.baseUrl}/merchants/{merchantId}/apiCredentials` .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))); const resource = new Resource(this, endpoint); - const request: CreateMerchantApiCredentialRequest = ObjectSerializer.serialize(createMerchantApiCredentialRequest, "CreateMerchantApiCredentialRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "CreateApiCredentialResponse"); } @@ -68,13 +64,11 @@ export class APICredentialsMerchantLevelApi extends Service { .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "apiCredentialId" + "}", encodeURIComponent(String(apiCredentialId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "ApiCredential"); } @@ -90,7 +84,6 @@ export class APICredentialsMerchantLevelApi extends Service { const endpoint = `${this.baseUrl}/merchants/{merchantId}/apiCredentials` .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = pageNumber ?? pageSize; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -103,7 +96,6 @@ export class APICredentialsMerchantLevelApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "ListMerchantApiCredentialsResponse"); } @@ -120,15 +112,12 @@ export class APICredentialsMerchantLevelApi extends Service { .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "apiCredentialId" + "}", encodeURIComponent(String(apiCredentialId))); const resource = new Resource(this, endpoint); - const request: UpdateMerchantApiCredentialRequest = ObjectSerializer.serialize(updateMerchantApiCredentialRequest, "UpdateMerchantApiCredentialRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "ApiCredential"); } - } diff --git a/src/services/management/aPIKeyCompanyLevelApi.ts b/src/services/management/aPIKeyCompanyLevelApi.ts index 5ad3a8a75..0a1070979 100644 --- a/src/services/management/aPIKeyCompanyLevelApi.ts +++ b/src/services/management/aPIKeyCompanyLevelApi.ts @@ -7,19 +7,17 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + GenerateApiKeyResponse, + RestServiceError, + ObjectSerializer +} from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { GenerateApiKeyResponse } from "../../typings/management/models"; - -/** - * API handler for APIKeyCompanyLevelApi - */ export class APIKeyCompanyLevelApi extends Service { private readonly API_BASEPATH: string = "https://management-test.adyen.com/v3"; @@ -42,14 +40,11 @@ export class APIKeyCompanyLevelApi extends Service { .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))) .replace("{" + "apiCredentialId" + "}", encodeURIComponent(String(apiCredentialId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "GenerateApiKeyResponse"); } - } diff --git a/src/services/management/aPIKeyMerchantLevelApi.ts b/src/services/management/aPIKeyMerchantLevelApi.ts index 6a9808c31..6b8740ab2 100644 --- a/src/services/management/aPIKeyMerchantLevelApi.ts +++ b/src/services/management/aPIKeyMerchantLevelApi.ts @@ -7,19 +7,17 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + GenerateApiKeyResponse, + RestServiceError, + ObjectSerializer +} from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { GenerateApiKeyResponse } from "../../typings/management/models"; - -/** - * API handler for APIKeyMerchantLevelApi - */ export class APIKeyMerchantLevelApi extends Service { private readonly API_BASEPATH: string = "https://management-test.adyen.com/v3"; @@ -42,14 +40,11 @@ export class APIKeyMerchantLevelApi extends Service { .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "apiCredentialId" + "}", encodeURIComponent(String(apiCredentialId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "GenerateApiKeyResponse"); } - } diff --git a/src/services/management/accountCompanyLevelApi.ts b/src/services/management/accountCompanyLevelApi.ts index e55965248..1caa3bc7e 100644 --- a/src/services/management/accountCompanyLevelApi.ts +++ b/src/services/management/accountCompanyLevelApi.ts @@ -7,21 +7,19 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + Company, + ListCompanyResponse, + ListMerchantResponse, + RestServiceError, + ObjectSerializer +} from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { Company } from "../../typings/management/models"; -import { ListCompanyResponse } from "../../typings/management/models"; -import { ListMerchantResponse } from "../../typings/management/models"; - -/** - * API handler for AccountCompanyLevelApi - */ export class AccountCompanyLevelApi extends Service { private readonly API_BASEPATH: string = "https://management-test.adyen.com/v3"; @@ -42,13 +40,11 @@ export class AccountCompanyLevelApi extends Service { const endpoint = `${this.baseUrl}/companies/{companyId}` .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "Company"); } @@ -62,7 +58,6 @@ export class AccountCompanyLevelApi extends Service { public async listCompanyAccounts(pageNumber?: number, pageSize?: number, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/companies`; const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = pageNumber ?? pageSize; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -75,7 +70,6 @@ export class AccountCompanyLevelApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "ListCompanyResponse"); } @@ -91,7 +85,6 @@ export class AccountCompanyLevelApi extends Service { const endpoint = `${this.baseUrl}/companies/{companyId}/merchants` .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = pageNumber ?? pageSize; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -104,8 +97,6 @@ export class AccountCompanyLevelApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "ListMerchantResponse"); } - } diff --git a/src/services/management/accountMerchantLevelApi.ts b/src/services/management/accountMerchantLevelApi.ts index e22ffdebc..3bd650245 100644 --- a/src/services/management/accountMerchantLevelApi.ts +++ b/src/services/management/accountMerchantLevelApi.ts @@ -7,23 +7,21 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + CreateMerchantRequest, + CreateMerchantResponse, + ListMerchantResponse, + Merchant, + RequestActivationResponse, + RestServiceError, + ObjectSerializer +} from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { CreateMerchantRequest } from "../../typings/management/models"; -import { CreateMerchantResponse } from "../../typings/management/models"; -import { ListMerchantResponse } from "../../typings/management/models"; -import { Merchant } from "../../typings/management/models"; -import { RequestActivationResponse } from "../../typings/management/models"; - -/** - * API handler for AccountMerchantLevelApi - */ export class AccountMerchantLevelApi extends Service { private readonly API_BASEPATH: string = "https://management-test.adyen.com/v3"; @@ -43,14 +41,12 @@ export class AccountMerchantLevelApi extends Service { public async createMerchantAccount(createMerchantRequest: CreateMerchantRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/merchants`; const resource = new Resource(this, endpoint); - const request: CreateMerchantRequest = ObjectSerializer.serialize(createMerchantRequest, "CreateMerchantRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "CreateMerchantResponse"); } @@ -64,13 +60,11 @@ export class AccountMerchantLevelApi extends Service { const endpoint = `${this.baseUrl}/merchants/{merchantId}` .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "Merchant"); } @@ -84,7 +78,6 @@ export class AccountMerchantLevelApi extends Service { public async listMerchantAccounts(pageNumber?: number, pageSize?: number, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/merchants`; const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = pageNumber ?? pageSize; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -97,7 +90,6 @@ export class AccountMerchantLevelApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "ListMerchantResponse"); } @@ -111,14 +103,11 @@ export class AccountMerchantLevelApi extends Service { const endpoint = `${this.baseUrl}/merchants/{merchantId}/activate` .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "RequestActivationResponse"); } - } diff --git a/src/services/management/accountStoreLevelApi.ts b/src/services/management/accountStoreLevelApi.ts index fd6c71231..b3d6c4d8c 100644 --- a/src/services/management/accountStoreLevelApi.ts +++ b/src/services/management/accountStoreLevelApi.ts @@ -7,23 +7,21 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + ListStoresResponse, + RestServiceError, + Store, + StoreCreationRequest, + StoreCreationWithMerchantCodeRequest, + UpdateStoreRequest, + ObjectSerializer +} from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { ListStoresResponse } from "../../typings/management/models"; -import { Store } from "../../typings/management/models"; -import { StoreCreationRequest } from "../../typings/management/models"; -import { StoreCreationWithMerchantCodeRequest } from "../../typings/management/models"; -import { UpdateStoreRequest } from "../../typings/management/models"; - -/** - * API handler for AccountStoreLevelApi - */ export class AccountStoreLevelApi extends Service { private readonly API_BASEPATH: string = "https://management-test.adyen.com/v3"; @@ -43,14 +41,12 @@ export class AccountStoreLevelApi extends Service { public async createStore(storeCreationWithMerchantCodeRequest: StoreCreationWithMerchantCodeRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/stores`; const resource = new Resource(this, endpoint); - const request: StoreCreationWithMerchantCodeRequest = ObjectSerializer.serialize(storeCreationWithMerchantCodeRequest, "StoreCreationWithMerchantCodeRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "Store"); } @@ -65,14 +61,12 @@ export class AccountStoreLevelApi extends Service { const endpoint = `${this.baseUrl}/merchants/{merchantId}/stores` .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))); const resource = new Resource(this, endpoint); - const request: StoreCreationRequest = ObjectSerializer.serialize(storeCreationRequest, "StoreCreationRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "Store"); } @@ -88,13 +82,11 @@ export class AccountStoreLevelApi extends Service { .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "storeId" + "}", encodeURIComponent(String(storeId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "Store"); } @@ -108,13 +100,11 @@ export class AccountStoreLevelApi extends Service { const endpoint = `${this.baseUrl}/stores/{storeId}` .replace("{" + "storeId" + "}", encodeURIComponent(String(storeId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "Store"); } @@ -130,7 +120,6 @@ export class AccountStoreLevelApi extends Service { public async listStores(pageNumber?: number, pageSize?: number, reference?: string, merchantId?: string, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/stores`; const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = pageNumber ?? pageSize ?? reference ?? merchantId; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -145,7 +134,6 @@ export class AccountStoreLevelApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "ListStoresResponse"); } @@ -162,7 +150,6 @@ export class AccountStoreLevelApi extends Service { const endpoint = `${this.baseUrl}/merchants/{merchantId}/stores` .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = pageNumber ?? pageSize ?? reference; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -176,7 +163,6 @@ export class AccountStoreLevelApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "ListStoresResponse"); } @@ -193,14 +179,12 @@ export class AccountStoreLevelApi extends Service { .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "storeId" + "}", encodeURIComponent(String(storeId))); const resource = new Resource(this, endpoint); - const request: UpdateStoreRequest = ObjectSerializer.serialize(updateStoreRequest, "UpdateStoreRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "Store"); } @@ -215,15 +199,12 @@ export class AccountStoreLevelApi extends Service { const endpoint = `${this.baseUrl}/stores/{storeId}` .replace("{" + "storeId" + "}", encodeURIComponent(String(storeId))); const resource = new Resource(this, endpoint); - const request: UpdateStoreRequest = ObjectSerializer.serialize(updateStoreRequest, "UpdateStoreRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "Store"); } - } diff --git a/src/services/management/allowedOriginsCompanyLevelApi.ts b/src/services/management/allowedOriginsCompanyLevelApi.ts index 02eb8cc7c..cd220b1b6 100644 --- a/src/services/management/allowedOriginsCompanyLevelApi.ts +++ b/src/services/management/allowedOriginsCompanyLevelApi.ts @@ -7,20 +7,18 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + AllowedOrigin, + AllowedOriginsResponse, + RestServiceError, + ObjectSerializer +} from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { AllowedOrigin } from "../../typings/management/models"; -import { AllowedOriginsResponse } from "../../typings/management/models"; - -/** - * API handler for AllowedOriginsCompanyLevelApi - */ export class AllowedOriginsCompanyLevelApi extends Service { private readonly API_BASEPATH: string = "https://management-test.adyen.com/v3"; @@ -44,14 +42,12 @@ export class AllowedOriginsCompanyLevelApi extends Service { .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))) .replace("{" + "apiCredentialId" + "}", encodeURIComponent(String(apiCredentialId))); const resource = new Resource(this, endpoint); - const request: AllowedOrigin = ObjectSerializer.serialize(allowedOrigin, "AllowedOrigin"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "AllowedOrigin"); } @@ -61,7 +57,6 @@ export class AllowedOriginsCompanyLevelApi extends Service { * @param apiCredentialId {@link string } Unique identifier of the API credential. * @param originId {@link string } Unique identifier of the allowed origin. * @param requestOptions {@link IRequest.Options } - * @return {@link void } */ public async deleteAllowedOrigin(companyId: string, apiCredentialId: string, originId: string, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/companies/{companyId}/apiCredentials/{apiCredentialId}/allowedOrigins/{originId}` @@ -69,7 +64,6 @@ export class AllowedOriginsCompanyLevelApi extends Service { .replace("{" + "apiCredentialId" + "}", encodeURIComponent(String(apiCredentialId))) .replace("{" + "originId" + "}", encodeURIComponent(String(originId))); const resource = new Resource(this, endpoint); - await getJsonResponse( resource, "", @@ -91,13 +85,11 @@ export class AllowedOriginsCompanyLevelApi extends Service { .replace("{" + "apiCredentialId" + "}", encodeURIComponent(String(apiCredentialId))) .replace("{" + "originId" + "}", encodeURIComponent(String(originId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "AllowedOrigin"); } @@ -113,14 +105,11 @@ export class AllowedOriginsCompanyLevelApi extends Service { .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))) .replace("{" + "apiCredentialId" + "}", encodeURIComponent(String(apiCredentialId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "AllowedOriginsResponse"); } - } diff --git a/src/services/management/allowedOriginsMerchantLevelApi.ts b/src/services/management/allowedOriginsMerchantLevelApi.ts index 3b2481134..c26620af1 100644 --- a/src/services/management/allowedOriginsMerchantLevelApi.ts +++ b/src/services/management/allowedOriginsMerchantLevelApi.ts @@ -7,20 +7,18 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + AllowedOrigin, + AllowedOriginsResponse, + RestServiceError, + ObjectSerializer +} from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { AllowedOrigin } from "../../typings/management/models"; -import { AllowedOriginsResponse } from "../../typings/management/models"; - -/** - * API handler for AllowedOriginsMerchantLevelApi - */ export class AllowedOriginsMerchantLevelApi extends Service { private readonly API_BASEPATH: string = "https://management-test.adyen.com/v3"; @@ -44,14 +42,12 @@ export class AllowedOriginsMerchantLevelApi extends Service { .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "apiCredentialId" + "}", encodeURIComponent(String(apiCredentialId))); const resource = new Resource(this, endpoint); - const request: AllowedOrigin = ObjectSerializer.serialize(allowedOrigin, "AllowedOrigin"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "AllowedOrigin"); } @@ -61,7 +57,6 @@ export class AllowedOriginsMerchantLevelApi extends Service { * @param apiCredentialId {@link string } Unique identifier of the API credential. * @param originId {@link string } Unique identifier of the allowed origin. * @param requestOptions {@link IRequest.Options } - * @return {@link void } */ public async deleteAllowedOrigin(merchantId: string, apiCredentialId: string, originId: string, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/merchants/{merchantId}/apiCredentials/{apiCredentialId}/allowedOrigins/{originId}` @@ -69,7 +64,6 @@ export class AllowedOriginsMerchantLevelApi extends Service { .replace("{" + "apiCredentialId" + "}", encodeURIComponent(String(apiCredentialId))) .replace("{" + "originId" + "}", encodeURIComponent(String(originId))); const resource = new Resource(this, endpoint); - await getJsonResponse( resource, "", @@ -91,13 +85,11 @@ export class AllowedOriginsMerchantLevelApi extends Service { .replace("{" + "apiCredentialId" + "}", encodeURIComponent(String(apiCredentialId))) .replace("{" + "originId" + "}", encodeURIComponent(String(originId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "AllowedOrigin"); } @@ -113,14 +105,11 @@ export class AllowedOriginsMerchantLevelApi extends Service { .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "apiCredentialId" + "}", encodeURIComponent(String(apiCredentialId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "AllowedOriginsResponse"); } - } diff --git a/src/services/management/androidFilesCompanyLevelApi.ts b/src/services/management/androidFilesCompanyLevelApi.ts index ccb2f5b42..cb47700f1 100644 --- a/src/services/management/androidFilesCompanyLevelApi.ts +++ b/src/services/management/androidFilesCompanyLevelApi.ts @@ -7,24 +7,22 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + AndroidApp, + AndroidAppsResponse, + AndroidCertificatesResponse, + ReprocessAndroidAppResponse, + RestServiceError, + UploadAndroidAppResponse, + UploadAndroidCertificateResponse, + ObjectSerializer +} from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { AndroidApp } from "../../typings/management/models"; -import { AndroidAppsResponse } from "../../typings/management/models"; -import { AndroidCertificatesResponse } from "../../typings/management/models"; -import { ReprocessAndroidAppResponse } from "../../typings/management/models"; -import { UploadAndroidAppResponse } from "../../typings/management/models"; -import { UploadAndroidCertificateResponse } from "../../typings/management/models"; - -/** - * API handler for AndroidFilesCompanyLevelApi - */ export class AndroidFilesCompanyLevelApi extends Service { private readonly API_BASEPATH: string = "https://management-test.adyen.com/v3"; @@ -47,13 +45,11 @@ export class AndroidFilesCompanyLevelApi extends Service { .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))) .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "AndroidApp"); } @@ -71,7 +67,6 @@ export class AndroidFilesCompanyLevelApi extends Service { const endpoint = `${this.baseUrl}/companies/{companyId}/androidApps` .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = pageNumber ?? pageSize ?? packageName ?? versionCode; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -86,7 +81,6 @@ export class AndroidFilesCompanyLevelApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "AndroidAppsResponse"); } @@ -103,7 +97,6 @@ export class AndroidFilesCompanyLevelApi extends Service { const endpoint = `${this.baseUrl}/companies/{companyId}/androidCertificates` .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = pageNumber ?? pageSize ?? certificateName; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -117,7 +110,6 @@ export class AndroidFilesCompanyLevelApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "AndroidCertificatesResponse"); } @@ -133,13 +125,11 @@ export class AndroidFilesCompanyLevelApi extends Service { .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))) .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "ReprocessAndroidAppResponse"); } @@ -153,13 +143,11 @@ export class AndroidFilesCompanyLevelApi extends Service { const endpoint = `${this.baseUrl}/companies/{companyId}/androidApps` .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "UploadAndroidAppResponse"); } @@ -173,14 +161,11 @@ export class AndroidFilesCompanyLevelApi extends Service { const endpoint = `${this.baseUrl}/companies/{companyId}/androidCertificates` .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "UploadAndroidCertificateResponse"); } - } diff --git a/src/services/management/clientKeyCompanyLevelApi.ts b/src/services/management/clientKeyCompanyLevelApi.ts index 90fdac5e5..3369429bb 100644 --- a/src/services/management/clientKeyCompanyLevelApi.ts +++ b/src/services/management/clientKeyCompanyLevelApi.ts @@ -7,19 +7,17 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + GenerateClientKeyResponse, + RestServiceError, + ObjectSerializer +} from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { GenerateClientKeyResponse } from "../../typings/management/models"; - -/** - * API handler for ClientKeyCompanyLevelApi - */ export class ClientKeyCompanyLevelApi extends Service { private readonly API_BASEPATH: string = "https://management-test.adyen.com/v3"; @@ -42,14 +40,11 @@ export class ClientKeyCompanyLevelApi extends Service { .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))) .replace("{" + "apiCredentialId" + "}", encodeURIComponent(String(apiCredentialId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "GenerateClientKeyResponse"); } - } diff --git a/src/services/management/clientKeyMerchantLevelApi.ts b/src/services/management/clientKeyMerchantLevelApi.ts index 9bf69808c..eb2c13d28 100644 --- a/src/services/management/clientKeyMerchantLevelApi.ts +++ b/src/services/management/clientKeyMerchantLevelApi.ts @@ -7,19 +7,17 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + GenerateClientKeyResponse, + RestServiceError, + ObjectSerializer +} from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { GenerateClientKeyResponse } from "../../typings/management/models"; - -/** - * API handler for ClientKeyMerchantLevelApi - */ export class ClientKeyMerchantLevelApi extends Service { private readonly API_BASEPATH: string = "https://management-test.adyen.com/v3"; @@ -42,14 +40,11 @@ export class ClientKeyMerchantLevelApi extends Service { .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "apiCredentialId" + "}", encodeURIComponent(String(apiCredentialId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "GenerateClientKeyResponse"); } - } diff --git a/src/services/management/myAPICredentialApi.ts b/src/services/management/myAPICredentialApi.ts index db24ad8e4..4d80fd02f 100644 --- a/src/services/management/myAPICredentialApi.ts +++ b/src/services/management/myAPICredentialApi.ts @@ -7,23 +7,21 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + AllowedOrigin, + AllowedOriginsResponse, + CreateAllowedOriginRequest, + GenerateClientKeyResponse, + MeApiCredential, + RestServiceError, + ObjectSerializer +} from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { AllowedOrigin } from "../../typings/management/models"; -import { AllowedOriginsResponse } from "../../typings/management/models"; -import { CreateAllowedOriginRequest } from "../../typings/management/models"; -import { GenerateClientKeyResponse } from "../../typings/management/models"; -import { MeApiCredential } from "../../typings/management/models"; - -/** - * API handler for MyAPICredentialApi - */ export class MyAPICredentialApi extends Service { private readonly API_BASEPATH: string = "https://management-test.adyen.com/v3"; @@ -43,14 +41,12 @@ export class MyAPICredentialApi extends Service { public async addAllowedOrigin(createAllowedOriginRequest: CreateAllowedOriginRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/me/allowedOrigins`; const resource = new Resource(this, endpoint); - const request: CreateAllowedOriginRequest = ObjectSerializer.serialize(createAllowedOriginRequest, "CreateAllowedOriginRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "AllowedOrigin"); } @@ -62,13 +58,11 @@ export class MyAPICredentialApi extends Service { public async generateClientKey(requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/me/generateClientKey`; const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "GenerateClientKeyResponse"); } @@ -82,13 +76,11 @@ export class MyAPICredentialApi extends Service { const endpoint = `${this.baseUrl}/me/allowedOrigins/{originId}` .replace("{" + "originId" + "}", encodeURIComponent(String(originId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "AllowedOrigin"); } @@ -100,13 +92,11 @@ export class MyAPICredentialApi extends Service { public async getAllowedOrigins(requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/me/allowedOrigins`; const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "AllowedOriginsResponse"); } @@ -118,13 +108,11 @@ export class MyAPICredentialApi extends Service { public async getApiCredentialDetails(requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/me`; const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "MeApiCredential"); } @@ -132,18 +120,15 @@ export class MyAPICredentialApi extends Service { * @summary Remove allowed origin * @param originId {@link string } Unique identifier of the allowed origin. * @param requestOptions {@link IRequest.Options } - * @return {@link void } */ public async removeAllowedOrigin(originId: string, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/me/allowedOrigins/{originId}` .replace("{" + "originId" + "}", encodeURIComponent(String(originId))); const resource = new Resource(this, endpoint); - await getJsonResponse( resource, "", { ...requestOptions, method: "DELETE" } ); } - } diff --git a/src/services/management/paymentMethodsMerchantLevelApi.ts b/src/services/management/paymentMethodsMerchantLevelApi.ts index 088a7e103..4953f5af4 100644 --- a/src/services/management/paymentMethodsMerchantLevelApi.ts +++ b/src/services/management/paymentMethodsMerchantLevelApi.ts @@ -7,23 +7,21 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + ApplePayInfo, + PaymentMethod, + PaymentMethodResponse, + PaymentMethodSetupInfo, + RestServiceError, + UpdatePaymentMethodInfo, + ObjectSerializer +} from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { ApplePayInfo } from "../../typings/management/models"; -import { PaymentMethod } from "../../typings/management/models"; -import { PaymentMethodResponse } from "../../typings/management/models"; -import { PaymentMethodSetupInfo } from "../../typings/management/models"; -import { UpdatePaymentMethodInfo } from "../../typings/management/models"; - -/** - * API handler for PaymentMethodsMerchantLevelApi - */ export class PaymentMethodsMerchantLevelApi extends Service { private readonly API_BASEPATH: string = "https://management-test.adyen.com/v3"; @@ -40,14 +38,12 @@ export class PaymentMethodsMerchantLevelApi extends Service { * @param paymentMethodId {@link string } The unique identifier of the payment method. * @param applePayInfo {@link ApplePayInfo } * @param requestOptions {@link IRequest.Options } - * @return {@link void } */ public async addApplePayDomain(merchantId: string, paymentMethodId: string, applePayInfo: ApplePayInfo, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}/addApplePayDomains` .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "paymentMethodId" + "}", encodeURIComponent(String(paymentMethodId))); const resource = new Resource(this, endpoint); - const request: ApplePayInfo = ObjectSerializer.serialize(applePayInfo, "ApplePayInfo"); await getJsonResponse( resource, @@ -70,7 +66,6 @@ export class PaymentMethodsMerchantLevelApi extends Service { const endpoint = `${this.baseUrl}/merchants/{merchantId}/paymentMethodSettings` .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = storeId ?? businessLineId ?? pageSize ?? pageNumber; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -85,7 +80,6 @@ export class PaymentMethodsMerchantLevelApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "PaymentMethodResponse"); } @@ -101,13 +95,11 @@ export class PaymentMethodsMerchantLevelApi extends Service { .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "paymentMethodId" + "}", encodeURIComponent(String(paymentMethodId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "ApplePayInfo"); } @@ -123,13 +115,11 @@ export class PaymentMethodsMerchantLevelApi extends Service { .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "paymentMethodId" + "}", encodeURIComponent(String(paymentMethodId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "PaymentMethod"); } @@ -144,14 +134,12 @@ export class PaymentMethodsMerchantLevelApi extends Service { const endpoint = `${this.baseUrl}/merchants/{merchantId}/paymentMethodSettings` .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))); const resource = new Resource(this, endpoint); - const request: PaymentMethodSetupInfo = ObjectSerializer.serialize(paymentMethodSetupInfo, "PaymentMethodSetupInfo"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "PaymentMethod"); } @@ -168,15 +156,12 @@ export class PaymentMethodsMerchantLevelApi extends Service { .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "paymentMethodId" + "}", encodeURIComponent(String(paymentMethodId))); const resource = new Resource(this, endpoint); - const request: UpdatePaymentMethodInfo = ObjectSerializer.serialize(updatePaymentMethodInfo, "UpdatePaymentMethodInfo"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "PaymentMethod"); } - } diff --git a/src/services/management/payoutSettingsMerchantLevelApi.ts b/src/services/management/payoutSettingsMerchantLevelApi.ts index 3abce7b65..b70bce7f8 100644 --- a/src/services/management/payoutSettingsMerchantLevelApi.ts +++ b/src/services/management/payoutSettingsMerchantLevelApi.ts @@ -7,22 +7,20 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + PayoutSettings, + PayoutSettingsRequest, + PayoutSettingsResponse, + RestServiceError, + UpdatePayoutSettingsRequest, + ObjectSerializer +} from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { PayoutSettings } from "../../typings/management/models"; -import { PayoutSettingsRequest } from "../../typings/management/models"; -import { PayoutSettingsResponse } from "../../typings/management/models"; -import { UpdatePayoutSettingsRequest } from "../../typings/management/models"; - -/** - * API handler for PayoutSettingsMerchantLevelApi - */ export class PayoutSettingsMerchantLevelApi extends Service { private readonly API_BASEPATH: string = "https://management-test.adyen.com/v3"; @@ -44,14 +42,12 @@ export class PayoutSettingsMerchantLevelApi extends Service { const endpoint = `${this.baseUrl}/merchants/{merchantId}/payoutSettings` .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))); const resource = new Resource(this, endpoint); - const request: PayoutSettingsRequest = ObjectSerializer.serialize(payoutSettingsRequest, "PayoutSettingsRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "PayoutSettings"); } @@ -60,14 +56,12 @@ export class PayoutSettingsMerchantLevelApi extends Service { * @param merchantId {@link string } The unique identifier of the merchant account. * @param payoutSettingsId {@link string } The unique identifier of the payout setting. * @param requestOptions {@link IRequest.Options } - * @return {@link void } */ public async deletePayoutSetting(merchantId: string, payoutSettingsId: string, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/merchants/{merchantId}/payoutSettings/{payoutSettingsId}` .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "payoutSettingsId" + "}", encodeURIComponent(String(payoutSettingsId))); const resource = new Resource(this, endpoint); - await getJsonResponse( resource, "", @@ -87,13 +81,11 @@ export class PayoutSettingsMerchantLevelApi extends Service { .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "payoutSettingsId" + "}", encodeURIComponent(String(payoutSettingsId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "PayoutSettings"); } @@ -107,13 +99,11 @@ export class PayoutSettingsMerchantLevelApi extends Service { const endpoint = `${this.baseUrl}/merchants/{merchantId}/payoutSettings` .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "PayoutSettingsResponse"); } @@ -130,15 +120,12 @@ export class PayoutSettingsMerchantLevelApi extends Service { .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "payoutSettingsId" + "}", encodeURIComponent(String(payoutSettingsId))); const resource = new Resource(this, endpoint); - const request: UpdatePayoutSettingsRequest = ObjectSerializer.serialize(updatePayoutSettingsRequest, "UpdatePayoutSettingsRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "PayoutSettings"); } - } diff --git a/src/services/management/splitConfigurationMerchantLevelApi.ts b/src/services/management/splitConfigurationMerchantLevelApi.ts index 0675dfaf0..a266ee9be 100644 --- a/src/services/management/splitConfigurationMerchantLevelApi.ts +++ b/src/services/management/splitConfigurationMerchantLevelApi.ts @@ -7,24 +7,22 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + RestServiceError, + SplitConfiguration, + SplitConfigurationList, + SplitConfigurationRule, + UpdateSplitConfigurationLogicRequest, + UpdateSplitConfigurationRequest, + UpdateSplitConfigurationRuleRequest, + ObjectSerializer +} from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { SplitConfiguration } from "../../typings/management/models"; -import { SplitConfigurationList } from "../../typings/management/models"; -import { SplitConfigurationRule } from "../../typings/management/models"; -import { UpdateSplitConfigurationLogicRequest } from "../../typings/management/models"; -import { UpdateSplitConfigurationRequest } from "../../typings/management/models"; -import { UpdateSplitConfigurationRuleRequest } from "../../typings/management/models"; - -/** - * API handler for SplitConfigurationMerchantLevelApi - */ export class SplitConfigurationMerchantLevelApi extends Service { private readonly API_BASEPATH: string = "https://management-test.adyen.com/v3"; @@ -48,14 +46,12 @@ export class SplitConfigurationMerchantLevelApi extends Service { .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "splitConfigurationId" + "}", encodeURIComponent(String(splitConfigurationId))); const resource = new Resource(this, endpoint); - const request: SplitConfigurationRule = ObjectSerializer.serialize(splitConfigurationRule, "SplitConfigurationRule"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "SplitConfiguration"); } @@ -70,14 +66,12 @@ export class SplitConfigurationMerchantLevelApi extends Service { const endpoint = `${this.baseUrl}/merchants/{merchantId}/splitConfigurations` .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))); const resource = new Resource(this, endpoint); - const request: SplitConfiguration = ObjectSerializer.serialize(splitConfiguration, "SplitConfiguration"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "SplitConfiguration"); } @@ -93,13 +87,11 @@ export class SplitConfigurationMerchantLevelApi extends Service { .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "splitConfigurationId" + "}", encodeURIComponent(String(splitConfigurationId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "DELETE" } ); - return ObjectSerializer.deserialize(response, "SplitConfiguration"); } @@ -117,13 +109,11 @@ export class SplitConfigurationMerchantLevelApi extends Service { .replace("{" + "splitConfigurationId" + "}", encodeURIComponent(String(splitConfigurationId))) .replace("{" + "ruleId" + "}", encodeURIComponent(String(ruleId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "DELETE" } ); - return ObjectSerializer.deserialize(response, "SplitConfiguration"); } @@ -139,13 +129,11 @@ export class SplitConfigurationMerchantLevelApi extends Service { .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "splitConfigurationId" + "}", encodeURIComponent(String(splitConfigurationId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "SplitConfiguration"); } @@ -159,13 +147,11 @@ export class SplitConfigurationMerchantLevelApi extends Service { const endpoint = `${this.baseUrl}/merchants/{merchantId}/splitConfigurations` .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "SplitConfigurationList"); } @@ -184,14 +170,12 @@ export class SplitConfigurationMerchantLevelApi extends Service { .replace("{" + "splitConfigurationId" + "}", encodeURIComponent(String(splitConfigurationId))) .replace("{" + "ruleId" + "}", encodeURIComponent(String(ruleId))); const resource = new Resource(this, endpoint); - const request: UpdateSplitConfigurationRuleRequest = ObjectSerializer.serialize(updateSplitConfigurationRuleRequest, "UpdateSplitConfigurationRuleRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "SplitConfiguration"); } @@ -208,14 +192,12 @@ export class SplitConfigurationMerchantLevelApi extends Service { .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "splitConfigurationId" + "}", encodeURIComponent(String(splitConfigurationId))); const resource = new Resource(this, endpoint); - const request: UpdateSplitConfigurationRequest = ObjectSerializer.serialize(updateSplitConfigurationRequest, "UpdateSplitConfigurationRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "SplitConfiguration"); } @@ -236,15 +218,12 @@ export class SplitConfigurationMerchantLevelApi extends Service { .replace("{" + "ruleId" + "}", encodeURIComponent(String(ruleId))) .replace("{" + "splitLogicId" + "}", encodeURIComponent(String(splitLogicId))); const resource = new Resource(this, endpoint); - const request: UpdateSplitConfigurationLogicRequest = ObjectSerializer.serialize(updateSplitConfigurationLogicRequest, "UpdateSplitConfigurationLogicRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "SplitConfiguration"); } - } diff --git a/src/services/management/terminalActionsCompanyLevelApi.ts b/src/services/management/terminalActionsCompanyLevelApi.ts index 1f06ac54c..5cdad0cac 100644 --- a/src/services/management/terminalActionsCompanyLevelApi.ts +++ b/src/services/management/terminalActionsCompanyLevelApi.ts @@ -7,20 +7,18 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + ExternalTerminalAction, + ListExternalTerminalActionsResponse, + RestServiceError, + ObjectSerializer +} from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { ExternalTerminalAction } from "../../typings/management/models"; -import { ListExternalTerminalActionsResponse } from "../../typings/management/models"; - -/** - * API handler for TerminalActionsCompanyLevelApi - */ export class TerminalActionsCompanyLevelApi extends Service { private readonly API_BASEPATH: string = "https://management-test.adyen.com/v3"; @@ -43,13 +41,11 @@ export class TerminalActionsCompanyLevelApi extends Service { .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))) .replace("{" + "actionId" + "}", encodeURIComponent(String(actionId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "ExternalTerminalAction"); } @@ -67,7 +63,6 @@ export class TerminalActionsCompanyLevelApi extends Service { const endpoint = `${this.baseUrl}/companies/{companyId}/terminalActions` .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = pageNumber ?? pageSize ?? status ?? type; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -82,8 +77,6 @@ export class TerminalActionsCompanyLevelApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "ListExternalTerminalActionsResponse"); } - } diff --git a/src/services/management/terminalActionsTerminalLevelApi.ts b/src/services/management/terminalActionsTerminalLevelApi.ts index 82440e1c1..783686fe0 100644 --- a/src/services/management/terminalActionsTerminalLevelApi.ts +++ b/src/services/management/terminalActionsTerminalLevelApi.ts @@ -7,20 +7,18 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + RestServiceError, + ScheduleTerminalActionsRequest, + ScheduleTerminalActionsResponse, + ObjectSerializer +} from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { ScheduleTerminalActionsRequest } from "../../typings/management/models"; -import { ScheduleTerminalActionsResponse } from "../../typings/management/models"; - -/** - * API handler for TerminalActionsTerminalLevelApi - */ export class TerminalActionsTerminalLevelApi extends Service { private readonly API_BASEPATH: string = "https://management-test.adyen.com/v3"; @@ -40,15 +38,12 @@ export class TerminalActionsTerminalLevelApi extends Service { public async createTerminalAction(scheduleTerminalActionsRequest: ScheduleTerminalActionsRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/terminals/scheduleActions`; const resource = new Resource(this, endpoint); - const request: ScheduleTerminalActionsRequest = ObjectSerializer.serialize(scheduleTerminalActionsRequest, "ScheduleTerminalActionsRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "ScheduleTerminalActionsResponse"); } - } diff --git a/src/services/management/terminalOrdersCompanyLevelApi.ts b/src/services/management/terminalOrdersCompanyLevelApi.ts index 6f027b9cf..31a81297d 100644 --- a/src/services/management/terminalOrdersCompanyLevelApi.ts +++ b/src/services/management/terminalOrdersCompanyLevelApi.ts @@ -7,26 +7,24 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + BillingEntitiesResponse, + RestServiceError, + ShippingLocation, + ShippingLocationsResponse, + TerminalModelsResponse, + TerminalOrder, + TerminalOrderRequest, + TerminalOrdersResponse, + TerminalProductsResponse, + ObjectSerializer +} from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { BillingEntitiesResponse } from "../../typings/management/models"; -import { ShippingLocation } from "../../typings/management/models"; -import { ShippingLocationsResponse } from "../../typings/management/models"; -import { TerminalModelsResponse } from "../../typings/management/models"; -import { TerminalOrder } from "../../typings/management/models"; -import { TerminalOrderRequest } from "../../typings/management/models"; -import { TerminalOrdersResponse } from "../../typings/management/models"; -import { TerminalProductsResponse } from "../../typings/management/models"; - -/** - * API handler for TerminalOrdersCompanyLevelApi - */ export class TerminalOrdersCompanyLevelApi extends Service { private readonly API_BASEPATH: string = "https://management-test.adyen.com/v3"; @@ -49,13 +47,11 @@ export class TerminalOrdersCompanyLevelApi extends Service { .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))) .replace("{" + "orderId" + "}", encodeURIComponent(String(orderId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "TerminalOrder"); } @@ -70,14 +66,12 @@ export class TerminalOrdersCompanyLevelApi extends Service { const endpoint = `${this.baseUrl}/companies/{companyId}/terminalOrders` .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))); const resource = new Resource(this, endpoint); - const request: TerminalOrderRequest = ObjectSerializer.serialize(terminalOrderRequest, "TerminalOrderRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "TerminalOrder"); } @@ -92,14 +86,12 @@ export class TerminalOrdersCompanyLevelApi extends Service { const endpoint = `${this.baseUrl}/companies/{companyId}/shippingLocations` .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))); const resource = new Resource(this, endpoint); - const request: ShippingLocation = ObjectSerializer.serialize(shippingLocation, "ShippingLocation"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "ShippingLocation"); } @@ -115,13 +107,11 @@ export class TerminalOrdersCompanyLevelApi extends Service { .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))) .replace("{" + "orderId" + "}", encodeURIComponent(String(orderId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "TerminalOrder"); } @@ -136,7 +126,6 @@ export class TerminalOrdersCompanyLevelApi extends Service { const endpoint = `${this.baseUrl}/companies/{companyId}/billingEntities` .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = name; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -148,7 +137,6 @@ export class TerminalOrdersCompanyLevelApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "BillingEntitiesResponse"); } @@ -166,7 +154,6 @@ export class TerminalOrdersCompanyLevelApi extends Service { const endpoint = `${this.baseUrl}/companies/{companyId}/terminalOrders` .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = customerOrderReference ?? status ?? offset ?? limit; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -181,7 +168,6 @@ export class TerminalOrdersCompanyLevelApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "TerminalOrdersResponse"); } @@ -198,7 +184,6 @@ export class TerminalOrdersCompanyLevelApi extends Service { const endpoint = `${this.baseUrl}/companies/{companyId}/shippingLocations` .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = name ?? offset ?? limit; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -212,7 +197,6 @@ export class TerminalOrdersCompanyLevelApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "ShippingLocationsResponse"); } @@ -226,13 +210,11 @@ export class TerminalOrdersCompanyLevelApi extends Service { const endpoint = `${this.baseUrl}/companies/{companyId}/terminalModels` .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "TerminalModelsResponse"); } @@ -240,7 +222,7 @@ export class TerminalOrdersCompanyLevelApi extends Service { * @summary Get a list of terminal products * @param companyId {@link string } The unique identifier of the company account. * @param requestOptions {@link IRequest.Options } - * @param country {@link string } (Required) The country to return products for, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. For example, **US** + * @param country {@link string } The country to return products for, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. For example, **US** * @param terminalModelId {@link string } The terminal model to return products for. Use the ID returned in the [GET `/terminalModels`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/companies/{companyId}/terminalModels) response. For example, **Verifone.M400** * @param offset {@link number } The number of products to skip. * @param limit {@link number } The number of products to return. @@ -250,7 +232,6 @@ export class TerminalOrdersCompanyLevelApi extends Service { const endpoint = `${this.baseUrl}/companies/{companyId}/terminalProducts` .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = country ?? terminalModelId ?? offset ?? limit; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -265,7 +246,6 @@ export class TerminalOrdersCompanyLevelApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "TerminalProductsResponse"); } @@ -282,15 +262,12 @@ export class TerminalOrdersCompanyLevelApi extends Service { .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))) .replace("{" + "orderId" + "}", encodeURIComponent(String(orderId))); const resource = new Resource(this, endpoint); - const request: TerminalOrderRequest = ObjectSerializer.serialize(terminalOrderRequest, "TerminalOrderRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "TerminalOrder"); } - } diff --git a/src/services/management/terminalOrdersMerchantLevelApi.ts b/src/services/management/terminalOrdersMerchantLevelApi.ts index af401acf4..c53bfd244 100644 --- a/src/services/management/terminalOrdersMerchantLevelApi.ts +++ b/src/services/management/terminalOrdersMerchantLevelApi.ts @@ -7,26 +7,24 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + BillingEntitiesResponse, + RestServiceError, + ShippingLocation, + ShippingLocationsResponse, + TerminalModelsResponse, + TerminalOrder, + TerminalOrderRequest, + TerminalOrdersResponse, + TerminalProductsResponse, + ObjectSerializer +} from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { BillingEntitiesResponse } from "../../typings/management/models"; -import { ShippingLocation } from "../../typings/management/models"; -import { ShippingLocationsResponse } from "../../typings/management/models"; -import { TerminalModelsResponse } from "../../typings/management/models"; -import { TerminalOrder } from "../../typings/management/models"; -import { TerminalOrderRequest } from "../../typings/management/models"; -import { TerminalOrdersResponse } from "../../typings/management/models"; -import { TerminalProductsResponse } from "../../typings/management/models"; - -/** - * API handler for TerminalOrdersMerchantLevelApi - */ export class TerminalOrdersMerchantLevelApi extends Service { private readonly API_BASEPATH: string = "https://management-test.adyen.com/v3"; @@ -49,13 +47,11 @@ export class TerminalOrdersMerchantLevelApi extends Service { .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "orderId" + "}", encodeURIComponent(String(orderId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "TerminalOrder"); } @@ -70,14 +66,12 @@ export class TerminalOrdersMerchantLevelApi extends Service { const endpoint = `${this.baseUrl}/merchants/{merchantId}/terminalOrders` .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))); const resource = new Resource(this, endpoint); - const request: TerminalOrderRequest = ObjectSerializer.serialize(terminalOrderRequest, "TerminalOrderRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "TerminalOrder"); } @@ -92,14 +86,12 @@ export class TerminalOrdersMerchantLevelApi extends Service { const endpoint = `${this.baseUrl}/merchants/{merchantId}/shippingLocations` .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))); const resource = new Resource(this, endpoint); - const request: ShippingLocation = ObjectSerializer.serialize(shippingLocation, "ShippingLocation"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "ShippingLocation"); } @@ -115,13 +107,11 @@ export class TerminalOrdersMerchantLevelApi extends Service { .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "orderId" + "}", encodeURIComponent(String(orderId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "TerminalOrder"); } @@ -136,7 +126,6 @@ export class TerminalOrdersMerchantLevelApi extends Service { const endpoint = `${this.baseUrl}/merchants/{merchantId}/billingEntities` .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = name; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -148,7 +137,6 @@ export class TerminalOrdersMerchantLevelApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "BillingEntitiesResponse"); } @@ -166,7 +154,6 @@ export class TerminalOrdersMerchantLevelApi extends Service { const endpoint = `${this.baseUrl}/merchants/{merchantId}/terminalOrders` .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = customerOrderReference ?? status ?? offset ?? limit; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -181,7 +168,6 @@ export class TerminalOrdersMerchantLevelApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "TerminalOrdersResponse"); } @@ -198,7 +184,6 @@ export class TerminalOrdersMerchantLevelApi extends Service { const endpoint = `${this.baseUrl}/merchants/{merchantId}/shippingLocations` .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = name ?? offset ?? limit; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -212,7 +197,6 @@ export class TerminalOrdersMerchantLevelApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "ShippingLocationsResponse"); } @@ -226,13 +210,11 @@ export class TerminalOrdersMerchantLevelApi extends Service { const endpoint = `${this.baseUrl}/merchants/{merchantId}/terminalModels` .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "TerminalModelsResponse"); } @@ -240,7 +222,7 @@ export class TerminalOrdersMerchantLevelApi extends Service { * @summary Get a list of terminal products * @param merchantId {@link string } The unique identifier of the merchant account. * @param requestOptions {@link IRequest.Options } - * @param country {@link string } (Required) The country to return products for, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. For example, **US** + * @param country {@link string } The country to return products for, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. For example, **US** * @param terminalModelId {@link string } The terminal model to return products for. Use the ID returned in the [GET `/terminalModels`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/merchants/{merchantId}/terminalModels) response. For example, **Verifone.M400** * @param offset {@link number } The number of products to skip. * @param limit {@link number } The number of products to return. @@ -250,7 +232,6 @@ export class TerminalOrdersMerchantLevelApi extends Service { const endpoint = `${this.baseUrl}/merchants/{merchantId}/terminalProducts` .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = country ?? terminalModelId ?? offset ?? limit; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -265,7 +246,6 @@ export class TerminalOrdersMerchantLevelApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "TerminalProductsResponse"); } @@ -282,15 +262,12 @@ export class TerminalOrdersMerchantLevelApi extends Service { .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "orderId" + "}", encodeURIComponent(String(orderId))); const resource = new Resource(this, endpoint); - const request: TerminalOrderRequest = ObjectSerializer.serialize(terminalOrderRequest, "TerminalOrderRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "TerminalOrder"); } - } diff --git a/src/services/management/terminalSettingsCompanyLevelApi.ts b/src/services/management/terminalSettingsCompanyLevelApi.ts index f7e6ab7f6..ebb5fede0 100644 --- a/src/services/management/terminalSettingsCompanyLevelApi.ts +++ b/src/services/management/terminalSettingsCompanyLevelApi.ts @@ -7,20 +7,18 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + Logo, + RestServiceError, + TerminalSettings, + ObjectSerializer +} from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { Logo } from "../../typings/management/models"; -import { TerminalSettings } from "../../typings/management/models"; - -/** - * API handler for TerminalSettingsCompanyLevelApi - */ export class TerminalSettingsCompanyLevelApi extends Service { private readonly API_BASEPATH: string = "https://management-test.adyen.com/v3"; @@ -35,14 +33,13 @@ export class TerminalSettingsCompanyLevelApi extends Service { * @summary Get the terminal logo * @param companyId {@link string } The unique identifier of the company account. * @param requestOptions {@link IRequest.Options } - * @param model {@link string } (Required) The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. + * @param model {@link string } The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. * @return {@link Logo } */ public async getTerminalLogo(companyId: string, model: string, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/companies/{companyId}/terminalLogos` .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = model; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -54,7 +51,6 @@ export class TerminalSettingsCompanyLevelApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "Logo"); } @@ -68,13 +64,11 @@ export class TerminalSettingsCompanyLevelApi extends Service { const endpoint = `${this.baseUrl}/companies/{companyId}/terminalSettings` .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "TerminalSettings"); } @@ -83,14 +77,13 @@ export class TerminalSettingsCompanyLevelApi extends Service { * @param companyId {@link string } The unique identifier of the company account. * @param logo {@link Logo } * @param requestOptions {@link IRequest.Options } - * @param model {@link string } (Required) The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. + * @param model {@link string } The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. * @return {@link Logo } */ public async updateTerminalLogo(companyId: string, logo: Logo, model: string, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/companies/{companyId}/terminalLogos` .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))); const resource = new Resource(this, endpoint); - const request: Logo = ObjectSerializer.serialize(logo, "Logo"); const hasDefinedQueryParams = model; if(hasDefinedQueryParams) { @@ -103,7 +96,6 @@ export class TerminalSettingsCompanyLevelApi extends Service { request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "Logo"); } @@ -118,15 +110,12 @@ export class TerminalSettingsCompanyLevelApi extends Service { const endpoint = `${this.baseUrl}/companies/{companyId}/terminalSettings` .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))); const resource = new Resource(this, endpoint); - const request: TerminalSettings = ObjectSerializer.serialize(terminalSettings, "TerminalSettings"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "TerminalSettings"); } - } diff --git a/src/services/management/terminalSettingsMerchantLevelApi.ts b/src/services/management/terminalSettingsMerchantLevelApi.ts index efacc8294..f281864ac 100644 --- a/src/services/management/terminalSettingsMerchantLevelApi.ts +++ b/src/services/management/terminalSettingsMerchantLevelApi.ts @@ -7,20 +7,18 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + Logo, + RestServiceError, + TerminalSettings, + ObjectSerializer +} from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { Logo } from "../../typings/management/models"; -import { TerminalSettings } from "../../typings/management/models"; - -/** - * API handler for TerminalSettingsMerchantLevelApi - */ export class TerminalSettingsMerchantLevelApi extends Service { private readonly API_BASEPATH: string = "https://management-test.adyen.com/v3"; @@ -35,14 +33,13 @@ export class TerminalSettingsMerchantLevelApi extends Service { * @summary Get the terminal logo * @param merchantId {@link string } The unique identifier of the merchant account. * @param requestOptions {@link IRequest.Options } - * @param model {@link string } (Required) The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. + * @param model {@link string } The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. * @return {@link Logo } */ public async getTerminalLogo(merchantId: string, model: string, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/merchants/{merchantId}/terminalLogos` .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = model; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -54,7 +51,6 @@ export class TerminalSettingsMerchantLevelApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "Logo"); } @@ -68,13 +64,11 @@ export class TerminalSettingsMerchantLevelApi extends Service { const endpoint = `${this.baseUrl}/merchants/{merchantId}/terminalSettings` .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "TerminalSettings"); } @@ -83,14 +77,13 @@ export class TerminalSettingsMerchantLevelApi extends Service { * @param merchantId {@link string } The unique identifier of the merchant account. * @param logo {@link Logo } * @param requestOptions {@link IRequest.Options } - * @param model {@link string } (Required) The terminal model. Allowed values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. + * @param model {@link string } The terminal model. Allowed values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. * @return {@link Logo } */ public async updateTerminalLogo(merchantId: string, logo: Logo, model: string, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/merchants/{merchantId}/terminalLogos` .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))); const resource = new Resource(this, endpoint); - const request: Logo = ObjectSerializer.serialize(logo, "Logo"); const hasDefinedQueryParams = model; if(hasDefinedQueryParams) { @@ -103,7 +96,6 @@ export class TerminalSettingsMerchantLevelApi extends Service { request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "Logo"); } @@ -118,15 +110,12 @@ export class TerminalSettingsMerchantLevelApi extends Service { const endpoint = `${this.baseUrl}/merchants/{merchantId}/terminalSettings` .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))); const resource = new Resource(this, endpoint); - const request: TerminalSettings = ObjectSerializer.serialize(terminalSettings, "TerminalSettings"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "TerminalSettings"); } - } diff --git a/src/services/management/terminalSettingsStoreLevelApi.ts b/src/services/management/terminalSettingsStoreLevelApi.ts index 3b756b936..4a4a0dca9 100644 --- a/src/services/management/terminalSettingsStoreLevelApi.ts +++ b/src/services/management/terminalSettingsStoreLevelApi.ts @@ -7,20 +7,18 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + Logo, + RestServiceError, + TerminalSettings, + ObjectSerializer +} from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { Logo } from "../../typings/management/models"; -import { TerminalSettings } from "../../typings/management/models"; - -/** - * API handler for TerminalSettingsStoreLevelApi - */ export class TerminalSettingsStoreLevelApi extends Service { private readonly API_BASEPATH: string = "https://management-test.adyen.com/v3"; @@ -36,7 +34,7 @@ export class TerminalSettingsStoreLevelApi extends Service { * @param merchantId {@link string } The unique identifier of the merchant account. * @param reference {@link string } The reference that identifies the store. * @param requestOptions {@link IRequest.Options } - * @param model {@link string } (Required) The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. + * @param model {@link string } The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. * @return {@link Logo } */ public async getTerminalLogo(merchantId: string, reference: string, model: string, requestOptions?: IRequest.Options): Promise { @@ -44,7 +42,6 @@ export class TerminalSettingsStoreLevelApi extends Service { .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "reference" + "}", encodeURIComponent(String(reference))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = model; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -56,7 +53,6 @@ export class TerminalSettingsStoreLevelApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "Logo"); } @@ -64,14 +60,13 @@ export class TerminalSettingsStoreLevelApi extends Service { * @summary Get the terminal logo * @param storeId {@link string } The unique identifier of the store. * @param requestOptions {@link IRequest.Options } - * @param model {@link string } (Required) The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. + * @param model {@link string } The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. * @return {@link Logo } */ public async getTerminalLogoByStoreId(storeId: string, model: string, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/stores/{storeId}/terminalLogos` .replace("{" + "storeId" + "}", encodeURIComponent(String(storeId))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = model; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -83,7 +78,6 @@ export class TerminalSettingsStoreLevelApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "Logo"); } @@ -99,13 +93,11 @@ export class TerminalSettingsStoreLevelApi extends Service { .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "reference" + "}", encodeURIComponent(String(reference))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "TerminalSettings"); } @@ -119,13 +111,11 @@ export class TerminalSettingsStoreLevelApi extends Service { const endpoint = `${this.baseUrl}/stores/{storeId}/terminalSettings` .replace("{" + "storeId" + "}", encodeURIComponent(String(storeId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "TerminalSettings"); } @@ -135,7 +125,7 @@ export class TerminalSettingsStoreLevelApi extends Service { * @param reference {@link string } The reference that identifies the store. * @param logo {@link Logo } * @param requestOptions {@link IRequest.Options } - * @param model {@link string } (Required) The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T + * @param model {@link string } The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T * @return {@link Logo } */ public async updateTerminalLogo(merchantId: string, reference: string, logo: Logo, model: string, requestOptions?: IRequest.Options): Promise { @@ -143,7 +133,6 @@ export class TerminalSettingsStoreLevelApi extends Service { .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "reference" + "}", encodeURIComponent(String(reference))); const resource = new Resource(this, endpoint); - const request: Logo = ObjectSerializer.serialize(logo, "Logo"); const hasDefinedQueryParams = model; if(hasDefinedQueryParams) { @@ -156,7 +145,6 @@ export class TerminalSettingsStoreLevelApi extends Service { request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "Logo"); } @@ -165,14 +153,13 @@ export class TerminalSettingsStoreLevelApi extends Service { * @param storeId {@link string } The unique identifier of the store. * @param logo {@link Logo } * @param requestOptions {@link IRequest.Options } - * @param model {@link string } (Required) The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. + * @param model {@link string } The terminal model. Possible values: E355, VX675WIFIBT, VX680, VX690, VX700, VX820, M400, MX925, P400Plus, UX300, UX410, V200cPlus, V240mPlus, V400cPlus, V400m, e280, e285, e285p, S1E, S1EL, S1F2, S1L, S1U, S7T. * @return {@link Logo } */ public async updateTerminalLogoByStoreId(storeId: string, logo: Logo, model: string, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/stores/{storeId}/terminalLogos` .replace("{" + "storeId" + "}", encodeURIComponent(String(storeId))); const resource = new Resource(this, endpoint); - const request: Logo = ObjectSerializer.serialize(logo, "Logo"); const hasDefinedQueryParams = model; if(hasDefinedQueryParams) { @@ -185,7 +172,6 @@ export class TerminalSettingsStoreLevelApi extends Service { request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "Logo"); } @@ -202,14 +188,12 @@ export class TerminalSettingsStoreLevelApi extends Service { .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "reference" + "}", encodeURIComponent(String(reference))); const resource = new Resource(this, endpoint); - const request: TerminalSettings = ObjectSerializer.serialize(terminalSettings, "TerminalSettings"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "TerminalSettings"); } @@ -224,15 +208,12 @@ export class TerminalSettingsStoreLevelApi extends Service { const endpoint = `${this.baseUrl}/stores/{storeId}/terminalSettings` .replace("{" + "storeId" + "}", encodeURIComponent(String(storeId))); const resource = new Resource(this, endpoint); - const request: TerminalSettings = ObjectSerializer.serialize(terminalSettings, "TerminalSettings"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "TerminalSettings"); } - } diff --git a/src/services/management/terminalSettingsTerminalLevelApi.ts b/src/services/management/terminalSettingsTerminalLevelApi.ts index 690f6eeac..0e706e759 100644 --- a/src/services/management/terminalSettingsTerminalLevelApi.ts +++ b/src/services/management/terminalSettingsTerminalLevelApi.ts @@ -7,20 +7,18 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + Logo, + RestServiceError, + TerminalSettings, + ObjectSerializer +} from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { Logo } from "../../typings/management/models"; -import { TerminalSettings } from "../../typings/management/models"; - -/** - * API handler for TerminalSettingsTerminalLevelApi - */ export class TerminalSettingsTerminalLevelApi extends Service { private readonly API_BASEPATH: string = "https://management-test.adyen.com/v3"; @@ -41,13 +39,11 @@ export class TerminalSettingsTerminalLevelApi extends Service { const endpoint = `${this.baseUrl}/terminals/{terminalId}/terminalLogos` .replace("{" + "terminalId" + "}", encodeURIComponent(String(terminalId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "Logo"); } @@ -61,13 +57,11 @@ export class TerminalSettingsTerminalLevelApi extends Service { const endpoint = `${this.baseUrl}/terminals/{terminalId}/terminalSettings` .replace("{" + "terminalId" + "}", encodeURIComponent(String(terminalId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "TerminalSettings"); } @@ -82,14 +76,12 @@ export class TerminalSettingsTerminalLevelApi extends Service { const endpoint = `${this.baseUrl}/terminals/{terminalId}/terminalLogos` .replace("{" + "terminalId" + "}", encodeURIComponent(String(terminalId))); const resource = new Resource(this, endpoint); - const request: Logo = ObjectSerializer.serialize(logo, "Logo"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "Logo"); } @@ -104,15 +96,12 @@ export class TerminalSettingsTerminalLevelApi extends Service { const endpoint = `${this.baseUrl}/terminals/{terminalId}/terminalSettings` .replace("{" + "terminalId" + "}", encodeURIComponent(String(terminalId))); const resource = new Resource(this, endpoint); - const request: TerminalSettings = ObjectSerializer.serialize(terminalSettings, "TerminalSettings"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "TerminalSettings"); } - } diff --git a/src/services/management/terminalsTerminalLevelApi.ts b/src/services/management/terminalsTerminalLevelApi.ts index 5f585fbb6..b230c217b 100644 --- a/src/services/management/terminalsTerminalLevelApi.ts +++ b/src/services/management/terminalsTerminalLevelApi.ts @@ -7,20 +7,18 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + ListTerminalsResponse, + RestServiceError, + TerminalReassignmentRequest, + ObjectSerializer +} from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { ListTerminalsResponse } from "../../typings/management/models"; -import { TerminalReassignmentRequest } from "../../typings/management/models"; - -/** - * API handler for TerminalsTerminalLevelApi - */ export class TerminalsTerminalLevelApi extends Service { private readonly API_BASEPATH: string = "https://management-test.adyen.com/v3"; @@ -47,7 +45,6 @@ export class TerminalsTerminalLevelApi extends Service { public async listTerminals(searchQuery?: string, otpQuery?: string, countries?: string, merchantIds?: string, storeIds?: string, brandModels?: string, pageNumber?: number, pageSize?: number, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/terminals`; const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = searchQuery ?? otpQuery ?? countries ?? merchantIds ?? storeIds ?? brandModels ?? pageNumber ?? pageSize; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -66,7 +63,6 @@ export class TerminalsTerminalLevelApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "ListTerminalsResponse"); } @@ -75,13 +71,11 @@ export class TerminalsTerminalLevelApi extends Service { * @param terminalId {@link string } The unique identifier of the payment terminal. * @param terminalReassignmentRequest {@link TerminalReassignmentRequest } * @param requestOptions {@link IRequest.Options } - * @return {@link void } */ public async reassignTerminal(terminalId: string, terminalReassignmentRequest: TerminalReassignmentRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/terminals/{terminalId}/reassign` .replace("{" + "terminalId" + "}", encodeURIComponent(String(terminalId))); const resource = new Resource(this, endpoint); - const request: TerminalReassignmentRequest = ObjectSerializer.serialize(terminalReassignmentRequest, "TerminalReassignmentRequest"); await getJsonResponse( resource, @@ -89,5 +83,4 @@ export class TerminalsTerminalLevelApi extends Service { { ...requestOptions, method: "POST" } ); } - } diff --git a/src/services/management/usersCompanyLevelApi.ts b/src/services/management/usersCompanyLevelApi.ts index 784d5db34..55f9a62c4 100644 --- a/src/services/management/usersCompanyLevelApi.ts +++ b/src/services/management/usersCompanyLevelApi.ts @@ -7,23 +7,21 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + CompanyUser, + CreateCompanyUserRequest, + CreateCompanyUserResponse, + ListCompanyUsersResponse, + RestServiceError, + UpdateCompanyUserRequest, + ObjectSerializer +} from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { CompanyUser } from "../../typings/management/models"; -import { CreateCompanyUserRequest } from "../../typings/management/models"; -import { CreateCompanyUserResponse } from "../../typings/management/models"; -import { ListCompanyUsersResponse } from "../../typings/management/models"; -import { UpdateCompanyUserRequest } from "../../typings/management/models"; - -/** - * API handler for UsersCompanyLevelApi - */ export class UsersCompanyLevelApi extends Service { private readonly API_BASEPATH: string = "https://management-test.adyen.com/v3"; @@ -45,14 +43,12 @@ export class UsersCompanyLevelApi extends Service { const endpoint = `${this.baseUrl}/companies/{companyId}/users` .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))); const resource = new Resource(this, endpoint); - const request: CreateCompanyUserRequest = ObjectSerializer.serialize(createCompanyUserRequest, "CreateCompanyUserRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "CreateCompanyUserResponse"); } @@ -68,13 +64,11 @@ export class UsersCompanyLevelApi extends Service { .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))) .replace("{" + "userId" + "}", encodeURIComponent(String(userId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "CompanyUser"); } @@ -91,7 +85,6 @@ export class UsersCompanyLevelApi extends Service { const endpoint = `${this.baseUrl}/companies/{companyId}/users` .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = pageNumber ?? pageSize ?? username; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -105,7 +98,6 @@ export class UsersCompanyLevelApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "ListCompanyUsersResponse"); } @@ -122,15 +114,12 @@ export class UsersCompanyLevelApi extends Service { .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))) .replace("{" + "userId" + "}", encodeURIComponent(String(userId))); const resource = new Resource(this, endpoint); - const request: UpdateCompanyUserRequest = ObjectSerializer.serialize(updateCompanyUserRequest, "UpdateCompanyUserRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "CompanyUser"); } - } diff --git a/src/services/management/usersMerchantLevelApi.ts b/src/services/management/usersMerchantLevelApi.ts index f3685662b..ebb82d2bc 100644 --- a/src/services/management/usersMerchantLevelApi.ts +++ b/src/services/management/usersMerchantLevelApi.ts @@ -7,23 +7,21 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + CreateMerchantUserRequest, + CreateUserResponse, + ListMerchantUsersResponse, + RestServiceError, + UpdateMerchantUserRequest, + User, + ObjectSerializer +} from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { CreateMerchantUserRequest } from "../../typings/management/models"; -import { CreateUserResponse } from "../../typings/management/models"; -import { ListMerchantUsersResponse } from "../../typings/management/models"; -import { UpdateMerchantUserRequest } from "../../typings/management/models"; -import { User } from "../../typings/management/models"; - -/** - * API handler for UsersMerchantLevelApi - */ export class UsersMerchantLevelApi extends Service { private readonly API_BASEPATH: string = "https://management-test.adyen.com/v3"; @@ -45,14 +43,12 @@ export class UsersMerchantLevelApi extends Service { const endpoint = `${this.baseUrl}/merchants/{merchantId}/users` .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))); const resource = new Resource(this, endpoint); - const request: CreateMerchantUserRequest = ObjectSerializer.serialize(createMerchantUserRequest, "CreateMerchantUserRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "CreateUserResponse"); } @@ -68,13 +64,11 @@ export class UsersMerchantLevelApi extends Service { .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "userId" + "}", encodeURIComponent(String(userId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "User"); } @@ -91,7 +85,6 @@ export class UsersMerchantLevelApi extends Service { const endpoint = `${this.baseUrl}/merchants/{merchantId}/users` .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = pageNumber ?? pageSize ?? username; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -105,7 +98,6 @@ export class UsersMerchantLevelApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "ListMerchantUsersResponse"); } @@ -122,15 +114,12 @@ export class UsersMerchantLevelApi extends Service { .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "userId" + "}", encodeURIComponent(String(userId))); const resource = new Resource(this, endpoint); - const request: UpdateMerchantUserRequest = ObjectSerializer.serialize(updateMerchantUserRequest, "UpdateMerchantUserRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "User"); } - } diff --git a/src/services/management/webhooksCompanyLevelApi.ts b/src/services/management/webhooksCompanyLevelApi.ts index b6a379acf..c3c85c61d 100644 --- a/src/services/management/webhooksCompanyLevelApi.ts +++ b/src/services/management/webhooksCompanyLevelApi.ts @@ -7,25 +7,23 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + CreateCompanyWebhookRequest, + GenerateHmacKeyResponse, + ListWebhooksResponse, + RestServiceError, + TestCompanyWebhookRequest, + TestWebhookResponse, + UpdateCompanyWebhookRequest, + Webhook, + ObjectSerializer +} from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { CreateCompanyWebhookRequest } from "../../typings/management/models"; -import { GenerateHmacKeyResponse } from "../../typings/management/models"; -import { ListWebhooksResponse } from "../../typings/management/models"; -import { TestCompanyWebhookRequest } from "../../typings/management/models"; -import { TestWebhookResponse } from "../../typings/management/models"; -import { UpdateCompanyWebhookRequest } from "../../typings/management/models"; -import { Webhook } from "../../typings/management/models"; - -/** - * API handler for WebhooksCompanyLevelApi - */ export class WebhooksCompanyLevelApi extends Service { private readonly API_BASEPATH: string = "https://management-test.adyen.com/v3"; @@ -48,13 +46,11 @@ export class WebhooksCompanyLevelApi extends Service { .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))) .replace("{" + "webhookId" + "}", encodeURIComponent(String(webhookId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "GenerateHmacKeyResponse"); } @@ -70,13 +66,11 @@ export class WebhooksCompanyLevelApi extends Service { .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))) .replace("{" + "webhookId" + "}", encodeURIComponent(String(webhookId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "Webhook"); } @@ -92,7 +86,6 @@ export class WebhooksCompanyLevelApi extends Service { const endpoint = `${this.baseUrl}/companies/{companyId}/webhooks` .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = pageNumber ?? pageSize; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -105,7 +98,6 @@ export class WebhooksCompanyLevelApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "ListWebhooksResponse"); } @@ -114,14 +106,12 @@ export class WebhooksCompanyLevelApi extends Service { * @param companyId {@link string } The unique identifier of the company account. * @param webhookId {@link string } Unique identifier of the webhook configuration. * @param requestOptions {@link IRequest.Options } - * @return {@link void } */ public async removeWebhook(companyId: string, webhookId: string, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/companies/{companyId}/webhooks/{webhookId}` .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))) .replace("{" + "webhookId" + "}", encodeURIComponent(String(webhookId))); const resource = new Resource(this, endpoint); - await getJsonResponse( resource, "", @@ -140,14 +130,12 @@ export class WebhooksCompanyLevelApi extends Service { const endpoint = `${this.baseUrl}/companies/{companyId}/webhooks` .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))); const resource = new Resource(this, endpoint); - const request: CreateCompanyWebhookRequest = ObjectSerializer.serialize(createCompanyWebhookRequest, "CreateCompanyWebhookRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "Webhook"); } @@ -164,14 +152,12 @@ export class WebhooksCompanyLevelApi extends Service { .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))) .replace("{" + "webhookId" + "}", encodeURIComponent(String(webhookId))); const resource = new Resource(this, endpoint); - const request: TestCompanyWebhookRequest = ObjectSerializer.serialize(testCompanyWebhookRequest, "TestCompanyWebhookRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "TestWebhookResponse"); } @@ -188,15 +174,12 @@ export class WebhooksCompanyLevelApi extends Service { .replace("{" + "companyId" + "}", encodeURIComponent(String(companyId))) .replace("{" + "webhookId" + "}", encodeURIComponent(String(webhookId))); const resource = new Resource(this, endpoint); - const request: UpdateCompanyWebhookRequest = ObjectSerializer.serialize(updateCompanyWebhookRequest, "UpdateCompanyWebhookRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "Webhook"); } - } diff --git a/src/services/management/webhooksMerchantLevelApi.ts b/src/services/management/webhooksMerchantLevelApi.ts index 65b97b929..9b0b2dc52 100644 --- a/src/services/management/webhooksMerchantLevelApi.ts +++ b/src/services/management/webhooksMerchantLevelApi.ts @@ -7,25 +7,23 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + CreateMerchantWebhookRequest, + GenerateHmacKeyResponse, + ListWebhooksResponse, + RestServiceError, + TestWebhookRequest, + TestWebhookResponse, + UpdateMerchantWebhookRequest, + Webhook, + ObjectSerializer +} from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { CreateMerchantWebhookRequest } from "../../typings/management/models"; -import { GenerateHmacKeyResponse } from "../../typings/management/models"; -import { ListWebhooksResponse } from "../../typings/management/models"; -import { TestWebhookRequest } from "../../typings/management/models"; -import { TestWebhookResponse } from "../../typings/management/models"; -import { UpdateMerchantWebhookRequest } from "../../typings/management/models"; -import { Webhook } from "../../typings/management/models"; - -/** - * API handler for WebhooksMerchantLevelApi - */ export class WebhooksMerchantLevelApi extends Service { private readonly API_BASEPATH: string = "https://management-test.adyen.com/v3"; @@ -48,13 +46,11 @@ export class WebhooksMerchantLevelApi extends Service { .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "webhookId" + "}", encodeURIComponent(String(webhookId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "GenerateHmacKeyResponse"); } @@ -70,13 +66,11 @@ export class WebhooksMerchantLevelApi extends Service { .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "webhookId" + "}", encodeURIComponent(String(webhookId))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "Webhook"); } @@ -92,7 +86,6 @@ export class WebhooksMerchantLevelApi extends Service { const endpoint = `${this.baseUrl}/merchants/{merchantId}/webhooks` .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))); const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = pageNumber ?? pageSize; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -105,7 +98,6 @@ export class WebhooksMerchantLevelApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "ListWebhooksResponse"); } @@ -114,14 +106,12 @@ export class WebhooksMerchantLevelApi extends Service { * @param merchantId {@link string } The unique identifier of the merchant account. * @param webhookId {@link string } Unique identifier of the webhook configuration. * @param requestOptions {@link IRequest.Options } - * @return {@link void } */ public async removeWebhook(merchantId: string, webhookId: string, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/merchants/{merchantId}/webhooks/{webhookId}` .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "webhookId" + "}", encodeURIComponent(String(webhookId))); const resource = new Resource(this, endpoint); - await getJsonResponse( resource, "", @@ -140,14 +130,12 @@ export class WebhooksMerchantLevelApi extends Service { const endpoint = `${this.baseUrl}/merchants/{merchantId}/webhooks` .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))); const resource = new Resource(this, endpoint); - const request: CreateMerchantWebhookRequest = ObjectSerializer.serialize(createMerchantWebhookRequest, "CreateMerchantWebhookRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "Webhook"); } @@ -164,14 +152,12 @@ export class WebhooksMerchantLevelApi extends Service { .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "webhookId" + "}", encodeURIComponent(String(webhookId))); const resource = new Resource(this, endpoint); - const request: TestWebhookRequest = ObjectSerializer.serialize(testWebhookRequest, "TestWebhookRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "TestWebhookResponse"); } @@ -188,15 +174,12 @@ export class WebhooksMerchantLevelApi extends Service { .replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId))) .replace("{" + "webhookId" + "}", encodeURIComponent(String(webhookId))); const resource = new Resource(this, endpoint); - const request: UpdateMerchantWebhookRequest = ObjectSerializer.serialize(updateMerchantWebhookRequest, "UpdateMerchantWebhookRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } ); - return ObjectSerializer.deserialize(response, "Webhook"); } - } diff --git a/src/services/payout/initializationApi.ts b/src/services/payout/initializationApi.ts index 466ae007e..d4441c599 100644 --- a/src/services/payout/initializationApi.ts +++ b/src/services/payout/initializationApi.ts @@ -7,24 +7,22 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + ServiceError, + StoreDetailAndSubmitRequest, + StoreDetailAndSubmitResponse, + StoreDetailRequest, + StoreDetailResponse, + SubmitRequest, + SubmitResponse, + ObjectSerializer +} from "../../typings/payout/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/payout/objectSerializer"; -import { StoreDetailAndSubmitRequest } from "../../typings/payout/models"; -import { StoreDetailAndSubmitResponse } from "../../typings/payout/models"; -import { StoreDetailRequest } from "../../typings/payout/models"; -import { StoreDetailResponse } from "../../typings/payout/models"; -import { SubmitRequest } from "../../typings/payout/models"; -import { SubmitResponse } from "../../typings/payout/models"; - -/** - * API handler for InitializationApi - */ export class InitializationApi extends Service { private readonly API_BASEPATH: string = "https://pal-test.adyen.com/pal/servlet/Payout/v68"; @@ -44,14 +42,12 @@ export class InitializationApi extends Service { public async storeDetail(storeDetailRequest: StoreDetailRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/storeDetail`; const resource = new Resource(this, endpoint); - const request: StoreDetailRequest = ObjectSerializer.serialize(storeDetailRequest, "StoreDetailRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "StoreDetailResponse"); } @@ -64,14 +60,12 @@ export class InitializationApi extends Service { public async storeDetailAndSubmitThirdParty(storeDetailAndSubmitRequest: StoreDetailAndSubmitRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/storeDetailAndSubmitThirdParty`; const resource = new Resource(this, endpoint); - const request: StoreDetailAndSubmitRequest = ObjectSerializer.serialize(storeDetailAndSubmitRequest, "StoreDetailAndSubmitRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "StoreDetailAndSubmitResponse"); } @@ -84,15 +78,12 @@ export class InitializationApi extends Service { public async submitThirdParty(submitRequest: SubmitRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/submitThirdParty`; const resource = new Resource(this, endpoint); - const request: SubmitRequest = ObjectSerializer.serialize(submitRequest, "SubmitRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "SubmitResponse"); } - } diff --git a/src/services/payout/instantPayoutsApi.ts b/src/services/payout/instantPayoutsApi.ts index 9c2043d21..2b58a4edd 100644 --- a/src/services/payout/instantPayoutsApi.ts +++ b/src/services/payout/instantPayoutsApi.ts @@ -7,20 +7,18 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + PayoutRequest, + PayoutResponse, + ServiceError, + ObjectSerializer +} from "../../typings/payout/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/payout/objectSerializer"; -import { PayoutRequest } from "../../typings/payout/models"; -import { PayoutResponse } from "../../typings/payout/models"; - -/** - * API handler for InstantPayoutsApi - */ export class InstantPayoutsApi extends Service { private readonly API_BASEPATH: string = "https://pal-test.adyen.com/pal/servlet/Payout/v68"; @@ -40,15 +38,12 @@ export class InstantPayoutsApi extends Service { public async payout(payoutRequest: PayoutRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/payout`; const resource = new Resource(this, endpoint); - const request: PayoutRequest = ObjectSerializer.serialize(payoutRequest, "PayoutRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "PayoutResponse"); } - } diff --git a/src/services/payout/reviewingApi.ts b/src/services/payout/reviewingApi.ts index f90f70ad3..e1903496a 100644 --- a/src/services/payout/reviewingApi.ts +++ b/src/services/payout/reviewingApi.ts @@ -7,20 +7,18 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + ModifyRequest, + ModifyResponse, + ServiceError, + ObjectSerializer +} from "../../typings/payout/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/payout/objectSerializer"; -import { ModifyRequest } from "../../typings/payout/models"; -import { ModifyResponse } from "../../typings/payout/models"; - -/** - * API handler for ReviewingApi - */ export class ReviewingApi extends Service { private readonly API_BASEPATH: string = "https://pal-test.adyen.com/pal/servlet/Payout/v68"; @@ -40,14 +38,12 @@ export class ReviewingApi extends Service { public async confirmThirdParty(modifyRequest: ModifyRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/confirmThirdParty`; const resource = new Resource(this, endpoint); - const request: ModifyRequest = ObjectSerializer.serialize(modifyRequest, "ModifyRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "ModifyResponse"); } @@ -60,15 +56,12 @@ export class ReviewingApi extends Service { public async declineThirdParty(modifyRequest: ModifyRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/declineThirdParty`; const resource = new Resource(this, endpoint); - const request: ModifyRequest = ObjectSerializer.serialize(modifyRequest, "ModifyRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "ModifyResponse"); } - } diff --git a/src/services/sessionAuthentication/sessionAuthenticationApi.ts b/src/services/sessionAuthentication/sessionAuthenticationApi.ts index 204e77d3d..070d0cfed 100644 --- a/src/services/sessionAuthentication/sessionAuthenticationApi.ts +++ b/src/services/sessionAuthentication/sessionAuthenticationApi.ts @@ -7,20 +7,18 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + AuthenticationSessionRequest, + AuthenticationSessionResponse, + DefaultErrorResponseEntity, + ObjectSerializer +} from "../../typings/sessionAuthentication/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/sessionAuthentication/objectSerializer"; -import { AuthenticationSessionRequest } from "../../typings/sessionAuthentication/models"; -import { AuthenticationSessionResponse } from "../../typings/sessionAuthentication/models"; - -/** - * API handler for SessionAuthenticationApi - */ export class SessionAuthenticationApi extends Service { private readonly API_BASEPATH: string = "https://test.adyen.com/authe/api/v1"; @@ -40,15 +38,12 @@ export class SessionAuthenticationApi extends Service { public async createAuthenticationSession(authenticationSessionRequest: AuthenticationSessionRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/sessions`; const resource = new Resource(this, endpoint); - const request: AuthenticationSessionRequest = ObjectSerializer.serialize(authenticationSessionRequest, "AuthenticationSessionRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "AuthenticationSessionResponse"); } - } diff --git a/src/services/transfers/capitalApi.ts b/src/services/transfers/capitalApi.ts index 7c6bb8b79..ef8b82891 100644 --- a/src/services/transfers/capitalApi.ts +++ b/src/services/transfers/capitalApi.ts @@ -7,21 +7,19 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + CapitalGrant, + CapitalGrantInfo, + CapitalGrants, + RestServiceError, + ObjectSerializer +} from "../../typings/transfers/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/transfers/objectSerializer"; -import { CapitalGrant } from "../../typings/transfers/models"; -import { CapitalGrantInfo } from "../../typings/transfers/models"; -import { CapitalGrants } from "../../typings/transfers/models"; - -/** - * API handler for CapitalApi - */ export class CapitalApi extends Service { private readonly API_BASEPATH: string = "https://balanceplatform-api-test.adyen.com/btl/v4"; @@ -44,7 +42,6 @@ export class CapitalApi extends Service { public async getCapitalAccount(counterpartyAccountHolderId?: string, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/grants`; const resource = new Resource(this, endpoint); - const hasDefinedQueryParams = counterpartyAccountHolderId; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; @@ -56,7 +53,6 @@ export class CapitalApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "CapitalGrants"); } @@ -73,13 +69,11 @@ export class CapitalApi extends Service { const endpoint = `${this.baseUrl}/grants/{id}` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "CapitalGrant"); } @@ -95,15 +89,12 @@ export class CapitalApi extends Service { public async requestGrantPayout(capitalGrantInfo: CapitalGrantInfo, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/grants`; const resource = new Resource(this, endpoint); - const request: CapitalGrantInfo = ObjectSerializer.serialize(capitalGrantInfo, "CapitalGrantInfo"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "CapitalGrant"); } - } diff --git a/src/services/transfers/transactionsApi.ts b/src/services/transfers/transactionsApi.ts index 4314f1651..955064cf8 100644 --- a/src/services/transfers/transactionsApi.ts +++ b/src/services/transfers/transactionsApi.ts @@ -7,20 +7,18 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + RestServiceError, + Transaction, + TransactionSearchResponse, + ObjectSerializer +} from "../../typings/transfers/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/transfers/objectSerializer"; -import { Transaction } from "../../typings/transfers/models"; -import { TransactionSearchResponse } from "../../typings/transfers/models"; - -/** - * API handler for TransactionsApi - */ export class TransactionsApi extends Service { private readonly API_BASEPATH: string = "https://balanceplatform-api-test.adyen.com/btl/v4"; @@ -34,21 +32,21 @@ export class TransactionsApi extends Service { /** * @summary Get all transactions * @param requestOptions {@link IRequest.Options } - * @param createdSince {@link Date } (Required) Only include transactions that have been created on or after this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**. - * @param createdUntil {@link Date } (Required) Only include transactions that have been created on or before this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**. * @param balancePlatform {@link string } The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id). Required if you don\'t provide a `balanceAccountId` or `accountHolderId`. * @param paymentInstrumentId {@link string } The unique identifier of the [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_). To use this parameter, you must also provide a `balanceAccountId`, `accountHolderId`, or `balancePlatform`. The `paymentInstrumentId` must be related to the `balanceAccountId` or `accountHolderId` that you provide. * @param accountHolderId {@link string } The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/accountHolders/{id}__queryParam_id). Required if you don\'t provide a `balanceAccountId` or `balancePlatform`. If you provide a `balanceAccountId`, the `accountHolderId` must be related to the `balanceAccountId`. * @param balanceAccountId {@link string } The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id). Required if you don\'t provide an `accountHolderId` or `balancePlatform`. If you provide an `accountHolderId`, the `balanceAccountId` must be related to the `accountHolderId`. * @param cursor {@link string } The `cursor` returned in the links of the previous response. + * @param createdSince {@link Date } Only include transactions that have been created on or after this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**. + * @param createdUntil {@link Date } Only include transactions that have been created on or before this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**. + * @param sortOrder {@link 'asc' | 'desc' } The transactions sorting order. Possible values: - **asc**: Ascending order, from older to most recent. - **desc**: Descending order, from most recent to older. * @param limit {@link number } The number of items returned per page, maximum of 100 items. By default, the response returns 10 items per page. * @return {@link TransactionSearchResponse } */ - public async getAllTransactions(createdSince: Date, createdUntil: Date, balancePlatform?: string, paymentInstrumentId?: string, accountHolderId?: string, balanceAccountId?: string, cursor?: string, limit?: number, requestOptions?: IRequest.Options): Promise { + public async getAllTransactions(balancePlatform?: string, paymentInstrumentId?: string, accountHolderId?: string, balanceAccountId?: string, cursor?: string, createdSince: Date, createdUntil: Date, sortOrder?: 'asc' | 'desc', limit?: number, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/transactions`; const resource = new Resource(this, endpoint); - - const hasDefinedQueryParams = balancePlatform ?? paymentInstrumentId ?? accountHolderId ?? balanceAccountId ?? cursor ?? createdSince ?? createdUntil ?? limit; + const hasDefinedQueryParams = balancePlatform ?? paymentInstrumentId ?? accountHolderId ?? balanceAccountId ?? cursor ?? createdSince ?? createdUntil ?? sortOrder ?? limit; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; if(!requestOptions.params) requestOptions.params = {}; @@ -59,6 +57,7 @@ export class TransactionsApi extends Service { if(cursor) requestOptions.params["cursor"] = cursor; if(createdSince) requestOptions.params["createdSince"] = createdSince.toISOString(); if(createdUntil) requestOptions.params["createdUntil"] = createdUntil.toISOString(); + if(sortOrder) requestOptions.params["sortOrder"] = sortOrder; if(limit) requestOptions.params["limit"] = limit; } const response = await getJsonResponse( @@ -66,7 +65,6 @@ export class TransactionsApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "TransactionSearchResponse"); } @@ -80,14 +78,11 @@ export class TransactionsApi extends Service { const endpoint = `${this.baseUrl}/transactions/{id}` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "Transaction"); } - } diff --git a/src/services/transfers/transfersApi.ts b/src/services/transfers/transfersApi.ts index b53082d9d..72b74fb5b 100644 --- a/src/services/transfers/transfersApi.ts +++ b/src/services/transfers/transfersApi.ts @@ -7,26 +7,25 @@ * Do not edit this class manually. */ - import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { + ApproveTransfersRequest, + CancelTransfersRequest, + FindTransfersResponse, + ReturnTransferRequest, + ReturnTransferResponse, + ServiceError, + Transfer, + TransferData, + TransferInfo, + TransferServiceRestServiceError, + ObjectSerializer +} from "../../typings/transfers/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; -import { ObjectSerializer } from "../../typings/transfers/objectSerializer"; -import { ApproveTransfersRequest } from "../../typings/transfers/models"; -import { CancelTransfersRequest } from "../../typings/transfers/models"; -import { FindTransfersResponse } from "../../typings/transfers/models"; -import { ReturnTransferRequest } from "../../typings/transfers/models"; -import { ReturnTransferResponse } from "../../typings/transfers/models"; -import { Transfer } from "../../typings/transfers/models"; -import { TransferData } from "../../typings/transfers/models"; -import { TransferInfo } from "../../typings/transfers/models"; - -/** - * API handler for TransfersApi - */ export class TransfersApi extends Service { private readonly API_BASEPATH: string = "https://balanceplatform-api-test.adyen.com/btl/v4"; @@ -41,12 +40,10 @@ export class TransfersApi extends Service { * @summary Approve initiated transfers * @param approveTransfersRequest {@link ApproveTransfersRequest } * @param requestOptions {@link IRequest.Options } - * @return {@link void } */ public async approveInitiatedTransfers(approveTransfersRequest: ApproveTransfersRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/transfers/approve`; const resource = new Resource(this, endpoint); - const request: ApproveTransfersRequest = ObjectSerializer.serialize(approveTransfersRequest, "ApproveTransfersRequest"); await getJsonResponse( resource, @@ -59,12 +56,10 @@ export class TransfersApi extends Service { * @summary Cancel initiated transfers * @param cancelTransfersRequest {@link CancelTransfersRequest } * @param requestOptions {@link IRequest.Options } - * @return {@link void } */ public async cancelInitiatedTransfers(cancelTransfersRequest: CancelTransfersRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/transfers/cancel`; const resource = new Resource(this, endpoint); - const request: CancelTransfersRequest = ObjectSerializer.serialize(cancelTransfersRequest, "CancelTransfersRequest"); await getJsonResponse( resource, @@ -76,23 +71,23 @@ export class TransfersApi extends Service { /** * @summary Get all transfers * @param requestOptions {@link IRequest.Options } - * @param createdSince {@link Date } (Required) Only include transfers that have been created on or after this point in time. The value must be in ISO 8601 format and not earlier than 6 months before the `createdUntil` date. For example, **2021-05-30T15:07:40Z**. - * @param createdUntil {@link Date } (Required) Only include transfers that have been created on or before this point in time. The value must be in ISO 8601 format and not later than 6 months after the `createdSince` date. For example, **2021-05-30T15:07:40Z**. * @param balancePlatform {@link string } The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id). Required if you don\'t provide a `balanceAccountId` or `accountHolderId`. * @param accountHolderId {@link string } The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/accountHolders/{id}__queryParam_id). Required if you don\'t provide a `balanceAccountId` or `balancePlatform`. If you provide a `balanceAccountId`, the `accountHolderId` must be related to the `balanceAccountId`. * @param balanceAccountId {@link string } The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id). Required if you don\'t provide an `accountHolderId` or `balancePlatform`. If you provide an `accountHolderId`, the `balanceAccountId` must be related to the `accountHolderId`. * @param paymentInstrumentId {@link string } The unique identifier of the [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_). To use this parameter, you must also provide a `balanceAccountId`, `accountHolderId`, or `balancePlatform`. The `paymentInstrumentId` must be related to the `balanceAccountId` or `accountHolderId` that you provide. * @param reference {@link string } The reference you provided in the POST [/transfers](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers) request * @param category {@link 'bank' | 'card' | 'grants' | 'interest' | 'internal' | 'issuedCard' | 'migration' | 'platformPayment' | 'topUp' | 'upgrade' } The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users. + * @param createdSince {@link Date } Only include transfers that have been created on or after this point in time. The value must be in ISO 8601 format and not earlier than 6 months before the `createdUntil` date. For example, **2021-05-30T15:07:40Z**. + * @param createdUntil {@link Date } Only include transfers that have been created on or before this point in time. The value must be in ISO 8601 format and not later than 6 months after the `createdSince` date. For example, **2021-05-30T15:07:40Z**. + * @param sortOrder {@link 'asc' | 'desc' } The transfers sorting order. Possible values: - **asc**: Ascending order, from older to most recent. - **desc**: Descending order, from most recent to older. * @param cursor {@link string } The `cursor` returned in the links of the previous response. * @param limit {@link number } The number of items returned per page, maximum of 100 items. By default, the response returns 10 items per page. * @return {@link FindTransfersResponse } */ - public async getAllTransfers(createdSince: Date, createdUntil: Date, balancePlatform?: string, accountHolderId?: string, balanceAccountId?: string, paymentInstrumentId?: string, reference?: string, category?: "bank" | "card" | "grants" | "interest" | "internal" | "issuedCard" | "migration" | "platformPayment" | "topUp" | "upgrade", cursor?: string, limit?: number, requestOptions?: IRequest.Options): Promise { + public async getAllTransfers(balancePlatform?: string, accountHolderId?: string, balanceAccountId?: string, paymentInstrumentId?: string, reference?: string, category?: 'bank' | 'card' | 'grants' | 'interest' | 'internal' | 'issuedCard' | 'migration' | 'platformPayment' | 'topUp' | 'upgrade', createdSince: Date, createdUntil: Date, sortOrder?: 'asc' | 'desc', cursor?: string, limit?: number, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/transfers`; const resource = new Resource(this, endpoint); - - const hasDefinedQueryParams = balancePlatform ?? accountHolderId ?? balanceAccountId ?? paymentInstrumentId ?? reference ?? category ?? createdSince ?? createdUntil ?? cursor ?? limit; + const hasDefinedQueryParams = balancePlatform ?? accountHolderId ?? balanceAccountId ?? paymentInstrumentId ?? reference ?? category ?? createdSince ?? createdUntil ?? sortOrder ?? cursor ?? limit; if(hasDefinedQueryParams) { if(!requestOptions) requestOptions = {}; if(!requestOptions.params) requestOptions.params = {}; @@ -104,6 +99,7 @@ export class TransfersApi extends Service { if(category) requestOptions.params["category"] = category; if(createdSince) requestOptions.params["createdSince"] = createdSince.toISOString(); if(createdUntil) requestOptions.params["createdUntil"] = createdUntil.toISOString(); + if(sortOrder) requestOptions.params["sortOrder"] = sortOrder; if(cursor) requestOptions.params["cursor"] = cursor; if(limit) requestOptions.params["limit"] = limit; } @@ -112,7 +108,6 @@ export class TransfersApi extends Service { "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "FindTransfersResponse"); } @@ -126,13 +121,11 @@ export class TransfersApi extends Service { const endpoint = `${this.baseUrl}/transfers/{id}` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const response = await getJsonResponse( resource, "", { ...requestOptions, method: "GET" } ); - return ObjectSerializer.deserialize(response, "TransferData"); } @@ -147,14 +140,12 @@ export class TransfersApi extends Service { const endpoint = `${this.baseUrl}/transfers/{transferId}/returns` .replace("{" + "transferId" + "}", encodeURIComponent(String(transferId))); const resource = new Resource(this, endpoint); - const request: ReturnTransferRequest = ObjectSerializer.serialize(returnTransferRequest, "ReturnTransferRequest"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "ReturnTransferResponse"); } @@ -167,15 +158,12 @@ export class TransfersApi extends Service { public async transferFunds(transferInfo: TransferInfo, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/transfers`; const resource = new Resource(this, endpoint); - const request: TransferInfo = ObjectSerializer.serialize(transferInfo, "TransferInfo"); const response = await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } ); - return ObjectSerializer.deserialize(response, "Transfer"); } - } diff --git a/src/typings/acsWebhooks/acsWebhooksHandler.ts b/src/typings/acsWebhooks/acsWebhooksHandler.ts deleted file mode 100644 index 9ba0609e1..000000000 --- a/src/typings/acsWebhooks/acsWebhooksHandler.ts +++ /dev/null @@ -1,79 +0,0 @@ -/* - * The version of the OpenAPI document: v1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit this class manually. - */ - -import { acsWebhooks } from ".."; - -/** - * Union type for all supported webhook requests. - * Allows generic handling of configuration-related webhook events. - */ -export type GenericWebhook = - | acsWebhooks.AuthenticationNotificationRequest - | acsWebhooks.RelayedAuthenticationRequest; - -/** - * Handler for processing AcsWebhooks. - * - * This class provides functionality to deserialize the payload of AcsWebhooks events. - */ -export class AcsWebhooksHandler { - - private readonly payload: Record; - - public constructor(jsonPayload: string) { - this.payload = JSON.parse(jsonPayload); - } - - /** - * This method checks the type of the webhook payload and returns the appropriate deserialized object. - * - * @returns A deserialized object of type GenericWebhook. - * @throws Error if the type is not recognized. - */ - public getGenericWebhook(): GenericWebhook { - - const type = this.payload["type"]; - - if(Object.values(acsWebhooks.AuthenticationNotificationRequest.TypeEnum).includes(type)) { - return this.getAuthenticationNotificationRequest(); - } - - // manually commented out: RelayedAuthenticationRequest has no TypeEnum - // if(Object.values(acsWebhooks.RelayedAuthenticationRequest.TypeEnum).includes(type)) { - // return this.getRelayedAuthenticationRequest(); - // } - if(!type && this.payload["paymentInstrumentId"]){ - // ad-hoc fix for the relayed authentication request - // if type is undefined but paymentInstrumentId is present then it is a relayedAuthenticationRequest - return this.getRelayedAuthenticationRequest(); - } - - throw new Error("Could not parse the json payload: " + this.payload); - - } - - /** - * Deserialize the webhook payload into a AuthenticationNotificationRequest - * - * @returns Deserialized AuthenticationNotificationRequest object. - */ - public getAuthenticationNotificationRequest(): acsWebhooks.AuthenticationNotificationRequest { - return acsWebhooks.ObjectSerializer.deserialize(this.payload, "AuthenticationNotificationRequest"); - } - - /** - * Deserialize the webhook payload into a RelayedAuthenticationRequest - * - * @returns Deserialized RelayedAuthenticationRequest object. - */ - public getRelayedAuthenticationRequest(): acsWebhooks.RelayedAuthenticationRequest { - return acsWebhooks.ObjectSerializer.deserialize(this.payload, "RelayedAuthenticationRequest"); - } - -} \ No newline at end of file diff --git a/src/typings/acsWebhooks/amount.ts b/src/typings/acsWebhooks/amount.ts index 4e1aea8a5..a52ca2bdb 100644 --- a/src/typings/acsWebhooks/amount.ts +++ b/src/typings/acsWebhooks/amount.ts @@ -12,35 +12,28 @@ export class Amount { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ - "currency": string; + 'currency': string; /** * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ - "value": number; + 'value': number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "number", - "format": "int64" + "type": "number" } ]; static getAttributeTypeMap() { return Amount.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/acsWebhooks/authenticationDecision.ts b/src/typings/acsWebhooks/authenticationDecision.ts index 7026b7a11..dd322c153 100644 --- a/src/typings/acsWebhooks/authenticationDecision.ts +++ b/src/typings/acsWebhooks/authenticationDecision.ts @@ -12,26 +12,20 @@ export class AuthenticationDecision { /** * The status of the authentication. Possible values: * **refused** * **proceed** For more information, refer to [Authenticate cardholders using the Authentication SDK](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/authenticate-cardholders/). */ - "status": AuthenticationDecision.StatusEnum; + 'status': AuthenticationDecision.StatusEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "status", "baseName": "status", - "type": "AuthenticationDecision.StatusEnum", - "format": "" + "type": "AuthenticationDecision.StatusEnum" } ]; static getAttributeTypeMap() { return AuthenticationDecision.attributeTypeMap; } - - public constructor() { - } } export namespace AuthenticationDecision { diff --git a/src/typings/acsWebhooks/authenticationInfo.ts b/src/typings/acsWebhooks/authenticationInfo.ts index bde92e986..87ca26a44 100644 --- a/src/typings/acsWebhooks/authenticationInfo.ts +++ b/src/typings/acsWebhooks/authenticationInfo.ts @@ -7,170 +7,149 @@ * Do not edit this class manually. */ -import { ChallengeInfo } from "./challengeInfo"; - +import { ChallengeInfo } from './challengeInfo'; export class AuthenticationInfo { /** * Universally unique transaction identifier assigned by the Access Control Server (ACS) to identify a single transaction. */ - "acsTransId": string; - "challenge"?: ChallengeInfo | null; + 'acsTransId': string; + 'challenge'?: ChallengeInfo | null; /** * Specifies a preference for receiving a challenge. Possible values: * **01**: No preference * **02**: No challenge requested * **03**: Challenge requested (preference) * **04**: Challenge requested (mandate) * **05**: No challenge requested (transactional risk analysis is already performed) * **07**: No challenge requested (SCA is already performed) * **08**: No challenge requested (trusted beneficiaries exemption of no challenge required) * **09**: Challenge requested (trusted beneficiaries prompt requested if challenge required) * **80**: No challenge requested (secure corporate payment with Mastercard) * **82**: No challenge requested (secure corporate payment with Visa) */ - "challengeIndicator": AuthenticationInfo.ChallengeIndicatorEnum; + 'challengeIndicator': AuthenticationInfo.ChallengeIndicatorEnum; /** * Date and time in UTC of the cardholder authentication. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. */ - "createdAt": Date; + 'createdAt': Date; /** * Indicates the type of channel interface being used to initiate the transaction. Possible values: * **app** * **browser** * **3DSRequestorInitiated** (initiated by a merchant when the cardholder is not available) */ - "deviceChannel": AuthenticationInfo.DeviceChannelEnum; + 'deviceChannel': AuthenticationInfo.DeviceChannelEnum; /** * Universally unique transaction identifier assigned by the DS (card scheme) to identify a single transaction. */ - "dsTransID": string; + 'dsTransID': string; /** * Indicates the exemption type that was applied to the authentication by the issuer, if exemption applied. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * **acquirerExemption** * **noExemptionApplied** * **visaDAFExemption** */ - "exemptionIndicator"?: AuthenticationInfo.ExemptionIndicatorEnum; + 'exemptionIndicator'?: AuthenticationInfo.ExemptionIndicatorEnum; /** * Indicates if the purchase was in the PSD2 scope. */ - "inPSD2Scope": boolean; + 'inPSD2Scope': boolean; /** * Identifies the category of the message for a specific use case. Possible values: * **payment** * **nonPayment** */ - "messageCategory": AuthenticationInfo.MessageCategoryEnum; + 'messageCategory': AuthenticationInfo.MessageCategoryEnum; /** * The `messageVersion` value as defined in the 3D Secure 2 specification. */ - "messageVersion": string; + 'messageVersion': string; /** * Risk score calculated from the transaction rules. */ - "riskScore"?: number; + 'riskScore'?: number; /** * The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. */ - "threeDSServerTransID": string; + 'threeDSServerTransID': string; /** * The `transStatus` value as defined in the 3D Secure 2 specification. Possible values: * **Y**: Authentication / Account verification successful. * **N**: Not Authenticated / Account not verified. Transaction denied. * **U**: Authentication / Account verification could not be performed. * **I**: Informational Only / 3D Secure Requestor challenge preference acknowledged. * **R**: Authentication / Account verification rejected by the Issuer. */ - "transStatus": AuthenticationInfo.TransStatusEnum; + 'transStatus': AuthenticationInfo.TransStatusEnum; /** * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). */ - "transStatusReason"?: AuthenticationInfo.TransStatusReasonEnum; + 'transStatusReason'?: AuthenticationInfo.TransStatusReasonEnum; /** * The type of authentication performed. Possible values: * **frictionless** * **challenge** */ - "type": AuthenticationInfo.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': AuthenticationInfo.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "acsTransId", "baseName": "acsTransId", - "type": "string", - "format": "" + "type": "string" }, { "name": "challenge", "baseName": "challenge", - "type": "ChallengeInfo | null", - "format": "" + "type": "ChallengeInfo | null" }, { "name": "challengeIndicator", "baseName": "challengeIndicator", - "type": "AuthenticationInfo.ChallengeIndicatorEnum", - "format": "" + "type": "AuthenticationInfo.ChallengeIndicatorEnum" }, { "name": "createdAt", "baseName": "createdAt", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "deviceChannel", "baseName": "deviceChannel", - "type": "AuthenticationInfo.DeviceChannelEnum", - "format": "" + "type": "AuthenticationInfo.DeviceChannelEnum" }, { "name": "dsTransID", "baseName": "dsTransID", - "type": "string", - "format": "" + "type": "string" }, { "name": "exemptionIndicator", "baseName": "exemptionIndicator", - "type": "AuthenticationInfo.ExemptionIndicatorEnum", - "format": "" + "type": "AuthenticationInfo.ExemptionIndicatorEnum" }, { "name": "inPSD2Scope", "baseName": "inPSD2Scope", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "messageCategory", "baseName": "messageCategory", - "type": "AuthenticationInfo.MessageCategoryEnum", - "format": "" + "type": "AuthenticationInfo.MessageCategoryEnum" }, { "name": "messageVersion", "baseName": "messageVersion", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskScore", "baseName": "riskScore", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "threeDSServerTransID", "baseName": "threeDSServerTransID", - "type": "string", - "format": "" + "type": "string" }, { "name": "transStatus", "baseName": "transStatus", - "type": "AuthenticationInfo.TransStatusEnum", - "format": "" + "type": "AuthenticationInfo.TransStatusEnum" }, { "name": "transStatusReason", "baseName": "transStatusReason", - "type": "AuthenticationInfo.TransStatusReasonEnum", - "format": "" + "type": "AuthenticationInfo.TransStatusReasonEnum" }, { "name": "type", "baseName": "type", - "type": "AuthenticationInfo.TypeEnum", - "format": "" + "type": "AuthenticationInfo.TypeEnum" } ]; static getAttributeTypeMap() { return AuthenticationInfo.attributeTypeMap; } - - public constructor() { - } } export namespace AuthenticationInfo { diff --git a/src/typings/acsWebhooks/authenticationNotificationData.ts b/src/typings/acsWebhooks/authenticationNotificationData.ts index 6f157ab8c..341507398 100644 --- a/src/typings/acsWebhooks/authenticationNotificationData.ts +++ b/src/typings/acsWebhooks/authenticationNotificationData.ts @@ -7,78 +7,66 @@ * Do not edit this class manually. */ -import { AuthenticationInfo } from "./authenticationInfo"; -import { PurchaseInfo } from "./purchaseInfo"; - +import { AuthenticationInfo } from './authenticationInfo'; +import { PurchaseInfo } from './purchaseInfo'; export class AuthenticationNotificationData { - "authentication": AuthenticationInfo; + 'authentication': AuthenticationInfo; /** * The unique identifier of the balance platform. */ - "balancePlatform"?: string; + 'balancePlatform'?: string; /** * The unique identifier of the authentication. */ - "id": string; + 'id': string; /** * The unique identifier of the payment instrument that was used for the authentication. */ - "paymentInstrumentId": string; - "purchase": PurchaseInfo; + 'paymentInstrumentId': string; + 'purchase': PurchaseInfo; /** * Outcome of the authentication. Allowed values: * authenticated * rejected * error */ - "status": AuthenticationNotificationData.StatusEnum; - - static readonly discriminator: string | undefined = undefined; + 'status': AuthenticationNotificationData.StatusEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "authentication", "baseName": "authentication", - "type": "AuthenticationInfo", - "format": "" + "type": "AuthenticationInfo" }, { "name": "balancePlatform", "baseName": "balancePlatform", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentInstrumentId", "baseName": "paymentInstrumentId", - "type": "string", - "format": "" + "type": "string" }, { "name": "purchase", "baseName": "purchase", - "type": "PurchaseInfo", - "format": "" + "type": "PurchaseInfo" }, { "name": "status", "baseName": "status", - "type": "AuthenticationNotificationData.StatusEnum", - "format": "" + "type": "AuthenticationNotificationData.StatusEnum" } ]; static getAttributeTypeMap() { return AuthenticationNotificationData.attributeTypeMap; } - - public constructor() { - } } export namespace AuthenticationNotificationData { diff --git a/src/typings/acsWebhooks/authenticationNotificationRequest.ts b/src/typings/acsWebhooks/authenticationNotificationRequest.ts index 3865b9bdc..1964b4d29 100644 --- a/src/typings/acsWebhooks/authenticationNotificationRequest.ts +++ b/src/typings/acsWebhooks/authenticationNotificationRequest.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { AuthenticationNotificationData } from "./authenticationNotificationData"; - +import { AuthenticationNotificationData } from './authenticationNotificationData'; export class AuthenticationNotificationRequest { - "data": AuthenticationNotificationData; + 'data': AuthenticationNotificationData; /** * The environment from which the webhook originated. Possible values: **test**, **live**. */ - "environment": string; + 'environment': string; /** * When the event was queued. */ - "timestamp"?: Date; + 'timestamp'?: Date; /** * Type of notification. */ - "type": AuthenticationNotificationRequest.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': AuthenticationNotificationRequest.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "AuthenticationNotificationData", - "format": "" + "type": "AuthenticationNotificationData" }, { "name": "environment", "baseName": "environment", - "type": "string", - "format": "" + "type": "string" }, { "name": "timestamp", "baseName": "timestamp", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "type", "baseName": "type", - "type": "AuthenticationNotificationRequest.TypeEnum", - "format": "" + "type": "AuthenticationNotificationRequest.TypeEnum" } ]; static getAttributeTypeMap() { return AuthenticationNotificationRequest.attributeTypeMap; } - - public constructor() { - } } export namespace AuthenticationNotificationRequest { diff --git a/src/typings/acsWebhooks/balancePlatformNotificationResponse.ts b/src/typings/acsWebhooks/balancePlatformNotificationResponse.ts index 18122d640..74120e5ab 100644 --- a/src/typings/acsWebhooks/balancePlatformNotificationResponse.ts +++ b/src/typings/acsWebhooks/balancePlatformNotificationResponse.ts @@ -12,25 +12,19 @@ export class BalancePlatformNotificationResponse { /** * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). */ - "notificationResponse"?: string; + 'notificationResponse'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "notificationResponse", "baseName": "notificationResponse", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return BalancePlatformNotificationResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/acsWebhooks/challengeInfo.ts b/src/typings/acsWebhooks/challengeInfo.ts index fec3c8f67..fe26bee80 100644 --- a/src/typings/acsWebhooks/challengeInfo.ts +++ b/src/typings/acsWebhooks/challengeInfo.ts @@ -12,76 +12,65 @@ export class ChallengeInfo { /** * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. Possible values: * **00**: Data element is absent or value has been sent back with the key `challengeCancel`. * **01**: Cardholder selected **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * **03**: Transaction abandoned. * **04**: Transaction timed out at ACS — other timeouts. * **05**: Transaction timed out at ACS — first CReq not received by ACS. * **06**: Transaction error. * **07**: Unknown. * **08**: Transaction time out at SDK. */ - "challengeCancel"?: ChallengeInfo.ChallengeCancelEnum; + 'challengeCancel'?: ChallengeInfo.ChallengeCancelEnum; /** * The flow used in the challenge. Possible values: * **PWD_OTP_PHONE_FL**: one-time password (OTP) flow via SMS * **PWD_OTP_EMAIL_FL**: one-time password (OTP) flow via email * **OOB_TRIGGER_FL**: out-of-band (OOB) flow */ - "flow": ChallengeInfo.FlowEnum; + 'flow': ChallengeInfo.FlowEnum; /** * The last time of interaction with the challenge. */ - "lastInteraction": Date; + 'lastInteraction': Date; /** * The last four digits of the phone number used in the challenge. */ - "phoneNumber"?: string; + 'phoneNumber'?: string; /** * The number of times the one-time password (OTP) was resent during the challenge. */ - "resends"?: number; + 'resends'?: number; /** * The number of retries used in the challenge. */ - "retries"?: number; + 'retries'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "challengeCancel", "baseName": "challengeCancel", - "type": "ChallengeInfo.ChallengeCancelEnum", - "format": "" + "type": "ChallengeInfo.ChallengeCancelEnum" }, { "name": "flow", "baseName": "flow", - "type": "ChallengeInfo.FlowEnum", - "format": "" + "type": "ChallengeInfo.FlowEnum" }, { "name": "lastInteraction", "baseName": "lastInteraction", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "phoneNumber", "baseName": "phoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "resends", "baseName": "resends", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "retries", "baseName": "retries", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return ChallengeInfo.attributeTypeMap; } - - public constructor() { - } } export namespace ChallengeInfo { diff --git a/src/typings/acsWebhooks/models.ts b/src/typings/acsWebhooks/models.ts index 7cf6ab6a5..09fc8fc7d 100644 --- a/src/typings/acsWebhooks/models.ts +++ b/src/typings/acsWebhooks/models.ts @@ -1,16 +1,196 @@ -export * from "./amount" -export * from "./authenticationDecision" -export * from "./authenticationInfo" -export * from "./authenticationNotificationData" -export * from "./authenticationNotificationRequest" -export * from "./balancePlatformNotificationResponse" -export * from "./challengeInfo" -export * from "./purchase" -export * from "./purchaseInfo" -export * from "./relayedAuthenticationRequest" -export * from "./relayedAuthenticationResponse" -export * from "./resource" -export * from "./serviceError" - -// serializing and deserializing typed objects -export * from "./objectSerializer" \ No newline at end of file +/* + * The version of the OpenAPI document: v1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export * from './amount'; +export * from './authenticationDecision'; +export * from './authenticationInfo'; +export * from './authenticationNotificationData'; +export * from './authenticationNotificationRequest'; +export * from './balancePlatformNotificationResponse'; +export * from './challengeInfo'; +export * from './purchase'; +export * from './purchaseInfo'; +export * from './relayedAuthenticationRequest'; +export * from './relayedAuthenticationResponse'; +export * from './resource'; +export * from './serviceError'; + + +import { Amount } from './amount'; +import { AuthenticationDecision } from './authenticationDecision'; +import { AuthenticationInfo } from './authenticationInfo'; +import { AuthenticationNotificationData } from './authenticationNotificationData'; +import { AuthenticationNotificationRequest } from './authenticationNotificationRequest'; +import { BalancePlatformNotificationResponse } from './balancePlatformNotificationResponse'; +import { ChallengeInfo } from './challengeInfo'; +import { Purchase } from './purchase'; +import { PurchaseInfo } from './purchaseInfo'; +import { RelayedAuthenticationRequest } from './relayedAuthenticationRequest'; +import { RelayedAuthenticationResponse } from './relayedAuthenticationResponse'; +import { Resource } from './resource'; +import { ServiceError } from './serviceError'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "AuthenticationDecision.StatusEnum": AuthenticationDecision.StatusEnum, + "AuthenticationInfo.ChallengeIndicatorEnum": AuthenticationInfo.ChallengeIndicatorEnum, + "AuthenticationInfo.DeviceChannelEnum": AuthenticationInfo.DeviceChannelEnum, + "AuthenticationInfo.ExemptionIndicatorEnum": AuthenticationInfo.ExemptionIndicatorEnum, + "AuthenticationInfo.MessageCategoryEnum": AuthenticationInfo.MessageCategoryEnum, + "AuthenticationInfo.TransStatusEnum": AuthenticationInfo.TransStatusEnum, + "AuthenticationInfo.TransStatusReasonEnum": AuthenticationInfo.TransStatusReasonEnum, + "AuthenticationInfo.TypeEnum": AuthenticationInfo.TypeEnum, + "AuthenticationNotificationData.StatusEnum": AuthenticationNotificationData.StatusEnum, + "AuthenticationNotificationRequest.TypeEnum": AuthenticationNotificationRequest.TypeEnum, + "ChallengeInfo.ChallengeCancelEnum": ChallengeInfo.ChallengeCancelEnum, + "ChallengeInfo.FlowEnum": ChallengeInfo.FlowEnum, + "RelayedAuthenticationRequest.TypeEnum": RelayedAuthenticationRequest.TypeEnum, +} + +let typeMap: {[index: string]: any} = { + "Amount": Amount, + "AuthenticationDecision": AuthenticationDecision, + "AuthenticationInfo": AuthenticationInfo, + "AuthenticationNotificationData": AuthenticationNotificationData, + "AuthenticationNotificationRequest": AuthenticationNotificationRequest, + "BalancePlatformNotificationResponse": BalancePlatformNotificationResponse, + "ChallengeInfo": ChallengeInfo, + "Purchase": Purchase, + "PurchaseInfo": PurchaseInfo, + "RelayedAuthenticationRequest": RelayedAuthenticationRequest, + "RelayedAuthenticationResponse": RelayedAuthenticationResponse, + "Resource": Resource, + "ServiceError": ServiceError, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/acsWebhooks/objectSerializer.ts b/src/typings/acsWebhooks/objectSerializer.ts deleted file mode 100644 index 92b24d009..000000000 --- a/src/typings/acsWebhooks/objectSerializer.ts +++ /dev/null @@ -1,381 +0,0 @@ -export * from "./models"; - -import { Amount } from "./amount"; -import { AuthenticationDecision } from "./authenticationDecision"; -import { AuthenticationInfo } from "./authenticationInfo"; -import { AuthenticationNotificationData } from "./authenticationNotificationData"; -import { AuthenticationNotificationRequest } from "./authenticationNotificationRequest"; -import { BalancePlatformNotificationResponse } from "./balancePlatformNotificationResponse"; -import { ChallengeInfo } from "./challengeInfo"; -import { Purchase } from "./purchase"; -import { PurchaseInfo } from "./purchaseInfo"; -import { RelayedAuthenticationRequest } from "./relayedAuthenticationRequest"; -import { RelayedAuthenticationResponse } from "./relayedAuthenticationResponse"; -import { Resource } from "./resource"; -import { ServiceError } from "./serviceError"; - -/* tslint:disable:no-unused-variable */ -let primitives = [ - "string", - "boolean", - "double", - "integer", - "long", - "float", - "number", - "any" - ]; - -let enumsMap: Set = new Set([ - "AuthenticationDecision.StatusEnum", - "AuthenticationInfo.ChallengeIndicatorEnum", - "AuthenticationInfo.DeviceChannelEnum", - "AuthenticationInfo.ExemptionIndicatorEnum", - "AuthenticationInfo.MessageCategoryEnum", - "AuthenticationInfo.TransStatusEnum", - "AuthenticationInfo.TransStatusReasonEnum", - "AuthenticationInfo.TypeEnum", - "AuthenticationNotificationData.StatusEnum", - "AuthenticationNotificationRequest.TypeEnum", - "ChallengeInfo.ChallengeCancelEnum", - "ChallengeInfo.FlowEnum", -]); - -let typeMap: {[index: string]: any} = { - "Amount": Amount, - "AuthenticationDecision": AuthenticationDecision, - "AuthenticationInfo": AuthenticationInfo, - "AuthenticationNotificationData": AuthenticationNotificationData, - "AuthenticationNotificationRequest": AuthenticationNotificationRequest, - "BalancePlatformNotificationResponse": BalancePlatformNotificationResponse, - "ChallengeInfo": ChallengeInfo, - "Purchase": Purchase, - "PurchaseInfo": PurchaseInfo, - "RelayedAuthenticationRequest": RelayedAuthenticationRequest, - "RelayedAuthenticationResponse": RelayedAuthenticationResponse, - "Resource": Resource, - "ServiceError": ServiceError, -} - -type MimeTypeDescriptor = { - type: string; - subtype: string; - subtypeTokens: string[]; -}; - -/** - * Every mime-type consists of a type, subtype, and optional parameters. - * The subtype can be composite, including information about the content format. - * For example: `application/json-patch+json`, `application/merge-patch+json`. - * - * This helper transforms a string mime-type into an internal representation. - * This simplifies the implementation of predicates that in turn define common rules for parsing or stringifying - * the payload. - */ -const parseMimeType = (mimeType: string): MimeTypeDescriptor => { - const [type = '', subtype = ''] = mimeType.split('/'); - return { - type, - subtype, - subtypeTokens: subtype.split('+'), - }; -}; - -type MimeTypePredicate = (mimeType: string) => boolean; - -// This factory creates a predicate function that checks a string mime-type against defined rules. -const mimeTypePredicateFactory = (predicate: (descriptor: MimeTypeDescriptor) => boolean): MimeTypePredicate => (mimeType) => predicate(parseMimeType(mimeType)); - -// Use this factory when you need to define a simple predicate based only on type and, if applicable, subtype. -const mimeTypeSimplePredicateFactory = (type: string, subtype?: string): MimeTypePredicate => mimeTypePredicateFactory((descriptor) => { - if (descriptor.type !== type) return false; - if (subtype != null && descriptor.subtype !== subtype) return false; - return true; -}); - -// Creating a set of named predicates that will help us determine how to handle different mime-types -const isTextLikeMimeType = mimeTypeSimplePredicateFactory('text'); -const isJsonMimeType = mimeTypeSimplePredicateFactory('application', 'json'); -const isJsonLikeMimeType = mimeTypePredicateFactory((descriptor) => descriptor.type === 'application' && descriptor.subtypeTokens.some((item) => item === 'json')); -const isOctetStreamMimeType = mimeTypeSimplePredicateFactory('application', 'octet-stream'); -const isFormUrlencodedMimeType = mimeTypeSimplePredicateFactory('application', 'x-www-form-urlencoded'); - -// Defining a list of mime-types in the order of prioritization for handling. -const supportedMimeTypePredicatesWithPriority: MimeTypePredicate[] = [ - isJsonMimeType, - isJsonLikeMimeType, - isTextLikeMimeType, - isOctetStreamMimeType, - isFormUrlencodedMimeType, -]; - -const nullableSuffix = " | null"; -const optionalSuffix = " | undefined"; -const arrayPrefix = "Array<"; -const arraySuffix = ">"; -const mapPrefix = "{ [key: string]: "; -const mapSuffix = "; }"; - -export class ObjectSerializer { - public static findCorrectType(data: any, expectedType: string) { - if (data == undefined) { - return expectedType; - } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { - return expectedType; - } else if (expectedType === "Date") { - return expectedType; - } else { - if (enumsMap.has(expectedType)) { - return expectedType; - } - - if (!typeMap[expectedType]) { - return expectedType; // w/e we don't know the type - } - - // Check the discriminator - let discriminatorProperty = typeMap[expectedType].discriminator; - if (discriminatorProperty == null) { - return expectedType; // the type does not have a discriminator. use it. - } else { - if (data[discriminatorProperty]) { - var discriminatorType = data[discriminatorProperty]; - let mapping = typeMap[expectedType].mapping; - if (mapping != undefined && mapping[discriminatorType]) { - return mapping[discriminatorType]; // use the type given in the discriminator - } else if(typeMap[discriminatorType]) { - return discriminatorType; - } else { - return expectedType; // discriminator did not map to a type - } - } else { - return expectedType; // discriminator was not present (or an empty string) - } - } - } - } - - /** - * Serializes a value into a plain JSON-compatible object based on its type. - * - * Supports primitives, arrays, maps, dates, enums, and classes defined in `typeMap`. - * Falls back to raw data if type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The value to serialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A JSON-compatible representation of `data`. - */ - public static serialize(data: any, type: string, format: string = ""): any { - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.serialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.serialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - if (format == "date") { - let month = data.getMonth()+1 - month = month < 10 ? "0" + month.toString() : month.toString() - let day = data.getDate(); - day = day < 10 ? "0" + day.toString() : day.toString(); - - return data.getFullYear() + "-" + month + "-" + day; - } else { - return data.toISOString(); - } - } else { - if (enumsMap.has(type)) { - return data; - } - if (!typeMap[type]) { // in case we dont know the type - return data; - } - - // Get the actual type of this object - type = this.findCorrectType(data, type); - - const clazz = typeMap[type]; - - // Safe check for getAttributeTypeMap - if (typeof clazz.getAttributeTypeMap !== "function") { - return { ...data }; // fallback: shallow copy - } - - // get the map for the correct type. - let attributeTypes = typeMap[type].getAttributeTypeMap(); - let instance: {[index: string]: any} = {}; - for (let attributeType of attributeTypes) { - instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format); - } - return instance; - } - } - - /** - * Deserializes a plain JSON-compatible object into a typed instance. - * - * Handles primitives, arrays, maps, dates, enums, and known classes from `typeMap`. - * Uses discriminators when available to resolve polymorphic types. - * Falls back to raw data if the type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The raw input to deserialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A deserialized instance or value of `data`. - */ - public static deserialize(data: any, type: string, format: string = ""): any { - // polymorphism may change the actual type. - type = ObjectSerializer.findCorrectType(data, type); - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.deserialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.deserialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - return new Date(data); - } else { - if (enumsMap.has(type)) {// is Enum - return data; - } - - if (!typeMap[type]) { // dont know the type - return data; - } - let instance = new typeMap[type](); - - // Safe check for getAttributeTypeMap - if (typeof typeMap[type].getAttributeTypeMap !== "function") { - Object.assign(instance, data); // fallback: shallow copy - return instance; - } - - let attributeTypes = typeMap[type].getAttributeTypeMap(); - for (let attributeType of attributeTypes) { - let value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format); - if (value !== undefined) { - instance[attributeType.name] = value; - } - } - return instance; - } - } - - - /** - * Normalize media type - * - * We currently do not handle any media types attributes, i.e. anything - * after a semicolon. All content is assumed to be UTF-8 compatible. - */ - public static normalizeMediaType(mediaType: string | undefined): string | undefined { - if (mediaType === undefined) { - return undefined; - } - return (mediaType.split(";")[0] ?? '').trim().toLowerCase(); - } - - /** - * From a list of possible media types, choose the one we can handle best. - * - * The order of the given media types does not have any impact on the choice - * made. - */ - public static getPreferredMediaType(mediaTypes: Array): string { - /** According to OAS 3 we should default to json */ - if (mediaTypes.length === 0) { - return "application/json"; - } - - const normalMediaTypes = mediaTypes.map(ObjectSerializer.normalizeMediaType); - - for (const predicate of supportedMimeTypePredicatesWithPriority) { - for (const mediaType of normalMediaTypes) { - if (mediaType != null && predicate(mediaType)) { - return mediaType; - } - } - } - - throw new Error("None of the given media types are supported: " + mediaTypes.join(", ")); - } - - /** - * Convert data to a string according the given media type - */ - public static stringify(data: any, mediaType: string): string { - if (isTextLikeMimeType(mediaType)) { - return String(data); - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.stringify(data); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify."); - } - - /** - * Parse data from a string according to the given media type - */ - public static parse(rawData: string, mediaType: string | undefined) { - if (mediaType === undefined) { - throw new Error("Cannot parse content. No Content-Type defined."); - } - - if (isTextLikeMimeType(mediaType)) { - return rawData; - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.parse(rawData); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse."); - } -} diff --git a/src/typings/acsWebhooks/purchase.ts b/src/typings/acsWebhooks/purchase.ts index 2c75397f8..4cd37a714 100644 --- a/src/typings/acsWebhooks/purchase.ts +++ b/src/typings/acsWebhooks/purchase.ts @@ -7,49 +7,40 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class Purchase { /** * The time of the purchase. */ - "date": Date; + 'date': Date; /** * The name of the merchant. */ - "merchantName": string; - "originalAmount": Amount; - - static readonly discriminator: string | undefined = undefined; + 'merchantName': string; + 'originalAmount': Amount; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "date", "baseName": "date", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "merchantName", "baseName": "merchantName", - "type": "string", - "format": "" + "type": "string" }, { "name": "originalAmount", "baseName": "originalAmount", - "type": "Amount", - "format": "" + "type": "Amount" } ]; static getAttributeTypeMap() { return Purchase.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/acsWebhooks/purchaseInfo.ts b/src/typings/acsWebhooks/purchaseInfo.ts index b579e2f00..a2dfdac2f 100644 --- a/src/typings/acsWebhooks/purchaseInfo.ts +++ b/src/typings/acsWebhooks/purchaseInfo.ts @@ -7,49 +7,40 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class PurchaseInfo { /** * The date of the purchase. */ - "date": string; + 'date': string; /** * The name of the business that the cardholder purchased from. */ - "merchantName": string; - "originalAmount": Amount; - - static readonly discriminator: string | undefined = undefined; + 'merchantName': string; + 'originalAmount': Amount; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "date", "baseName": "date", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantName", "baseName": "merchantName", - "type": "string", - "format": "" + "type": "string" }, { "name": "originalAmount", "baseName": "originalAmount", - "type": "Amount", - "format": "" + "type": "Amount" } ]; static getAttributeTypeMap() { return PurchaseInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/acsWebhooks/relayedAuthenticationRequest.ts b/src/typings/acsWebhooks/relayedAuthenticationRequest.ts index c01d929b7..6b8e7a5d4 100644 --- a/src/typings/acsWebhooks/relayedAuthenticationRequest.ts +++ b/src/typings/acsWebhooks/relayedAuthenticationRequest.ts @@ -7,49 +7,81 @@ * Do not edit this class manually. */ -import { Purchase } from "./purchase"; - +import { Purchase } from './purchase'; export class RelayedAuthenticationRequest { + /** + * The environment from which the webhook originated. Possible values: **test**, **live**. + */ + 'environment': string; /** * The unique identifier of the challenge. */ - "id": string; + 'id': string; /** * The unique identifier of the [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_) used for the purchase. */ - "paymentInstrumentId": string; - "purchase": Purchase; - - static readonly discriminator: string | undefined = undefined; + 'paymentInstrumentId': string; + 'purchase': Purchase; + /** + * URL for auto-switching to the threeDS Requestor App. If not present, the threeDS Requestor App doesn\'t support auto-switching. + */ + 'threeDSRequestorAppURL'?: string; + /** + * When the event was queued. + */ + 'timestamp'?: Date; + /** + * Type of notification. + */ + 'type': RelayedAuthenticationRequest.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "environment", + "baseName": "environment", + "type": "string" + }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentInstrumentId", "baseName": "paymentInstrumentId", - "type": "string", - "format": "" + "type": "string" }, { "name": "purchase", "baseName": "purchase", - "type": "Purchase", - "format": "" + "type": "Purchase" + }, + { + "name": "threeDSRequestorAppURL", + "baseName": "threeDSRequestorAppURL", + "type": "string" + }, + { + "name": "timestamp", + "baseName": "timestamp", + "type": "Date" + }, + { + "name": "type", + "baseName": "type", + "type": "RelayedAuthenticationRequest.TypeEnum" } ]; static getAttributeTypeMap() { return RelayedAuthenticationRequest.attributeTypeMap; } +} - public constructor() { +export namespace RelayedAuthenticationRequest { + export enum TypeEnum { + BalancePlatformAuthenticationRelayed = 'balancePlatform.authentication.relayed' } } - diff --git a/src/typings/acsWebhooks/relayedAuthenticationResponse.ts b/src/typings/acsWebhooks/relayedAuthenticationResponse.ts index 3d0916813..eb644579c 100644 --- a/src/typings/acsWebhooks/relayedAuthenticationResponse.ts +++ b/src/typings/acsWebhooks/relayedAuthenticationResponse.ts @@ -7,29 +7,22 @@ * Do not edit this class manually. */ -import { AuthenticationDecision } from "./authenticationDecision"; - +import { AuthenticationDecision } from './authenticationDecision'; export class RelayedAuthenticationResponse { - "authenticationDecision": AuthenticationDecision; - - static readonly discriminator: string | undefined = undefined; + 'authenticationDecision': AuthenticationDecision; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "authenticationDecision", "baseName": "authenticationDecision", - "type": "AuthenticationDecision", - "format": "" + "type": "AuthenticationDecision" } ]; static getAttributeTypeMap() { return RelayedAuthenticationResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/acsWebhooks/resource.ts b/src/typings/acsWebhooks/resource.ts index f45de4906..fc75f96d4 100644 --- a/src/typings/acsWebhooks/resource.ts +++ b/src/typings/acsWebhooks/resource.ts @@ -12,45 +12,37 @@ export class Resource { /** * The unique identifier of the balance platform. */ - "balancePlatform"?: string; + 'balancePlatform'?: string; /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. */ - "creationDate"?: Date; + 'creationDate'?: Date; /** * The ID of the resource. */ - "id"?: string; + 'id'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balancePlatform", "baseName": "balancePlatform", - "type": "string", - "format": "" + "type": "string" }, { "name": "creationDate", "baseName": "creationDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Resource.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/acsWebhooks/serviceError.ts b/src/typings/acsWebhooks/serviceError.ts index 674eb5c4c..f372a4a4e 100644 --- a/src/typings/acsWebhooks/serviceError.ts +++ b/src/typings/acsWebhooks/serviceError.ts @@ -12,65 +12,55 @@ export class ServiceError { /** * The error code mapped to the error message. */ - "errorCode"?: string; + 'errorCode'?: string; /** * The category of the error. */ - "errorType"?: string; + 'errorType'?: string; /** * A short explanation of the issue. */ - "message"?: string; + 'message'?: string; /** * The PSP reference of the payment. */ - "pspReference"?: string; + 'pspReference'?: string; /** * The HTTP response status. */ - "status"?: number; + 'status'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "errorCode", "baseName": "errorCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "errorType", "baseName": "errorType", - "type": "string", - "format": "" + "type": "string" }, { "name": "message", "baseName": "message", - "type": "string", - "format": "" + "type": "string" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return ServiceError.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balanceControl/amount.ts b/src/typings/balanceControl/amount.ts index 4e1aea8a5..a52ca2bdb 100644 --- a/src/typings/balanceControl/amount.ts +++ b/src/typings/balanceControl/amount.ts @@ -12,35 +12,28 @@ export class Amount { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ - "currency": string; + 'currency': string; /** * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ - "value": number; + 'value': number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "number", - "format": "int64" + "type": "number" } ]; static getAttributeTypeMap() { return Amount.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balanceControl/balanceTransferRequest.ts b/src/typings/balanceControl/balanceTransferRequest.ts index bd74c48e0..deebaa2f4 100644 --- a/src/typings/balanceControl/balanceTransferRequest.ts +++ b/src/typings/balanceControl/balanceTransferRequest.ts @@ -7,80 +7,68 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class BalanceTransferRequest { - "amount": Amount; + 'amount': Amount; /** * A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the source merchant account from which funds are deducted. */ - "fromMerchant": string; + 'fromMerchant': string; /** * A reference for the balance transfer. If you don\'t provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters. */ - "reference"?: string; + 'reference'?: string; /** * The unique identifier of the destination merchant account from which funds are transferred. */ - "toMerchant": string; + 'toMerchant': string; /** * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**. */ - "type": BalanceTransferRequest.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': BalanceTransferRequest.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "fromMerchant", "baseName": "fromMerchant", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "toMerchant", "baseName": "toMerchant", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "BalanceTransferRequest.TypeEnum", - "format": "" + "type": "BalanceTransferRequest.TypeEnum" } ]; static getAttributeTypeMap() { return BalanceTransferRequest.attributeTypeMap; } - - public constructor() { - } } export namespace BalanceTransferRequest { diff --git a/src/typings/balanceControl/balanceTransferResponse.ts b/src/typings/balanceControl/balanceTransferResponse.ts index fe5323f5a..9d7c4bd4d 100644 --- a/src/typings/balanceControl/balanceTransferResponse.ts +++ b/src/typings/balanceControl/balanceTransferResponse.ts @@ -7,110 +7,95 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class BalanceTransferResponse { - "amount": Amount; + 'amount': Amount; /** * The date when the balance transfer was requested. */ - "createdAt": Date; + 'createdAt': Date; /** * A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the source merchant account from which funds are deducted. */ - "fromMerchant": string; + 'fromMerchant': string; /** * Adyen\'s 16-character string reference associated with the balance transfer. */ - "pspReference": string; + 'pspReference': string; /** * A reference for the balance transfer. If you don\'t provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters. */ - "reference"?: string; + 'reference'?: string; /** * The status of the balance transfer. Possible values: **transferred**, **failed**, **error**, and **notEnoughBalance**. */ - "status": BalanceTransferResponse.StatusEnum; + 'status': BalanceTransferResponse.StatusEnum; /** * The unique identifier of the destination merchant account from which funds are transferred. */ - "toMerchant": string; + 'toMerchant': string; /** * The type of balance transfer. Possible values: **tax**, **fee**, **terminalSale**, **credit**, **debit**, and **adjustment**. */ - "type": BalanceTransferResponse.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': BalanceTransferResponse.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "createdAt", "baseName": "createdAt", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "fromMerchant", "baseName": "fromMerchant", - "type": "string", - "format": "" + "type": "string" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "BalanceTransferResponse.StatusEnum", - "format": "" + "type": "BalanceTransferResponse.StatusEnum" }, { "name": "toMerchant", "baseName": "toMerchant", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "BalanceTransferResponse.TypeEnum", - "format": "" + "type": "BalanceTransferResponse.TypeEnum" } ]; static getAttributeTypeMap() { return BalanceTransferResponse.attributeTypeMap; } - - public constructor() { - } } export namespace BalanceTransferResponse { diff --git a/src/typings/balanceControl/models.ts b/src/typings/balanceControl/models.ts index ea4b491e4..34d83cf95 100644 --- a/src/typings/balanceControl/models.ts +++ b/src/typings/balanceControl/models.ts @@ -1,6 +1,156 @@ -export * from "./amount" -export * from "./balanceTransferRequest" -export * from "./balanceTransferResponse" +/* + * The version of the OpenAPI document: v1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ -// serializing and deserializing typed objects -export * from "./objectSerializer" \ No newline at end of file + +export * from './amount'; +export * from './balanceTransferRequest'; +export * from './balanceTransferResponse'; + + +import { Amount } from './amount'; +import { BalanceTransferRequest } from './balanceTransferRequest'; +import { BalanceTransferResponse } from './balanceTransferResponse'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "BalanceTransferRequest.TypeEnum": BalanceTransferRequest.TypeEnum, + "BalanceTransferResponse.StatusEnum": BalanceTransferResponse.StatusEnum, + "BalanceTransferResponse.TypeEnum": BalanceTransferResponse.TypeEnum, +} + +let typeMap: {[index: string]: any} = { + "Amount": Amount, + "BalanceTransferRequest": BalanceTransferRequest, + "BalanceTransferResponse": BalanceTransferResponse, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/balanceControl/objectSerializer.ts b/src/typings/balanceControl/objectSerializer.ts deleted file mode 100644 index 7e04a5149..000000000 --- a/src/typings/balanceControl/objectSerializer.ts +++ /dev/null @@ -1,352 +0,0 @@ -export * from "./models"; - -import { Amount } from "./amount"; -import { BalanceTransferRequest } from "./balanceTransferRequest"; -import { BalanceTransferResponse } from "./balanceTransferResponse"; - -/* tslint:disable:no-unused-variable */ -let primitives = [ - "string", - "boolean", - "double", - "integer", - "long", - "float", - "number", - "any" - ]; - -let enumsMap: Set = new Set([ - "BalanceTransferRequest.TypeEnum", - "BalanceTransferResponse.StatusEnum", - "BalanceTransferResponse.TypeEnum", -]); - -let typeMap: {[index: string]: any} = { - "Amount": Amount, - "BalanceTransferRequest": BalanceTransferRequest, - "BalanceTransferResponse": BalanceTransferResponse, -} - -type MimeTypeDescriptor = { - type: string; - subtype: string; - subtypeTokens: string[]; -}; - -/** - * Every mime-type consists of a type, subtype, and optional parameters. - * The subtype can be composite, including information about the content format. - * For example: `application/json-patch+json`, `application/merge-patch+json`. - * - * This helper transforms a string mime-type into an internal representation. - * This simplifies the implementation of predicates that in turn define common rules for parsing or stringifying - * the payload. - */ -const parseMimeType = (mimeType: string): MimeTypeDescriptor => { - const [type = '', subtype = ''] = mimeType.split('/'); - return { - type, - subtype, - subtypeTokens: subtype.split('+'), - }; -}; - -type MimeTypePredicate = (mimeType: string) => boolean; - -// This factory creates a predicate function that checks a string mime-type against defined rules. -const mimeTypePredicateFactory = (predicate: (descriptor: MimeTypeDescriptor) => boolean): MimeTypePredicate => (mimeType) => predicate(parseMimeType(mimeType)); - -// Use this factory when you need to define a simple predicate based only on type and, if applicable, subtype. -const mimeTypeSimplePredicateFactory = (type: string, subtype?: string): MimeTypePredicate => mimeTypePredicateFactory((descriptor) => { - if (descriptor.type !== type) return false; - if (subtype != null && descriptor.subtype !== subtype) return false; - return true; -}); - -// Creating a set of named predicates that will help us determine how to handle different mime-types -const isTextLikeMimeType = mimeTypeSimplePredicateFactory('text'); -const isJsonMimeType = mimeTypeSimplePredicateFactory('application', 'json'); -const isJsonLikeMimeType = mimeTypePredicateFactory((descriptor) => descriptor.type === 'application' && descriptor.subtypeTokens.some((item) => item === 'json')); -const isOctetStreamMimeType = mimeTypeSimplePredicateFactory('application', 'octet-stream'); -const isFormUrlencodedMimeType = mimeTypeSimplePredicateFactory('application', 'x-www-form-urlencoded'); - -// Defining a list of mime-types in the order of prioritization for handling. -const supportedMimeTypePredicatesWithPriority: MimeTypePredicate[] = [ - isJsonMimeType, - isJsonLikeMimeType, - isTextLikeMimeType, - isOctetStreamMimeType, - isFormUrlencodedMimeType, -]; - -const nullableSuffix = " | null"; -const optionalSuffix = " | undefined"; -const arrayPrefix = "Array<"; -const arraySuffix = ">"; -const mapPrefix = "{ [key: string]: "; -const mapSuffix = "; }"; - -export class ObjectSerializer { - public static findCorrectType(data: any, expectedType: string) { - if (data == undefined) { - return expectedType; - } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { - return expectedType; - } else if (expectedType === "Date") { - return expectedType; - } else { - if (enumsMap.has(expectedType)) { - return expectedType; - } - - if (!typeMap[expectedType]) { - return expectedType; // w/e we don't know the type - } - - // Check the discriminator - let discriminatorProperty = typeMap[expectedType].discriminator; - if (discriminatorProperty == null) { - return expectedType; // the type does not have a discriminator. use it. - } else { - if (data[discriminatorProperty]) { - var discriminatorType = data[discriminatorProperty]; - let mapping = typeMap[expectedType].mapping; - if (mapping != undefined && mapping[discriminatorType]) { - return mapping[discriminatorType]; // use the type given in the discriminator - } else if(typeMap[discriminatorType]) { - return discriminatorType; - } else { - return expectedType; // discriminator did not map to a type - } - } else { - return expectedType; // discriminator was not present (or an empty string) - } - } - } - } - - /** - * Serializes a value into a plain JSON-compatible object based on its type. - * - * Supports primitives, arrays, maps, dates, enums, and classes defined in `typeMap`. - * Falls back to raw data if type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The value to serialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A JSON-compatible representation of `data`. - */ - public static serialize(data: any, type: string, format: string = ""): any { - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.serialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.serialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - if (format == "date") { - let month = data.getMonth()+1 - month = month < 10 ? "0" + month.toString() : month.toString() - let day = data.getDate(); - day = day < 10 ? "0" + day.toString() : day.toString(); - - return data.getFullYear() + "-" + month + "-" + day; - } else { - return data.toISOString(); - } - } else { - if (enumsMap.has(type)) { - return data; - } - if (!typeMap[type]) { // in case we dont know the type - return data; - } - - // Get the actual type of this object - type = this.findCorrectType(data, type); - - const clazz = typeMap[type]; - - // Safe check for getAttributeTypeMap - if (typeof clazz.getAttributeTypeMap !== "function") { - return { ...data }; // fallback: shallow copy - } - - // get the map for the correct type. - let attributeTypes = typeMap[type].getAttributeTypeMap(); - let instance: {[index: string]: any} = {}; - for (let attributeType of attributeTypes) { - instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format); - } - return instance; - } - } - - /** - * Deserializes a plain JSON-compatible object into a typed instance. - * - * Handles primitives, arrays, maps, dates, enums, and known classes from `typeMap`. - * Uses discriminators when available to resolve polymorphic types. - * Falls back to raw data if the type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The raw input to deserialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A deserialized instance or value of `data`. - */ - public static deserialize(data: any, type: string, format: string = ""): any { - // polymorphism may change the actual type. - type = ObjectSerializer.findCorrectType(data, type); - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.deserialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.deserialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - return new Date(data); - } else { - if (enumsMap.has(type)) {// is Enum - return data; - } - - if (!typeMap[type]) { // dont know the type - return data; - } - let instance = new typeMap[type](); - - // Safe check for getAttributeTypeMap - if (typeof typeMap[type].getAttributeTypeMap !== "function") { - Object.assign(instance, data); // fallback: shallow copy - return instance; - } - - let attributeTypes = typeMap[type].getAttributeTypeMap(); - for (let attributeType of attributeTypes) { - let value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format); - if (value !== undefined) { - instance[attributeType.name] = value; - } - } - return instance; - } - } - - - /** - * Normalize media type - * - * We currently do not handle any media types attributes, i.e. anything - * after a semicolon. All content is assumed to be UTF-8 compatible. - */ - public static normalizeMediaType(mediaType: string | undefined): string | undefined { - if (mediaType === undefined) { - return undefined; - } - return (mediaType.split(";")[0] ?? '').trim().toLowerCase(); - } - - /** - * From a list of possible media types, choose the one we can handle best. - * - * The order of the given media types does not have any impact on the choice - * made. - */ - public static getPreferredMediaType(mediaTypes: Array): string { - /** According to OAS 3 we should default to json */ - if (mediaTypes.length === 0) { - return "application/json"; - } - - const normalMediaTypes = mediaTypes.map(ObjectSerializer.normalizeMediaType); - - for (const predicate of supportedMimeTypePredicatesWithPriority) { - for (const mediaType of normalMediaTypes) { - if (mediaType != null && predicate(mediaType)) { - return mediaType; - } - } - } - - throw new Error("None of the given media types are supported: " + mediaTypes.join(", ")); - } - - /** - * Convert data to a string according the given media type - */ - public static stringify(data: any, mediaType: string): string { - if (isTextLikeMimeType(mediaType)) { - return String(data); - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.stringify(data); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify."); - } - - /** - * Parse data from a string according to the given media type - */ - public static parse(rawData: string, mediaType: string | undefined) { - if (mediaType === undefined) { - throw new Error("Cannot parse content. No Content-Type defined."); - } - - if (isTextLikeMimeType(mediaType)) { - return rawData; - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.parse(rawData); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse."); - } -} diff --git a/src/typings/balancePlatform/aULocalAccountIdentification.ts b/src/typings/balancePlatform/aULocalAccountIdentification.ts index 56bc23e44..60c75b0f0 100644 --- a/src/typings/balancePlatform/aULocalAccountIdentification.ts +++ b/src/typings/balancePlatform/aULocalAccountIdentification.ts @@ -12,46 +12,38 @@ export class AULocalAccountIdentification { /** * The bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. */ - "bsbCode": string; + 'bsbCode': string; /** * **auLocal** */ - "type": AULocalAccountIdentification.TypeEnum; + 'type': AULocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "bsbCode", "baseName": "bsbCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "AULocalAccountIdentification.TypeEnum", - "format": "" + "type": "AULocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return AULocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace AULocalAccountIdentification { diff --git a/src/typings/balancePlatform/accountHolder.ts b/src/typings/balancePlatform/accountHolder.ts index f2670c09b..e9f475128 100644 --- a/src/typings/balancePlatform/accountHolder.ts +++ b/src/typings/balancePlatform/accountHolder.ts @@ -7,155 +7,136 @@ * Do not edit this class manually. */ -import { AccountHolderCapability } from "./accountHolderCapability"; -import { ContactDetails } from "./contactDetails"; -import { VerificationDeadline } from "./verificationDeadline"; - +import { AccountHolderCapability } from './accountHolderCapability'; +import { ContactDetails } from './contactDetails'; +import { VerificationDeadline } from './verificationDeadline'; export class AccountHolder { /** * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. */ - "balancePlatform"?: string; + 'balancePlatform'?: string; /** * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. */ - "capabilities"?: { [key: string]: AccountHolderCapability; }; + 'capabilities'?: { [key: string]: AccountHolderCapability; }; /** * @deprecated */ - "contactDetails"?: ContactDetails; + 'contactDetails'?: ContactDetails | null; /** * Your description for the account holder. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the account holder. */ - "id": string; + 'id': string; /** * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. */ - "legalEntityId": string; + 'legalEntityId': string; /** * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. */ - "metadata"?: { [key: string]: string; }; + 'metadata'?: { [key: string]: string; }; /** * The unique identifier of the migrated account holder in the classic integration. */ - "migratedAccountHolderCode"?: string; + 'migratedAccountHolderCode'?: string; /** * The ID of the account holder\'s primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. */ - "primaryBalanceAccount"?: string; + 'primaryBalanceAccount'?: string; /** * Your reference for the account holder. */ - "reference"?: string; + 'reference'?: string; /** * The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. */ - "status"?: AccountHolder.StatusEnum; + 'status'?: AccountHolder.StatusEnum; /** * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ - "timeZone"?: string; + 'timeZone'?: string; /** * List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. */ - "verificationDeadlines"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'verificationDeadlines'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balancePlatform", "baseName": "balancePlatform", - "type": "string", - "format": "" + "type": "string" }, { "name": "capabilities", "baseName": "capabilities", - "type": "{ [key: string]: AccountHolderCapability; }", - "format": "" + "type": "{ [key: string]: AccountHolderCapability; }" }, { "name": "contactDetails", "baseName": "contactDetails", - "type": "ContactDetails", - "format": "" + "type": "ContactDetails | null" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "legalEntityId", "baseName": "legalEntityId", - "type": "string", - "format": "" + "type": "string" }, { "name": "metadata", "baseName": "metadata", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "migratedAccountHolderCode", "baseName": "migratedAccountHolderCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "primaryBalanceAccount", "baseName": "primaryBalanceAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "AccountHolder.StatusEnum", - "format": "" + "type": "AccountHolder.StatusEnum" }, { "name": "timeZone", "baseName": "timeZone", - "type": "string", - "format": "" + "type": "string" }, { "name": "verificationDeadlines", "baseName": "verificationDeadlines", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return AccountHolder.attributeTypeMap; } - - public constructor() { - } } export namespace AccountHolder { diff --git a/src/typings/balancePlatform/accountHolderCapability.ts b/src/typings/balancePlatform/accountHolderCapability.ts index 9f5dbf95b..eaccb94ae 100644 --- a/src/typings/balancePlatform/accountHolderCapability.ts +++ b/src/typings/balancePlatform/accountHolderCapability.ts @@ -7,119 +7,103 @@ * Do not edit this class manually. */ -import { AccountSupportingEntityCapability } from "./accountSupportingEntityCapability"; -import { CapabilityProblem } from "./capabilityProblem"; -import { CapabilitySettings } from "./capabilitySettings"; - +import { AccountSupportingEntityCapability } from './accountSupportingEntityCapability'; +import { CapabilityProblem } from './capabilityProblem'; +import { CapabilitySettings } from './capabilitySettings'; export class AccountHolderCapability { /** * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. */ - "allowed"?: boolean; + 'allowed'?: boolean; /** * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. */ - "allowedLevel"?: AccountHolderCapability.AllowedLevelEnum; - "allowedSettings"?: CapabilitySettings; + 'allowedLevel'?: AccountHolderCapability.AllowedLevelEnum; + 'allowedSettings'?: CapabilitySettings | null; /** * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. */ - "enabled"?: boolean; + 'enabled'?: boolean; /** * Contains verification errors and the actions that you can take to resolve them. */ - "problems"?: Array; + 'problems'?: Array; /** * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. */ - "requested"?: boolean; + 'requested'?: boolean; /** * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. */ - "requestedLevel"?: AccountHolderCapability.RequestedLevelEnum; - "requestedSettings"?: CapabilitySettings; + 'requestedLevel'?: AccountHolderCapability.RequestedLevelEnum; + 'requestedSettings'?: CapabilitySettings | null; /** * Contains the status of the transfer instruments associated with this capability. */ - "transferInstruments"?: Array; + 'transferInstruments'?: Array; /** * The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. */ - "verificationStatus"?: AccountHolderCapability.VerificationStatusEnum; - - static readonly discriminator: string | undefined = undefined; + 'verificationStatus'?: AccountHolderCapability.VerificationStatusEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "allowed", "baseName": "allowed", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "allowedLevel", "baseName": "allowedLevel", - "type": "AccountHolderCapability.AllowedLevelEnum", - "format": "" + "type": "AccountHolderCapability.AllowedLevelEnum" }, { "name": "allowedSettings", "baseName": "allowedSettings", - "type": "CapabilitySettings", - "format": "" + "type": "CapabilitySettings | null" }, { "name": "enabled", "baseName": "enabled", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "problems", "baseName": "problems", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "requested", "baseName": "requested", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "requestedLevel", "baseName": "requestedLevel", - "type": "AccountHolderCapability.RequestedLevelEnum", - "format": "" + "type": "AccountHolderCapability.RequestedLevelEnum" }, { "name": "requestedSettings", "baseName": "requestedSettings", - "type": "CapabilitySettings", - "format": "" + "type": "CapabilitySettings | null" }, { "name": "transferInstruments", "baseName": "transferInstruments", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "verificationStatus", "baseName": "verificationStatus", - "type": "AccountHolderCapability.VerificationStatusEnum", - "format": "" + "type": "AccountHolderCapability.VerificationStatusEnum" } ]; static getAttributeTypeMap() { return AccountHolderCapability.attributeTypeMap; } - - public constructor() { - } } export namespace AccountHolderCapability { diff --git a/src/typings/balancePlatform/accountHolderInfo.ts b/src/typings/balancePlatform/accountHolderInfo.ts index b2748353b..a2bfdfdb0 100644 --- a/src/typings/balancePlatform/accountHolderInfo.ts +++ b/src/typings/balancePlatform/accountHolderInfo.ts @@ -7,113 +7,98 @@ * Do not edit this class manually. */ -import { AccountHolderCapability } from "./accountHolderCapability"; -import { ContactDetails } from "./contactDetails"; - +import { AccountHolderCapability } from './accountHolderCapability'; +import { ContactDetails } from './contactDetails'; export class AccountHolderInfo { /** * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. */ - "balancePlatform"?: string; + 'balancePlatform'?: string; /** * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. */ - "capabilities"?: { [key: string]: AccountHolderCapability; }; + 'capabilities'?: { [key: string]: AccountHolderCapability; }; /** * @deprecated */ - "contactDetails"?: ContactDetails; + 'contactDetails'?: ContactDetails | null; /** * Your description for the account holder. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. */ - "legalEntityId": string; + 'legalEntityId': string; /** * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. */ - "metadata"?: { [key: string]: string; }; + 'metadata'?: { [key: string]: string; }; /** * The unique identifier of the migrated account holder in the classic integration. */ - "migratedAccountHolderCode"?: string; + 'migratedAccountHolderCode'?: string; /** * Your reference for the account holder. */ - "reference"?: string; + 'reference'?: string; /** * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ - "timeZone"?: string; - - static readonly discriminator: string | undefined = undefined; + 'timeZone'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balancePlatform", "baseName": "balancePlatform", - "type": "string", - "format": "" + "type": "string" }, { "name": "capabilities", "baseName": "capabilities", - "type": "{ [key: string]: AccountHolderCapability; }", - "format": "" + "type": "{ [key: string]: AccountHolderCapability; }" }, { "name": "contactDetails", "baseName": "contactDetails", - "type": "ContactDetails", - "format": "" + "type": "ContactDetails | null" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "legalEntityId", "baseName": "legalEntityId", - "type": "string", - "format": "" + "type": "string" }, { "name": "metadata", "baseName": "metadata", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "migratedAccountHolderCode", "baseName": "migratedAccountHolderCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "timeZone", "baseName": "timeZone", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AccountHolderInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/accountHolderUpdateRequest.ts b/src/typings/balancePlatform/accountHolderUpdateRequest.ts index 9137a078e..4a9c47c5e 100644 --- a/src/typings/balancePlatform/accountHolderUpdateRequest.ts +++ b/src/typings/balancePlatform/accountHolderUpdateRequest.ts @@ -7,135 +7,118 @@ * Do not edit this class manually. */ -import { AccountHolderCapability } from "./accountHolderCapability"; -import { ContactDetails } from "./contactDetails"; -import { VerificationDeadline } from "./verificationDeadline"; - +import { AccountHolderCapability } from './accountHolderCapability'; +import { ContactDetails } from './contactDetails'; +import { VerificationDeadline } from './verificationDeadline'; export class AccountHolderUpdateRequest { /** * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. */ - "balancePlatform"?: string; + 'balancePlatform'?: string; /** * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. */ - "capabilities"?: { [key: string]: AccountHolderCapability; }; + 'capabilities'?: { [key: string]: AccountHolderCapability; }; /** * @deprecated */ - "contactDetails"?: ContactDetails; + 'contactDetails'?: ContactDetails | null; /** * Your description for the account holder. */ - "description"?: string; + 'description'?: string; /** * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. */ - "metadata"?: { [key: string]: string; }; + 'metadata'?: { [key: string]: string; }; /** * The unique identifier of the migrated account holder in the classic integration. */ - "migratedAccountHolderCode"?: string; + 'migratedAccountHolderCode'?: string; /** * The ID of the account holder\'s primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. */ - "primaryBalanceAccount"?: string; + 'primaryBalanceAccount'?: string; /** * Your reference for the account holder. */ - "reference"?: string; + 'reference'?: string; /** * The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. */ - "status"?: AccountHolderUpdateRequest.StatusEnum; + 'status'?: AccountHolderUpdateRequest.StatusEnum; /** * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ - "timeZone"?: string; + 'timeZone'?: string; /** * List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. */ - "verificationDeadlines"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'verificationDeadlines'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balancePlatform", "baseName": "balancePlatform", - "type": "string", - "format": "" + "type": "string" }, { "name": "capabilities", "baseName": "capabilities", - "type": "{ [key: string]: AccountHolderCapability; }", - "format": "" + "type": "{ [key: string]: AccountHolderCapability; }" }, { "name": "contactDetails", "baseName": "contactDetails", - "type": "ContactDetails", - "format": "" + "type": "ContactDetails | null" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "metadata", "baseName": "metadata", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "migratedAccountHolderCode", "baseName": "migratedAccountHolderCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "primaryBalanceAccount", "baseName": "primaryBalanceAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "AccountHolderUpdateRequest.StatusEnum", - "format": "" + "type": "AccountHolderUpdateRequest.StatusEnum" }, { "name": "timeZone", "baseName": "timeZone", - "type": "string", - "format": "" + "type": "string" }, { "name": "verificationDeadlines", "baseName": "verificationDeadlines", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return AccountHolderUpdateRequest.attributeTypeMap; } - - public constructor() { - } } export namespace AccountHolderUpdateRequest { diff --git a/src/typings/balancePlatform/accountSupportingEntityCapability.ts b/src/typings/balancePlatform/accountSupportingEntityCapability.ts index 7afcc904b..ce3dd89dc 100644 --- a/src/typings/balancePlatform/accountSupportingEntityCapability.ts +++ b/src/typings/balancePlatform/accountSupportingEntityCapability.ts @@ -12,86 +12,74 @@ export class AccountSupportingEntityCapability { /** * Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. */ - "allowed"?: boolean; + 'allowed'?: boolean; /** * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. */ - "allowedLevel"?: AccountSupportingEntityCapability.AllowedLevelEnum; + 'allowedLevel'?: AccountSupportingEntityCapability.AllowedLevelEnum; /** * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. */ - "enabled"?: boolean; + 'enabled'?: boolean; /** * The ID of the supporting entity. */ - "id"?: string; + 'id'?: string; /** * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. */ - "requested"?: boolean; + 'requested'?: boolean; /** * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. */ - "requestedLevel"?: AccountSupportingEntityCapability.RequestedLevelEnum; + 'requestedLevel'?: AccountSupportingEntityCapability.RequestedLevelEnum; /** * The status of the verification checks for the supporting entity capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. */ - "verificationStatus"?: AccountSupportingEntityCapability.VerificationStatusEnum; + 'verificationStatus'?: AccountSupportingEntityCapability.VerificationStatusEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "allowed", "baseName": "allowed", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "allowedLevel", "baseName": "allowedLevel", - "type": "AccountSupportingEntityCapability.AllowedLevelEnum", - "format": "" + "type": "AccountSupportingEntityCapability.AllowedLevelEnum" }, { "name": "enabled", "baseName": "enabled", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "requested", "baseName": "requested", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "requestedLevel", "baseName": "requestedLevel", - "type": "AccountSupportingEntityCapability.RequestedLevelEnum", - "format": "" + "type": "AccountSupportingEntityCapability.RequestedLevelEnum" }, { "name": "verificationStatus", "baseName": "verificationStatus", - "type": "AccountSupportingEntityCapability.VerificationStatusEnum", - "format": "" + "type": "AccountSupportingEntityCapability.VerificationStatusEnum" } ]; static getAttributeTypeMap() { return AccountSupportingEntityCapability.attributeTypeMap; } - - public constructor() { - } } export namespace AccountSupportingEntityCapability { diff --git a/src/typings/balancePlatform/activeNetworkTokensRestriction.ts b/src/typings/balancePlatform/activeNetworkTokensRestriction.ts index 66312edfb..2f863c836 100644 --- a/src/typings/balancePlatform/activeNetworkTokensRestriction.ts +++ b/src/typings/balancePlatform/activeNetworkTokensRestriction.ts @@ -12,35 +12,28 @@ export class ActiveNetworkTokensRestriction { /** * Defines how the condition must be evaluated. */ - "operation": string; + 'operation': string; /** * The number of tokens. */ - "value"?: number; + 'value'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "operation", "baseName": "operation", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return ActiveNetworkTokensRestriction.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/additionalBankIdentification.ts b/src/typings/balancePlatform/additionalBankIdentification.ts index cbd78f210..e5be18fff 100644 --- a/src/typings/balancePlatform/additionalBankIdentification.ts +++ b/src/typings/balancePlatform/additionalBankIdentification.ts @@ -12,40 +12,35 @@ export class AdditionalBankIdentification { /** * The value of the additional bank identification. */ - "code"?: string; + 'code'?: string; /** - * The type of additional bank identification, depending on the country. Possible values: * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. */ - "type"?: AdditionalBankIdentification.TypeEnum; + 'type'?: AdditionalBankIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "code", "baseName": "code", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "AdditionalBankIdentification.TypeEnum", - "format": "" + "type": "AdditionalBankIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return AdditionalBankIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace AdditionalBankIdentification { export enum TypeEnum { + AuBsbCode = 'auBsbCode', + CaRoutingNumber = 'caRoutingNumber', GbSortCode = 'gbSortCode', UsRoutingNumber = 'usRoutingNumber' } diff --git a/src/typings/balancePlatform/address.ts b/src/typings/balancePlatform/address.ts index 5edd5d7e4..2adc43b43 100644 --- a/src/typings/balancePlatform/address.ts +++ b/src/typings/balancePlatform/address.ts @@ -12,75 +12,64 @@ export class Address { /** * The name of the city. Maximum length: 3000 characters. */ - "city": string; + 'city': string; /** * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don\'t know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ - "country": string; + 'country': string; /** * The number or name of the house. Maximum length: 3000 characters. */ - "houseNumberOrName": string; + 'houseNumberOrName': string; /** * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. */ - "postalCode": string; + 'postalCode': string; /** * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ - "stateOrProvince"?: string; + 'stateOrProvince'?: string; /** * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. */ - "street": string; + 'street': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "city", "baseName": "city", - "type": "string", - "format": "" + "type": "string" }, { "name": "country", "baseName": "country", - "type": "string", - "format": "" + "type": "string" }, { "name": "houseNumberOrName", "baseName": "houseNumberOrName", - "type": "string", - "format": "" + "type": "string" }, { "name": "postalCode", "baseName": "postalCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "stateOrProvince", "baseName": "stateOrProvince", - "type": "string", - "format": "" + "type": "string" }, { "name": "street", "baseName": "street", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Address.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/addressRequirement.ts b/src/typings/balancePlatform/addressRequirement.ts index 17bc157ab..9885754b6 100644 --- a/src/typings/balancePlatform/addressRequirement.ts +++ b/src/typings/balancePlatform/addressRequirement.ts @@ -12,46 +12,38 @@ export class AddressRequirement { /** * Specifies the required address related fields for a particular route. */ - "description"?: string; + 'description'?: string; /** * List of address fields. */ - "requiredAddressFields"?: Array; + 'requiredAddressFields'?: Array; /** * **addressRequirement** */ - "type": AddressRequirement.TypeEnum; + 'type': AddressRequirement.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "requiredAddressFields", "baseName": "requiredAddressFields", - "type": "AddressRequirement.RequiredAddressFieldsEnum", - "format": "" + "type": "Array" }, { "name": "type", "baseName": "type", - "type": "AddressRequirement.TypeEnum", - "format": "" + "type": "AddressRequirement.TypeEnum" } ]; static getAttributeTypeMap() { return AddressRequirement.attributeTypeMap; } - - public constructor() { - } } export namespace AddressRequirement { diff --git a/src/typings/balancePlatform/amount.ts b/src/typings/balancePlatform/amount.ts index e35a6e195..78f5e618e 100644 --- a/src/typings/balancePlatform/amount.ts +++ b/src/typings/balancePlatform/amount.ts @@ -12,35 +12,28 @@ export class Amount { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ - "currency": string; + 'currency': string; /** * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ - "value": number; + 'value': number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "number", - "format": "int64" + "type": "number" } ]; static getAttributeTypeMap() { return Amount.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/amountMinMaxRequirement.ts b/src/typings/balancePlatform/amountMinMaxRequirement.ts index 9a93ec6ae..bce601d81 100644 --- a/src/typings/balancePlatform/amountMinMaxRequirement.ts +++ b/src/typings/balancePlatform/amountMinMaxRequirement.ts @@ -12,56 +12,47 @@ export class AmountMinMaxRequirement { /** * Specifies the eligible amounts for a particular route. */ - "description"?: string; + 'description'?: string; /** * Maximum amount. */ - "max"?: number; + 'max'?: number; /** * Minimum amount. */ - "min"?: number; + 'min'?: number; /** * **amountMinMaxRequirement** */ - "type": AmountMinMaxRequirement.TypeEnum; + 'type': AmountMinMaxRequirement.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "max", "baseName": "max", - "type": "number", - "format": "int64" + "type": "number" }, { "name": "min", "baseName": "min", - "type": "number", - "format": "int64" + "type": "number" }, { "name": "type", "baseName": "type", - "type": "AmountMinMaxRequirement.TypeEnum", - "format": "" + "type": "AmountMinMaxRequirement.TypeEnum" } ]; static getAttributeTypeMap() { return AmountMinMaxRequirement.attributeTypeMap; } - - public constructor() { - } } export namespace AmountMinMaxRequirement { diff --git a/src/typings/balancePlatform/amountNonZeroDecimalsRequirement.ts b/src/typings/balancePlatform/amountNonZeroDecimalsRequirement.ts index e42a88199..a60c0e1f0 100644 --- a/src/typings/balancePlatform/amountNonZeroDecimalsRequirement.ts +++ b/src/typings/balancePlatform/amountNonZeroDecimalsRequirement.ts @@ -12,36 +12,29 @@ export class AmountNonZeroDecimalsRequirement { /** * Specifies for which routes the amount in a transfer request must have no non-zero decimal places, so the transfer can only be processed if the amount consists of round numbers. */ - "description"?: string; + 'description'?: string; /** * **amountNonZeroDecimalsRequirement** */ - "type": AmountNonZeroDecimalsRequirement.TypeEnum; + 'type': AmountNonZeroDecimalsRequirement.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "AmountNonZeroDecimalsRequirement.TypeEnum", - "format": "" + "type": "AmountNonZeroDecimalsRequirement.TypeEnum" } ]; static getAttributeTypeMap() { return AmountNonZeroDecimalsRequirement.attributeTypeMap; } - - public constructor() { - } } export namespace AmountNonZeroDecimalsRequirement { diff --git a/src/typings/balancePlatform/associationDelegatedAuthenticationData.ts b/src/typings/balancePlatform/associationDelegatedAuthenticationData.ts index 1a55fbd2d..244729711 100644 --- a/src/typings/balancePlatform/associationDelegatedAuthenticationData.ts +++ b/src/typings/balancePlatform/associationDelegatedAuthenticationData.ts @@ -12,25 +12,19 @@ export class AssociationDelegatedAuthenticationData { /** * A base64-encoded block with the data required to authenticate the request. You obtain this information by using our authentication SDK. */ - "sdkOutput": string; + 'sdkOutput': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "sdkOutput", "baseName": "sdkOutput", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AssociationDelegatedAuthenticationData.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/associationFinaliseRequest.ts b/src/typings/balancePlatform/associationFinaliseRequest.ts index 5a19029a4..e3c164e54 100644 --- a/src/typings/balancePlatform/associationFinaliseRequest.ts +++ b/src/typings/balancePlatform/associationFinaliseRequest.ts @@ -7,50 +7,41 @@ * Do not edit this class manually. */ -import { AssociationDelegatedAuthenticationData } from "./associationDelegatedAuthenticationData"; - +import { AssociationDelegatedAuthenticationData } from './associationDelegatedAuthenticationData'; export class AssociationFinaliseRequest { /** * The list of unique identifiers of the resources that you are associating with the SCA device. Maximum: 5 strings. */ - "ids": Array; - "strongCustomerAuthentication": AssociationDelegatedAuthenticationData; + 'ids': Array; + 'strongCustomerAuthentication': AssociationDelegatedAuthenticationData; /** * The type of resource that you are associating with the SCA device. Possible value: **PaymentInstrument** */ - "type": AssociationFinaliseRequest.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': AssociationFinaliseRequest.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "ids", "baseName": "ids", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "strongCustomerAuthentication", "baseName": "strongCustomerAuthentication", - "type": "AssociationDelegatedAuthenticationData", - "format": "" + "type": "AssociationDelegatedAuthenticationData" }, { "name": "type", "baseName": "type", - "type": "AssociationFinaliseRequest.TypeEnum", - "format": "" + "type": "AssociationFinaliseRequest.TypeEnum" } ]; static getAttributeTypeMap() { return AssociationFinaliseRequest.attributeTypeMap; } - - public constructor() { - } } export namespace AssociationFinaliseRequest { diff --git a/src/typings/balancePlatform/associationFinaliseResponse.ts b/src/typings/balancePlatform/associationFinaliseResponse.ts index 47fdff5df..a8ef779d4 100644 --- a/src/typings/balancePlatform/associationFinaliseResponse.ts +++ b/src/typings/balancePlatform/associationFinaliseResponse.ts @@ -12,46 +12,38 @@ export class AssociationFinaliseResponse { /** * The unique identifier of the SCA device you associated with a resource. */ - "deviceId"?: string; + 'deviceId'?: string; /** * The list of unique identifiers of the resources that you associated with the SCA device. */ - "ids"?: Array; + 'ids'?: Array; /** * The type of resource that you associated with the SCA device. */ - "type": AssociationFinaliseResponse.TypeEnum; + 'type': AssociationFinaliseResponse.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "deviceId", "baseName": "deviceId", - "type": "string", - "format": "" + "type": "string" }, { "name": "ids", "baseName": "ids", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "type", "baseName": "type", - "type": "AssociationFinaliseResponse.TypeEnum", - "format": "" + "type": "AssociationFinaliseResponse.TypeEnum" } ]; static getAttributeTypeMap() { return AssociationFinaliseResponse.attributeTypeMap; } - - public constructor() { - } } export namespace AssociationFinaliseResponse { diff --git a/src/typings/balancePlatform/associationInitiateRequest.ts b/src/typings/balancePlatform/associationInitiateRequest.ts index ca2ecc716..ac4ca497c 100644 --- a/src/typings/balancePlatform/associationInitiateRequest.ts +++ b/src/typings/balancePlatform/associationInitiateRequest.ts @@ -12,36 +12,29 @@ export class AssociationInitiateRequest { /** * The list of unique identifiers of the resources that you are associating with the SCA device. Maximum: 5 strings. */ - "ids": Array; + 'ids': Array; /** * The type of resource that you are associating with the SCA device. Possible value: **PaymentInstrument** */ - "type": AssociationInitiateRequest.TypeEnum; + 'type': AssociationInitiateRequest.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "ids", "baseName": "ids", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "type", "baseName": "type", - "type": "AssociationInitiateRequest.TypeEnum", - "format": "" + "type": "AssociationInitiateRequest.TypeEnum" } ]; static getAttributeTypeMap() { return AssociationInitiateRequest.attributeTypeMap; } - - public constructor() { - } } export namespace AssociationInitiateRequest { diff --git a/src/typings/balancePlatform/associationInitiateResponse.ts b/src/typings/balancePlatform/associationInitiateResponse.ts index f62c7874c..97afec8a9 100644 --- a/src/typings/balancePlatform/associationInitiateResponse.ts +++ b/src/typings/balancePlatform/associationInitiateResponse.ts @@ -12,25 +12,19 @@ export class AssociationInitiateResponse { /** * A string that you must pass to the authentication SDK to continue with the association process. */ - "sdkInput"?: string; + 'sdkInput'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "sdkInput", "baseName": "sdkInput", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AssociationInitiateResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/authentication.ts b/src/typings/balancePlatform/authentication.ts index 2d16be7c5..843cf933c 100644 --- a/src/typings/balancePlatform/authentication.ts +++ b/src/typings/balancePlatform/authentication.ts @@ -7,49 +7,40 @@ * Do not edit this class manually. */ -import { Phone } from "./phone"; - +import { Phone } from './phone'; export class Authentication { /** * The email address where the one-time password (OTP) is sent. */ - "email"?: string; + 'email'?: string; /** * The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#\'\",;:$&àùòâôûáúó** */ - "password"?: string; - "phone"?: Phone; - - static readonly discriminator: string | undefined = undefined; + 'password'?: string; + 'phone'?: Phone | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "email", "baseName": "email", - "type": "string", - "format": "" + "type": "string" }, { "name": "password", "baseName": "password", - "type": "string", - "format": "" + "type": "string" }, { "name": "phone", "baseName": "phone", - "type": "Phone", - "format": "" + "type": "Phone | null" } ]; static getAttributeTypeMap() { return Authentication.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/authorisedCardUsers.ts b/src/typings/balancePlatform/authorisedCardUsers.ts new file mode 100644 index 000000000..ca0706098 --- /dev/null +++ b/src/typings/balancePlatform/authorisedCardUsers.ts @@ -0,0 +1,30 @@ +/* + * 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 AuthorisedCardUsers { + /** + * The legal entity IDs of the authorized card users linked to the specified payment instrument. + */ + 'legalEntityIds'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "legalEntityIds", + "baseName": "legalEntityIds", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return AuthorisedCardUsers.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/bRLocalAccountIdentification.ts b/src/typings/balancePlatform/bRLocalAccountIdentification.ts index f4f200325..e577aadf6 100644 --- a/src/typings/balancePlatform/bRLocalAccountIdentification.ts +++ b/src/typings/balancePlatform/bRLocalAccountIdentification.ts @@ -12,66 +12,56 @@ export class BRLocalAccountIdentification { /** * The bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * The 3-digit bank code, with leading zeros. */ - "bankCode": string; + 'bankCode': string; /** * The bank account branch number, without separators or whitespace. */ - "branchNumber": string; + 'branchNumber': string; /** * The 8-digit ISPB, with leading zeros. */ - "ispb"?: string; + 'ispb'?: string; /** * **brLocal** */ - "type": BRLocalAccountIdentification.TypeEnum; + 'type': BRLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankCode", "baseName": "bankCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "branchNumber", "baseName": "branchNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "ispb", "baseName": "ispb", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "BRLocalAccountIdentification.TypeEnum", - "format": "" + "type": "BRLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return BRLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace BRLocalAccountIdentification { diff --git a/src/typings/balancePlatform/balance.ts b/src/typings/balancePlatform/balance.ts index d4eb021cb..ecfe423d0 100644 --- a/src/typings/balancePlatform/balance.ts +++ b/src/typings/balancePlatform/balance.ts @@ -12,65 +12,55 @@ export class Balance { /** * The balance available for use. */ - "available": number; + 'available': number; /** * The sum of the transactions that have already been settled. */ - "balance": number; + 'balance': number; /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. */ - "currency": string; + 'currency': string; /** * The sum of the transactions that will be settled in the future. */ - "pending"?: number; + 'pending'?: number; /** * The balance currently held in reserve. */ - "reserved": number; + 'reserved': number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "available", "baseName": "available", - "type": "number", - "format": "int64" + "type": "number" }, { "name": "balance", "baseName": "balance", - "type": "number", - "format": "int64" + "type": "number" }, { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "pending", "baseName": "pending", - "type": "number", - "format": "int64" + "type": "number" }, { "name": "reserved", "baseName": "reserved", - "type": "number", - "format": "int64" + "type": "number" } ]; static getAttributeTypeMap() { return Balance.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/balanceAccount.ts b/src/typings/balancePlatform/balanceAccount.ts index f9db6ef79..3644c8359 100644 --- a/src/typings/balancePlatform/balanceAccount.ts +++ b/src/typings/balancePlatform/balanceAccount.ts @@ -7,131 +7,114 @@ * Do not edit this class manually. */ -import { Balance } from "./balance"; -import { PlatformPaymentConfiguration } from "./platformPaymentConfiguration"; - +import { Balance } from './balance'; +import { PlatformPaymentConfiguration } from './platformPaymentConfiguration'; export class BalanceAccount { /** * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) associated with the balance account. */ - "accountHolderId": string; + 'accountHolderId': string; /** * List of balances with the amount and currency. */ - "balances"?: Array; + 'balances'?: Array; /** * The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. */ - "defaultCurrencyCode"?: string; + 'defaultCurrencyCode'?: string; /** * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the balance account. */ - "id": string; + 'id': string; /** * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. */ - "metadata"?: { [key: string]: string; }; + 'metadata'?: { [key: string]: string; }; /** * The unique identifier of the account of the migrated account holder in the classic integration. */ - "migratedAccountCode"?: string; - "platformPaymentConfiguration"?: PlatformPaymentConfiguration; + 'migratedAccountCode'?: string; + 'platformPaymentConfiguration'?: PlatformPaymentConfiguration | null; /** * Your reference for the balance account, maximum 150 characters. */ - "reference"?: string; + 'reference'?: string; /** * The status of the balance account, set to **active** by default. */ - "status"?: BalanceAccount.StatusEnum; + 'status'?: BalanceAccount.StatusEnum; /** * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ - "timeZone"?: string; - - static readonly discriminator: string | undefined = undefined; + 'timeZone'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountHolderId", "baseName": "accountHolderId", - "type": "string", - "format": "" + "type": "string" }, { "name": "balances", "baseName": "balances", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "defaultCurrencyCode", "baseName": "defaultCurrencyCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "metadata", "baseName": "metadata", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "migratedAccountCode", "baseName": "migratedAccountCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "platformPaymentConfiguration", "baseName": "platformPaymentConfiguration", - "type": "PlatformPaymentConfiguration", - "format": "" + "type": "PlatformPaymentConfiguration | null" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "BalanceAccount.StatusEnum", - "format": "" + "type": "BalanceAccount.StatusEnum" }, { "name": "timeZone", "baseName": "timeZone", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return BalanceAccount.attributeTypeMap; } - - public constructor() { - } } export namespace BalanceAccount { diff --git a/src/typings/balancePlatform/balanceAccountBase.ts b/src/typings/balancePlatform/balanceAccountBase.ts index 0d987fac2..a09f87092 100644 --- a/src/typings/balancePlatform/balanceAccountBase.ts +++ b/src/typings/balancePlatform/balanceAccountBase.ts @@ -7,120 +7,104 @@ * Do not edit this class manually. */ -import { PlatformPaymentConfiguration } from "./platformPaymentConfiguration"; - +import { PlatformPaymentConfiguration } from './platformPaymentConfiguration'; export class BalanceAccountBase { /** * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) associated with the balance account. */ - "accountHolderId": string; + 'accountHolderId': string; /** * The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. */ - "defaultCurrencyCode"?: string; + 'defaultCurrencyCode'?: string; /** * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the balance account. */ - "id": string; + 'id': string; /** * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. */ - "metadata"?: { [key: string]: string; }; + 'metadata'?: { [key: string]: string; }; /** * The unique identifier of the account of the migrated account holder in the classic integration. */ - "migratedAccountCode"?: string; - "platformPaymentConfiguration"?: PlatformPaymentConfiguration; + 'migratedAccountCode'?: string; + 'platformPaymentConfiguration'?: PlatformPaymentConfiguration | null; /** * Your reference for the balance account, maximum 150 characters. */ - "reference"?: string; + 'reference'?: string; /** * The status of the balance account, set to **active** by default. */ - "status"?: BalanceAccountBase.StatusEnum; + 'status'?: BalanceAccountBase.StatusEnum; /** * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ - "timeZone"?: string; - - static readonly discriminator: string | undefined = undefined; + 'timeZone'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountHolderId", "baseName": "accountHolderId", - "type": "string", - "format": "" + "type": "string" }, { "name": "defaultCurrencyCode", "baseName": "defaultCurrencyCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "metadata", "baseName": "metadata", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "migratedAccountCode", "baseName": "migratedAccountCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "platformPaymentConfiguration", "baseName": "platformPaymentConfiguration", - "type": "PlatformPaymentConfiguration", - "format": "" + "type": "PlatformPaymentConfiguration | null" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "BalanceAccountBase.StatusEnum", - "format": "" + "type": "BalanceAccountBase.StatusEnum" }, { "name": "timeZone", "baseName": "timeZone", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return BalanceAccountBase.attributeTypeMap; } - - public constructor() { - } } export namespace BalanceAccountBase { diff --git a/src/typings/balancePlatform/balanceAccountInfo.ts b/src/typings/balancePlatform/balanceAccountInfo.ts index a1bd14d78..31968480f 100644 --- a/src/typings/balancePlatform/balanceAccountInfo.ts +++ b/src/typings/balancePlatform/balanceAccountInfo.ts @@ -7,99 +7,85 @@ * Do not edit this class manually. */ -import { PlatformPaymentConfiguration } from "./platformPaymentConfiguration"; - +import { PlatformPaymentConfiguration } from './platformPaymentConfiguration'; export class BalanceAccountInfo { /** * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) associated with the balance account. */ - "accountHolderId": string; + 'accountHolderId': string; /** * The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. */ - "defaultCurrencyCode"?: string; + 'defaultCurrencyCode'?: string; /** * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. */ - "description"?: string; + 'description'?: string; /** * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. */ - "metadata"?: { [key: string]: string; }; + 'metadata'?: { [key: string]: string; }; /** * The unique identifier of the account of the migrated account holder in the classic integration. */ - "migratedAccountCode"?: string; - "platformPaymentConfiguration"?: PlatformPaymentConfiguration; + 'migratedAccountCode'?: string; + 'platformPaymentConfiguration'?: PlatformPaymentConfiguration | null; /** * Your reference for the balance account, maximum 150 characters. */ - "reference"?: string; + 'reference'?: string; /** * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ - "timeZone"?: string; - - static readonly discriminator: string | undefined = undefined; + 'timeZone'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountHolderId", "baseName": "accountHolderId", - "type": "string", - "format": "" + "type": "string" }, { "name": "defaultCurrencyCode", "baseName": "defaultCurrencyCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "metadata", "baseName": "metadata", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "migratedAccountCode", "baseName": "migratedAccountCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "platformPaymentConfiguration", "baseName": "platformPaymentConfiguration", - "type": "PlatformPaymentConfiguration", - "format": "" + "type": "PlatformPaymentConfiguration | null" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "timeZone", "baseName": "timeZone", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return BalanceAccountInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/balanceAccountUpdateRequest.ts b/src/typings/balancePlatform/balanceAccountUpdateRequest.ts index 92fe9b3b9..ddb759ffc 100644 --- a/src/typings/balancePlatform/balanceAccountUpdateRequest.ts +++ b/src/typings/balancePlatform/balanceAccountUpdateRequest.ts @@ -7,90 +7,77 @@ * Do not edit this class manually. */ -import { PlatformPaymentConfiguration } from "./platformPaymentConfiguration"; - +import { PlatformPaymentConfiguration } from './platformPaymentConfiguration'; export class BalanceAccountUpdateRequest { /** * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) associated with the balance account. */ - "accountHolderId"?: string; + 'accountHolderId'?: string; /** * A human-readable description of the balance account. You can use this parameter to distinguish between multiple balance accounts under an account holder. */ - "description"?: string; + 'description'?: string; /** * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. */ - "metadata"?: { [key: string]: string; }; - "platformPaymentConfiguration"?: PlatformPaymentConfiguration; + 'metadata'?: { [key: string]: string; }; + 'platformPaymentConfiguration'?: PlatformPaymentConfiguration | null; /** * Your reference to the balance account. */ - "reference"?: string; + 'reference'?: string; /** * The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**. Possible values: **active**, **closed**, **suspended**. */ - "status"?: BalanceAccountUpdateRequest.StatusEnum; + 'status'?: BalanceAccountUpdateRequest.StatusEnum; /** * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ - "timeZone"?: string; - - static readonly discriminator: string | undefined = undefined; + 'timeZone'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountHolderId", "baseName": "accountHolderId", - "type": "string", - "format": "" + "type": "string" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "metadata", "baseName": "metadata", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "platformPaymentConfiguration", "baseName": "platformPaymentConfiguration", - "type": "PlatformPaymentConfiguration", - "format": "" + "type": "PlatformPaymentConfiguration | null" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "BalanceAccountUpdateRequest.StatusEnum", - "format": "" + "type": "BalanceAccountUpdateRequest.StatusEnum" }, { "name": "timeZone", "baseName": "timeZone", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return BalanceAccountUpdateRequest.attributeTypeMap; } - - public constructor() { - } } export namespace BalanceAccountUpdateRequest { diff --git a/src/typings/balancePlatform/balancePlatform.ts b/src/typings/balancePlatform/balancePlatform.ts index 1cd46a19f..b98e096f7 100644 --- a/src/typings/balancePlatform/balancePlatform.ts +++ b/src/typings/balancePlatform/balancePlatform.ts @@ -12,45 +12,37 @@ export class BalancePlatform { /** * Your description of the balance platform. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the balance platform. */ - "id": string; + 'id': string; /** * The status of the balance platform. Possible values: **Active**, **Inactive**, **Closed**, **Suspended**. */ - "status"?: string; + 'status'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return BalancePlatform.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/balanceSweepConfigurationsResponse.ts b/src/typings/balancePlatform/balanceSweepConfigurationsResponse.ts index 439ea708d..aa3101d69 100644 --- a/src/typings/balancePlatform/balanceSweepConfigurationsResponse.ts +++ b/src/typings/balancePlatform/balanceSweepConfigurationsResponse.ts @@ -7,52 +7,43 @@ * Do not edit this class manually. */ -import { SweepConfigurationV2 } from "./sweepConfigurationV2"; - +import { SweepConfigurationV2 } from './sweepConfigurationV2'; export class BalanceSweepConfigurationsResponse { /** * Indicates whether there are more items on the next page. */ - "hasNext": boolean; + 'hasNext': boolean; /** * Indicates whether there are more items on the previous page. */ - "hasPrevious": boolean; + 'hasPrevious': boolean; /** * List of sweeps associated with the balance account. */ - "sweeps": Array; - - static readonly discriminator: string | undefined = undefined; + 'sweeps': Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "hasNext", "baseName": "hasNext", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "hasPrevious", "baseName": "hasPrevious", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "sweeps", "baseName": "sweeps", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return BalanceSweepConfigurationsResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/balanceWebhookSetting.ts b/src/typings/balancePlatform/balanceWebhookSetting.ts index 46e02f59c..173ddbbe0 100644 --- a/src/typings/balancePlatform/balanceWebhookSetting.ts +++ b/src/typings/balancePlatform/balanceWebhookSetting.ts @@ -7,36 +7,29 @@ * Do not edit this class manually. */ -import { Condition } from "./condition"; -import { WebhookSetting } from "./webhookSetting"; - +import { BalanceWebhookSettingAllOf } from './balanceWebhookSettingAllOf'; +import { Condition } from './condition'; +import { SettingType } from './settingType'; +import { Target } from './target'; +import { WebhookSetting } from './webhookSetting'; export class BalanceWebhookSetting extends WebhookSetting { /** * The list of settings and criteria for triggering the [balance webhook](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balanceAccount.balance.updated). */ - "conditions"?: Array; - - static override readonly discriminator: string | undefined = undefined; + 'conditions'?: Array; - static override readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static override readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "conditions", "baseName": "conditions", - "type": "Array", - "format": "" + "type": "Array" } ]; - static override getAttributeTypeMap() { + static getAttributeTypeMap() { return super.getAttributeTypeMap().concat(BalanceWebhookSetting.attributeTypeMap); } - - public constructor() { - super(); - } } -export namespace BalanceWebhookSetting { -} diff --git a/src/typings/balancePlatform/balanceWebhookSettingAllOf.ts b/src/typings/balancePlatform/balanceWebhookSettingAllOf.ts new file mode 100644 index 000000000..e56f77cd4 --- /dev/null +++ b/src/typings/balancePlatform/balanceWebhookSettingAllOf.ts @@ -0,0 +1,31 @@ +/* + * 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 { Condition } from './condition'; + +export class BalanceWebhookSettingAllOf { + /** + * The list of settings and criteria for triggering the [balance webhook](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balanceAccount.balance.updated). + */ + 'conditions'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "conditions", + "baseName": "conditions", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return BalanceWebhookSettingAllOf.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/balanceWebhookSettingInfo.ts b/src/typings/balancePlatform/balanceWebhookSettingInfo.ts index 5b7979235..97cee3119 100644 --- a/src/typings/balancePlatform/balanceWebhookSettingInfo.ts +++ b/src/typings/balancePlatform/balanceWebhookSettingInfo.ts @@ -7,71 +7,60 @@ * Do not edit this class manually. */ -import { Condition } from "./condition"; -import { Target } from "./target"; - +import { Condition } from './condition'; +import { Target } from './target'; export class BalanceWebhookSettingInfo { /** * The array of conditions a balance change must meet for Adyen to send the webhook. */ - "conditions"?: Array; + 'conditions'?: Array; /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. */ - "currency": string; + 'currency': string; /** * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. */ - "status": BalanceWebhookSettingInfo.StatusEnum; - "target": Target; + 'status': BalanceWebhookSettingInfo.StatusEnum; + 'target': Target; /** * The type of the webhook you are configuring. Set to **balance**. */ - "type": BalanceWebhookSettingInfo.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': BalanceWebhookSettingInfo.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "conditions", "baseName": "conditions", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "BalanceWebhookSettingInfo.StatusEnum", - "format": "" + "type": "BalanceWebhookSettingInfo.StatusEnum" }, { "name": "target", "baseName": "target", - "type": "Target", - "format": "" + "type": "Target" }, { "name": "type", "baseName": "type", - "type": "BalanceWebhookSettingInfo.TypeEnum", - "format": "" + "type": "BalanceWebhookSettingInfo.TypeEnum" } ]; static getAttributeTypeMap() { return BalanceWebhookSettingInfo.attributeTypeMap; } - - public constructor() { - } } export namespace BalanceWebhookSettingInfo { diff --git a/src/typings/balancePlatform/balanceWebhookSettingInfoUpdate.ts b/src/typings/balancePlatform/balanceWebhookSettingInfoUpdate.ts index 7349b0dc2..b32023cad 100644 --- a/src/typings/balancePlatform/balanceWebhookSettingInfoUpdate.ts +++ b/src/typings/balancePlatform/balanceWebhookSettingInfoUpdate.ts @@ -7,71 +7,60 @@ * Do not edit this class manually. */ -import { Condition } from "./condition"; -import { TargetUpdate } from "./targetUpdate"; - +import { Condition } from './condition'; +import { TargetUpdate } from './targetUpdate'; export class BalanceWebhookSettingInfoUpdate { /** * The array of conditions a balance change must meet for Adyen to send the webhook. */ - "conditions"?: Array; + 'conditions'?: Array; /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. */ - "currency"?: string; + 'currency'?: string; /** * The status of the webhook setting. Possible values: * **active**: You receive a balance webhook if any of the conditions in this setting are met. * **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. */ - "status"?: BalanceWebhookSettingInfoUpdate.StatusEnum; - "target"?: TargetUpdate; + 'status'?: BalanceWebhookSettingInfoUpdate.StatusEnum; + 'target'?: TargetUpdate | null; /** * The type of the webhook you are configuring. Set to **balance**. */ - "type"?: BalanceWebhookSettingInfoUpdate.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type'?: BalanceWebhookSettingInfoUpdate.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "conditions", "baseName": "conditions", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "BalanceWebhookSettingInfoUpdate.StatusEnum", - "format": "" + "type": "BalanceWebhookSettingInfoUpdate.StatusEnum" }, { "name": "target", "baseName": "target", - "type": "TargetUpdate", - "format": "" + "type": "TargetUpdate | null" }, { "name": "type", "baseName": "type", - "type": "BalanceWebhookSettingInfoUpdate.TypeEnum", - "format": "" + "type": "BalanceWebhookSettingInfoUpdate.TypeEnum" } ]; static getAttributeTypeMap() { return BalanceWebhookSettingInfoUpdate.attributeTypeMap; } - - public constructor() { - } } export namespace BalanceWebhookSettingInfoUpdate { diff --git a/src/typings/balancePlatform/bankAccount.ts b/src/typings/balancePlatform/bankAccount.ts index 6b9138115..c2dbb54c3 100644 --- a/src/typings/balancePlatform/bankAccount.ts +++ b/src/typings/balancePlatform/bankAccount.ts @@ -7,29 +7,40 @@ * Do not edit this class manually. */ -import { BankAccountAccountIdentification } from "./bankAccountAccountIdentification"; - +import { AULocalAccountIdentification } from './aULocalAccountIdentification'; +import { BRLocalAccountIdentification } from './bRLocalAccountIdentification'; +import { CALocalAccountIdentification } from './cALocalAccountIdentification'; +import { CZLocalAccountIdentification } from './cZLocalAccountIdentification'; +import { DKLocalAccountIdentification } from './dKLocalAccountIdentification'; +import { HKLocalAccountIdentification } from './hKLocalAccountIdentification'; +import { HULocalAccountIdentification } from './hULocalAccountIdentification'; +import { IbanAccountIdentification } from './ibanAccountIdentification'; +import { NOLocalAccountIdentification } from './nOLocalAccountIdentification'; +import { NZLocalAccountIdentification } from './nZLocalAccountIdentification'; +import { NumberAndBicAccountIdentification } from './numberAndBicAccountIdentification'; +import { PLLocalAccountIdentification } from './pLLocalAccountIdentification'; +import { SELocalAccountIdentification } from './sELocalAccountIdentification'; +import { SGLocalAccountIdentification } from './sGLocalAccountIdentification'; +import { UKLocalAccountIdentification } from './uKLocalAccountIdentification'; +import { USLocalAccountIdentification } from './uSLocalAccountIdentification'; export class BankAccount { - "accountIdentification": BankAccountAccountIdentification; - - static readonly discriminator: string | undefined = undefined; + /** + * Contains the bank account details. The fields required in this object depend on the country of the bank account and the currency of the transfer. + */ + 'accountIdentification': AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountIdentification", "baseName": "accountIdentification", - "type": "BankAccountAccountIdentification", - "format": "" + "type": "AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification" } ]; static getAttributeTypeMap() { return BankAccount.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/bankAccountAccountIdentification.ts b/src/typings/balancePlatform/bankAccountAccountIdentification.ts deleted file mode 100644 index 8afdfb586..000000000 --- a/src/typings/balancePlatform/bankAccountAccountIdentification.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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 { AULocalAccountIdentification } from "./aULocalAccountIdentification"; -import { BRLocalAccountIdentification } from "./bRLocalAccountIdentification"; -import { CALocalAccountIdentification } from "./cALocalAccountIdentification"; -import { CZLocalAccountIdentification } from "./cZLocalAccountIdentification"; -import { DKLocalAccountIdentification } from "./dKLocalAccountIdentification"; -import { HKLocalAccountIdentification } from "./hKLocalAccountIdentification"; -import { HULocalAccountIdentification } from "./hULocalAccountIdentification"; -import { IbanAccountIdentification } from "./ibanAccountIdentification"; -import { NOLocalAccountIdentification } from "./nOLocalAccountIdentification"; -import { NZLocalAccountIdentification } from "./nZLocalAccountIdentification"; -import { NumberAndBicAccountIdentification } from "./numberAndBicAccountIdentification"; -import { PLLocalAccountIdentification } from "./pLLocalAccountIdentification"; -import { SELocalAccountIdentification } from "./sELocalAccountIdentification"; -import { SGLocalAccountIdentification } from "./sGLocalAccountIdentification"; -import { UKLocalAccountIdentification } from "./uKLocalAccountIdentification"; -import { USLocalAccountIdentification } from "./uSLocalAccountIdentification"; - -/** -* Contains the bank account details. The fields required in this object depend on the country of the bank account and the currency of the transfer. -*/ - - -/** - * @type BankAccountAccountIdentification - * Type - * @export - */ -export type BankAccountAccountIdentification = AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification; - -/** -* @type BankAccountAccountIdentificationClass - * Contains the bank account details. The fields required in this object depend on the country of the bank account and the currency of the transfer. -* @export -*/ -export class BankAccountAccountIdentificationClass { - - static readonly discriminator: string = "type"; - - static readonly mapping: {[index: string]: string} | undefined = undefined; -} diff --git a/src/typings/balancePlatform/bankAccountDetails.ts b/src/typings/balancePlatform/bankAccountDetails.ts index 569863908..bbd62559b 100644 --- a/src/typings/balancePlatform/bankAccountDetails.ts +++ b/src/typings/balancePlatform/bankAccountDetails.ts @@ -12,95 +12,82 @@ export class BankAccountDetails { /** * The bank account number, without separators or whitespace. */ - "accountNumber"?: string; + 'accountNumber'?: string; /** * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ - "accountType"?: string; + 'accountType'?: string; /** * The bank account branch number, without separators or whitespace */ - "branchNumber"?: string; + 'branchNumber'?: string; /** * Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. */ - "formFactor"?: string; + 'formFactor'?: string; /** * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ - "iban"?: string; + 'iban'?: string; /** * The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. */ - "routingNumber"?: string; + 'routingNumber'?: string; /** * The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. */ - "sortCode"?: string; + 'sortCode'?: string; /** * **iban** or **usLocal** or **ukLocal** */ - "type": string; + 'type': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "accountType", "baseName": "accountType", - "type": "string", - "format": "" + "type": "string" }, { "name": "branchNumber", "baseName": "branchNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "formFactor", "baseName": "formFactor", - "type": "string", - "format": "" + "type": "string" }, { "name": "iban", "baseName": "iban", - "type": "string", - "format": "" + "type": "string" }, { "name": "routingNumber", "baseName": "routingNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "sortCode", "baseName": "sortCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return BankAccountDetails.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/bankAccountIdentificationTypeRequirement.ts b/src/typings/balancePlatform/bankAccountIdentificationTypeRequirement.ts index 4cc63b362..1e07af742 100644 --- a/src/typings/balancePlatform/bankAccountIdentificationTypeRequirement.ts +++ b/src/typings/balancePlatform/bankAccountIdentificationTypeRequirement.ts @@ -12,46 +12,38 @@ export class BankAccountIdentificationTypeRequirement { /** * List of bank account identification types: eg.; [iban , numberAndBic] */ - "bankAccountIdentificationTypes"?: Array; + 'bankAccountIdentificationTypes'?: Array; /** * Specifies the bank account details for a particular route per required field in this object depending on the country of the bank account and the currency of the transfer. */ - "description"?: string; + 'description'?: string; /** * **bankAccountIdentificationTypeRequirement** */ - "type": BankAccountIdentificationTypeRequirement.TypeEnum; + 'type': BankAccountIdentificationTypeRequirement.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "bankAccountIdentificationTypes", "baseName": "bankAccountIdentificationTypes", - "type": "BankAccountIdentificationTypeRequirement.BankAccountIdentificationTypesEnum", - "format": "" + "type": "Array" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "BankAccountIdentificationTypeRequirement.TypeEnum", - "format": "" + "type": "BankAccountIdentificationTypeRequirement.TypeEnum" } ]; static getAttributeTypeMap() { return BankAccountIdentificationTypeRequirement.attributeTypeMap; } - - public constructor() { - } } export namespace BankAccountIdentificationTypeRequirement { diff --git a/src/typings/balancePlatform/bankAccountIdentificationValidationRequest.ts b/src/typings/balancePlatform/bankAccountIdentificationValidationRequest.ts index e54ddad89..1962bbd42 100644 --- a/src/typings/balancePlatform/bankAccountIdentificationValidationRequest.ts +++ b/src/typings/balancePlatform/bankAccountIdentificationValidationRequest.ts @@ -7,29 +7,40 @@ * Do not edit this class manually. */ -import { BankAccountIdentificationValidationRequestAccountIdentification } from "./bankAccountIdentificationValidationRequestAccountIdentification"; - +import { AULocalAccountIdentification } from './aULocalAccountIdentification'; +import { BRLocalAccountIdentification } from './bRLocalAccountIdentification'; +import { CALocalAccountIdentification } from './cALocalAccountIdentification'; +import { CZLocalAccountIdentification } from './cZLocalAccountIdentification'; +import { DKLocalAccountIdentification } from './dKLocalAccountIdentification'; +import { HKLocalAccountIdentification } from './hKLocalAccountIdentification'; +import { HULocalAccountIdentification } from './hULocalAccountIdentification'; +import { IbanAccountIdentification } from './ibanAccountIdentification'; +import { NOLocalAccountIdentification } from './nOLocalAccountIdentification'; +import { NZLocalAccountIdentification } from './nZLocalAccountIdentification'; +import { NumberAndBicAccountIdentification } from './numberAndBicAccountIdentification'; +import { PLLocalAccountIdentification } from './pLLocalAccountIdentification'; +import { SELocalAccountIdentification } from './sELocalAccountIdentification'; +import { SGLocalAccountIdentification } from './sGLocalAccountIdentification'; +import { UKLocalAccountIdentification } from './uKLocalAccountIdentification'; +import { USLocalAccountIdentification } from './uSLocalAccountIdentification'; export class BankAccountIdentificationValidationRequest { - "accountIdentification": BankAccountIdentificationValidationRequestAccountIdentification; - - static readonly discriminator: string | undefined = undefined; + /** + * Bank account identification. + */ + 'accountIdentification': AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountIdentification", "baseName": "accountIdentification", - "type": "BankAccountIdentificationValidationRequestAccountIdentification", - "format": "" + "type": "AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification" } ]; static getAttributeTypeMap() { return BankAccountIdentificationValidationRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/bankAccountIdentificationValidationRequestAccountIdentification.ts b/src/typings/balancePlatform/bankAccountIdentificationValidationRequestAccountIdentification.ts deleted file mode 100644 index f69290574..000000000 --- a/src/typings/balancePlatform/bankAccountIdentificationValidationRequestAccountIdentification.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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 { AULocalAccountIdentification } from "./aULocalAccountIdentification"; -import { BRLocalAccountIdentification } from "./bRLocalAccountIdentification"; -import { CALocalAccountIdentification } from "./cALocalAccountIdentification"; -import { CZLocalAccountIdentification } from "./cZLocalAccountIdentification"; -import { DKLocalAccountIdentification } from "./dKLocalAccountIdentification"; -import { HKLocalAccountIdentification } from "./hKLocalAccountIdentification"; -import { HULocalAccountIdentification } from "./hULocalAccountIdentification"; -import { IbanAccountIdentification } from "./ibanAccountIdentification"; -import { NOLocalAccountIdentification } from "./nOLocalAccountIdentification"; -import { NZLocalAccountIdentification } from "./nZLocalAccountIdentification"; -import { NumberAndBicAccountIdentification } from "./numberAndBicAccountIdentification"; -import { PLLocalAccountIdentification } from "./pLLocalAccountIdentification"; -import { SELocalAccountIdentification } from "./sELocalAccountIdentification"; -import { SGLocalAccountIdentification } from "./sGLocalAccountIdentification"; -import { UKLocalAccountIdentification } from "./uKLocalAccountIdentification"; -import { USLocalAccountIdentification } from "./uSLocalAccountIdentification"; - -/** -* Bank account identification. -*/ - - -/** - * @type BankAccountIdentificationValidationRequestAccountIdentification - * Type - * @export - */ -export type BankAccountIdentificationValidationRequestAccountIdentification = AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification; - -/** -* @type BankAccountIdentificationValidationRequestAccountIdentificationClass - * Bank account identification. -* @export -*/ -export class BankAccountIdentificationValidationRequestAccountIdentificationClass { - - static readonly discriminator: string = "type"; - - static readonly mapping: {[index: string]: string} | undefined = undefined; -} diff --git a/src/typings/balancePlatform/bankAccountModel.ts b/src/typings/balancePlatform/bankAccountModel.ts index e4661f246..5a63b2a36 100644 --- a/src/typings/balancePlatform/bankAccountModel.ts +++ b/src/typings/balancePlatform/bankAccountModel.ts @@ -12,26 +12,20 @@ export class BankAccountModel { /** * Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. */ - "formFactor"?: BankAccountModel.FormFactorEnum | null; + 'formFactor'?: BankAccountModel.FormFactorEnum | null; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "formFactor", "baseName": "formFactor", - "type": "BankAccountModel.FormFactorEnum", - "format": "" + "type": "BankAccountModel.FormFactorEnum | null" } ]; static getAttributeTypeMap() { return BankAccountModel.attributeTypeMap; } - - public constructor() { - } } export namespace BankAccountModel { diff --git a/src/typings/balancePlatform/bankIdentification.ts b/src/typings/balancePlatform/bankIdentification.ts index 81c6bfba7..358f2cca5 100644 --- a/src/typings/balancePlatform/bankIdentification.ts +++ b/src/typings/balancePlatform/bankIdentification.ts @@ -12,46 +12,38 @@ export class BankIdentification { /** * Two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. */ - "country"?: string; + 'country'?: string; /** * The bank identification code. */ - "identification"?: string; + 'identification'?: string; /** * The type of the identification. Possible values: **iban**, **routingNumber**, **sortCode**, **bic**. */ - "identificationType"?: BankIdentification.IdentificationTypeEnum; + 'identificationType'?: BankIdentification.IdentificationTypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "country", "baseName": "country", - "type": "string", - "format": "" + "type": "string" }, { "name": "identification", "baseName": "identification", - "type": "string", - "format": "" + "type": "string" }, { "name": "identificationType", "baseName": "identificationType", - "type": "BankIdentification.IdentificationTypeEnum", - "format": "" + "type": "BankIdentification.IdentificationTypeEnum" } ]; static getAttributeTypeMap() { return BankIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace BankIdentification { diff --git a/src/typings/balancePlatform/brandVariantsRestriction.ts b/src/typings/balancePlatform/brandVariantsRestriction.ts index 371d4363e..ced4908ef 100644 --- a/src/typings/balancePlatform/brandVariantsRestriction.ts +++ b/src/typings/balancePlatform/brandVariantsRestriction.ts @@ -12,35 +12,28 @@ export class BrandVariantsRestriction { /** * Defines how the condition must be evaluated. */ - "operation": string; + 'operation': string; /** * List of card brand variants. Possible values: - **mc**, **mccredit**, **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**, **mcbusinessworlddebit**, **mcprepaid**, **mcmaestro** - **visa**, **visacredit**, **visadebit**, **visaprepaid**. You can specify a rule for a generic variant. For example, to create a rule for all Mastercard payment instruments, use **mc**. The rule is applied to all payment instruments under **mc**, such as **mcbusinessdebit** and **mcdebit**. */ - "value"?: Array; + 'value'?: Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "operation", "baseName": "operation", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return BrandVariantsRestriction.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/bulkAddress.ts b/src/typings/balancePlatform/bulkAddress.ts index 156396053..83e219d9d 100644 --- a/src/typings/balancePlatform/bulkAddress.ts +++ b/src/typings/balancePlatform/bulkAddress.ts @@ -12,105 +12,91 @@ export class BulkAddress { /** * The name of the city. */ - "city"?: string; + 'city'?: string; /** * The name of the company. */ - "company"?: string; + 'company'?: string; /** * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. */ - "country": string; + 'country': string; /** * The email address. */ - "email"?: string; + 'email'?: string; /** * The house number or name. */ - "houseNumberOrName"?: string; + 'houseNumberOrName'?: string; /** * The full telephone number. */ - "mobile"?: string; + 'mobile'?: string; /** * The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries. */ - "postalCode"?: string; + 'postalCode'?: string; /** * The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US. */ - "stateOrProvince"?: string; + 'stateOrProvince'?: string; /** * The streetname of the house. */ - "street"?: string; + 'street'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "city", "baseName": "city", - "type": "string", - "format": "" + "type": "string" }, { "name": "company", "baseName": "company", - "type": "string", - "format": "" + "type": "string" }, { "name": "country", "baseName": "country", - "type": "string", - "format": "" + "type": "string" }, { "name": "email", "baseName": "email", - "type": "string", - "format": "" + "type": "string" }, { "name": "houseNumberOrName", "baseName": "houseNumberOrName", - "type": "string", - "format": "" + "type": "string" }, { "name": "mobile", "baseName": "mobile", - "type": "string", - "format": "" + "type": "string" }, { "name": "postalCode", "baseName": "postalCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "stateOrProvince", "baseName": "stateOrProvince", - "type": "string", - "format": "" + "type": "string" }, { "name": "street", "baseName": "street", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return BulkAddress.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/cALocalAccountIdentification.ts b/src/typings/balancePlatform/cALocalAccountIdentification.ts index 6a6427eb9..8ac0e800e 100644 --- a/src/typings/balancePlatform/cALocalAccountIdentification.ts +++ b/src/typings/balancePlatform/cALocalAccountIdentification.ts @@ -12,66 +12,56 @@ export class CALocalAccountIdentification { /** * The 5- to 12-digit bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ - "accountType"?: CALocalAccountIdentification.AccountTypeEnum; + 'accountType'?: CALocalAccountIdentification.AccountTypeEnum; /** * The 3-digit institution number, without separators or whitespace. */ - "institutionNumber": string; + 'institutionNumber': string; /** * The 5-digit transit number, without separators or whitespace. */ - "transitNumber": string; + 'transitNumber': string; /** * **caLocal** */ - "type": CALocalAccountIdentification.TypeEnum; + 'type': CALocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "accountType", "baseName": "accountType", - "type": "CALocalAccountIdentification.AccountTypeEnum", - "format": "" + "type": "CALocalAccountIdentification.AccountTypeEnum" }, { "name": "institutionNumber", "baseName": "institutionNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "transitNumber", "baseName": "transitNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "CALocalAccountIdentification.TypeEnum", - "format": "" + "type": "CALocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return CALocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace CALocalAccountIdentification { diff --git a/src/typings/balancePlatform/cZLocalAccountIdentification.ts b/src/typings/balancePlatform/cZLocalAccountIdentification.ts index a8b0912d0..b12a8cd71 100644 --- a/src/typings/balancePlatform/cZLocalAccountIdentification.ts +++ b/src/typings/balancePlatform/cZLocalAccountIdentification.ts @@ -12,46 +12,38 @@ export class CZLocalAccountIdentification { /** * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) */ - "accountNumber": string; + 'accountNumber': string; /** * The 4-digit bank code (Kód banky), without separators or whitespace. */ - "bankCode": string; + 'bankCode': string; /** * **czLocal** */ - "type": CZLocalAccountIdentification.TypeEnum; + 'type': CZLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankCode", "baseName": "bankCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "CZLocalAccountIdentification.TypeEnum", - "format": "" + "type": "CZLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return CZLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace CZLocalAccountIdentification { diff --git a/src/typings/balancePlatform/capabilityProblem.ts b/src/typings/balancePlatform/capabilityProblem.ts index 1be38bcc8..41cd5fe6c 100644 --- a/src/typings/balancePlatform/capabilityProblem.ts +++ b/src/typings/balancePlatform/capabilityProblem.ts @@ -7,40 +7,32 @@ * Do not edit this class manually. */ -import { CapabilityProblemEntity } from "./capabilityProblemEntity"; -import { VerificationError } from "./verificationError"; - +import { CapabilityProblemEntity } from './capabilityProblemEntity'; +import { VerificationError } from './verificationError'; export class CapabilityProblem { - "entity"?: CapabilityProblemEntity; + 'entity'?: CapabilityProblemEntity | null; /** * Contains information about the verification error. */ - "verificationErrors"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'verificationErrors'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "entity", "baseName": "entity", - "type": "CapabilityProblemEntity", - "format": "" + "type": "CapabilityProblemEntity | null" }, { "name": "verificationErrors", "baseName": "verificationErrors", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return CapabilityProblem.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/capabilityProblemEntity.ts b/src/typings/balancePlatform/capabilityProblemEntity.ts index cba787d00..b022a757f 100644 --- a/src/typings/balancePlatform/capabilityProblemEntity.ts +++ b/src/typings/balancePlatform/capabilityProblemEntity.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { CapabilityProblemEntityRecursive } from "./capabilityProblemEntityRecursive"; - +import { CapabilityProblemEntityRecursive } from './capabilityProblemEntityRecursive'; export class CapabilityProblemEntity { /** * List of document IDs to which the verification errors related to the capabilities correspond to. */ - "documents"?: Array; + 'documents'?: Array; /** * The ID of the entity. */ - "id"?: string; - "owner"?: CapabilityProblemEntityRecursive; + 'id'?: string; + 'owner'?: CapabilityProblemEntityRecursive | null; /** * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. */ - "type"?: CapabilityProblemEntity.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type'?: CapabilityProblemEntity.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "documents", "baseName": "documents", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "owner", "baseName": "owner", - "type": "CapabilityProblemEntityRecursive", - "format": "" + "type": "CapabilityProblemEntityRecursive | null" }, { "name": "type", "baseName": "type", - "type": "CapabilityProblemEntity.TypeEnum", - "format": "" + "type": "CapabilityProblemEntity.TypeEnum" } ]; static getAttributeTypeMap() { return CapabilityProblemEntity.attributeTypeMap; } - - public constructor() { - } } export namespace CapabilityProblemEntity { diff --git a/src/typings/balancePlatform/capabilityProblemEntityRecursive.ts b/src/typings/balancePlatform/capabilityProblemEntityRecursive.ts index d197221e6..6280b7e7b 100644 --- a/src/typings/balancePlatform/capabilityProblemEntityRecursive.ts +++ b/src/typings/balancePlatform/capabilityProblemEntityRecursive.ts @@ -12,46 +12,38 @@ export class CapabilityProblemEntityRecursive { /** * List of document IDs to which the verification errors related to the capabilities correspond to. */ - "documents"?: Array; + 'documents'?: Array; /** * The ID of the entity. */ - "id"?: string; + 'id'?: string; /** * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. */ - "type"?: CapabilityProblemEntityRecursive.TypeEnum; + 'type'?: CapabilityProblemEntityRecursive.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "documents", "baseName": "documents", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "CapabilityProblemEntityRecursive.TypeEnum", - "format": "" + "type": "CapabilityProblemEntityRecursive.TypeEnum" } ]; static getAttributeTypeMap() { return CapabilityProblemEntityRecursive.attributeTypeMap; } - - public constructor() { - } } export namespace CapabilityProblemEntityRecursive { diff --git a/src/typings/balancePlatform/capabilitySettings.ts b/src/typings/balancePlatform/capabilitySettings.ts index 87c4b341c..4a1bd904a 100644 --- a/src/typings/balancePlatform/capabilitySettings.ts +++ b/src/typings/balancePlatform/capabilitySettings.ts @@ -7,70 +7,47 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class CapabilitySettings { - /** - * - */ - "amountPerIndustry"?: { [key: string]: Amount; }; - /** - * - */ - "authorizedCardUsers"?: boolean; - /** - * - */ - "fundingSource"?: Array; - /** - * - */ - "interval"?: CapabilitySettings.IntervalEnum; - "maxAmount"?: Amount; - - static readonly discriminator: string | undefined = undefined; + 'amountPerIndustry'?: { [key: string]: Amount; }; + 'authorizedCardUsers'?: boolean; + 'fundingSource'?: Array; + 'interval'?: CapabilitySettings.IntervalEnum; + 'maxAmount'?: Amount | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amountPerIndustry", "baseName": "amountPerIndustry", - "type": "{ [key: string]: Amount; }", - "format": "" + "type": "{ [key: string]: Amount; }" }, { "name": "authorizedCardUsers", "baseName": "authorizedCardUsers", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "fundingSource", "baseName": "fundingSource", - "type": "CapabilitySettings.FundingSourceEnum", - "format": "" + "type": "Array" }, { "name": "interval", "baseName": "interval", - "type": "CapabilitySettings.IntervalEnum", - "format": "" + "type": "CapabilitySettings.IntervalEnum" }, { "name": "maxAmount", "baseName": "maxAmount", - "type": "Amount", - "format": "" + "type": "Amount | null" } ]; static getAttributeTypeMap() { return CapabilitySettings.attributeTypeMap; } - - public constructor() { - } } export namespace CapabilitySettings { diff --git a/src/typings/balancePlatform/capitalBalance.ts b/src/typings/balancePlatform/capitalBalance.ts index bb43c0aaf..b38676bf8 100644 --- a/src/typings/balancePlatform/capitalBalance.ts +++ b/src/typings/balancePlatform/capitalBalance.ts @@ -12,55 +12,46 @@ export class CapitalBalance { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ - "currency": string; + 'currency': string; /** * Fee amount. */ - "fee": number; + 'fee': number; /** * Principal amount. */ - "principal": number; + 'principal': number; /** * Total amount. A sum of principal amount and fee amount. */ - "total": number; + 'total': number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "fee", "baseName": "fee", - "type": "number", - "format": "int64" + "type": "number" }, { "name": "principal", "baseName": "principal", - "type": "number", - "format": "int64" + "type": "number" }, { "name": "total", "baseName": "total", - "type": "number", - "format": "int64" + "type": "number" } ]; static getAttributeTypeMap() { return CapitalBalance.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/capitalGrantAccount.ts b/src/typings/balancePlatform/capitalGrantAccount.ts index e4b15785c..e6ff72572 100644 --- a/src/typings/balancePlatform/capitalGrantAccount.ts +++ b/src/typings/balancePlatform/capitalGrantAccount.ts @@ -7,63 +7,53 @@ * Do not edit this class manually. */ -import { CapitalBalance } from "./capitalBalance"; -import { GrantLimit } from "./grantLimit"; - +import { CapitalBalance } from './capitalBalance'; +import { GrantLimit } from './grantLimit'; export class CapitalGrantAccount { /** * The balances of the grant account. */ - "balances"?: Array; + 'balances'?: Array; /** * The unique identifier of the balance account used to fund the grant. */ - "fundingBalanceAccountId"?: string; + 'fundingBalanceAccountId'?: string; /** * The identifier of the grant account. */ - "id"?: string; + 'id'?: string; /** * The limits of the grant account. */ - "limits"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'limits'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balances", "baseName": "balances", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "fundingBalanceAccountId", "baseName": "fundingBalanceAccountId", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "limits", "baseName": "limits", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return CapitalGrantAccount.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/card.ts b/src/typings/balancePlatform/card.ts index 98a3e0837..2c5cb6cae 100644 --- a/src/typings/balancePlatform/card.ts +++ b/src/typings/balancePlatform/card.ts @@ -7,144 +7,125 @@ * Do not edit this class manually. */ -import { Authentication } from "./authentication"; -import { CardConfiguration } from "./cardConfiguration"; -import { DeliveryContact } from "./deliveryContact"; -import { Expiry } from "./expiry"; - +import { Authentication } from './authentication'; +import { CardConfiguration } from './cardConfiguration'; +import { DeliveryContact } from './deliveryContact'; +import { Expiry } from './expiry'; export class Card { - "authentication"?: Authentication; + 'authentication'?: Authentication | null; /** * The bank identification number (BIN) of the card number. */ - "bin"?: string; + 'bin'?: string; /** * The brand of the physical or the virtual card. Possible values: **visa**, **mc**. */ - "brand": string; + 'brand': string; /** * The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. */ - "brandVariant": string; + 'brandVariant': string; /** * The name of the cardholder. Maximum length: 26 characters. */ - "cardholderName": string; - "configuration"?: CardConfiguration; + 'cardholderName': string; + 'configuration'?: CardConfiguration | null; /** * The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards. */ - "cvc"?: string; - "deliveryContact"?: DeliveryContact; - "expiration"?: Expiry; + 'cvc'?: string; + 'deliveryContact'?: DeliveryContact | null; + 'expiration'?: Expiry | null; /** * The form factor of the card. Possible values: **virtual**, **physical**. */ - "formFactor": Card.FormFactorEnum; + 'formFactor': Card.FormFactorEnum; /** * Last last four digits of the card number. */ - "lastFour"?: string; + 'lastFour'?: string; /** * 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; /** - * Allocates a specific product range for either a physical or a virtual card. Possible values: **fullySupported**, **secureCorporate**. >Reach out to your Adyen contact to get the values relevant for your integration. + * 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. */ - "threeDSecure"?: string; - - static readonly discriminator: string | undefined = undefined; + 'threeDSecure'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "authentication", "baseName": "authentication", - "type": "Authentication", - "format": "" + "type": "Authentication | null" }, { "name": "bin", "baseName": "bin", - "type": "string", - "format": "" + "type": "string" }, { "name": "brand", "baseName": "brand", - "type": "string", - "format": "" + "type": "string" }, { "name": "brandVariant", "baseName": "brandVariant", - "type": "string", - "format": "" + "type": "string" }, { "name": "cardholderName", "baseName": "cardholderName", - "type": "string", - "format": "" + "type": "string" }, { "name": "configuration", "baseName": "configuration", - "type": "CardConfiguration", - "format": "" + "type": "CardConfiguration | null" }, { "name": "cvc", "baseName": "cvc", - "type": "string", - "format": "" + "type": "string" }, { "name": "deliveryContact", "baseName": "deliveryContact", - "type": "DeliveryContact", - "format": "" + "type": "DeliveryContact | null" }, { "name": "expiration", "baseName": "expiration", - "type": "Expiry", - "format": "" + "type": "Expiry | null" }, { "name": "formFactor", "baseName": "formFactor", - "type": "Card.FormFactorEnum", - "format": "" + "type": "Card.FormFactorEnum" }, { "name": "lastFour", "baseName": "lastFour", - "type": "string", - "format": "" + "type": "string" }, { "name": "number", "baseName": "number", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSecure", "baseName": "threeDSecure", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Card.attributeTypeMap; } - - public constructor() { - } } export namespace Card { diff --git a/src/typings/balancePlatform/cardConfiguration.ts b/src/typings/balancePlatform/cardConfiguration.ts index 79126cf2a..79d7502dd 100644 --- a/src/typings/balancePlatform/cardConfiguration.ts +++ b/src/typings/balancePlatform/cardConfiguration.ts @@ -7,159 +7,139 @@ * Do not edit this class manually. */ -import { BulkAddress } from "./bulkAddress"; - +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. */ - "activation"?: string; + 'activation'?: string; /** * Your app\'s URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. Maximum length: 255 characters. */ - "activationUrl"?: string; - "bulkAddress"?: BulkAddress; + '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. */ - "cardImageId"?: string; + 'cardImageId'?: string; /** * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. */ - "carrier"?: string; + 'carrier'?: string; /** * The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. */ - "carrierImageId"?: string; + '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. */ - "configurationProfileId": string; + 'configurationProfileId': string; /** * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. */ - "currency"?: string; + 'currency'?: string; /** * Overrides the envelope design ID defined in the `configurationProfileId`. */ - "envelope"?: string; + '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. */ - "insert"?: string; + 'insert'?: string; /** * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the card. For example, **en**. */ - "language"?: string; + '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. */ - "logoImageId"?: string; + 'logoImageId'?: string; /** * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. */ - "pinMailer"?: string; + 'pinMailer'?: string; /** * Overrides the logistics company defined in the `configurationProfileId`. */ - "shipmentMethod"?: string; - - static readonly discriminator: string | undefined = undefined; + 'shipmentMethod'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "activation", "baseName": "activation", - "type": "string", - "format": "" + "type": "string" }, { "name": "activationUrl", "baseName": "activationUrl", - "type": "string", - "format": "" + "type": "string" }, { "name": "bulkAddress", "baseName": "bulkAddress", - "type": "BulkAddress", - "format": "" + "type": "BulkAddress | null" }, { "name": "cardImageId", "baseName": "cardImageId", - "type": "string", - "format": "" + "type": "string" }, { "name": "carrier", "baseName": "carrier", - "type": "string", - "format": "" + "type": "string" }, { "name": "carrierImageId", "baseName": "carrierImageId", - "type": "string", - "format": "" + "type": "string" }, { "name": "configurationProfileId", "baseName": "configurationProfileId", - "type": "string", - "format": "" + "type": "string" }, { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "envelope", "baseName": "envelope", - "type": "string", - "format": "" + "type": "string" }, { "name": "insert", "baseName": "insert", - "type": "string", - "format": "" + "type": "string" }, { "name": "language", "baseName": "language", - "type": "string", - "format": "" + "type": "string" }, { "name": "logoImageId", "baseName": "logoImageId", - "type": "string", - "format": "" + "type": "string" }, { "name": "pinMailer", "baseName": "pinMailer", - "type": "string", - "format": "" + "type": "string" }, { "name": "shipmentMethod", "baseName": "shipmentMethod", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CardConfiguration.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/cardInfo.ts b/src/typings/balancePlatform/cardInfo.ts index 123aae4c5..8514ad6bc 100644 --- a/src/typings/balancePlatform/cardInfo.ts +++ b/src/typings/balancePlatform/cardInfo.ts @@ -7,96 +7,82 @@ * Do not edit this class manually. */ -import { Authentication } from "./authentication"; -import { CardConfiguration } from "./cardConfiguration"; -import { DeliveryContact } from "./deliveryContact"; - +import { Authentication } from './authentication'; +import { CardConfiguration } from './cardConfiguration'; +import { DeliveryContact } from './deliveryContact'; export class CardInfo { - "authentication"?: Authentication; + 'authentication'?: Authentication | null; /** * The brand of the physical or the virtual card. Possible values: **visa**, **mc**. */ - "brand": string; + 'brand': string; /** * The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. */ - "brandVariant": string; + 'brandVariant': string; /** * The name of the cardholder. Maximum length: 26 characters. */ - "cardholderName": string; - "configuration"?: CardConfiguration; - "deliveryContact"?: DeliveryContact; + 'cardholderName': string; + 'configuration'?: CardConfiguration | null; + 'deliveryContact'?: DeliveryContact | null; /** * The form factor of the card. Possible values: **virtual**, **physical**. */ - "formFactor": CardInfo.FormFactorEnum; + 'formFactor': CardInfo.FormFactorEnum; /** - * Allocates a specific product range for either a physical or a virtual card. Possible values: **fullySupported**, **secureCorporate**. >Reach out to your Adyen contact to get the values relevant for your integration. + * 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. */ - "threeDSecure"?: string; - - static readonly discriminator: string | undefined = undefined; + 'threeDSecure'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "authentication", "baseName": "authentication", - "type": "Authentication", - "format": "" + "type": "Authentication | null" }, { "name": "brand", "baseName": "brand", - "type": "string", - "format": "" + "type": "string" }, { "name": "brandVariant", "baseName": "brandVariant", - "type": "string", - "format": "" + "type": "string" }, { "name": "cardholderName", "baseName": "cardholderName", - "type": "string", - "format": "" + "type": "string" }, { "name": "configuration", "baseName": "configuration", - "type": "CardConfiguration", - "format": "" + "type": "CardConfiguration | null" }, { "name": "deliveryContact", "baseName": "deliveryContact", - "type": "DeliveryContact", - "format": "" + "type": "DeliveryContact | null" }, { "name": "formFactor", "baseName": "formFactor", - "type": "CardInfo.FormFactorEnum", - "format": "" + "type": "CardInfo.FormFactorEnum" }, { "name": "threeDSecure", "baseName": "threeDSecure", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CardInfo.attributeTypeMap; } - - public constructor() { - } } export namespace CardInfo { diff --git a/src/typings/balancePlatform/cardOrder.ts b/src/typings/balancePlatform/cardOrder.ts index 1fdf74adf..1d499441a 100644 --- a/src/typings/balancePlatform/cardOrder.ts +++ b/src/typings/balancePlatform/cardOrder.ts @@ -12,96 +12,83 @@ export class CardOrder { /** * The date when the card order is created. */ - "beginDate"?: Date; + 'beginDate'?: Date; /** * The unique identifier of the card manufacturer profile. */ - "cardManufacturingProfileId"?: string; + 'cardManufacturingProfileId'?: string; /** * The date when the card order processing ends. */ - "closedDate"?: Date; + 'closedDate'?: Date; /** * The date when you manually closed the card order. Card orders are automatically closed by the end of the day it was created. If you manually closed it beforehand, the closing date is shown as the `endDate`. */ - "endDate"?: Date; + 'endDate'?: Date; /** * The unique identifier of the card order. */ - "id"?: string; + 'id'?: string; /** * The date when the card order processing begins. */ - "lockDate"?: Date; + 'lockDate'?: Date; /** * The service center. */ - "serviceCenter"?: string; + 'serviceCenter'?: string; /** * The status of the card order. Possible values: **Open**, **Closed**. */ - "status"?: CardOrder.StatusEnum; + 'status'?: CardOrder.StatusEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "beginDate", "baseName": "beginDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "cardManufacturingProfileId", "baseName": "cardManufacturingProfileId", - "type": "string", - "format": "" + "type": "string" }, { "name": "closedDate", "baseName": "closedDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "endDate", "baseName": "endDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "lockDate", "baseName": "lockDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "serviceCenter", "baseName": "serviceCenter", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "CardOrder.StatusEnum", - "format": "" + "type": "CardOrder.StatusEnum" } ]; static getAttributeTypeMap() { return CardOrder.attributeTypeMap; } - - public constructor() { - } } export namespace CardOrder { diff --git a/src/typings/balancePlatform/cardOrderItem.ts b/src/typings/balancePlatform/cardOrderItem.ts index c589b9ae4..2d6cd1223 100644 --- a/src/typings/balancePlatform/cardOrderItem.ts +++ b/src/typings/balancePlatform/cardOrderItem.ts @@ -7,96 +7,82 @@ * Do not edit this class manually. */ -import { CardOrderItemDeliveryStatus } from "./cardOrderItemDeliveryStatus"; - +import { CardOrderItemDeliveryStatus } from './cardOrderItemDeliveryStatus'; export class CardOrderItem { /** * The unique identifier of the balance platform. */ - "balancePlatform"?: string; - "card"?: CardOrderItemDeliveryStatus; + 'balancePlatform'?: string; + 'card'?: CardOrderItemDeliveryStatus | null; /** * The unique identifier of the card order item. */ - "cardOrderItemId"?: string; + 'cardOrderItemId'?: string; /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. */ - "creationDate"?: Date; + 'creationDate'?: Date; /** * The ID of the resource. */ - "id"?: string; + 'id'?: string; /** * The unique identifier of the payment instrument related to the card order item. */ - "paymentInstrumentId"?: string; - "pin"?: CardOrderItemDeliveryStatus; + 'paymentInstrumentId'?: string; + 'pin'?: CardOrderItemDeliveryStatus | null; /** * The shipping method used to deliver the card or the PIN. */ - "shippingMethod"?: string; - - static readonly discriminator: string | undefined = undefined; + 'shippingMethod'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balancePlatform", "baseName": "balancePlatform", - "type": "string", - "format": "" + "type": "string" }, { "name": "card", "baseName": "card", - "type": "CardOrderItemDeliveryStatus", - "format": "" + "type": "CardOrderItemDeliveryStatus | null" }, { "name": "cardOrderItemId", "baseName": "cardOrderItemId", - "type": "string", - "format": "" + "type": "string" }, { "name": "creationDate", "baseName": "creationDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentInstrumentId", "baseName": "paymentInstrumentId", - "type": "string", - "format": "" + "type": "string" }, { "name": "pin", "baseName": "pin", - "type": "CardOrderItemDeliveryStatus", - "format": "" + "type": "CardOrderItemDeliveryStatus | null" }, { "name": "shippingMethod", "baseName": "shippingMethod", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CardOrderItem.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/cardOrderItemDeliveryStatus.ts b/src/typings/balancePlatform/cardOrderItemDeliveryStatus.ts index acc7f1128..fe077645f 100644 --- a/src/typings/balancePlatform/cardOrderItemDeliveryStatus.ts +++ b/src/typings/balancePlatform/cardOrderItemDeliveryStatus.ts @@ -12,46 +12,38 @@ export class CardOrderItemDeliveryStatus { /** * An error message. */ - "errorMessage"?: string; + 'errorMessage'?: string; /** * The status of the PIN delivery. */ - "status"?: CardOrderItemDeliveryStatus.StatusEnum; + 'status'?: CardOrderItemDeliveryStatus.StatusEnum; /** * The tracking number of the PIN delivery. */ - "trackingNumber"?: string; + 'trackingNumber'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "errorMessage", "baseName": "errorMessage", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "CardOrderItemDeliveryStatus.StatusEnum", - "format": "" + "type": "CardOrderItemDeliveryStatus.StatusEnum" }, { "name": "trackingNumber", "baseName": "trackingNumber", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CardOrderItemDeliveryStatus.attributeTypeMap; } - - public constructor() { - } } export namespace CardOrderItemDeliveryStatus { diff --git a/src/typings/balancePlatform/condition.ts b/src/typings/balancePlatform/condition.ts index 56c5d11d7..02a68fddd 100644 --- a/src/typings/balancePlatform/condition.ts +++ b/src/typings/balancePlatform/condition.ts @@ -12,46 +12,38 @@ export class Condition { /** * Define the type of balance about which you want to get notified. Possible values: * **available**: the balance available for use. * **balance**: the sum of transactions that have already been settled. * **pending**: the sum of transactions that will be settled in the future. * **reserved**: the balance currently held in reserve. */ - "balanceType": Condition.BalanceTypeEnum; + 'balanceType': Condition.BalanceTypeEnum; /** * Define when you want to get notified about a balance change. Possible values: * **greaterThan**: the balance in the account(s) exceeds the specified `value`. * **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds the specified `value`. * **lessThan**: the balance in the account(s) drops below the specified `value`. * **lessThanOrEqual**: the balance in the account(s) reaches to drops below the specified `value`. */ - "conditionType": Condition.ConditionTypeEnum; + 'conditionType': Condition.ConditionTypeEnum; /** * The value limit in the specified balance type and currency, in minor units. */ - "value": number; + 'value': number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balanceType", "baseName": "balanceType", - "type": "Condition.BalanceTypeEnum", - "format": "" + "type": "Condition.BalanceTypeEnum" }, { "name": "conditionType", "baseName": "conditionType", - "type": "Condition.ConditionTypeEnum", - "format": "" + "type": "Condition.ConditionTypeEnum" }, { "name": "value", "baseName": "value", - "type": "number", - "format": "int64" + "type": "number" } ]; static getAttributeTypeMap() { return Condition.attributeTypeMap; } - - public constructor() { - } } export namespace Condition { diff --git a/src/typings/balancePlatform/contactDetails.ts b/src/typings/balancePlatform/contactDetails.ts index 92a0652cf..a21154d32 100644 --- a/src/typings/balancePlatform/contactDetails.ts +++ b/src/typings/balancePlatform/contactDetails.ts @@ -7,57 +7,47 @@ * Do not edit this class manually. */ -import { Address } from "./address"; -import { Phone } from "./phone"; - +import { Address } from './address'; +import { Phone } from './phone'; export class ContactDetails { - "address": Address; + 'address': Address; /** * The email address of the account holder. */ - "email": string; - "phone": Phone; + 'email': string; + 'phone': Phone; /** * The URL of the account holder\'s website. */ - "webAddress"?: string; - - static readonly discriminator: string | undefined = undefined; + 'webAddress'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "address", "baseName": "address", - "type": "Address", - "format": "" + "type": "Address" }, { "name": "email", "baseName": "email", - "type": "string", - "format": "" + "type": "string" }, { "name": "phone", "baseName": "phone", - "type": "Phone", - "format": "" + "type": "Phone" }, { "name": "webAddress", "baseName": "webAddress", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ContactDetails.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/counterparty.ts b/src/typings/balancePlatform/counterparty.ts index 63f1659b9..1dfb62aea 100644 --- a/src/typings/balancePlatform/counterparty.ts +++ b/src/typings/balancePlatform/counterparty.ts @@ -7,39 +7,31 @@ * Do not edit this class manually. */ -import { BankAccount } from "./bankAccount"; - +import { BankAccount } from './bankAccount'; export class Counterparty { - "bankAccount"?: BankAccount; + 'bankAccount'?: BankAccount | null; /** * The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). */ - "transferInstrumentId"?: string; - - static readonly discriminator: string | undefined = undefined; + 'transferInstrumentId'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "bankAccount", "baseName": "bankAccount", - "type": "BankAccount", - "format": "" + "type": "BankAccount | null" }, { "name": "transferInstrumentId", "baseName": "transferInstrumentId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Counterparty.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/counterpartyBankRestriction.ts b/src/typings/balancePlatform/counterpartyBankRestriction.ts index a784a4ce8..e255157d7 100644 --- a/src/typings/balancePlatform/counterpartyBankRestriction.ts +++ b/src/typings/balancePlatform/counterpartyBankRestriction.ts @@ -7,42 +7,34 @@ * Do not edit this class manually. */ -import { BankIdentification } from "./bankIdentification"; - +import { BankIdentification } from './bankIdentification'; export class CounterpartyBankRestriction { /** * Defines how the condition must be evaluated. */ - "operation": string; + 'operation': string; /** * The list of counterparty bank institutions to be evaluated. */ - "value"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'value'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "operation", "baseName": "operation", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return CounterpartyBankRestriction.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/counterpartyTypesRestriction.ts b/src/typings/balancePlatform/counterpartyTypesRestriction.ts index 90c687311..5f785c23d 100644 --- a/src/typings/balancePlatform/counterpartyTypesRestriction.ts +++ b/src/typings/balancePlatform/counterpartyTypesRestriction.ts @@ -12,36 +12,29 @@ export class CounterpartyTypesRestriction { /** * Defines how the condition must be evaluated. */ - "operation": string; + 'operation': string; /** * The list of counterparty types to be evaluated. */ - "value"?: Array; + 'value'?: Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "operation", "baseName": "operation", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "CounterpartyTypesRestriction.ValueEnum", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return CounterpartyTypesRestriction.attributeTypeMap; } - - public constructor() { - } } export namespace CounterpartyTypesRestriction { diff --git a/src/typings/balancePlatform/countriesRestriction.ts b/src/typings/balancePlatform/countriesRestriction.ts index 461f08ab3..b3d08dc27 100644 --- a/src/typings/balancePlatform/countriesRestriction.ts +++ b/src/typings/balancePlatform/countriesRestriction.ts @@ -12,35 +12,28 @@ export class CountriesRestriction { /** * Defines how the condition must be evaluated. */ - "operation": string; + 'operation': string; /** * List of two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. */ - "value"?: Array; + 'value'?: Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "operation", "baseName": "operation", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return CountriesRestriction.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/createSweepConfigurationV2.ts b/src/typings/balancePlatform/createSweepConfigurationV2.ts index 2f5430aca..883b2319c 100644 --- a/src/typings/balancePlatform/createSweepConfigurationV2.ts +++ b/src/typings/balancePlatform/createSweepConfigurationV2.ts @@ -7,160 +7,139 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { SweepCounterparty } from "./sweepCounterparty"; -import { SweepSchedule } from "./sweepSchedule"; - +import { Amount } from './amount'; +import { SweepCounterparty } from './sweepCounterparty'; +import { SweepSchedule } from './sweepSchedule'; export class CreateSweepConfigurationV2 { /** * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. */ - "category"?: CreateSweepConfigurationV2.CategoryEnum; - "counterparty": SweepCounterparty; + 'category'?: CreateSweepConfigurationV2.CategoryEnum; + 'counterparty': SweepCounterparty; /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). */ - "currency": string; + 'currency': string; /** * The message that will be used in the sweep transfer\'s description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. */ - "description"?: string; + '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 in [SEPA countries](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; + 'priorities'?: Array; /** * The reason for disabling the sweep. */ - "reason"?: CreateSweepConfigurationV2.ReasonEnum; + 'reason'?: CreateSweepConfigurationV2.ReasonEnum; /** * The human readable reason for disabling the sweep. */ - "reasonDetail"?: string; + 'reasonDetail'?: string; /** * Your reference for the sweep configuration. */ - "reference"?: string; + 'reference'?: string; /** * The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. */ - "referenceForBeneficiary"?: string; - "schedule": SweepSchedule; + 'referenceForBeneficiary'?: string; + 'schedule': SweepSchedule; /** * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. */ - "status"?: CreateSweepConfigurationV2.StatusEnum; - "sweepAmount"?: Amount; - "targetAmount"?: Amount; - "triggerAmount"?: Amount; + 'status'?: CreateSweepConfigurationV2.StatusEnum; + 'sweepAmount'?: Amount | null; + 'targetAmount'?: Amount | null; + 'triggerAmount'?: Amount | null; /** * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. */ - "type"?: CreateSweepConfigurationV2.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type'?: CreateSweepConfigurationV2.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "category", "baseName": "category", - "type": "CreateSweepConfigurationV2.CategoryEnum", - "format": "" + "type": "CreateSweepConfigurationV2.CategoryEnum" }, { "name": "counterparty", "baseName": "counterparty", - "type": "SweepCounterparty", - "format": "" + "type": "SweepCounterparty" }, { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "priorities", "baseName": "priorities", - "type": "CreateSweepConfigurationV2.PrioritiesEnum", - "format": "" + "type": "Array" }, { "name": "reason", "baseName": "reason", - "type": "CreateSweepConfigurationV2.ReasonEnum", - "format": "" + "type": "CreateSweepConfigurationV2.ReasonEnum" }, { "name": "reasonDetail", "baseName": "reasonDetail", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "referenceForBeneficiary", "baseName": "referenceForBeneficiary", - "type": "string", - "format": "" + "type": "string" }, { "name": "schedule", "baseName": "schedule", - "type": "SweepSchedule", - "format": "" + "type": "SweepSchedule" }, { "name": "status", "baseName": "status", - "type": "CreateSweepConfigurationV2.StatusEnum", - "format": "" + "type": "CreateSweepConfigurationV2.StatusEnum" }, { "name": "sweepAmount", "baseName": "sweepAmount", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "targetAmount", "baseName": "targetAmount", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "triggerAmount", "baseName": "triggerAmount", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "type", "baseName": "type", - "type": "CreateSweepConfigurationV2.TypeEnum", - "format": "" + "type": "CreateSweepConfigurationV2.TypeEnum" } ]; static getAttributeTypeMap() { return CreateSweepConfigurationV2.attributeTypeMap; } - - public constructor() { - } } export namespace CreateSweepConfigurationV2 { diff --git a/src/typings/balancePlatform/dKLocalAccountIdentification.ts b/src/typings/balancePlatform/dKLocalAccountIdentification.ts index 905c68d35..897a66c3f 100644 --- a/src/typings/balancePlatform/dKLocalAccountIdentification.ts +++ b/src/typings/balancePlatform/dKLocalAccountIdentification.ts @@ -12,46 +12,38 @@ export class DKLocalAccountIdentification { /** * The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). */ - "accountNumber": string; + 'accountNumber': string; /** * The 4-digit bank code (Registreringsnummer) (without separators or whitespace). */ - "bankCode": string; + 'bankCode': string; /** * **dkLocal** */ - "type": DKLocalAccountIdentification.TypeEnum; + 'type': DKLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankCode", "baseName": "bankCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "DKLocalAccountIdentification.TypeEnum", - "format": "" + "type": "DKLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return DKLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace DKLocalAccountIdentification { diff --git a/src/typings/balancePlatform/dayOfWeekRestriction.ts b/src/typings/balancePlatform/dayOfWeekRestriction.ts index e04211ac7..38e60c2fb 100644 --- a/src/typings/balancePlatform/dayOfWeekRestriction.ts +++ b/src/typings/balancePlatform/dayOfWeekRestriction.ts @@ -12,36 +12,29 @@ export class DayOfWeekRestriction { /** * Defines how the condition must be evaluated. */ - "operation": string; + 'operation': string; /** * List of days of the week. Possible values: **monday**, **tuesday**, **wednesday**, **thursday**, **friday**, **saturday**, **sunday**. */ - "value"?: Array; + 'value'?: Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "operation", "baseName": "operation", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "DayOfWeekRestriction.ValueEnum", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return DayOfWeekRestriction.attributeTypeMap; } - - public constructor() { - } } export namespace DayOfWeekRestriction { diff --git a/src/typings/balancePlatform/defaultErrorResponseEntity.ts b/src/typings/balancePlatform/defaultErrorResponseEntity.ts index fe14802a7..31a217497 100644 --- a/src/typings/balancePlatform/defaultErrorResponseEntity.ts +++ b/src/typings/balancePlatform/defaultErrorResponseEntity.ts @@ -7,106 +7,91 @@ * Do not edit this class manually. */ -import { InvalidField } from "./invalidField"; +import { InvalidField } from './invalidField'; /** * Standardized error response following RFC-7807 format */ - - export class DefaultErrorResponseEntity { /** * A human-readable explanation specific to this occurrence of the problem. */ - "detail"?: string; + 'detail'?: string; /** * Unique business error code. */ - "errorCode"?: string; + 'errorCode'?: string; /** * A URI that identifies the specific occurrence of the problem if applicable. */ - "instance"?: string; + 'instance'?: string; /** * Array of fields with validation errors when applicable. */ - "invalidFields"?: Array; + 'invalidFields'?: Array; /** * The unique reference for the request. */ - "requestId"?: string; + 'requestId'?: string; /** * The HTTP status code. */ - "status"?: number; + 'status'?: number; /** * A short, human-readable summary of the problem type. */ - "title"?: string; + 'title'?: string; /** * A URI that identifies the validation error type. It points to human-readable documentation for the problem type. */ - "type"?: string; - - static readonly discriminator: string | undefined = undefined; + 'type'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "detail", "baseName": "detail", - "type": "string", - "format": "" + "type": "string" }, { "name": "errorCode", "baseName": "errorCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "instance", "baseName": "instance", - "type": "string", - "format": "" + "type": "string" }, { "name": "invalidFields", "baseName": "invalidFields", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "requestId", "baseName": "requestId", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "title", "baseName": "title", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return DefaultErrorResponseEntity.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/delegatedAuthenticationData.ts b/src/typings/balancePlatform/delegatedAuthenticationData.ts index 31e21a82e..46d19f96d 100644 --- a/src/typings/balancePlatform/delegatedAuthenticationData.ts +++ b/src/typings/balancePlatform/delegatedAuthenticationData.ts @@ -12,25 +12,19 @@ export class DelegatedAuthenticationData { /** * A base64-encoded block with the data required to register the SCA device. You obtain this information by using our authentication SDK. */ - "sdkOutput": string; + 'sdkOutput': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "sdkOutput", "baseName": "sdkOutput", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return DelegatedAuthenticationData.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/deliveryAddress.ts b/src/typings/balancePlatform/deliveryAddress.ts index 19f293186..2e1bf880f 100644 --- a/src/typings/balancePlatform/deliveryAddress.ts +++ b/src/typings/balancePlatform/deliveryAddress.ts @@ -12,85 +12,73 @@ export class DeliveryAddress { /** * The name of the city. */ - "city"?: string; + 'city'?: string; /** * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don\'t know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ - "country": string; + 'country': string; /** * The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. */ - "line1"?: string; + 'line1'?: string; /** * The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**. */ - "line2"?: string; + 'line2'?: string; /** * Additional information about the delivery address. */ - "line3"?: string; + 'line3'?: string; /** * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. */ - "postalCode"?: string; + 'postalCode'?: string; /** * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ - "stateOrProvince"?: string; + 'stateOrProvince'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "city", "baseName": "city", - "type": "string", - "format": "" + "type": "string" }, { "name": "country", "baseName": "country", - "type": "string", - "format": "" + "type": "string" }, { "name": "line1", "baseName": "line1", - "type": "string", - "format": "" + "type": "string" }, { "name": "line2", "baseName": "line2", - "type": "string", - "format": "" + "type": "string" }, { "name": "line3", "baseName": "line3", - "type": "string", - "format": "" + "type": "string" }, { "name": "postalCode", "baseName": "postalCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "stateOrProvince", "baseName": "stateOrProvince", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return DeliveryAddress.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/deliveryContact.ts b/src/typings/balancePlatform/deliveryContact.ts index f810ad250..f60009f14 100644 --- a/src/typings/balancePlatform/deliveryContact.ts +++ b/src/typings/balancePlatform/deliveryContact.ts @@ -7,85 +7,72 @@ * Do not edit this class manually. */ -import { DeliveryAddress } from "./deliveryAddress"; -import { Name } from "./name"; -import { PhoneNumber } from "./phoneNumber"; - +import { DeliveryAddress } from './deliveryAddress'; +import { Name } from './name'; +import { PhoneNumber } from './phoneNumber'; export class DeliveryContact { - "address": DeliveryAddress; + 'address': DeliveryAddress; /** * The company name of the contact. */ - "company"?: string; + 'company'?: string; /** * The email address of the contact. */ - "email"?: string; + 'email'?: string; /** * The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" */ - "fullPhoneNumber"?: string; - "name": Name; - "phoneNumber"?: PhoneNumber; + 'fullPhoneNumber'?: string; + 'name': Name; + 'phoneNumber'?: PhoneNumber | null; /** * The URL of the contact\'s website. */ - "webAddress"?: string; - - static readonly discriminator: string | undefined = undefined; + 'webAddress'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "address", "baseName": "address", - "type": "DeliveryAddress", - "format": "" + "type": "DeliveryAddress" }, { "name": "company", "baseName": "company", - "type": "string", - "format": "" + "type": "string" }, { "name": "email", "baseName": "email", - "type": "string", - "format": "" + "type": "string" }, { "name": "fullPhoneNumber", "baseName": "fullPhoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "Name", - "format": "" + "type": "Name" }, { "name": "phoneNumber", "baseName": "phoneNumber", - "type": "PhoneNumber", - "format": "" + "type": "PhoneNumber | null" }, { "name": "webAddress", "baseName": "webAddress", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return DeliveryContact.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/device.ts b/src/typings/balancePlatform/device.ts index db611703d..eda003b62 100644 --- a/src/typings/balancePlatform/device.ts +++ b/src/typings/balancePlatform/device.ts @@ -12,56 +12,47 @@ export class Device { /** * The unique identifier of the SCA device. */ - "id"?: string; + 'id'?: string; /** * The name of the SCA device. You can show this name to your user to help them identify the device. */ - "name"?: string; + 'name'?: string; /** * The unique identifier of the payment instrument that is associated with the SCA device. */ - "paymentInstrumentId"?: string; + 'paymentInstrumentId'?: string; /** * The type of device. Possible values: **ios**, **android**, **browser**. */ - "type"?: Device.TypeEnum; + 'type'?: Device.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentInstrumentId", "baseName": "paymentInstrumentId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "Device.TypeEnum", - "format": "" + "type": "Device.TypeEnum" } ]; static getAttributeTypeMap() { return Device.attributeTypeMap; } - - public constructor() { - } } export namespace Device { diff --git a/src/typings/balancePlatform/deviceInfo.ts b/src/typings/balancePlatform/deviceInfo.ts index 64430e442..321d2167e 100644 --- a/src/typings/balancePlatform/deviceInfo.ts +++ b/src/typings/balancePlatform/deviceInfo.ts @@ -12,125 +12,109 @@ export class DeviceInfo { /** * The technology used to capture the card details. */ - "cardCaptureTechnology"?: string; + 'cardCaptureTechnology'?: string; /** * The name of the device. */ - "deviceName"?: string; + 'deviceName'?: string; /** * The form factor of the device to be provisioned. */ - "formFactor"?: string; + 'formFactor'?: string; /** * The IMEI number of the device being provisioned. */ - "imei"?: string; + 'imei'?: string; /** * The 2-digit device type provided on the ISO messages that the token is being provisioned to. */ - "isoDeviceType"?: string; + 'isoDeviceType'?: string; /** * The MSISDN of the device being provisioned. */ - "msisdn"?: string; + 'msisdn'?: string; /** * The name of the device operating system. */ - "osName"?: string; + 'osName'?: string; /** * The version of the device operating system. */ - "osVersion"?: string; + 'osVersion'?: string; /** * Different types of payments supported for the network token. */ - "paymentTypes"?: Array; + 'paymentTypes'?: Array; /** * The serial number of the device. */ - "serialNumber"?: string; + 'serialNumber'?: string; /** * The architecture or technology used for network token storage. */ - "storageTechnology"?: string; + 'storageTechnology'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "cardCaptureTechnology", "baseName": "cardCaptureTechnology", - "type": "string", - "format": "" + "type": "string" }, { "name": "deviceName", "baseName": "deviceName", - "type": "string", - "format": "" + "type": "string" }, { "name": "formFactor", "baseName": "formFactor", - "type": "string", - "format": "" + "type": "string" }, { "name": "imei", "baseName": "imei", - "type": "string", - "format": "" + "type": "string" }, { "name": "isoDeviceType", "baseName": "isoDeviceType", - "type": "string", - "format": "" + "type": "string" }, { "name": "msisdn", "baseName": "msisdn", - "type": "string", - "format": "" + "type": "string" }, { "name": "osName", "baseName": "osName", - "type": "string", - "format": "" + "type": "string" }, { "name": "osVersion", "baseName": "osVersion", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentTypes", "baseName": "paymentTypes", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "serialNumber", "baseName": "serialNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "storageTechnology", "baseName": "storageTechnology", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return DeviceInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/differentCurrenciesRestriction.ts b/src/typings/balancePlatform/differentCurrenciesRestriction.ts index ca838ecf5..43cdd409c 100644 --- a/src/typings/balancePlatform/differentCurrenciesRestriction.ts +++ b/src/typings/balancePlatform/differentCurrenciesRestriction.ts @@ -12,35 +12,28 @@ export class DifferentCurrenciesRestriction { /** * Defines how the condition must be evaluated. */ - "operation": string; + 'operation': string; /** * Checks the currency of the payment against the currency of the payment instrument. Possible values: - **true**: The currency of the payment is different from the currency of the payment instrument. - **false**: The currencies are the same. */ - "value"?: boolean; + 'value'?: boolean; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "operation", "baseName": "operation", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return DifferentCurrenciesRestriction.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/duration.ts b/src/typings/balancePlatform/duration.ts index 352aa2d14..ec83a64a6 100644 --- a/src/typings/balancePlatform/duration.ts +++ b/src/typings/balancePlatform/duration.ts @@ -12,36 +12,29 @@ export class Duration { /** * The unit of time. You can only use **minutes** and **hours** if the `interval.type` is **sliding**. Possible values: **minutes**, **hours**, **days**, **weeks**, or **months** */ - "unit"?: Duration.UnitEnum; + 'unit'?: Duration.UnitEnum; /** * The length of time by the unit. For example, 5 days. The maximum duration is 90 days or an equivalent in other units. For example, 3 months. */ - "value"?: number; + 'value'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "unit", "baseName": "unit", - "type": "Duration.UnitEnum", - "format": "" + "type": "Duration.UnitEnum" }, { "name": "value", "baseName": "value", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return Duration.attributeTypeMap; } - - public constructor() { - } } export namespace Duration { diff --git a/src/typings/balancePlatform/entryModesRestriction.ts b/src/typings/balancePlatform/entryModesRestriction.ts index c619a27f6..f4e88deb7 100644 --- a/src/typings/balancePlatform/entryModesRestriction.ts +++ b/src/typings/balancePlatform/entryModesRestriction.ts @@ -12,36 +12,29 @@ export class EntryModesRestriction { /** * Defines how the condition must be evaluated. */ - "operation": string; + 'operation': string; /** * List of point-of-sale entry modes. Possible values: **barcode**, **chip**, **cof**, **contactless**, **magstripe**, **manual**, **ocr**, **server**. */ - "value"?: Array; + 'value'?: Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "operation", "baseName": "operation", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "EntryModesRestriction.ValueEnum", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return EntryModesRestriction.attributeTypeMap; } - - public constructor() { - } } export namespace EntryModesRestriction { diff --git a/src/typings/balancePlatform/expiry.ts b/src/typings/balancePlatform/expiry.ts index 3fc719905..47087f1e0 100644 --- a/src/typings/balancePlatform/expiry.ts +++ b/src/typings/balancePlatform/expiry.ts @@ -12,35 +12,28 @@ export class Expiry { /** * The month in which the card will expire. */ - "month"?: string; + 'month'?: string; /** * The year in which the card will expire. */ - "year"?: string; + 'year'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "month", "baseName": "month", - "type": "string", - "format": "" + "type": "string" }, { "name": "year", "baseName": "year", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Expiry.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/fee.ts b/src/typings/balancePlatform/fee.ts index 7d1b61ab7..2520c54e8 100644 --- a/src/typings/balancePlatform/fee.ts +++ b/src/typings/balancePlatform/fee.ts @@ -7,29 +7,22 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class Fee { - "amount": Amount; - - static readonly discriminator: string | undefined = undefined; + 'amount': Amount; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" } ]; static getAttributeTypeMap() { return Fee.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/getNetworkTokenResponse.ts b/src/typings/balancePlatform/getNetworkTokenResponse.ts index 4eedb89bb..e1abd2920 100644 --- a/src/typings/balancePlatform/getNetworkTokenResponse.ts +++ b/src/typings/balancePlatform/getNetworkTokenResponse.ts @@ -7,29 +7,22 @@ * Do not edit this class manually. */ -import { NetworkToken } from "./networkToken"; - +import { NetworkToken } from './networkToken'; export class GetNetworkTokenResponse { - "token": NetworkToken; - - static readonly discriminator: string | undefined = undefined; + 'token': NetworkToken; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "token", "baseName": "token", - "type": "NetworkToken", - "format": "" + "type": "NetworkToken" } ]; static getAttributeTypeMap() { return GetNetworkTokenResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/getTaxFormResponse.ts b/src/typings/balancePlatform/getTaxFormResponse.ts index b81922151..b055a7321 100644 --- a/src/typings/balancePlatform/getTaxFormResponse.ts +++ b/src/typings/balancePlatform/getTaxFormResponse.ts @@ -12,36 +12,29 @@ export class GetTaxFormResponse { /** * The content of the tax form in Base64 format. */ - "content": string; + 'content': string; /** * The content type of the tax form. Possible values: * **application/pdf** */ - "contentType"?: GetTaxFormResponse.ContentTypeEnum; + 'contentType'?: GetTaxFormResponse.ContentTypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "content", "baseName": "content", - "type": "string", - "format": "byte" + "type": "string" }, { "name": "contentType", "baseName": "contentType", - "type": "GetTaxFormResponse.ContentTypeEnum", - "format": "" + "type": "GetTaxFormResponse.ContentTypeEnum" } ]; static getAttributeTypeMap() { return GetTaxFormResponse.attributeTypeMap; } - - public constructor() { - } } export namespace GetTaxFormResponse { diff --git a/src/typings/balancePlatform/grantLimit.ts b/src/typings/balancePlatform/grantLimit.ts index 4dc8a87c0..89f6908b3 100644 --- a/src/typings/balancePlatform/grantLimit.ts +++ b/src/typings/balancePlatform/grantLimit.ts @@ -7,29 +7,22 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class GrantLimit { - "amount"?: Amount; - - static readonly discriminator: string | undefined = undefined; + 'amount'?: Amount | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount | null" } ]; static getAttributeTypeMap() { return GrantLimit.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/grantOffer.ts b/src/typings/balancePlatform/grantOffer.ts index 4cc3d8056..24ba1a3ee 100644 --- a/src/typings/balancePlatform/grantOffer.ts +++ b/src/typings/balancePlatform/grantOffer.ts @@ -7,96 +7,82 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { Fee } from "./fee"; -import { Repayment } from "./repayment"; - +import { Amount } from './amount'; +import { Fee } from './fee'; +import { Repayment } from './repayment'; export class GrantOffer { /** * The identifier of the account holder to which the grant is offered. */ - "accountHolderId": string; - "amount"?: Amount; + 'accountHolderId': string; + 'amount'?: Amount | null; /** * The contract type of the grant offer. Possible value: **cashAdvance**, **loan**. */ - "contractType"?: GrantOffer.ContractTypeEnum; + 'contractType'?: GrantOffer.ContractTypeEnum; /** * The end date of the grant offer validity period. */ - "expiresAt"?: Date; - "fee"?: Fee; + 'expiresAt'?: Date; + 'fee'?: Fee | null; /** * The unique identifier of the grant offer. */ - "id"?: string; - "repayment"?: Repayment; + 'id'?: string; + 'repayment'?: Repayment | null; /** * The starting date of the grant offer validity period. */ - "startsAt"?: Date; - - static readonly discriminator: string | undefined = undefined; + 'startsAt'?: Date; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountHolderId", "baseName": "accountHolderId", - "type": "string", - "format": "" + "type": "string" }, { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "contractType", "baseName": "contractType", - "type": "GrantOffer.ContractTypeEnum", - "format": "" + "type": "GrantOffer.ContractTypeEnum" }, { "name": "expiresAt", "baseName": "expiresAt", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "fee", "baseName": "fee", - "type": "Fee", - "format": "" + "type": "Fee | null" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "repayment", "baseName": "repayment", - "type": "Repayment", - "format": "" + "type": "Repayment | null" }, { "name": "startsAt", "baseName": "startsAt", - "type": "Date", - "format": "date-time" + "type": "Date" } ]; static getAttributeTypeMap() { return GrantOffer.attributeTypeMap; } - - public constructor() { - } } export namespace GrantOffer { diff --git a/src/typings/balancePlatform/grantOffers.ts b/src/typings/balancePlatform/grantOffers.ts index c4cb4628a..2f0831961 100644 --- a/src/typings/balancePlatform/grantOffers.ts +++ b/src/typings/balancePlatform/grantOffers.ts @@ -7,32 +7,25 @@ * Do not edit this class manually. */ -import { GrantOffer } from "./grantOffer"; - +import { GrantOffer } from './grantOffer'; export class GrantOffers { /** * A list of available grant offers. */ - "grantOffers": Array; - - static readonly discriminator: string | undefined = undefined; + 'grantOffers': Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "grantOffers", "baseName": "grantOffers", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return GrantOffers.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/hKLocalAccountIdentification.ts b/src/typings/balancePlatform/hKLocalAccountIdentification.ts index 708112074..2ace1aed9 100644 --- a/src/typings/balancePlatform/hKLocalAccountIdentification.ts +++ b/src/typings/balancePlatform/hKLocalAccountIdentification.ts @@ -12,46 +12,38 @@ export class HKLocalAccountIdentification { /** * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. */ - "accountNumber": string; + 'accountNumber': string; /** * The 3-digit clearing code, without separators or whitespace. */ - "clearingCode": string; + 'clearingCode': string; /** * **hkLocal** */ - "type": HKLocalAccountIdentification.TypeEnum; + 'type': HKLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "clearingCode", "baseName": "clearingCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "HKLocalAccountIdentification.TypeEnum", - "format": "" + "type": "HKLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return HKLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace HKLocalAccountIdentification { diff --git a/src/typings/balancePlatform/hULocalAccountIdentification.ts b/src/typings/balancePlatform/hULocalAccountIdentification.ts index 1fc6bcaa3..559026523 100644 --- a/src/typings/balancePlatform/hULocalAccountIdentification.ts +++ b/src/typings/balancePlatform/hULocalAccountIdentification.ts @@ -12,36 +12,29 @@ export class HULocalAccountIdentification { /** * The 24-digit bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * **huLocal** */ - "type": HULocalAccountIdentification.TypeEnum; + 'type': HULocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "HULocalAccountIdentification.TypeEnum", - "format": "" + "type": "HULocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return HULocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace HULocalAccountIdentification { diff --git a/src/typings/balancePlatform/href.ts b/src/typings/balancePlatform/href.ts index d6181038f..ebea16873 100644 --- a/src/typings/balancePlatform/href.ts +++ b/src/typings/balancePlatform/href.ts @@ -9,25 +9,19 @@ export class Href { - "href"?: string; + 'href'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "href", "baseName": "href", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Href.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/ibanAccountIdentification.ts b/src/typings/balancePlatform/ibanAccountIdentification.ts index 38868d983..583392194 100644 --- a/src/typings/balancePlatform/ibanAccountIdentification.ts +++ b/src/typings/balancePlatform/ibanAccountIdentification.ts @@ -12,36 +12,29 @@ export class IbanAccountIdentification { /** * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ - "iban": string; + 'iban': string; /** * **iban** */ - "type": IbanAccountIdentification.TypeEnum; + 'type': IbanAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "iban", "baseName": "iban", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "IbanAccountIdentification.TypeEnum", - "format": "" + "type": "IbanAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return IbanAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace IbanAccountIdentification { diff --git a/src/typings/balancePlatform/ibanAccountIdentificationRequirement.ts b/src/typings/balancePlatform/ibanAccountIdentificationRequirement.ts index e2bf4e409..0af36ada1 100644 --- a/src/typings/balancePlatform/ibanAccountIdentificationRequirement.ts +++ b/src/typings/balancePlatform/ibanAccountIdentificationRequirement.ts @@ -12,46 +12,38 @@ export class IbanAccountIdentificationRequirement { /** * Specifies the allowed prefixes for the international bank account number as defined in the ISO-13616 standard. */ - "description"?: string; + 'description'?: string; /** * Contains the list of allowed prefixes for international bank accounts. For example: NL, US, UK. */ - "ibanPrefixes"?: Array; + 'ibanPrefixes'?: Array; /** * **ibanAccountIdentificationRequirement** */ - "type": IbanAccountIdentificationRequirement.TypeEnum; + 'type': IbanAccountIdentificationRequirement.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "ibanPrefixes", "baseName": "ibanPrefixes", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "type", "baseName": "type", - "type": "IbanAccountIdentificationRequirement.TypeEnum", - "format": "" + "type": "IbanAccountIdentificationRequirement.TypeEnum" } ]; static getAttributeTypeMap() { return IbanAccountIdentificationRequirement.attributeTypeMap; } - - public constructor() { - } } export namespace IbanAccountIdentificationRequirement { diff --git a/src/typings/balancePlatform/internationalTransactionRestriction.ts b/src/typings/balancePlatform/internationalTransactionRestriction.ts index 6c75a36f9..d71db68a4 100644 --- a/src/typings/balancePlatform/internationalTransactionRestriction.ts +++ b/src/typings/balancePlatform/internationalTransactionRestriction.ts @@ -12,35 +12,28 @@ export class InternationalTransactionRestriction { /** * Defines how the condition must be evaluated. */ - "operation": string; + 'operation': string; /** * Boolean indicating whether transaction is an international transaction. Possible values: - **true**: The transaction is an international transaction. - **false**: The transaction is a domestic transaction. */ - "value"?: boolean; + 'value'?: boolean; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "operation", "baseName": "operation", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return InternationalTransactionRestriction.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/invalidField.ts b/src/typings/balancePlatform/invalidField.ts index e8c6b3624..f2432670f 100644 --- a/src/typings/balancePlatform/invalidField.ts +++ b/src/typings/balancePlatform/invalidField.ts @@ -12,45 +12,37 @@ export class InvalidField { /** * The field that has an invalid value. */ - "name": string; + 'name': string; /** * The invalid value. */ - "value": string; + 'value': string; /** * Description of the validation error. */ - "message": string; + 'message': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "string", - "format": "" + "type": "string" }, { "name": "message", "baseName": "message", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return InvalidField.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/link.ts b/src/typings/balancePlatform/link.ts index 9c1de2083..9c95a205c 100644 --- a/src/typings/balancePlatform/link.ts +++ b/src/typings/balancePlatform/link.ts @@ -7,57 +7,46 @@ * Do not edit this class manually. */ -import { Href } from "./href"; - +import { Href } from './href'; export class Link { - "first"?: Href; - "last"?: Href; - "next"?: Href; - "previous"?: Href; - "self"?: Href; - - static readonly discriminator: string | undefined = undefined; + 'first'?: Href | null; + 'last'?: Href | null; + 'next'?: Href | null; + 'previous'?: Href | null; + 'self'?: Href | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "first", "baseName": "first", - "type": "Href", - "format": "" + "type": "Href | null" }, { "name": "last", "baseName": "last", - "type": "Href", - "format": "" + "type": "Href | null" }, { "name": "next", "baseName": "next", - "type": "Href", - "format": "" + "type": "Href | null" }, { "name": "previous", "baseName": "previous", - "type": "Href", - "format": "" + "type": "Href | null" }, { "name": "self", "baseName": "self", - "type": "Href", - "format": "" + "type": "Href | null" } ]; static getAttributeTypeMap() { return Link.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/listNetworkTokensResponse.ts b/src/typings/balancePlatform/listNetworkTokensResponse.ts index 273f4b727..94d2a2cda 100644 --- a/src/typings/balancePlatform/listNetworkTokensResponse.ts +++ b/src/typings/balancePlatform/listNetworkTokensResponse.ts @@ -7,32 +7,25 @@ * Do not edit this class manually. */ -import { NetworkToken } from "./networkToken"; - +import { NetworkToken } from './networkToken'; export class ListNetworkTokensResponse { /** * List of network tokens. */ - "networkTokens"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'networkTokens'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "networkTokens", "baseName": "networkTokens", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return ListNetworkTokensResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/matchingTransactionsRestriction.ts b/src/typings/balancePlatform/matchingTransactionsRestriction.ts index 46e26814d..750999bb7 100644 --- a/src/typings/balancePlatform/matchingTransactionsRestriction.ts +++ b/src/typings/balancePlatform/matchingTransactionsRestriction.ts @@ -12,35 +12,28 @@ export class MatchingTransactionsRestriction { /** * Defines how the condition must be evaluated. */ - "operation": string; + 'operation': string; /** * The number of transactions. */ - "value"?: number; + 'value'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "operation", "baseName": "operation", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return MatchingTransactionsRestriction.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/matchingValuesRestriction.ts b/src/typings/balancePlatform/matchingValuesRestriction.ts index bbf744dee..c990312ba 100644 --- a/src/typings/balancePlatform/matchingValuesRestriction.ts +++ b/src/typings/balancePlatform/matchingValuesRestriction.ts @@ -12,33 +12,26 @@ export class MatchingValuesRestriction { /** * Defines how the condition must be evaluated. */ - "operation": string; - "value"?: Array; + 'operation': string; + 'value'?: Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "operation", "baseName": "operation", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "MatchingValuesRestriction.ValueEnum", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return MatchingValuesRestriction.attributeTypeMap; } - - public constructor() { - } } export namespace MatchingValuesRestriction { diff --git a/src/typings/balancePlatform/mccsRestriction.ts b/src/typings/balancePlatform/mccsRestriction.ts index 68b5a469d..1127b2964 100644 --- a/src/typings/balancePlatform/mccsRestriction.ts +++ b/src/typings/balancePlatform/mccsRestriction.ts @@ -12,35 +12,28 @@ export class MccsRestriction { /** * Defines how the condition must be evaluated. */ - "operation": string; + 'operation': string; /** * List of merchant category codes (MCCs). */ - "value"?: Array; + 'value'?: Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "operation", "baseName": "operation", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return MccsRestriction.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/merchantAcquirerPair.ts b/src/typings/balancePlatform/merchantAcquirerPair.ts index 54c6d826c..d41de0c65 100644 --- a/src/typings/balancePlatform/merchantAcquirerPair.ts +++ b/src/typings/balancePlatform/merchantAcquirerPair.ts @@ -12,35 +12,28 @@ export class MerchantAcquirerPair { /** * The acquirer ID. */ - "acquirerId"?: string; + 'acquirerId'?: string; /** * The merchant identification number (MID). */ - "merchantId"?: string; + 'merchantId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "acquirerId", "baseName": "acquirerId", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantId", "baseName": "merchantId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return MerchantAcquirerPair.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/merchantNamesRestriction.ts b/src/typings/balancePlatform/merchantNamesRestriction.ts index 8dec6ce5c..cb001524d 100644 --- a/src/typings/balancePlatform/merchantNamesRestriction.ts +++ b/src/typings/balancePlatform/merchantNamesRestriction.ts @@ -7,39 +7,31 @@ * Do not edit this class manually. */ -import { StringMatch } from "./stringMatch"; - +import { StringMatch } from './stringMatch'; export class MerchantNamesRestriction { /** * Defines how the condition must be evaluated. */ - "operation": string; - "value"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'operation': string; + 'value'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "operation", "baseName": "operation", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return MerchantNamesRestriction.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/merchantsRestriction.ts b/src/typings/balancePlatform/merchantsRestriction.ts index d1a0525bb..dd099364c 100644 --- a/src/typings/balancePlatform/merchantsRestriction.ts +++ b/src/typings/balancePlatform/merchantsRestriction.ts @@ -7,42 +7,34 @@ * Do not edit this class manually. */ -import { MerchantAcquirerPair } from "./merchantAcquirerPair"; - +import { MerchantAcquirerPair } from './merchantAcquirerPair'; export class MerchantsRestriction { /** * Defines how the condition must be evaluated. */ - "operation": string; + 'operation': string; /** * List of merchant ID and acquirer ID pairs. */ - "value"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'value'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "operation", "baseName": "operation", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return MerchantsRestriction.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/models.ts b/src/typings/balancePlatform/models.ts index fb249a18f..b7e12a3aa 100644 --- a/src/typings/balancePlatform/models.ts +++ b/src/typings/balancePlatform/models.ts @@ -1,179 +1,803 @@ -export * from "./aULocalAccountIdentification" -export * from "./accountHolder" -export * from "./accountHolderCapability" -export * from "./accountHolderInfo" -export * from "./accountHolderUpdateRequest" -export * from "./accountSupportingEntityCapability" -export * from "./activeNetworkTokensRestriction" -export * from "./additionalBankIdentification" -export * from "./address" -export * from "./addressRequirement" -export * from "./amount" -export * from "./amountMinMaxRequirement" -export * from "./amountNonZeroDecimalsRequirement" -export * from "./associationDelegatedAuthenticationData" -export * from "./associationFinaliseRequest" -export * from "./associationFinaliseResponse" -export * from "./associationInitiateRequest" -export * from "./associationInitiateResponse" -export * from "./authentication" -export * from "./bRLocalAccountIdentification" -export * from "./balance" -export * from "./balanceAccount" -export * from "./balanceAccountBase" -export * from "./balanceAccountInfo" -export * from "./balanceAccountUpdateRequest" -export * from "./balancePlatform" -export * from "./balanceSweepConfigurationsResponse" -export * from "./balanceWebhookSetting" -export * from "./balanceWebhookSettingInfo" -export * from "./balanceWebhookSettingInfoUpdate" -export * from "./bankAccount" -export * from "./bankAccountAccountIdentification" -export * from "./bankAccountDetails" -export * from "./bankAccountIdentificationTypeRequirement" -export * from "./bankAccountIdentificationValidationRequest" -export * from "./bankAccountIdentificationValidationRequestAccountIdentification" -export * from "./bankAccountModel" -export * from "./bankIdentification" -export * from "./brandVariantsRestriction" -export * from "./bulkAddress" -export * from "./cALocalAccountIdentification" -export * from "./cZLocalAccountIdentification" -export * from "./capabilityProblem" -export * from "./capabilityProblemEntity" -export * from "./capabilityProblemEntityRecursive" -export * from "./capabilitySettings" -export * from "./capitalBalance" -export * from "./capitalGrantAccount" -export * from "./card" -export * from "./cardConfiguration" -export * from "./cardInfo" -export * from "./cardOrder" -export * from "./cardOrderItem" -export * from "./cardOrderItemDeliveryStatus" -export * from "./condition" -export * from "./contactDetails" -export * from "./counterparty" -export * from "./counterpartyBankRestriction" -export * from "./counterpartyTypesRestriction" -export * from "./countriesRestriction" -export * from "./createSweepConfigurationV2" -export * from "./dKLocalAccountIdentification" -export * from "./dayOfWeekRestriction" -export * from "./defaultErrorResponseEntity" -export * from "./delegatedAuthenticationData" -export * from "./deliveryAddress" -export * from "./deliveryContact" -export * from "./device" -export * from "./deviceInfo" -export * from "./differentCurrenciesRestriction" -export * from "./duration" -export * from "./entryModesRestriction" -export * from "./expiry" -export * from "./fee" -export * from "./getNetworkTokenResponse" -export * from "./getTaxFormResponse" -export * from "./grantLimit" -export * from "./grantOffer" -export * from "./grantOffers" -export * from "./hKLocalAccountIdentification" -export * from "./hULocalAccountIdentification" -export * from "./href" -export * from "./ibanAccountIdentification" -export * from "./ibanAccountIdentificationRequirement" -export * from "./internationalTransactionRestriction" -export * from "./invalidField" -export * from "./link" -export * from "./listNetworkTokensResponse" -export * from "./matchingTransactionsRestriction" -export * from "./matchingValuesRestriction" -export * from "./mccsRestriction" -export * from "./merchantAcquirerPair" -export * from "./merchantNamesRestriction" -export * from "./merchantsRestriction" -export * from "./nOLocalAccountIdentification" -export * from "./nZLocalAccountIdentification" -export * from "./name" -export * from "./networkToken" -export * from "./numberAndBicAccountIdentification" -export * from "./pLLocalAccountIdentification" -export * from "./paginatedAccountHoldersResponse" -export * from "./paginatedBalanceAccountsResponse" -export * from "./paginatedGetCardOrderItemResponse" -export * from "./paginatedGetCardOrderResponse" -export * from "./paginatedPaymentInstrumentsResponse" -export * from "./paymentInstrument" -export * from "./paymentInstrumentAdditionalBankAccountIdentificationsInner" -export * from "./paymentInstrumentGroup" -export * from "./paymentInstrumentGroupInfo" -export * from "./paymentInstrumentInfo" -export * from "./paymentInstrumentRequirement" -export * from "./paymentInstrumentRevealInfo" -export * from "./paymentInstrumentRevealRequest" -export * from "./paymentInstrumentRevealResponse" -export * from "./paymentInstrumentUpdateRequest" -export * from "./phone" -export * from "./phoneNumber" -export * from "./pinChangeRequest" -export * from "./pinChangeResponse" -export * from "./platformPaymentConfiguration" -export * from "./processingTypesRestriction" -export * from "./publicKeyResponse" -export * from "./registerSCAFinalResponse" -export * from "./registerSCARequest" -export * from "./registerSCAResponse" -export * from "./remediatingAction" -export * from "./repayment" -export * from "./repaymentTerm" -export * from "./restServiceError" -export * from "./revealPinRequest" -export * from "./revealPinResponse" -export * from "./riskScores" -export * from "./riskScoresRestriction" -export * from "./sELocalAccountIdentification" -export * from "./sGLocalAccountIdentification" -export * from "./sameAmountRestriction" -export * from "./sameCounterpartyRestriction" -export * from "./searchRegisteredDevicesResponse" -export * from "./settingType" -export * from "./sourceAccountTypesRestriction" -export * from "./stringMatch" -export * from "./sweepConfigurationV2" -export * from "./sweepCounterparty" -export * from "./sweepSchedule" -export * from "./target" -export * from "./targetUpdate" -export * from "./thresholdRepayment" -export * from "./timeOfDay" -export * from "./timeOfDayRestriction" -export * from "./tokenRequestorsRestriction" -export * from "./totalAmountRestriction" -export * from "./transactionRule" -export * from "./transactionRuleEntityKey" -export * from "./transactionRuleInfo" -export * from "./transactionRuleInterval" -export * from "./transactionRuleResponse" -export * from "./transactionRuleRestrictions" -export * from "./transactionRulesResponse" -export * from "./transferRoute" -export * from "./transferRouteRequest" -export * from "./transferRouteRequirementsInner" -export * from "./transferRouteResponse" -export * from "./uKLocalAccountIdentification" -export * from "./uSInstantPayoutAddressRequirement" -export * from "./uSInternationalAchAddressRequirement" -export * from "./uSLocalAccountIdentification" -export * from "./updateNetworkTokenRequest" -export * from "./updatePaymentInstrument" -export * from "./updateSweepConfigurationV2" -export * from "./verificationDeadline" -export * from "./verificationError" -export * from "./verificationErrorRecursive" -export * from "./walletProviderAccountScoreRestriction" -export * from "./walletProviderDeviceScore" -export * from "./webhookSetting" -export * from "./webhookSettings" +/* + * 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. + */ -// serializing and deserializing typed objects -export * from "./objectSerializer" \ No newline at end of file + +export * from './aULocalAccountIdentification'; +export * from './accountHolder'; +export * from './accountHolderCapability'; +export * from './accountHolderInfo'; +export * from './accountHolderUpdateRequest'; +export * from './accountSupportingEntityCapability'; +export * from './activeNetworkTokensRestriction'; +export * from './additionalBankIdentification'; +export * from './address'; +export * from './addressRequirement'; +export * from './amount'; +export * from './amountMinMaxRequirement'; +export * from './amountNonZeroDecimalsRequirement'; +export * from './associationDelegatedAuthenticationData'; +export * from './associationFinaliseRequest'; +export * from './associationFinaliseResponse'; +export * from './associationInitiateRequest'; +export * from './associationInitiateResponse'; +export * from './authentication'; +export * from './authorisedCardUsers'; +export * from './bRLocalAccountIdentification'; +export * from './balance'; +export * from './balanceAccount'; +export * from './balanceAccountBase'; +export * from './balanceAccountInfo'; +export * from './balanceAccountUpdateRequest'; +export * from './balancePlatform'; +export * from './balanceSweepConfigurationsResponse'; +export * from './balanceWebhookSetting'; +export * from './balanceWebhookSettingAllOf'; +export * from './balanceWebhookSettingInfo'; +export * from './balanceWebhookSettingInfoUpdate'; +export * from './bankAccount'; +export * from './bankAccountDetails'; +export * from './bankAccountIdentificationTypeRequirement'; +export * from './bankAccountIdentificationValidationRequest'; +export * from './bankAccountModel'; +export * from './bankIdentification'; +export * from './brandVariantsRestriction'; +export * from './bulkAddress'; +export * from './cALocalAccountIdentification'; +export * from './cZLocalAccountIdentification'; +export * from './capabilityProblem'; +export * from './capabilityProblemEntity'; +export * from './capabilityProblemEntityRecursive'; +export * from './capabilitySettings'; +export * from './capitalBalance'; +export * from './capitalGrantAccount'; +export * from './card'; +export * from './cardConfiguration'; +export * from './cardInfo'; +export * from './cardOrder'; +export * from './cardOrderItem'; +export * from './cardOrderItemDeliveryStatus'; +export * from './condition'; +export * from './contactDetails'; +export * from './counterparty'; +export * from './counterpartyBankRestriction'; +export * from './counterpartyTypesRestriction'; +export * from './countriesRestriction'; +export * from './createSweepConfigurationV2'; +export * from './dKLocalAccountIdentification'; +export * from './dayOfWeekRestriction'; +export * from './defaultErrorResponseEntity'; +export * from './delegatedAuthenticationData'; +export * from './deliveryAddress'; +export * from './deliveryContact'; +export * from './device'; +export * from './deviceInfo'; +export * from './differentCurrenciesRestriction'; +export * from './duration'; +export * from './entryModesRestriction'; +export * from './expiry'; +export * from './fee'; +export * from './getNetworkTokenResponse'; +export * from './getTaxFormResponse'; +export * from './grantLimit'; +export * from './grantOffer'; +export * from './grantOffers'; +export * from './hKLocalAccountIdentification'; +export * from './hULocalAccountIdentification'; +export * from './href'; +export * from './ibanAccountIdentification'; +export * from './ibanAccountIdentificationRequirement'; +export * from './internationalTransactionRestriction'; +export * from './invalidField'; +export * from './link'; +export * from './listNetworkTokensResponse'; +export * from './matchingTransactionsRestriction'; +export * from './matchingValuesRestriction'; +export * from './mccsRestriction'; +export * from './merchantAcquirerPair'; +export * from './merchantNamesRestriction'; +export * from './merchantsRestriction'; +export * from './nOLocalAccountIdentification'; +export * from './nZLocalAccountIdentification'; +export * from './name'; +export * from './networkToken'; +export * from './networkTokenActivationDataRequest'; +export * from './networkTokenActivationDataResponse'; +export * from './networkTokenRequestor'; +export * from './numberAndBicAccountIdentification'; +export * from './pLLocalAccountIdentification'; +export * from './paginatedAccountHoldersResponse'; +export * from './paginatedBalanceAccountsResponse'; +export * from './paginatedGetCardOrderItemResponse'; +export * from './paginatedGetCardOrderResponse'; +export * from './paginatedPaymentInstrumentsResponse'; +export * from './paymentInstrument'; +export * from './paymentInstrumentGroup'; +export * from './paymentInstrumentGroupInfo'; +export * from './paymentInstrumentInfo'; +export * from './paymentInstrumentRequirement'; +export * from './paymentInstrumentRevealInfo'; +export * from './paymentInstrumentRevealRequest'; +export * from './paymentInstrumentRevealResponse'; +export * from './paymentInstrumentUpdateRequest'; +export * from './phone'; +export * from './phoneNumber'; +export * from './pinChangeRequest'; +export * from './pinChangeResponse'; +export * from './platformPaymentConfiguration'; +export * from './processingTypesRestriction'; +export * from './publicKeyResponse'; +export * from './registerSCAFinalResponse'; +export * from './registerSCARequest'; +export * from './registerSCAResponse'; +export * from './remediatingAction'; +export * from './repayment'; +export * from './repaymentTerm'; +export * from './restServiceError'; +export * from './revealPinRequest'; +export * from './revealPinResponse'; +export * from './riskScores'; +export * from './riskScoresRestriction'; +export * from './sELocalAccountIdentification'; +export * from './sGLocalAccountIdentification'; +export * from './sameAmountRestriction'; +export * from './sameCounterpartyRestriction'; +export * from './searchRegisteredDevicesResponse'; +export * from './settingType'; +export * from './sourceAccountTypesRestriction'; +export * from './stringMatch'; +export * from './sweepConfigurationV2'; +export * from './sweepCounterparty'; +export * from './sweepSchedule'; +export * from './target'; +export * from './targetUpdate'; +export * from './thresholdRepayment'; +export * from './timeOfDay'; +export * from './timeOfDayRestriction'; +export * from './tokenRequestorsRestriction'; +export * from './totalAmountRestriction'; +export * from './transactionRule'; +export * from './transactionRuleEntityKey'; +export * from './transactionRuleInfo'; +export * from './transactionRuleInterval'; +export * from './transactionRuleResponse'; +export * from './transactionRuleRestrictions'; +export * from './transactionRulesResponse'; +export * from './transferRoute'; +export * from './transferRouteRequest'; +export * from './transferRouteResponse'; +export * from './uKLocalAccountIdentification'; +export * from './uSInstantPayoutAddressRequirement'; +export * from './uSInternationalAchAddressRequirement'; +export * from './uSLocalAccountIdentification'; +export * from './updateNetworkTokenRequest'; +export * from './updatePaymentInstrument'; +export * from './updateSweepConfigurationV2'; +export * from './verificationDeadline'; +export * from './verificationError'; +export * from './verificationErrorRecursive'; +export * from './walletProviderAccountScoreRestriction'; +export * from './walletProviderDeviceScore'; +export * from './walletProviderDeviceType'; +export * from './webhookSetting'; +export * from './webhookSettings'; + + +import { AULocalAccountIdentification } from './aULocalAccountIdentification'; +import { AccountHolder } from './accountHolder'; +import { AccountHolderCapability } from './accountHolderCapability'; +import { AccountHolderInfo } from './accountHolderInfo'; +import { AccountHolderUpdateRequest } from './accountHolderUpdateRequest'; +import { AccountSupportingEntityCapability } from './accountSupportingEntityCapability'; +import { ActiveNetworkTokensRestriction } from './activeNetworkTokensRestriction'; +import { AdditionalBankIdentification } from './additionalBankIdentification'; +import { Address } from './address'; +import { AddressRequirement } from './addressRequirement'; +import { Amount } from './amount'; +import { AmountMinMaxRequirement } from './amountMinMaxRequirement'; +import { AmountNonZeroDecimalsRequirement } from './amountNonZeroDecimalsRequirement'; +import { AssociationDelegatedAuthenticationData } from './associationDelegatedAuthenticationData'; +import { AssociationFinaliseRequest } from './associationFinaliseRequest'; +import { AssociationFinaliseResponse } from './associationFinaliseResponse'; +import { AssociationInitiateRequest } from './associationInitiateRequest'; +import { AssociationInitiateResponse } from './associationInitiateResponse'; +import { Authentication } from './authentication'; +import { AuthorisedCardUsers } from './authorisedCardUsers'; +import { BRLocalAccountIdentification } from './bRLocalAccountIdentification'; +import { Balance } from './balance'; +import { BalanceAccount } from './balanceAccount'; +import { BalanceAccountBase } from './balanceAccountBase'; +import { BalanceAccountInfo } from './balanceAccountInfo'; +import { BalanceAccountUpdateRequest } from './balanceAccountUpdateRequest'; +import { BalancePlatform } from './balancePlatform'; +import { BalanceSweepConfigurationsResponse } from './balanceSweepConfigurationsResponse'; +import { BalanceWebhookSetting } from './balanceWebhookSetting'; +import { BalanceWebhookSettingAllOf } from './balanceWebhookSettingAllOf'; +import { BalanceWebhookSettingInfo } from './balanceWebhookSettingInfo'; +import { BalanceWebhookSettingInfoUpdate } from './balanceWebhookSettingInfoUpdate'; +import { BankAccount } from './bankAccount'; +import { BankAccountDetails } from './bankAccountDetails'; +import { BankAccountIdentificationTypeRequirement } from './bankAccountIdentificationTypeRequirement'; +import { BankAccountIdentificationValidationRequest } from './bankAccountIdentificationValidationRequest'; +import { BankAccountModel } from './bankAccountModel'; +import { BankIdentification } from './bankIdentification'; +import { BrandVariantsRestriction } from './brandVariantsRestriction'; +import { BulkAddress } from './bulkAddress'; +import { CALocalAccountIdentification } from './cALocalAccountIdentification'; +import { CZLocalAccountIdentification } from './cZLocalAccountIdentification'; +import { CapabilityProblem } from './capabilityProblem'; +import { CapabilityProblemEntity } from './capabilityProblemEntity'; +import { CapabilityProblemEntityRecursive } from './capabilityProblemEntityRecursive'; +import { CapabilitySettings } from './capabilitySettings'; +import { CapitalBalance } from './capitalBalance'; +import { CapitalGrantAccount } from './capitalGrantAccount'; +import { Card } from './card'; +import { CardConfiguration } from './cardConfiguration'; +import { CardInfo } from './cardInfo'; +import { CardOrder } from './cardOrder'; +import { CardOrderItem } from './cardOrderItem'; +import { CardOrderItemDeliveryStatus } from './cardOrderItemDeliveryStatus'; +import { Condition } from './condition'; +import { ContactDetails } from './contactDetails'; +import { Counterparty } from './counterparty'; +import { CounterpartyBankRestriction } from './counterpartyBankRestriction'; +import { CounterpartyTypesRestriction } from './counterpartyTypesRestriction'; +import { CountriesRestriction } from './countriesRestriction'; +import { CreateSweepConfigurationV2 } from './createSweepConfigurationV2'; +import { DKLocalAccountIdentification } from './dKLocalAccountIdentification'; +import { DayOfWeekRestriction } from './dayOfWeekRestriction'; +import { DefaultErrorResponseEntity } from './defaultErrorResponseEntity'; +import { DelegatedAuthenticationData } from './delegatedAuthenticationData'; +import { DeliveryAddress } from './deliveryAddress'; +import { DeliveryContact } from './deliveryContact'; +import { Device } from './device'; +import { DeviceInfo } from './deviceInfo'; +import { DifferentCurrenciesRestriction } from './differentCurrenciesRestriction'; +import { Duration } from './duration'; +import { EntryModesRestriction } from './entryModesRestriction'; +import { Expiry } from './expiry'; +import { Fee } from './fee'; +import { GetNetworkTokenResponse } from './getNetworkTokenResponse'; +import { GetTaxFormResponse } from './getTaxFormResponse'; +import { GrantLimit } from './grantLimit'; +import { GrantOffer } from './grantOffer'; +import { GrantOffers } from './grantOffers'; +import { HKLocalAccountIdentification } from './hKLocalAccountIdentification'; +import { HULocalAccountIdentification } from './hULocalAccountIdentification'; +import { Href } from './href'; +import { IbanAccountIdentification } from './ibanAccountIdentification'; +import { IbanAccountIdentificationRequirement } from './ibanAccountIdentificationRequirement'; +import { InternationalTransactionRestriction } from './internationalTransactionRestriction'; +import { InvalidField } from './invalidField'; +import { Link } from './link'; +import { ListNetworkTokensResponse } from './listNetworkTokensResponse'; +import { MatchingTransactionsRestriction } from './matchingTransactionsRestriction'; +import { MatchingValuesRestriction } from './matchingValuesRestriction'; +import { MccsRestriction } from './mccsRestriction'; +import { MerchantAcquirerPair } from './merchantAcquirerPair'; +import { MerchantNamesRestriction } from './merchantNamesRestriction'; +import { MerchantsRestriction } from './merchantsRestriction'; +import { NOLocalAccountIdentification } from './nOLocalAccountIdentification'; +import { NZLocalAccountIdentification } from './nZLocalAccountIdentification'; +import { Name } from './name'; +import { NetworkToken } from './networkToken'; +import { NetworkTokenActivationDataRequest } from './networkTokenActivationDataRequest'; +import { NetworkTokenActivationDataResponse } from './networkTokenActivationDataResponse'; +import { NetworkTokenRequestor } from './networkTokenRequestor'; +import { NumberAndBicAccountIdentification } from './numberAndBicAccountIdentification'; +import { PLLocalAccountIdentification } from './pLLocalAccountIdentification'; +import { PaginatedAccountHoldersResponse } from './paginatedAccountHoldersResponse'; +import { PaginatedBalanceAccountsResponse } from './paginatedBalanceAccountsResponse'; +import { PaginatedGetCardOrderItemResponse } from './paginatedGetCardOrderItemResponse'; +import { PaginatedGetCardOrderResponse } from './paginatedGetCardOrderResponse'; +import { PaginatedPaymentInstrumentsResponse } from './paginatedPaymentInstrumentsResponse'; +import { PaymentInstrument } from './paymentInstrument'; +import { PaymentInstrumentGroup } from './paymentInstrumentGroup'; +import { PaymentInstrumentGroupInfo } from './paymentInstrumentGroupInfo'; +import { PaymentInstrumentInfo } from './paymentInstrumentInfo'; +import { PaymentInstrumentRequirement } from './paymentInstrumentRequirement'; +import { PaymentInstrumentRevealInfo } from './paymentInstrumentRevealInfo'; +import { PaymentInstrumentRevealRequest } from './paymentInstrumentRevealRequest'; +import { PaymentInstrumentRevealResponse } from './paymentInstrumentRevealResponse'; +import { PaymentInstrumentUpdateRequest } from './paymentInstrumentUpdateRequest'; +import { Phone } from './phone'; +import { PhoneNumber } from './phoneNumber'; +import { PinChangeRequest } from './pinChangeRequest'; +import { PinChangeResponse } from './pinChangeResponse'; +import { PlatformPaymentConfiguration } from './platformPaymentConfiguration'; +import { ProcessingTypesRestriction } from './processingTypesRestriction'; +import { PublicKeyResponse } from './publicKeyResponse'; +import { RegisterSCAFinalResponse } from './registerSCAFinalResponse'; +import { RegisterSCARequest } from './registerSCARequest'; +import { RegisterSCAResponse } from './registerSCAResponse'; +import { RemediatingAction } from './remediatingAction'; +import { Repayment } from './repayment'; +import { RepaymentTerm } from './repaymentTerm'; +import { RestServiceError } from './restServiceError'; +import { RevealPinRequest } from './revealPinRequest'; +import { RevealPinResponse } from './revealPinResponse'; +import { RiskScores } from './riskScores'; +import { RiskScoresRestriction } from './riskScoresRestriction'; +import { SELocalAccountIdentification } from './sELocalAccountIdentification'; +import { SGLocalAccountIdentification } from './sGLocalAccountIdentification'; +import { SameAmountRestriction } from './sameAmountRestriction'; +import { SameCounterpartyRestriction } from './sameCounterpartyRestriction'; +import { SearchRegisteredDevicesResponse } from './searchRegisteredDevicesResponse'; +import { SettingType } from './settingType'; +import { SourceAccountTypesRestriction } from './sourceAccountTypesRestriction'; +import { StringMatch } from './stringMatch'; +import { SweepConfigurationV2 } from './sweepConfigurationV2'; +import { SweepCounterparty } from './sweepCounterparty'; +import { SweepSchedule } from './sweepSchedule'; +import { Target } from './target'; +import { TargetUpdate } from './targetUpdate'; +import { ThresholdRepayment } from './thresholdRepayment'; +import { TimeOfDay } from './timeOfDay'; +import { TimeOfDayRestriction } from './timeOfDayRestriction'; +import { TokenRequestorsRestriction } from './tokenRequestorsRestriction'; +import { TotalAmountRestriction } from './totalAmountRestriction'; +import { TransactionRule } from './transactionRule'; +import { TransactionRuleEntityKey } from './transactionRuleEntityKey'; +import { TransactionRuleInfo } from './transactionRuleInfo'; +import { TransactionRuleInterval } from './transactionRuleInterval'; +import { TransactionRuleResponse } from './transactionRuleResponse'; +import { TransactionRuleRestrictions } from './transactionRuleRestrictions'; +import { TransactionRulesResponse } from './transactionRulesResponse'; +import { TransferRoute } from './transferRoute'; +import { TransferRouteRequest } from './transferRouteRequest'; +import { TransferRouteResponse } from './transferRouteResponse'; +import { UKLocalAccountIdentification } from './uKLocalAccountIdentification'; +import { USInstantPayoutAddressRequirement } from './uSInstantPayoutAddressRequirement'; +import { USInternationalAchAddressRequirement } from './uSInternationalAchAddressRequirement'; +import { USLocalAccountIdentification } from './uSLocalAccountIdentification'; +import { UpdateNetworkTokenRequest } from './updateNetworkTokenRequest'; +import { UpdatePaymentInstrument } from './updatePaymentInstrument'; +import { UpdateSweepConfigurationV2 } from './updateSweepConfigurationV2'; +import { VerificationDeadline } from './verificationDeadline'; +import { VerificationError } from './verificationError'; +import { VerificationErrorRecursive } from './verificationErrorRecursive'; +import { WalletProviderAccountScoreRestriction } from './walletProviderAccountScoreRestriction'; +import { WalletProviderDeviceScore } from './walletProviderDeviceScore'; +import { WalletProviderDeviceType } from './walletProviderDeviceType'; +import { WebhookSetting } from './webhookSetting'; +import { WebhookSettings } from './webhookSettings'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "AULocalAccountIdentification.TypeEnum": AULocalAccountIdentification.TypeEnum, + "AccountHolder.StatusEnum": AccountHolder.StatusEnum, + "AccountHolderCapability.AllowedLevelEnum": AccountHolderCapability.AllowedLevelEnum, + "AccountHolderCapability.RequestedLevelEnum": AccountHolderCapability.RequestedLevelEnum, + "AccountHolderCapability.VerificationStatusEnum": AccountHolderCapability.VerificationStatusEnum, + "AccountHolderUpdateRequest.StatusEnum": AccountHolderUpdateRequest.StatusEnum, + "AccountSupportingEntityCapability.AllowedLevelEnum": AccountSupportingEntityCapability.AllowedLevelEnum, + "AccountSupportingEntityCapability.RequestedLevelEnum": AccountSupportingEntityCapability.RequestedLevelEnum, + "AccountSupportingEntityCapability.VerificationStatusEnum": AccountSupportingEntityCapability.VerificationStatusEnum, + "AdditionalBankIdentification.TypeEnum": AdditionalBankIdentification.TypeEnum, + "AddressRequirement.RequiredAddressFieldsEnum": AddressRequirement.RequiredAddressFieldsEnum, + "AddressRequirement.TypeEnum": AddressRequirement.TypeEnum, + "AmountMinMaxRequirement.TypeEnum": AmountMinMaxRequirement.TypeEnum, + "AmountNonZeroDecimalsRequirement.TypeEnum": AmountNonZeroDecimalsRequirement.TypeEnum, + "AssociationFinaliseRequest.TypeEnum": AssociationFinaliseRequest.TypeEnum, + "AssociationFinaliseResponse.TypeEnum": AssociationFinaliseResponse.TypeEnum, + "AssociationInitiateRequest.TypeEnum": AssociationInitiateRequest.TypeEnum, + "BRLocalAccountIdentification.TypeEnum": BRLocalAccountIdentification.TypeEnum, + "BalanceAccount.StatusEnum": BalanceAccount.StatusEnum, + "BalanceAccountBase.StatusEnum": BalanceAccountBase.StatusEnum, + "BalanceAccountUpdateRequest.StatusEnum": BalanceAccountUpdateRequest.StatusEnum, + "BalanceWebhookSettingInfo.StatusEnum": BalanceWebhookSettingInfo.StatusEnum, + "BalanceWebhookSettingInfo.TypeEnum": BalanceWebhookSettingInfo.TypeEnum, + "BalanceWebhookSettingInfoUpdate.StatusEnum": BalanceWebhookSettingInfoUpdate.StatusEnum, + "BalanceWebhookSettingInfoUpdate.TypeEnum": BalanceWebhookSettingInfoUpdate.TypeEnum, + "BankAccountIdentificationTypeRequirement.BankAccountIdentificationTypesEnum": BankAccountIdentificationTypeRequirement.BankAccountIdentificationTypesEnum, + "BankAccountIdentificationTypeRequirement.TypeEnum": BankAccountIdentificationTypeRequirement.TypeEnum, + "BankAccountModel.FormFactorEnum": BankAccountModel.FormFactorEnum, + "BankIdentification.IdentificationTypeEnum": BankIdentification.IdentificationTypeEnum, + "CALocalAccountIdentification.AccountTypeEnum": CALocalAccountIdentification.AccountTypeEnum, + "CALocalAccountIdentification.TypeEnum": CALocalAccountIdentification.TypeEnum, + "CZLocalAccountIdentification.TypeEnum": CZLocalAccountIdentification.TypeEnum, + "CapabilityProblemEntity.TypeEnum": CapabilityProblemEntity.TypeEnum, + "CapabilityProblemEntityRecursive.TypeEnum": CapabilityProblemEntityRecursive.TypeEnum, + "CapabilitySettings.FundingSourceEnum": CapabilitySettings.FundingSourceEnum, + "CapabilitySettings.IntervalEnum": CapabilitySettings.IntervalEnum, + "Card.FormFactorEnum": Card.FormFactorEnum, + "CardInfo.FormFactorEnum": CardInfo.FormFactorEnum, + "CardOrder.StatusEnum": CardOrder.StatusEnum, + "CardOrderItemDeliveryStatus.StatusEnum": CardOrderItemDeliveryStatus.StatusEnum, + "Condition.BalanceTypeEnum": Condition.BalanceTypeEnum, + "Condition.ConditionTypeEnum": Condition.ConditionTypeEnum, + "CounterpartyTypesRestriction.ValueEnum": CounterpartyTypesRestriction.ValueEnum, + "CreateSweepConfigurationV2.CategoryEnum": CreateSweepConfigurationV2.CategoryEnum, + "CreateSweepConfigurationV2.PrioritiesEnum": CreateSweepConfigurationV2.PrioritiesEnum, + "CreateSweepConfigurationV2.ReasonEnum": CreateSweepConfigurationV2.ReasonEnum, + "CreateSweepConfigurationV2.StatusEnum": CreateSweepConfigurationV2.StatusEnum, + "CreateSweepConfigurationV2.TypeEnum": CreateSweepConfigurationV2.TypeEnum, + "DKLocalAccountIdentification.TypeEnum": DKLocalAccountIdentification.TypeEnum, + "DayOfWeekRestriction.ValueEnum": DayOfWeekRestriction.ValueEnum, + "Device.TypeEnum": Device.TypeEnum, + "Duration.UnitEnum": Duration.UnitEnum, + "EntryModesRestriction.ValueEnum": EntryModesRestriction.ValueEnum, + "GetTaxFormResponse.ContentTypeEnum": GetTaxFormResponse.ContentTypeEnum, + "GrantOffer.ContractTypeEnum": GrantOffer.ContractTypeEnum, + "HKLocalAccountIdentification.TypeEnum": HKLocalAccountIdentification.TypeEnum, + "HULocalAccountIdentification.TypeEnum": HULocalAccountIdentification.TypeEnum, + "IbanAccountIdentification.TypeEnum": IbanAccountIdentification.TypeEnum, + "IbanAccountIdentificationRequirement.TypeEnum": IbanAccountIdentificationRequirement.TypeEnum, + "MatchingValuesRestriction.ValueEnum": MatchingValuesRestriction.ValueEnum, + "NOLocalAccountIdentification.TypeEnum": NOLocalAccountIdentification.TypeEnum, + "NZLocalAccountIdentification.TypeEnum": NZLocalAccountIdentification.TypeEnum, + "NetworkToken.StatusEnum": NetworkToken.StatusEnum, + "NumberAndBicAccountIdentification.TypeEnum": NumberAndBicAccountIdentification.TypeEnum, + "PLLocalAccountIdentification.TypeEnum": PLLocalAccountIdentification.TypeEnum, + "PaymentInstrument.StatusEnum": PaymentInstrument.StatusEnum, + "PaymentInstrument.StatusReasonEnum": PaymentInstrument.StatusReasonEnum, + "PaymentInstrument.TypeEnum": PaymentInstrument.TypeEnum, + "PaymentInstrumentInfo.StatusEnum": PaymentInstrumentInfo.StatusEnum, + "PaymentInstrumentInfo.StatusReasonEnum": PaymentInstrumentInfo.StatusReasonEnum, + "PaymentInstrumentInfo.TypeEnum": PaymentInstrumentInfo.TypeEnum, + "PaymentInstrumentRequirement.PaymentInstrumentTypeEnum": PaymentInstrumentRequirement.PaymentInstrumentTypeEnum, + "PaymentInstrumentRequirement.TypeEnum": PaymentInstrumentRequirement.TypeEnum, + "PaymentInstrumentUpdateRequest.StatusEnum": PaymentInstrumentUpdateRequest.StatusEnum, + "PaymentInstrumentUpdateRequest.StatusReasonEnum": PaymentInstrumentUpdateRequest.StatusReasonEnum, + "Phone.TypeEnum": Phone.TypeEnum, + "PhoneNumber.PhoneTypeEnum": PhoneNumber.PhoneTypeEnum, + "PinChangeResponse.StatusEnum": PinChangeResponse.StatusEnum, + "ProcessingTypesRestriction.ValueEnum": ProcessingTypesRestriction.ValueEnum, + "SELocalAccountIdentification.TypeEnum": SELocalAccountIdentification.TypeEnum, + "SGLocalAccountIdentification.TypeEnum": SGLocalAccountIdentification.TypeEnum, + "SettingType": SettingType, + "SourceAccountTypesRestriction.ValueEnum": SourceAccountTypesRestriction.ValueEnum, + "StringMatch.OperationEnum": StringMatch.OperationEnum, + "SweepConfigurationV2.CategoryEnum": SweepConfigurationV2.CategoryEnum, + "SweepConfigurationV2.PrioritiesEnum": SweepConfigurationV2.PrioritiesEnum, + "SweepConfigurationV2.ReasonEnum": SweepConfigurationV2.ReasonEnum, + "SweepConfigurationV2.StatusEnum": SweepConfigurationV2.StatusEnum, + "SweepConfigurationV2.TypeEnum": SweepConfigurationV2.TypeEnum, + "SweepSchedule.TypeEnum": SweepSchedule.TypeEnum, + "Target.TypeEnum": Target.TypeEnum, + "TargetUpdate.TypeEnum": TargetUpdate.TypeEnum, + "TransactionRule.OutcomeTypeEnum": TransactionRule.OutcomeTypeEnum, + "TransactionRule.RequestTypeEnum": TransactionRule.RequestTypeEnum, + "TransactionRule.StatusEnum": TransactionRule.StatusEnum, + "TransactionRule.TypeEnum": TransactionRule.TypeEnum, + "TransactionRuleInfo.OutcomeTypeEnum": TransactionRuleInfo.OutcomeTypeEnum, + "TransactionRuleInfo.RequestTypeEnum": TransactionRuleInfo.RequestTypeEnum, + "TransactionRuleInfo.StatusEnum": TransactionRuleInfo.StatusEnum, + "TransactionRuleInfo.TypeEnum": TransactionRuleInfo.TypeEnum, + "TransactionRuleInterval.DayOfWeekEnum": TransactionRuleInterval.DayOfWeekEnum, + "TransactionRuleInterval.TypeEnum": TransactionRuleInterval.TypeEnum, + "TransferRoute.CategoryEnum": TransferRoute.CategoryEnum, + "TransferRoute.PriorityEnum": TransferRoute.PriorityEnum, + "TransferRouteRequest.CategoryEnum": TransferRouteRequest.CategoryEnum, + "TransferRouteRequest.PrioritiesEnum": TransferRouteRequest.PrioritiesEnum, + "UKLocalAccountIdentification.TypeEnum": UKLocalAccountIdentification.TypeEnum, + "USInstantPayoutAddressRequirement.TypeEnum": USInstantPayoutAddressRequirement.TypeEnum, + "USInternationalAchAddressRequirement.TypeEnum": USInternationalAchAddressRequirement.TypeEnum, + "USLocalAccountIdentification.AccountTypeEnum": USLocalAccountIdentification.AccountTypeEnum, + "USLocalAccountIdentification.TypeEnum": USLocalAccountIdentification.TypeEnum, + "UpdateNetworkTokenRequest.StatusEnum": UpdateNetworkTokenRequest.StatusEnum, + "UpdatePaymentInstrument.StatusEnum": UpdatePaymentInstrument.StatusEnum, + "UpdatePaymentInstrument.StatusReasonEnum": UpdatePaymentInstrument.StatusReasonEnum, + "UpdatePaymentInstrument.TypeEnum": UpdatePaymentInstrument.TypeEnum, + "UpdateSweepConfigurationV2.CategoryEnum": UpdateSweepConfigurationV2.CategoryEnum, + "UpdateSweepConfigurationV2.PrioritiesEnum": UpdateSweepConfigurationV2.PrioritiesEnum, + "UpdateSweepConfigurationV2.ReasonEnum": UpdateSweepConfigurationV2.ReasonEnum, + "UpdateSweepConfigurationV2.StatusEnum": UpdateSweepConfigurationV2.StatusEnum, + "UpdateSweepConfigurationV2.TypeEnum": UpdateSweepConfigurationV2.TypeEnum, + "VerificationDeadline.CapabilitiesEnum": VerificationDeadline.CapabilitiesEnum, + "VerificationError.CapabilitiesEnum": VerificationError.CapabilitiesEnum, + "VerificationError.TypeEnum": VerificationError.TypeEnum, + "VerificationErrorRecursive.CapabilitiesEnum": VerificationErrorRecursive.CapabilitiesEnum, + "VerificationErrorRecursive.TypeEnum": VerificationErrorRecursive.TypeEnum, + "WalletProviderDeviceType.ValueEnum": WalletProviderDeviceType.ValueEnum, +} + +let typeMap: {[index: string]: any} = { + "AULocalAccountIdentification": AULocalAccountIdentification, + "AccountHolder": AccountHolder, + "AccountHolderCapability": AccountHolderCapability, + "AccountHolderInfo": AccountHolderInfo, + "AccountHolderUpdateRequest": AccountHolderUpdateRequest, + "AccountSupportingEntityCapability": AccountSupportingEntityCapability, + "ActiveNetworkTokensRestriction": ActiveNetworkTokensRestriction, + "AdditionalBankIdentification": AdditionalBankIdentification, + "Address": Address, + "AddressRequirement": AddressRequirement, + "Amount": Amount, + "AmountMinMaxRequirement": AmountMinMaxRequirement, + "AmountNonZeroDecimalsRequirement": AmountNonZeroDecimalsRequirement, + "AssociationDelegatedAuthenticationData": AssociationDelegatedAuthenticationData, + "AssociationFinaliseRequest": AssociationFinaliseRequest, + "AssociationFinaliseResponse": AssociationFinaliseResponse, + "AssociationInitiateRequest": AssociationInitiateRequest, + "AssociationInitiateResponse": AssociationInitiateResponse, + "Authentication": Authentication, + "AuthorisedCardUsers": AuthorisedCardUsers, + "BRLocalAccountIdentification": BRLocalAccountIdentification, + "Balance": Balance, + "BalanceAccount": BalanceAccount, + "BalanceAccountBase": BalanceAccountBase, + "BalanceAccountInfo": BalanceAccountInfo, + "BalanceAccountUpdateRequest": BalanceAccountUpdateRequest, + "BalancePlatform": BalancePlatform, + "BalanceSweepConfigurationsResponse": BalanceSweepConfigurationsResponse, + "BalanceWebhookSetting": BalanceWebhookSetting, + "BalanceWebhookSettingAllOf": BalanceWebhookSettingAllOf, + "BalanceWebhookSettingInfo": BalanceWebhookSettingInfo, + "BalanceWebhookSettingInfoUpdate": BalanceWebhookSettingInfoUpdate, + "BankAccount": BankAccount, + "BankAccountDetails": BankAccountDetails, + "BankAccountIdentificationTypeRequirement": BankAccountIdentificationTypeRequirement, + "BankAccountIdentificationValidationRequest": BankAccountIdentificationValidationRequest, + "BankAccountModel": BankAccountModel, + "BankIdentification": BankIdentification, + "BrandVariantsRestriction": BrandVariantsRestriction, + "BulkAddress": BulkAddress, + "CALocalAccountIdentification": CALocalAccountIdentification, + "CZLocalAccountIdentification": CZLocalAccountIdentification, + "CapabilityProblem": CapabilityProblem, + "CapabilityProblemEntity": CapabilityProblemEntity, + "CapabilityProblemEntityRecursive": CapabilityProblemEntityRecursive, + "CapabilitySettings": CapabilitySettings, + "CapitalBalance": CapitalBalance, + "CapitalGrantAccount": CapitalGrantAccount, + "Card": Card, + "CardConfiguration": CardConfiguration, + "CardInfo": CardInfo, + "CardOrder": CardOrder, + "CardOrderItem": CardOrderItem, + "CardOrderItemDeliveryStatus": CardOrderItemDeliveryStatus, + "Condition": Condition, + "ContactDetails": ContactDetails, + "Counterparty": Counterparty, + "CounterpartyBankRestriction": CounterpartyBankRestriction, + "CounterpartyTypesRestriction": CounterpartyTypesRestriction, + "CountriesRestriction": CountriesRestriction, + "CreateSweepConfigurationV2": CreateSweepConfigurationV2, + "DKLocalAccountIdentification": DKLocalAccountIdentification, + "DayOfWeekRestriction": DayOfWeekRestriction, + "DefaultErrorResponseEntity": DefaultErrorResponseEntity, + "DelegatedAuthenticationData": DelegatedAuthenticationData, + "DeliveryAddress": DeliveryAddress, + "DeliveryContact": DeliveryContact, + "Device": Device, + "DeviceInfo": DeviceInfo, + "DifferentCurrenciesRestriction": DifferentCurrenciesRestriction, + "Duration": Duration, + "EntryModesRestriction": EntryModesRestriction, + "Expiry": Expiry, + "Fee": Fee, + "GetNetworkTokenResponse": GetNetworkTokenResponse, + "GetTaxFormResponse": GetTaxFormResponse, + "GrantLimit": GrantLimit, + "GrantOffer": GrantOffer, + "GrantOffers": GrantOffers, + "HKLocalAccountIdentification": HKLocalAccountIdentification, + "HULocalAccountIdentification": HULocalAccountIdentification, + "Href": Href, + "IbanAccountIdentification": IbanAccountIdentification, + "IbanAccountIdentificationRequirement": IbanAccountIdentificationRequirement, + "InternationalTransactionRestriction": InternationalTransactionRestriction, + "InvalidField": InvalidField, + "Link": Link, + "ListNetworkTokensResponse": ListNetworkTokensResponse, + "MatchingTransactionsRestriction": MatchingTransactionsRestriction, + "MatchingValuesRestriction": MatchingValuesRestriction, + "MccsRestriction": MccsRestriction, + "MerchantAcquirerPair": MerchantAcquirerPair, + "MerchantNamesRestriction": MerchantNamesRestriction, + "MerchantsRestriction": MerchantsRestriction, + "NOLocalAccountIdentification": NOLocalAccountIdentification, + "NZLocalAccountIdentification": NZLocalAccountIdentification, + "Name": Name, + "NetworkToken": NetworkToken, + "NetworkTokenActivationDataRequest": NetworkTokenActivationDataRequest, + "NetworkTokenActivationDataResponse": NetworkTokenActivationDataResponse, + "NetworkTokenRequestor": NetworkTokenRequestor, + "NumberAndBicAccountIdentification": NumberAndBicAccountIdentification, + "PLLocalAccountIdentification": PLLocalAccountIdentification, + "PaginatedAccountHoldersResponse": PaginatedAccountHoldersResponse, + "PaginatedBalanceAccountsResponse": PaginatedBalanceAccountsResponse, + "PaginatedGetCardOrderItemResponse": PaginatedGetCardOrderItemResponse, + "PaginatedGetCardOrderResponse": PaginatedGetCardOrderResponse, + "PaginatedPaymentInstrumentsResponse": PaginatedPaymentInstrumentsResponse, + "PaymentInstrument": PaymentInstrument, + "PaymentInstrumentGroup": PaymentInstrumentGroup, + "PaymentInstrumentGroupInfo": PaymentInstrumentGroupInfo, + "PaymentInstrumentInfo": PaymentInstrumentInfo, + "PaymentInstrumentRequirement": PaymentInstrumentRequirement, + "PaymentInstrumentRevealInfo": PaymentInstrumentRevealInfo, + "PaymentInstrumentRevealRequest": PaymentInstrumentRevealRequest, + "PaymentInstrumentRevealResponse": PaymentInstrumentRevealResponse, + "PaymentInstrumentUpdateRequest": PaymentInstrumentUpdateRequest, + "Phone": Phone, + "PhoneNumber": PhoneNumber, + "PinChangeRequest": PinChangeRequest, + "PinChangeResponse": PinChangeResponse, + "PlatformPaymentConfiguration": PlatformPaymentConfiguration, + "ProcessingTypesRestriction": ProcessingTypesRestriction, + "PublicKeyResponse": PublicKeyResponse, + "RegisterSCAFinalResponse": RegisterSCAFinalResponse, + "RegisterSCARequest": RegisterSCARequest, + "RegisterSCAResponse": RegisterSCAResponse, + "RemediatingAction": RemediatingAction, + "Repayment": Repayment, + "RepaymentTerm": RepaymentTerm, + "RestServiceError": RestServiceError, + "RevealPinRequest": RevealPinRequest, + "RevealPinResponse": RevealPinResponse, + "RiskScores": RiskScores, + "RiskScoresRestriction": RiskScoresRestriction, + "SELocalAccountIdentification": SELocalAccountIdentification, + "SGLocalAccountIdentification": SGLocalAccountIdentification, + "SameAmountRestriction": SameAmountRestriction, + "SameCounterpartyRestriction": SameCounterpartyRestriction, + "SearchRegisteredDevicesResponse": SearchRegisteredDevicesResponse, + "SourceAccountTypesRestriction": SourceAccountTypesRestriction, + "StringMatch": StringMatch, + "SweepConfigurationV2": SweepConfigurationV2, + "SweepCounterparty": SweepCounterparty, + "SweepSchedule": SweepSchedule, + "Target": Target, + "TargetUpdate": TargetUpdate, + "ThresholdRepayment": ThresholdRepayment, + "TimeOfDay": TimeOfDay, + "TimeOfDayRestriction": TimeOfDayRestriction, + "TokenRequestorsRestriction": TokenRequestorsRestriction, + "TotalAmountRestriction": TotalAmountRestriction, + "TransactionRule": TransactionRule, + "TransactionRuleEntityKey": TransactionRuleEntityKey, + "TransactionRuleInfo": TransactionRuleInfo, + "TransactionRuleInterval": TransactionRuleInterval, + "TransactionRuleResponse": TransactionRuleResponse, + "TransactionRuleRestrictions": TransactionRuleRestrictions, + "TransactionRulesResponse": TransactionRulesResponse, + "TransferRoute": TransferRoute, + "TransferRouteRequest": TransferRouteRequest, + "TransferRouteResponse": TransferRouteResponse, + "UKLocalAccountIdentification": UKLocalAccountIdentification, + "USInstantPayoutAddressRequirement": USInstantPayoutAddressRequirement, + "USInternationalAchAddressRequirement": USInternationalAchAddressRequirement, + "USLocalAccountIdentification": USLocalAccountIdentification, + "UpdateNetworkTokenRequest": UpdateNetworkTokenRequest, + "UpdatePaymentInstrument": UpdatePaymentInstrument, + "UpdateSweepConfigurationV2": UpdateSweepConfigurationV2, + "VerificationDeadline": VerificationDeadline, + "VerificationError": VerificationError, + "VerificationErrorRecursive": VerificationErrorRecursive, + "WalletProviderAccountScoreRestriction": WalletProviderAccountScoreRestriction, + "WalletProviderDeviceScore": WalletProviderDeviceScore, + "WalletProviderDeviceType": WalletProviderDeviceType, + "WebhookSetting": WebhookSetting, + "WebhookSettings": WebhookSettings, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/balancePlatform/nOLocalAccountIdentification.ts b/src/typings/balancePlatform/nOLocalAccountIdentification.ts index 60ba2d608..96c8d3068 100644 --- a/src/typings/balancePlatform/nOLocalAccountIdentification.ts +++ b/src/typings/balancePlatform/nOLocalAccountIdentification.ts @@ -12,36 +12,29 @@ export class NOLocalAccountIdentification { /** * The 11-digit bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * **noLocal** */ - "type": NOLocalAccountIdentification.TypeEnum; + 'type': NOLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "NOLocalAccountIdentification.TypeEnum", - "format": "" + "type": "NOLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return NOLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace NOLocalAccountIdentification { diff --git a/src/typings/balancePlatform/nZLocalAccountIdentification.ts b/src/typings/balancePlatform/nZLocalAccountIdentification.ts index 93e5367fc..6142ff305 100644 --- a/src/typings/balancePlatform/nZLocalAccountIdentification.ts +++ b/src/typings/balancePlatform/nZLocalAccountIdentification.ts @@ -12,36 +12,29 @@ export class NZLocalAccountIdentification { /** * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. */ - "accountNumber": string; + 'accountNumber': string; /** * **nzLocal** */ - "type": NZLocalAccountIdentification.TypeEnum; + 'type': NZLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "NZLocalAccountIdentification.TypeEnum", - "format": "" + "type": "NZLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return NZLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace NZLocalAccountIdentification { diff --git a/src/typings/balancePlatform/name.ts b/src/typings/balancePlatform/name.ts index fa2c333bd..9703dd067 100644 --- a/src/typings/balancePlatform/name.ts +++ b/src/typings/balancePlatform/name.ts @@ -12,35 +12,28 @@ export class Name { /** * The first name. */ - "firstName": string; + 'firstName': string; /** * The last name. */ - "lastName": string; + 'lastName': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "firstName", "baseName": "firstName", - "type": "string", - "format": "" + "type": "string" }, { "name": "lastName", "baseName": "lastName", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Name.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/networkToken.ts b/src/typings/balancePlatform/networkToken.ts index 7a22b0ad4..5a3405f7f 100644 --- a/src/typings/balancePlatform/networkToken.ts +++ b/src/typings/balancePlatform/networkToken.ts @@ -7,100 +7,93 @@ * Do not edit this class manually. */ -import { DeviceInfo } from "./deviceInfo"; - +import { DeviceInfo } from './deviceInfo'; +import { NetworkTokenRequestor } from './networkTokenRequestor'; export class NetworkToken { /** * The card brand variant of the payment instrument associated with the network token. For example, **mc_prepaid_mrw**. */ - "brandVariant"?: string; + 'brandVariant'?: string; /** * Date and time when the network token was created, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, **2020-12-18T10:15:30+01:00**.. */ - "creationDate"?: Date; - "device"?: DeviceInfo; + 'creationDate'?: Date; + 'device'?: DeviceInfo | null; /** * The unique identifier of the network token. */ - "id"?: string; + 'id'?: string; /** * The unique identifier of the payment instrument to which this network token belongs to. */ - "paymentInstrumentId"?: string; + 'paymentInstrumentId'?: string; /** * The status of the network token. Possible values: **active**, **inactive**, **suspended**, **closed**. */ - "status"?: NetworkToken.StatusEnum; + 'status'?: NetworkToken.StatusEnum; /** * The last four digits of the network token `id`. */ - "tokenLastFour"?: string; + 'tokenLastFour'?: string; + 'tokenRequestor'?: NetworkTokenRequestor | null; /** * The type of network token. For example, **wallet**, **cof**. */ - "type"?: string; - - static readonly discriminator: string | undefined = undefined; + 'type'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "brandVariant", "baseName": "brandVariant", - "type": "string", - "format": "" + "type": "string" }, { "name": "creationDate", "baseName": "creationDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "device", "baseName": "device", - "type": "DeviceInfo", - "format": "" + "type": "DeviceInfo | null" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentInstrumentId", "baseName": "paymentInstrumentId", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "NetworkToken.StatusEnum", - "format": "" + "type": "NetworkToken.StatusEnum" }, { "name": "tokenLastFour", "baseName": "tokenLastFour", - "type": "string", - "format": "" + "type": "string" + }, + { + "name": "tokenRequestor", + "baseName": "tokenRequestor", + "type": "NetworkTokenRequestor | null" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return NetworkToken.attributeTypeMap; } - - public constructor() { - } } export namespace NetworkToken { diff --git a/src/typings/balancePlatform/networkTokenActivationDataRequest.ts b/src/typings/balancePlatform/networkTokenActivationDataRequest.ts new file mode 100644 index 000000000..4e3d16961 --- /dev/null +++ b/src/typings/balancePlatform/networkTokenActivationDataRequest.ts @@ -0,0 +1,30 @@ +/* + * 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 NetworkTokenActivationDataRequest { + /** + * A block of data automatically generated by Adyen\'s SDK for network token provisioning. This `sdkInput` is required to create provisioning data for the network token. For more information, see the repositories for Adyen\'s SDKs for network token provisioning: * [Adyen Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + */ + 'sdkOutput'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "sdkOutput", + "baseName": "sdkOutput", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return NetworkTokenActivationDataRequest.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/networkTokenActivationDataResponse.ts b/src/typings/balancePlatform/networkTokenActivationDataResponse.ts new file mode 100644 index 000000000..dfe12d37a --- /dev/null +++ b/src/typings/balancePlatform/networkTokenActivationDataResponse.ts @@ -0,0 +1,30 @@ +/* + * 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 NetworkTokenActivationDataResponse { + /** + * A block of data automatically generated by Adyen\'s SDK for network token provisioning. This `sdkInput` is required to create provisioning data for the network token. For more information, see the repositories for Adyen\'s SDKs for network token provisioning: * [Adyen Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + */ + 'sdkInput'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "sdkInput", + "baseName": "sdkInput", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return NetworkTokenActivationDataResponse.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/networkTokenRequestor.ts b/src/typings/balancePlatform/networkTokenRequestor.ts new file mode 100644 index 000000000..95e7a073b --- /dev/null +++ b/src/typings/balancePlatform/networkTokenRequestor.ts @@ -0,0 +1,39 @@ +/* + * 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 NetworkTokenRequestor { + /** + * The id of the network token requestor. + */ + 'id'?: string; + /** + * The name of the network token requestor. + */ + 'name'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return NetworkTokenRequestor.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/numberAndBicAccountIdentification.ts b/src/typings/balancePlatform/numberAndBicAccountIdentification.ts index 10a636b3f..b72d72143 100644 --- a/src/typings/balancePlatform/numberAndBicAccountIdentification.ts +++ b/src/typings/balancePlatform/numberAndBicAccountIdentification.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { AdditionalBankIdentification } from "./additionalBankIdentification"; - +import { AdditionalBankIdentification } from './additionalBankIdentification'; export class NumberAndBicAccountIdentification { /** * The bank account number, without separators or whitespace. The length and format depends on the bank or country. */ - "accountNumber": string; - "additionalBankIdentification"?: AdditionalBankIdentification; + 'accountNumber': string; + 'additionalBankIdentification'?: AdditionalBankIdentification | null; /** * The bank\'s 8- or 11-character BIC or SWIFT code. */ - "bic": string; + 'bic': string; /** * **numberAndBic** */ - "type": NumberAndBicAccountIdentification.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': NumberAndBicAccountIdentification.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "additionalBankIdentification", "baseName": "additionalBankIdentification", - "type": "AdditionalBankIdentification", - "format": "" + "type": "AdditionalBankIdentification | null" }, { "name": "bic", "baseName": "bic", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "NumberAndBicAccountIdentification.TypeEnum", - "format": "" + "type": "NumberAndBicAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return NumberAndBicAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace NumberAndBicAccountIdentification { diff --git a/src/typings/balancePlatform/objectSerializer.ts b/src/typings/balancePlatform/objectSerializer.ts deleted file mode 100644 index 004d6ab6b..000000000 --- a/src/typings/balancePlatform/objectSerializer.ts +++ /dev/null @@ -1,828 +0,0 @@ -export * from "./models"; - -import { AULocalAccountIdentification } from "./aULocalAccountIdentification"; -import { AccountHolder } from "./accountHolder"; -import { AccountHolderCapability } from "./accountHolderCapability"; -import { AccountHolderInfo } from "./accountHolderInfo"; -import { AccountHolderUpdateRequest } from "./accountHolderUpdateRequest"; -import { AccountSupportingEntityCapability } from "./accountSupportingEntityCapability"; -import { ActiveNetworkTokensRestriction } from "./activeNetworkTokensRestriction"; -import { AdditionalBankIdentification } from "./additionalBankIdentification"; -import { Address } from "./address"; -import { AddressRequirement } from "./addressRequirement"; -import { Amount } from "./amount"; -import { AmountMinMaxRequirement } from "./amountMinMaxRequirement"; -import { AmountNonZeroDecimalsRequirement } from "./amountNonZeroDecimalsRequirement"; -import { AssociationDelegatedAuthenticationData } from "./associationDelegatedAuthenticationData"; -import { AssociationFinaliseRequest } from "./associationFinaliseRequest"; -import { AssociationFinaliseResponse } from "./associationFinaliseResponse"; -import { AssociationInitiateRequest } from "./associationInitiateRequest"; -import { AssociationInitiateResponse } from "./associationInitiateResponse"; -import { Authentication } from "./authentication"; -import { BRLocalAccountIdentification } from "./bRLocalAccountIdentification"; -import { Balance } from "./balance"; -import { BalanceAccount } from "./balanceAccount"; -import { BalanceAccountBase } from "./balanceAccountBase"; -import { BalanceAccountInfo } from "./balanceAccountInfo"; -import { BalanceAccountUpdateRequest } from "./balanceAccountUpdateRequest"; -import { BalancePlatform } from "./balancePlatform"; -import { BalanceSweepConfigurationsResponse } from "./balanceSweepConfigurationsResponse"; -import { BalanceWebhookSetting } from "./balanceWebhookSetting"; -import { BalanceWebhookSettingInfo } from "./balanceWebhookSettingInfo"; -import { BalanceWebhookSettingInfoUpdate } from "./balanceWebhookSettingInfoUpdate"; -import { BankAccount } from "./bankAccount"; -import { BankAccountAccountIdentificationClass } from "./bankAccountAccountIdentification"; -import { BankAccountDetails } from "./bankAccountDetails"; -import { BankAccountIdentificationTypeRequirement } from "./bankAccountIdentificationTypeRequirement"; -import { BankAccountIdentificationValidationRequest } from "./bankAccountIdentificationValidationRequest"; -import { BankAccountIdentificationValidationRequestAccountIdentificationClass } from "./bankAccountIdentificationValidationRequestAccountIdentification"; -import { BankAccountModel } from "./bankAccountModel"; -import { BankIdentification } from "./bankIdentification"; -import { BrandVariantsRestriction } from "./brandVariantsRestriction"; -import { BulkAddress } from "./bulkAddress"; -import { CALocalAccountIdentification } from "./cALocalAccountIdentification"; -import { CZLocalAccountIdentification } from "./cZLocalAccountIdentification"; -import { CapabilityProblem } from "./capabilityProblem"; -import { CapabilityProblemEntity } from "./capabilityProblemEntity"; -import { CapabilityProblemEntityRecursive } from "./capabilityProblemEntityRecursive"; -import { CapabilitySettings } from "./capabilitySettings"; -import { CapitalBalance } from "./capitalBalance"; -import { CapitalGrantAccount } from "./capitalGrantAccount"; -import { Card } from "./card"; -import { CardConfiguration } from "./cardConfiguration"; -import { CardInfo } from "./cardInfo"; -import { CardOrder } from "./cardOrder"; -import { CardOrderItem } from "./cardOrderItem"; -import { CardOrderItemDeliveryStatus } from "./cardOrderItemDeliveryStatus"; -import { Condition } from "./condition"; -import { ContactDetails } from "./contactDetails"; -import { Counterparty } from "./counterparty"; -import { CounterpartyBankRestriction } from "./counterpartyBankRestriction"; -import { CounterpartyTypesRestriction } from "./counterpartyTypesRestriction"; -import { CountriesRestriction } from "./countriesRestriction"; -import { CreateSweepConfigurationV2 } from "./createSweepConfigurationV2"; -import { DKLocalAccountIdentification } from "./dKLocalAccountIdentification"; -import { DayOfWeekRestriction } from "./dayOfWeekRestriction"; -import { DefaultErrorResponseEntity } from "./defaultErrorResponseEntity"; -import { DelegatedAuthenticationData } from "./delegatedAuthenticationData"; -import { DeliveryAddress } from "./deliveryAddress"; -import { DeliveryContact } from "./deliveryContact"; -import { Device } from "./device"; -import { DeviceInfo } from "./deviceInfo"; -import { DifferentCurrenciesRestriction } from "./differentCurrenciesRestriction"; -import { Duration } from "./duration"; -import { EntryModesRestriction } from "./entryModesRestriction"; -import { Expiry } from "./expiry"; -import { Fee } from "./fee"; -import { GetNetworkTokenResponse } from "./getNetworkTokenResponse"; -import { GetTaxFormResponse } from "./getTaxFormResponse"; -import { GrantLimit } from "./grantLimit"; -import { GrantOffer } from "./grantOffer"; -import { GrantOffers } from "./grantOffers"; -import { HKLocalAccountIdentification } from "./hKLocalAccountIdentification"; -import { HULocalAccountIdentification } from "./hULocalAccountIdentification"; -import { Href } from "./href"; -import { IbanAccountIdentification } from "./ibanAccountIdentification"; -import { IbanAccountIdentificationRequirement } from "./ibanAccountIdentificationRequirement"; -import { InternationalTransactionRestriction } from "./internationalTransactionRestriction"; -import { InvalidField } from "./invalidField"; -import { Link } from "./link"; -import { ListNetworkTokensResponse } from "./listNetworkTokensResponse"; -import { MatchingTransactionsRestriction } from "./matchingTransactionsRestriction"; -import { MatchingValuesRestriction } from "./matchingValuesRestriction"; -import { MccsRestriction } from "./mccsRestriction"; -import { MerchantAcquirerPair } from "./merchantAcquirerPair"; -import { MerchantNamesRestriction } from "./merchantNamesRestriction"; -import { MerchantsRestriction } from "./merchantsRestriction"; -import { NOLocalAccountIdentification } from "./nOLocalAccountIdentification"; -import { NZLocalAccountIdentification } from "./nZLocalAccountIdentification"; -import { Name } from "./name"; -import { NetworkToken } from "./networkToken"; -import { NumberAndBicAccountIdentification } from "./numberAndBicAccountIdentification"; -import { PLLocalAccountIdentification } from "./pLLocalAccountIdentification"; -import { PaginatedAccountHoldersResponse } from "./paginatedAccountHoldersResponse"; -import { PaginatedBalanceAccountsResponse } from "./paginatedBalanceAccountsResponse"; -import { PaginatedGetCardOrderItemResponse } from "./paginatedGetCardOrderItemResponse"; -import { PaginatedGetCardOrderResponse } from "./paginatedGetCardOrderResponse"; -import { PaginatedPaymentInstrumentsResponse } from "./paginatedPaymentInstrumentsResponse"; -import { PaymentInstrument } from "./paymentInstrument"; -import { PaymentInstrumentAdditionalBankAccountIdentificationsInnerClass } from "./paymentInstrumentAdditionalBankAccountIdentificationsInner"; -import { PaymentInstrumentGroup } from "./paymentInstrumentGroup"; -import { PaymentInstrumentGroupInfo } from "./paymentInstrumentGroupInfo"; -import { PaymentInstrumentInfo } from "./paymentInstrumentInfo"; -import { PaymentInstrumentRequirement } from "./paymentInstrumentRequirement"; -import { PaymentInstrumentRevealInfo } from "./paymentInstrumentRevealInfo"; -import { PaymentInstrumentRevealRequest } from "./paymentInstrumentRevealRequest"; -import { PaymentInstrumentRevealResponse } from "./paymentInstrumentRevealResponse"; -import { PaymentInstrumentUpdateRequest } from "./paymentInstrumentUpdateRequest"; -import { Phone } from "./phone"; -import { PhoneNumber } from "./phoneNumber"; -import { PinChangeRequest } from "./pinChangeRequest"; -import { PinChangeResponse } from "./pinChangeResponse"; -import { PlatformPaymentConfiguration } from "./platformPaymentConfiguration"; -import { ProcessingTypesRestriction } from "./processingTypesRestriction"; -import { PublicKeyResponse } from "./publicKeyResponse"; -import { RegisterSCAFinalResponse } from "./registerSCAFinalResponse"; -import { RegisterSCARequest } from "./registerSCARequest"; -import { RegisterSCAResponse } from "./registerSCAResponse"; -import { RemediatingAction } from "./remediatingAction"; -import { Repayment } from "./repayment"; -import { RepaymentTerm } from "./repaymentTerm"; -import { RestServiceError } from "./restServiceError"; -import { RevealPinRequest } from "./revealPinRequest"; -import { RevealPinResponse } from "./revealPinResponse"; -import { RiskScores } from "./riskScores"; -import { RiskScoresRestriction } from "./riskScoresRestriction"; -import { SELocalAccountIdentification } from "./sELocalAccountIdentification"; -import { SGLocalAccountIdentification } from "./sGLocalAccountIdentification"; -import { SameAmountRestriction } from "./sameAmountRestriction"; -import { SameCounterpartyRestriction } from "./sameCounterpartyRestriction"; -import { SearchRegisteredDevicesResponse } from "./searchRegisteredDevicesResponse"; -import { SettingType } from "./settingType"; -import { SourceAccountTypesRestriction } from "./sourceAccountTypesRestriction"; -import { StringMatch } from "./stringMatch"; -import { SweepConfigurationV2 } from "./sweepConfigurationV2"; -import { SweepCounterparty } from "./sweepCounterparty"; -import { SweepSchedule } from "./sweepSchedule"; -import { Target } from "./target"; -import { TargetUpdate } from "./targetUpdate"; -import { ThresholdRepayment } from "./thresholdRepayment"; -import { TimeOfDay } from "./timeOfDay"; -import { TimeOfDayRestriction } from "./timeOfDayRestriction"; -import { TokenRequestorsRestriction } from "./tokenRequestorsRestriction"; -import { TotalAmountRestriction } from "./totalAmountRestriction"; -import { TransactionRule } from "./transactionRule"; -import { TransactionRuleEntityKey } from "./transactionRuleEntityKey"; -import { TransactionRuleInfo } from "./transactionRuleInfo"; -import { TransactionRuleInterval } from "./transactionRuleInterval"; -import { TransactionRuleResponse } from "./transactionRuleResponse"; -import { TransactionRuleRestrictions } from "./transactionRuleRestrictions"; -import { TransactionRulesResponse } from "./transactionRulesResponse"; -import { TransferRoute } from "./transferRoute"; -import { TransferRouteRequest } from "./transferRouteRequest"; -import { TransferRouteRequirementsInnerClass } from "./transferRouteRequirementsInner"; -import { TransferRouteResponse } from "./transferRouteResponse"; -import { UKLocalAccountIdentification } from "./uKLocalAccountIdentification"; -import { USInstantPayoutAddressRequirement } from "./uSInstantPayoutAddressRequirement"; -import { USInternationalAchAddressRequirement } from "./uSInternationalAchAddressRequirement"; -import { USLocalAccountIdentification } from "./uSLocalAccountIdentification"; -import { UpdateNetworkTokenRequest } from "./updateNetworkTokenRequest"; -import { UpdatePaymentInstrument } from "./updatePaymentInstrument"; -import { UpdateSweepConfigurationV2 } from "./updateSweepConfigurationV2"; -import { VerificationDeadline } from "./verificationDeadline"; -import { VerificationError } from "./verificationError"; -import { VerificationErrorRecursive } from "./verificationErrorRecursive"; -import { WalletProviderAccountScoreRestriction } from "./walletProviderAccountScoreRestriction"; -import { WalletProviderDeviceScore } from "./walletProviderDeviceScore"; -import { WebhookSetting } from "./webhookSetting"; -import { WebhookSettings } from "./webhookSettings"; - -/* tslint:disable:no-unused-variable */ -let primitives = [ - "string", - "boolean", - "double", - "integer", - "long", - "float", - "number", - "any" - ]; - -let enumsMap: Set = new Set([ - "AULocalAccountIdentification.TypeEnum", - "AccountHolder.StatusEnum", - "AccountHolderCapability.AllowedLevelEnum", - "AccountHolderCapability.RequestedLevelEnum", - "AccountHolderCapability.VerificationStatusEnum", - "AccountHolderUpdateRequest.StatusEnum", - "AccountSupportingEntityCapability.AllowedLevelEnum", - "AccountSupportingEntityCapability.RequestedLevelEnum", - "AccountSupportingEntityCapability.VerificationStatusEnum", - "AdditionalBankIdentification.TypeEnum", - "AddressRequirement.RequiredAddressFieldsEnum", - "AddressRequirement.TypeEnum", - "AmountMinMaxRequirement.TypeEnum", - "AmountNonZeroDecimalsRequirement.TypeEnum", - "AssociationFinaliseRequest.TypeEnum", - "AssociationFinaliseResponse.TypeEnum", - "AssociationInitiateRequest.TypeEnum", - "BRLocalAccountIdentification.TypeEnum", - "BalanceAccount.StatusEnum", - "BalanceAccountBase.StatusEnum", - "BalanceAccountUpdateRequest.StatusEnum", - "BalanceWebhookSettingInfo.StatusEnum", - "BalanceWebhookSettingInfo.TypeEnum", - "BalanceWebhookSettingInfoUpdate.StatusEnum", - "BalanceWebhookSettingInfoUpdate.TypeEnum", - "BankAccountAccountIdentification.TypeEnum", - "BankAccountAccountIdentification.AccountTypeEnum", - "BankAccountIdentificationTypeRequirement.BankAccountIdentificationTypesEnum", - "BankAccountIdentificationTypeRequirement.TypeEnum", - "BankAccountIdentificationValidationRequestAccountIdentification.TypeEnum", - "BankAccountIdentificationValidationRequestAccountIdentification.AccountTypeEnum", - "BankAccountModel.FormFactorEnum", - "BankIdentification.IdentificationTypeEnum", - "CALocalAccountIdentification.AccountTypeEnum", - "CALocalAccountIdentification.TypeEnum", - "CZLocalAccountIdentification.TypeEnum", - "CapabilityProblemEntity.TypeEnum", - "CapabilityProblemEntityRecursive.TypeEnum", - "CapabilitySettings.FundingSourceEnum", - "CapabilitySettings.IntervalEnum", - "Card.FormFactorEnum", - "CardInfo.FormFactorEnum", - "CardOrder.StatusEnum", - "CardOrderItemDeliveryStatus.StatusEnum", - "Condition.BalanceTypeEnum", - "Condition.ConditionTypeEnum", - "CounterpartyTypesRestriction.ValueEnum", - "CreateSweepConfigurationV2.CategoryEnum", - "CreateSweepConfigurationV2.PrioritiesEnum", - "CreateSweepConfigurationV2.ReasonEnum", - "CreateSweepConfigurationV2.StatusEnum", - "CreateSweepConfigurationV2.TypeEnum", - "DKLocalAccountIdentification.TypeEnum", - "DayOfWeekRestriction.ValueEnum", - "Device.TypeEnum", - "Duration.UnitEnum", - "EntryModesRestriction.ValueEnum", - "GetTaxFormResponse.ContentTypeEnum", - "GrantOffer.ContractTypeEnum", - "HKLocalAccountIdentification.TypeEnum", - "HULocalAccountIdentification.TypeEnum", - "IbanAccountIdentification.TypeEnum", - "IbanAccountIdentificationRequirement.TypeEnum", - "MatchingValuesRestriction.ValueEnum", - "NOLocalAccountIdentification.TypeEnum", - "NZLocalAccountIdentification.TypeEnum", - "NetworkToken.StatusEnum", - "NumberAndBicAccountIdentification.TypeEnum", - "PLLocalAccountIdentification.TypeEnum", - "PaymentInstrument.StatusEnum", - "PaymentInstrument.StatusReasonEnum", - "PaymentInstrument.TypeEnum", - "PaymentInstrumentAdditionalBankAccountIdentificationsInner.TypeEnum", - "PaymentInstrumentInfo.StatusEnum", - "PaymentInstrumentInfo.StatusReasonEnum", - "PaymentInstrumentInfo.TypeEnum", - "PaymentInstrumentRequirement.PaymentInstrumentTypeEnum", - "PaymentInstrumentRequirement.TypeEnum", - "PaymentInstrumentUpdateRequest.StatusEnum", - "PaymentInstrumentUpdateRequest.StatusReasonEnum", - "Phone.TypeEnum", - "PhoneNumber.PhoneTypeEnum", - "PinChangeResponse.StatusEnum", - "ProcessingTypesRestriction.ValueEnum", - "SELocalAccountIdentification.TypeEnum", - "SGLocalAccountIdentification.TypeEnum", - SettingType.Balance, - "SourceAccountTypesRestriction.ValueEnum", - "StringMatch.OperationEnum", - "SweepConfigurationV2.CategoryEnum", - "SweepConfigurationV2.PrioritiesEnum", - "SweepConfigurationV2.ReasonEnum", - "SweepConfigurationV2.StatusEnum", - "SweepConfigurationV2.TypeEnum", - "SweepSchedule.TypeEnum", - "Target.TypeEnum", - "TargetUpdate.TypeEnum", - "TransactionRule.OutcomeTypeEnum", - "TransactionRule.RequestTypeEnum", - "TransactionRule.StatusEnum", - "TransactionRule.TypeEnum", - "TransactionRuleInfo.OutcomeTypeEnum", - "TransactionRuleInfo.RequestTypeEnum", - "TransactionRuleInfo.StatusEnum", - "TransactionRuleInfo.TypeEnum", - "TransactionRuleInterval.DayOfWeekEnum", - "TransactionRuleInterval.TypeEnum", - "TransferRoute.CategoryEnum", - "TransferRoute.PriorityEnum", - "TransferRouteRequest.CategoryEnum", - "TransferRouteRequest.PrioritiesEnum", - "TransferRouteRequirementsInner.RequiredAddressFieldsEnum", - "TransferRouteRequirementsInner.TypeEnum", - "TransferRouteRequirementsInner.BankAccountIdentificationTypesEnum", - "TransferRouteRequirementsInner.PaymentInstrumentTypeEnum", - "UKLocalAccountIdentification.TypeEnum", - "USInstantPayoutAddressRequirement.TypeEnum", - "USInternationalAchAddressRequirement.TypeEnum", - "USLocalAccountIdentification.AccountTypeEnum", - "USLocalAccountIdentification.TypeEnum", - "UpdateNetworkTokenRequest.StatusEnum", - "UpdatePaymentInstrument.StatusEnum", - "UpdatePaymentInstrument.StatusReasonEnum", - "UpdatePaymentInstrument.TypeEnum", - "UpdateSweepConfigurationV2.CategoryEnum", - "UpdateSweepConfigurationV2.PrioritiesEnum", - "UpdateSweepConfigurationV2.ReasonEnum", - "UpdateSweepConfigurationV2.StatusEnum", - "UpdateSweepConfigurationV2.TypeEnum", - "VerificationDeadline.CapabilitiesEnum", - "VerificationError.CapabilitiesEnum", - "VerificationError.TypeEnum", - "VerificationErrorRecursive.CapabilitiesEnum", - "VerificationErrorRecursive.TypeEnum", -]); - -let typeMap: {[index: string]: any} = { - "AULocalAccountIdentification": AULocalAccountIdentification, - "AccountHolder": AccountHolder, - "AccountHolderCapability": AccountHolderCapability, - "AccountHolderInfo": AccountHolderInfo, - "AccountHolderUpdateRequest": AccountHolderUpdateRequest, - "AccountSupportingEntityCapability": AccountSupportingEntityCapability, - "ActiveNetworkTokensRestriction": ActiveNetworkTokensRestriction, - "AdditionalBankIdentification": AdditionalBankIdentification, - "Address": Address, - "AddressRequirement": AddressRequirement, - "Amount": Amount, - "AmountMinMaxRequirement": AmountMinMaxRequirement, - "AmountNonZeroDecimalsRequirement": AmountNonZeroDecimalsRequirement, - "AssociationDelegatedAuthenticationData": AssociationDelegatedAuthenticationData, - "AssociationFinaliseRequest": AssociationFinaliseRequest, - "AssociationFinaliseResponse": AssociationFinaliseResponse, - "AssociationInitiateRequest": AssociationInitiateRequest, - "AssociationInitiateResponse": AssociationInitiateResponse, - "Authentication": Authentication, - "BRLocalAccountIdentification": BRLocalAccountIdentification, - "Balance": Balance, - "BalanceAccount": BalanceAccount, - "BalanceAccountBase": BalanceAccountBase, - "BalanceAccountInfo": BalanceAccountInfo, - "BalanceAccountUpdateRequest": BalanceAccountUpdateRequest, - "BalancePlatform": BalancePlatform, - "BalanceSweepConfigurationsResponse": BalanceSweepConfigurationsResponse, - "BalanceWebhookSetting": BalanceWebhookSetting, - "BalanceWebhookSettingInfo": BalanceWebhookSettingInfo, - "BalanceWebhookSettingInfoUpdate": BalanceWebhookSettingInfoUpdate, - "BankAccount": BankAccount, - "BankAccountAccountIdentification": BankAccountAccountIdentificationClass, - "BankAccountDetails": BankAccountDetails, - "BankAccountIdentificationTypeRequirement": BankAccountIdentificationTypeRequirement, - "BankAccountIdentificationValidationRequest": BankAccountIdentificationValidationRequest, - "BankAccountIdentificationValidationRequestAccountIdentification": BankAccountIdentificationValidationRequestAccountIdentificationClass, - "BankAccountModel": BankAccountModel, - "BankIdentification": BankIdentification, - "BrandVariantsRestriction": BrandVariantsRestriction, - "BulkAddress": BulkAddress, - "CALocalAccountIdentification": CALocalAccountIdentification, - "CZLocalAccountIdentification": CZLocalAccountIdentification, - "CapabilityProblem": CapabilityProblem, - "CapabilityProblemEntity": CapabilityProblemEntity, - "CapabilityProblemEntityRecursive": CapabilityProblemEntityRecursive, - "CapabilitySettings": CapabilitySettings, - "CapitalBalance": CapitalBalance, - "CapitalGrantAccount": CapitalGrantAccount, - "Card": Card, - "CardConfiguration": CardConfiguration, - "CardInfo": CardInfo, - "CardOrder": CardOrder, - "CardOrderItem": CardOrderItem, - "CardOrderItemDeliveryStatus": CardOrderItemDeliveryStatus, - "Condition": Condition, - "ContactDetails": ContactDetails, - "Counterparty": Counterparty, - "CounterpartyBankRestriction": CounterpartyBankRestriction, - "CounterpartyTypesRestriction": CounterpartyTypesRestriction, - "CountriesRestriction": CountriesRestriction, - "CreateSweepConfigurationV2": CreateSweepConfigurationV2, - "DKLocalAccountIdentification": DKLocalAccountIdentification, - "DayOfWeekRestriction": DayOfWeekRestriction, - "DefaultErrorResponseEntity": DefaultErrorResponseEntity, - "DelegatedAuthenticationData": DelegatedAuthenticationData, - "DeliveryAddress": DeliveryAddress, - "DeliveryContact": DeliveryContact, - "Device": Device, - "DeviceInfo": DeviceInfo, - "DifferentCurrenciesRestriction": DifferentCurrenciesRestriction, - "Duration": Duration, - "EntryModesRestriction": EntryModesRestriction, - "Expiry": Expiry, - "Fee": Fee, - "GetNetworkTokenResponse": GetNetworkTokenResponse, - "GetTaxFormResponse": GetTaxFormResponse, - "GrantLimit": GrantLimit, - "GrantOffer": GrantOffer, - "GrantOffers": GrantOffers, - "HKLocalAccountIdentification": HKLocalAccountIdentification, - "HULocalAccountIdentification": HULocalAccountIdentification, - "Href": Href, - "IbanAccountIdentification": IbanAccountIdentification, - "IbanAccountIdentificationRequirement": IbanAccountIdentificationRequirement, - "InternationalTransactionRestriction": InternationalTransactionRestriction, - "InvalidField": InvalidField, - "Link": Link, - "ListNetworkTokensResponse": ListNetworkTokensResponse, - "MatchingTransactionsRestriction": MatchingTransactionsRestriction, - "MatchingValuesRestriction": MatchingValuesRestriction, - "MccsRestriction": MccsRestriction, - "MerchantAcquirerPair": MerchantAcquirerPair, - "MerchantNamesRestriction": MerchantNamesRestriction, - "MerchantsRestriction": MerchantsRestriction, - "NOLocalAccountIdentification": NOLocalAccountIdentification, - "NZLocalAccountIdentification": NZLocalAccountIdentification, - "Name": Name, - "NetworkToken": NetworkToken, - "NumberAndBicAccountIdentification": NumberAndBicAccountIdentification, - "PLLocalAccountIdentification": PLLocalAccountIdentification, - "PaginatedAccountHoldersResponse": PaginatedAccountHoldersResponse, - "PaginatedBalanceAccountsResponse": PaginatedBalanceAccountsResponse, - "PaginatedGetCardOrderItemResponse": PaginatedGetCardOrderItemResponse, - "PaginatedGetCardOrderResponse": PaginatedGetCardOrderResponse, - "PaginatedPaymentInstrumentsResponse": PaginatedPaymentInstrumentsResponse, - "PaymentInstrument": PaymentInstrument, - "PaymentInstrumentAdditionalBankAccountIdentificationsInner": PaymentInstrumentAdditionalBankAccountIdentificationsInnerClass, - "PaymentInstrumentGroup": PaymentInstrumentGroup, - "PaymentInstrumentGroupInfo": PaymentInstrumentGroupInfo, - "PaymentInstrumentInfo": PaymentInstrumentInfo, - "PaymentInstrumentRequirement": PaymentInstrumentRequirement, - "PaymentInstrumentRevealInfo": PaymentInstrumentRevealInfo, - "PaymentInstrumentRevealRequest": PaymentInstrumentRevealRequest, - "PaymentInstrumentRevealResponse": PaymentInstrumentRevealResponse, - "PaymentInstrumentUpdateRequest": PaymentInstrumentUpdateRequest, - "Phone": Phone, - "PhoneNumber": PhoneNumber, - "PinChangeRequest": PinChangeRequest, - "PinChangeResponse": PinChangeResponse, - "PlatformPaymentConfiguration": PlatformPaymentConfiguration, - "ProcessingTypesRestriction": ProcessingTypesRestriction, - "PublicKeyResponse": PublicKeyResponse, - "RegisterSCAFinalResponse": RegisterSCAFinalResponse, - "RegisterSCARequest": RegisterSCARequest, - "RegisterSCAResponse": RegisterSCAResponse, - "RemediatingAction": RemediatingAction, - "Repayment": Repayment, - "RepaymentTerm": RepaymentTerm, - "RestServiceError": RestServiceError, - "RevealPinRequest": RevealPinRequest, - "RevealPinResponse": RevealPinResponse, - "RiskScores": RiskScores, - "RiskScoresRestriction": RiskScoresRestriction, - "SELocalAccountIdentification": SELocalAccountIdentification, - "SGLocalAccountIdentification": SGLocalAccountIdentification, - "SameAmountRestriction": SameAmountRestriction, - "SameCounterpartyRestriction": SameCounterpartyRestriction, - "SearchRegisteredDevicesResponse": SearchRegisteredDevicesResponse, - "SourceAccountTypesRestriction": SourceAccountTypesRestriction, - "StringMatch": StringMatch, - "SweepConfigurationV2": SweepConfigurationV2, - "SweepCounterparty": SweepCounterparty, - "SweepSchedule": SweepSchedule, - "Target": Target, - "TargetUpdate": TargetUpdate, - "ThresholdRepayment": ThresholdRepayment, - "TimeOfDay": TimeOfDay, - "TimeOfDayRestriction": TimeOfDayRestriction, - "TokenRequestorsRestriction": TokenRequestorsRestriction, - "TotalAmountRestriction": TotalAmountRestriction, - "TransactionRule": TransactionRule, - "TransactionRuleEntityKey": TransactionRuleEntityKey, - "TransactionRuleInfo": TransactionRuleInfo, - "TransactionRuleInterval": TransactionRuleInterval, - "TransactionRuleResponse": TransactionRuleResponse, - "TransactionRuleRestrictions": TransactionRuleRestrictions, - "TransactionRulesResponse": TransactionRulesResponse, - "TransferRoute": TransferRoute, - "TransferRouteRequest": TransferRouteRequest, - "TransferRouteRequirementsInner": TransferRouteRequirementsInnerClass, - "TransferRouteResponse": TransferRouteResponse, - "UKLocalAccountIdentification": UKLocalAccountIdentification, - "USInstantPayoutAddressRequirement": USInstantPayoutAddressRequirement, - "USInternationalAchAddressRequirement": USInternationalAchAddressRequirement, - "USLocalAccountIdentification": USLocalAccountIdentification, - "UpdateNetworkTokenRequest": UpdateNetworkTokenRequest, - "UpdatePaymentInstrument": UpdatePaymentInstrument, - "UpdateSweepConfigurationV2": UpdateSweepConfigurationV2, - "VerificationDeadline": VerificationDeadline, - "VerificationError": VerificationError, - "VerificationErrorRecursive": VerificationErrorRecursive, - "WalletProviderAccountScoreRestriction": WalletProviderAccountScoreRestriction, - "WalletProviderDeviceScore": WalletProviderDeviceScore, - "WebhookSetting": WebhookSetting, - "WebhookSettings": WebhookSettings, -} - -type MimeTypeDescriptor = { - type: string; - subtype: string; - subtypeTokens: string[]; -}; - -/** - * Every mime-type consists of a type, subtype, and optional parameters. - * The subtype can be composite, including information about the content format. - * For example: `application/json-patch+json`, `application/merge-patch+json`. - * - * This helper transforms a string mime-type into an internal representation. - * This simplifies the implementation of predicates that in turn define common rules for parsing or stringifying - * the payload. - */ -const parseMimeType = (mimeType: string): MimeTypeDescriptor => { - const [type = '', subtype = ''] = mimeType.split('/'); - return { - type, - subtype, - subtypeTokens: subtype.split('+'), - }; -}; - -type MimeTypePredicate = (mimeType: string) => boolean; - -// This factory creates a predicate function that checks a string mime-type against defined rules. -const mimeTypePredicateFactory = (predicate: (descriptor: MimeTypeDescriptor) => boolean): MimeTypePredicate => (mimeType) => predicate(parseMimeType(mimeType)); - -// Use this factory when you need to define a simple predicate based only on type and, if applicable, subtype. -const mimeTypeSimplePredicateFactory = (type: string, subtype?: string): MimeTypePredicate => mimeTypePredicateFactory((descriptor) => { - if (descriptor.type !== type) return false; - if (subtype != null && descriptor.subtype !== subtype) return false; - return true; -}); - -// Creating a set of named predicates that will help us determine how to handle different mime-types -const isTextLikeMimeType = mimeTypeSimplePredicateFactory('text'); -const isJsonMimeType = mimeTypeSimplePredicateFactory('application', 'json'); -const isJsonLikeMimeType = mimeTypePredicateFactory((descriptor) => descriptor.type === 'application' && descriptor.subtypeTokens.some((item) => item === 'json')); -const isOctetStreamMimeType = mimeTypeSimplePredicateFactory('application', 'octet-stream'); -const isFormUrlencodedMimeType = mimeTypeSimplePredicateFactory('application', 'x-www-form-urlencoded'); - -// Defining a list of mime-types in the order of prioritization for handling. -const supportedMimeTypePredicatesWithPriority: MimeTypePredicate[] = [ - isJsonMimeType, - isJsonLikeMimeType, - isTextLikeMimeType, - isOctetStreamMimeType, - isFormUrlencodedMimeType, -]; - -const nullableSuffix = " | null"; -const optionalSuffix = " | undefined"; -const arrayPrefix = "Array<"; -const arraySuffix = ">"; -const mapPrefix = "{ [key: string]: "; -const mapSuffix = "; }"; - -export class ObjectSerializer { - public static findCorrectType(data: any, expectedType: string) { - if (data == undefined) { - return expectedType; - } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { - return expectedType; - } else if (expectedType === "Date") { - return expectedType; - } else { - if (enumsMap.has(expectedType)) { - return expectedType; - } - - if (!typeMap[expectedType]) { - return expectedType; // w/e we don't know the type - } - - // Check the discriminator - let discriminatorProperty = typeMap[expectedType].discriminator; - if (discriminatorProperty == null) { - return expectedType; // the type does not have a discriminator. use it. - } else { - if (data[discriminatorProperty]) { - var discriminatorType = data[discriminatorProperty]; - let mapping = typeMap[expectedType].mapping; - if (mapping != undefined && mapping[discriminatorType]) { - return mapping[discriminatorType]; // use the type given in the discriminator - } else if(typeMap[discriminatorType]) { - return discriminatorType; - } else { - return expectedType; // discriminator did not map to a type - } - } else { - return expectedType; // discriminator was not present (or an empty string) - } - } - } - } - - /** - * Serializes a value into a plain JSON-compatible object based on its type. - * - * Supports primitives, arrays, maps, dates, enums, and classes defined in `typeMap`. - * Falls back to raw data if type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The value to serialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A JSON-compatible representation of `data`. - */ - public static serialize(data: any, type: string, format: string = ""): any { - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.serialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.serialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - if (format == "date") { - let month = data.getMonth()+1 - month = month < 10 ? "0" + month.toString() : month.toString() - let day = data.getDate(); - day = day < 10 ? "0" + day.toString() : day.toString(); - - return data.getFullYear() + "-" + month + "-" + day; - } else { - return data.toISOString(); - } - } else { - if (enumsMap.has(type)) { - return data; - } - if (!typeMap[type]) { // in case we dont know the type - return data; - } - - // Get the actual type of this object - type = this.findCorrectType(data, type); - - const clazz = typeMap[type]; - - // Safe check for getAttributeTypeMap - if (typeof clazz.getAttributeTypeMap !== "function") { - return { ...data }; // fallback: shallow copy - } - - // get the map for the correct type. - let attributeTypes = typeMap[type].getAttributeTypeMap(); - let instance: {[index: string]: any} = {}; - for (let attributeType of attributeTypes) { - instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format); - } - return instance; - } - } - - /** - * Deserializes a plain JSON-compatible object into a typed instance. - * - * Handles primitives, arrays, maps, dates, enums, and known classes from `typeMap`. - * Uses discriminators when available to resolve polymorphic types. - * Falls back to raw data if the type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The raw input to deserialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A deserialized instance or value of `data`. - */ - public static deserialize(data: any, type: string, format: string = ""): any { - // polymorphism may change the actual type. - type = ObjectSerializer.findCorrectType(data, type); - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.deserialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.deserialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - return new Date(data); - } else { - if (enumsMap.has(type)) {// is Enum - return data; - } - - if (!typeMap[type]) { // dont know the type - return data; - } - let instance = new typeMap[type](); - - // Safe check for getAttributeTypeMap - if (typeof typeMap[type].getAttributeTypeMap !== "function") { - Object.assign(instance, data); // fallback: shallow copy - return instance; - } - - let attributeTypes = typeMap[type].getAttributeTypeMap(); - for (let attributeType of attributeTypes) { - let value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format); - if (value !== undefined) { - instance[attributeType.name] = value; - } - } - return instance; - } - } - - - /** - * Normalize media type - * - * We currently do not handle any media types attributes, i.e. anything - * after a semicolon. All content is assumed to be UTF-8 compatible. - */ - public static normalizeMediaType(mediaType: string | undefined): string | undefined { - if (mediaType === undefined) { - return undefined; - } - return (mediaType.split(";")[0] ?? '').trim().toLowerCase(); - } - - /** - * From a list of possible media types, choose the one we can handle best. - * - * The order of the given media types does not have any impact on the choice - * made. - */ - public static getPreferredMediaType(mediaTypes: Array): string { - /** According to OAS 3 we should default to json */ - if (mediaTypes.length === 0) { - return "application/json"; - } - - const normalMediaTypes = mediaTypes.map(ObjectSerializer.normalizeMediaType); - - for (const predicate of supportedMimeTypePredicatesWithPriority) { - for (const mediaType of normalMediaTypes) { - if (mediaType != null && predicate(mediaType)) { - return mediaType; - } - } - } - - throw new Error("None of the given media types are supported: " + mediaTypes.join(", ")); - } - - /** - * Convert data to a string according the given media type - */ - public static stringify(data: any, mediaType: string): string { - if (isTextLikeMimeType(mediaType)) { - return String(data); - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.stringify(data); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify."); - } - - /** - * Parse data from a string according to the given media type - */ - public static parse(rawData: string, mediaType: string | undefined) { - if (mediaType === undefined) { - throw new Error("Cannot parse content. No Content-Type defined."); - } - - if (isTextLikeMimeType(mediaType)) { - return rawData; - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.parse(rawData); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse."); - } -} diff --git a/src/typings/balancePlatform/pLLocalAccountIdentification.ts b/src/typings/balancePlatform/pLLocalAccountIdentification.ts index 020c5ec4e..a1e5d16f5 100644 --- a/src/typings/balancePlatform/pLLocalAccountIdentification.ts +++ b/src/typings/balancePlatform/pLLocalAccountIdentification.ts @@ -12,36 +12,29 @@ export class PLLocalAccountIdentification { /** * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * **plLocal** */ - "type": PLLocalAccountIdentification.TypeEnum; + 'type': PLLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "PLLocalAccountIdentification.TypeEnum", - "format": "" + "type": "PLLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return PLLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace PLLocalAccountIdentification { diff --git a/src/typings/balancePlatform/paginatedAccountHoldersResponse.ts b/src/typings/balancePlatform/paginatedAccountHoldersResponse.ts index fb469ee39..38038ba1f 100644 --- a/src/typings/balancePlatform/paginatedAccountHoldersResponse.ts +++ b/src/typings/balancePlatform/paginatedAccountHoldersResponse.ts @@ -7,52 +7,43 @@ * Do not edit this class manually. */ -import { AccountHolder } from "./accountHolder"; - +import { AccountHolder } from './accountHolder'; export class PaginatedAccountHoldersResponse { /** * List of account holders. */ - "accountHolders": Array; + 'accountHolders': Array; /** * Indicates whether there are more items on the next page. */ - "hasNext": boolean; + 'hasNext': boolean; /** * Indicates whether there are more items on the previous page. */ - "hasPrevious": boolean; - - static readonly discriminator: string | undefined = undefined; + 'hasPrevious': boolean; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountHolders", "baseName": "accountHolders", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "hasNext", "baseName": "hasNext", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "hasPrevious", "baseName": "hasPrevious", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return PaginatedAccountHoldersResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/paginatedBalanceAccountsResponse.ts b/src/typings/balancePlatform/paginatedBalanceAccountsResponse.ts index 6ab062530..13affffba 100644 --- a/src/typings/balancePlatform/paginatedBalanceAccountsResponse.ts +++ b/src/typings/balancePlatform/paginatedBalanceAccountsResponse.ts @@ -7,52 +7,43 @@ * Do not edit this class manually. */ -import { BalanceAccountBase } from "./balanceAccountBase"; - +import { BalanceAccountBase } from './balanceAccountBase'; export class PaginatedBalanceAccountsResponse { /** * List of balance accounts. */ - "balanceAccounts": Array; + 'balanceAccounts': Array; /** * Indicates whether there are more items on the next page. */ - "hasNext": boolean; + 'hasNext': boolean; /** * Indicates whether there are more items on the previous page. */ - "hasPrevious": boolean; - - static readonly discriminator: string | undefined = undefined; + 'hasPrevious': boolean; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balanceAccounts", "baseName": "balanceAccounts", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "hasNext", "baseName": "hasNext", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "hasPrevious", "baseName": "hasPrevious", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return PaginatedBalanceAccountsResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/paginatedGetCardOrderItemResponse.ts b/src/typings/balancePlatform/paginatedGetCardOrderItemResponse.ts index a69fb35e8..41bada5ae 100644 --- a/src/typings/balancePlatform/paginatedGetCardOrderItemResponse.ts +++ b/src/typings/balancePlatform/paginatedGetCardOrderItemResponse.ts @@ -7,52 +7,43 @@ * Do not edit this class manually. */ -import { CardOrderItem } from "./cardOrderItem"; - +import { CardOrderItem } from './cardOrderItem'; export class PaginatedGetCardOrderItemResponse { /** * List of card order items in the card order batch. */ - "data": Array; + 'data': Array; /** * Indicates whether there are more items on the next page. */ - "hasNext": boolean; + 'hasNext': boolean; /** * Indicates whether there are more items on the previous page. */ - "hasPrevious": boolean; - - static readonly discriminator: string | undefined = undefined; + 'hasPrevious': boolean; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "hasNext", "baseName": "hasNext", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "hasPrevious", "baseName": "hasPrevious", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return PaginatedGetCardOrderItemResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/paginatedGetCardOrderResponse.ts b/src/typings/balancePlatform/paginatedGetCardOrderResponse.ts index 2d9b6cef2..efeadf11a 100644 --- a/src/typings/balancePlatform/paginatedGetCardOrderResponse.ts +++ b/src/typings/balancePlatform/paginatedGetCardOrderResponse.ts @@ -7,52 +7,43 @@ * Do not edit this class manually. */ -import { CardOrder } from "./cardOrder"; - +import { CardOrder } from './cardOrder'; export class PaginatedGetCardOrderResponse { /** * Contains objects with information about card orders. */ - "cardOrders"?: Array; + 'cardOrders'?: Array; /** * Indicates whether there are more items on the next page. */ - "hasNext": boolean; + 'hasNext': boolean; /** * Indicates whether there are more items on the previous page. */ - "hasPrevious": boolean; - - static readonly discriminator: string | undefined = undefined; + 'hasPrevious': boolean; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "cardOrders", "baseName": "cardOrders", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "hasNext", "baseName": "hasNext", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "hasPrevious", "baseName": "hasPrevious", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return PaginatedGetCardOrderResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/paginatedPaymentInstrumentsResponse.ts b/src/typings/balancePlatform/paginatedPaymentInstrumentsResponse.ts index 17a291562..65e53b7b7 100644 --- a/src/typings/balancePlatform/paginatedPaymentInstrumentsResponse.ts +++ b/src/typings/balancePlatform/paginatedPaymentInstrumentsResponse.ts @@ -7,52 +7,43 @@ * Do not edit this class manually. */ -import { PaymentInstrument } from "./paymentInstrument"; - +import { PaymentInstrument } from './paymentInstrument'; export class PaginatedPaymentInstrumentsResponse { /** * Indicates whether there are more items on the next page. */ - "hasNext": boolean; + 'hasNext': boolean; /** * Indicates whether there are more items on the previous page. */ - "hasPrevious": boolean; + 'hasPrevious': boolean; /** * List of payment instruments associated with the balance account. */ - "paymentInstruments": Array; - - static readonly discriminator: string | undefined = undefined; + 'paymentInstruments': Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "hasNext", "baseName": "hasNext", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "hasPrevious", "baseName": "hasPrevious", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "paymentInstruments", "baseName": "paymentInstruments", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return PaginatedPaymentInstrumentsResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/paymentInstrument.ts b/src/typings/balancePlatform/paymentInstrument.ts index 185a663c2..cd5071a22 100644 --- a/src/typings/balancePlatform/paymentInstrument.ts +++ b/src/typings/balancePlatform/paymentInstrument.ts @@ -7,10 +7,9 @@ * Do not edit this class manually. */ -import { BankAccountDetails } from "./bankAccountDetails"; -import { Card } from "./card"; -import { PaymentInstrumentAdditionalBankAccountIdentificationsInner } from "./paymentInstrumentAdditionalBankAccountIdentificationsInner"; - +import { BankAccountDetails } from './bankAccountDetails'; +import { Card } from './card'; +import { IbanAccountIdentification } from './ibanAccountIdentification'; export class PaymentInstrument { /** @@ -19,160 +18,140 @@ export class PaymentInstrument { * @deprecated since Configuration API v2 * Please use `bankAccount` object instead */ - "additionalBankAccountIdentifications"?: Array; + 'additionalBankAccountIdentifications'?: Array; /** * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. */ - "balanceAccountId": string; - "bankAccount"?: BankAccountDetails; - "card"?: Card; + 'balanceAccountId': string; + 'bankAccount'?: BankAccountDetails | null; + 'card'?: Card | null; /** * Your description for the payment instrument, maximum 300 characters. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the payment instrument. */ - "id": string; + 'id': string; /** * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. */ - "issuingCountryCode": string; + 'issuingCountryCode': string; /** * The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. */ - "paymentInstrumentGroupId"?: string; + 'paymentInstrumentGroupId'?: string; /** * Your reference for the payment instrument, maximum 150 characters. */ - "reference"?: string; + 'reference'?: string; /** * The unique identifier of the payment instrument that replaced this payment instrument. */ - "replacedById"?: string; + 'replacedById'?: string; /** * The unique identifier of the payment instrument that is replaced by this payment instrument. */ - "replacementOfId"?: string; + 'replacementOfId'?: string; /** * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. */ - "status"?: PaymentInstrument.StatusEnum; + 'status'?: PaymentInstrument.StatusEnum; /** * The status comment provides additional information for the statusReason of the payment instrument. */ - "statusComment"?: string; + 'statusComment'?: string; /** * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. */ - "statusReason"?: PaymentInstrument.StatusReasonEnum; + 'statusReason'?: PaymentInstrument.StatusReasonEnum; /** * The type of payment instrument. Possible values: **card**, **bankAccount**. */ - "type": PaymentInstrument.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': PaymentInstrument.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalBankAccountIdentifications", "baseName": "additionalBankAccountIdentifications", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "balanceAccountId", "baseName": "balanceAccountId", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankAccount", "baseName": "bankAccount", - "type": "BankAccountDetails", - "format": "" + "type": "BankAccountDetails | null" }, { "name": "card", "baseName": "card", - "type": "Card", - "format": "" + "type": "Card | null" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuingCountryCode", "baseName": "issuingCountryCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentInstrumentGroupId", "baseName": "paymentInstrumentGroupId", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "replacedById", "baseName": "replacedById", - "type": "string", - "format": "" + "type": "string" }, { "name": "replacementOfId", "baseName": "replacementOfId", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "PaymentInstrument.StatusEnum", - "format": "" + "type": "PaymentInstrument.StatusEnum" }, { "name": "statusComment", "baseName": "statusComment", - "type": "string", - "format": "" + "type": "string" }, { "name": "statusReason", "baseName": "statusReason", - "type": "PaymentInstrument.StatusReasonEnum", - "format": "" + "type": "PaymentInstrument.StatusReasonEnum" }, { "name": "type", "baseName": "type", - "type": "PaymentInstrument.TypeEnum", - "format": "" + "type": "PaymentInstrument.TypeEnum" } ]; static getAttributeTypeMap() { return PaymentInstrument.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentInstrument { diff --git a/src/typings/balancePlatform/paymentInstrumentAdditionalBankAccountIdentificationsInner.ts b/src/typings/balancePlatform/paymentInstrumentAdditionalBankAccountIdentificationsInner.ts deleted file mode 100644 index 43ff8faa0..000000000 --- a/src/typings/balancePlatform/paymentInstrumentAdditionalBankAccountIdentificationsInner.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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 { IbanAccountIdentification } from "./ibanAccountIdentification"; - - -/** - * @type PaymentInstrumentAdditionalBankAccountIdentificationsInner - * Type - * @export - */ -export type PaymentInstrumentAdditionalBankAccountIdentificationsInner = IbanAccountIdentification; - -/** -* @type PaymentInstrumentAdditionalBankAccountIdentificationsInnerClass -* @export -*/ -export class PaymentInstrumentAdditionalBankAccountIdentificationsInnerClass { - - static readonly discriminator: string = "type"; - - static readonly mapping: {[index: string]: string} | undefined = undefined; -} diff --git a/src/typings/balancePlatform/paymentInstrumentGroup.ts b/src/typings/balancePlatform/paymentInstrumentGroup.ts index b35a617ca..f7076e1fc 100644 --- a/src/typings/balancePlatform/paymentInstrumentGroup.ts +++ b/src/typings/balancePlatform/paymentInstrumentGroup.ts @@ -12,75 +12,64 @@ export class PaymentInstrumentGroup { /** * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. */ - "balancePlatform": string; + 'balancePlatform': string; /** * Your description for the payment instrument group. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the payment instrument group. */ - "id"?: string; + 'id'?: string; /** * Properties of the payment instrument group. */ - "properties"?: { [key: string]: string; }; + 'properties'?: { [key: string]: string; }; /** * Your reference for the payment instrument group. */ - "reference"?: string; + 'reference'?: string; /** * The tx variant of the payment instrument group. */ - "txVariant": string; + 'txVariant': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balancePlatform", "baseName": "balancePlatform", - "type": "string", - "format": "" + "type": "string" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "properties", "baseName": "properties", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "txVariant", "baseName": "txVariant", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PaymentInstrumentGroup.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/paymentInstrumentGroupInfo.ts b/src/typings/balancePlatform/paymentInstrumentGroupInfo.ts index 43dc478e7..7ad1d6b9c 100644 --- a/src/typings/balancePlatform/paymentInstrumentGroupInfo.ts +++ b/src/typings/balancePlatform/paymentInstrumentGroupInfo.ts @@ -12,65 +12,55 @@ export class PaymentInstrumentGroupInfo { /** * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. */ - "balancePlatform": string; + 'balancePlatform': string; /** * Your description for the payment instrument group. */ - "description"?: string; + 'description'?: string; /** * Properties of the payment instrument group. */ - "properties"?: { [key: string]: string; }; + 'properties'?: { [key: string]: string; }; /** * Your reference for the payment instrument group. */ - "reference"?: string; + 'reference'?: string; /** * The tx variant of the payment instrument group. */ - "txVariant": string; + 'txVariant': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balancePlatform", "baseName": "balancePlatform", - "type": "string", - "format": "" + "type": "string" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "properties", "baseName": "properties", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "txVariant", "baseName": "txVariant", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PaymentInstrumentGroupInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/paymentInstrumentInfo.ts b/src/typings/balancePlatform/paymentInstrumentInfo.ts index 4a6aef818..048eba9d4 100644 --- a/src/typings/balancePlatform/paymentInstrumentInfo.ts +++ b/src/typings/balancePlatform/paymentInstrumentInfo.ts @@ -7,128 +7,111 @@ * Do not edit this class manually. */ -import { BankAccountModel } from "./bankAccountModel"; -import { CardInfo } from "./cardInfo"; - +import { BankAccountModel } from './bankAccountModel'; +import { CardInfo } from './cardInfo'; export class PaymentInstrumentInfo { /** * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. */ - "balanceAccountId": string; - "bankAccount"?: BankAccountModel; - "card"?: CardInfo; + 'balanceAccountId': string; + 'bankAccount'?: BankAccountModel | null; + 'card'?: CardInfo | null; /** * Your description for the payment instrument, maximum 300 characters. */ - "description"?: string; + 'description'?: string; /** * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. */ - "issuingCountryCode": string; + 'issuingCountryCode': string; /** * The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. */ - "paymentInstrumentGroupId"?: string; + 'paymentInstrumentGroupId'?: string; /** * Your reference for the payment instrument, maximum 150 characters. */ - "reference"?: string; + 'reference'?: string; /** * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. */ - "status"?: PaymentInstrumentInfo.StatusEnum; + 'status'?: PaymentInstrumentInfo.StatusEnum; /** * The status comment provides additional information for the statusReason of the payment instrument. */ - "statusComment"?: string; + 'statusComment'?: string; /** * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. */ - "statusReason"?: PaymentInstrumentInfo.StatusReasonEnum; + 'statusReason'?: PaymentInstrumentInfo.StatusReasonEnum; /** * The type of payment instrument. Possible values: **card**, **bankAccount**. */ - "type": PaymentInstrumentInfo.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': PaymentInstrumentInfo.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balanceAccountId", "baseName": "balanceAccountId", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankAccount", "baseName": "bankAccount", - "type": "BankAccountModel", - "format": "" + "type": "BankAccountModel | null" }, { "name": "card", "baseName": "card", - "type": "CardInfo", - "format": "" + "type": "CardInfo | null" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuingCountryCode", "baseName": "issuingCountryCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentInstrumentGroupId", "baseName": "paymentInstrumentGroupId", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "PaymentInstrumentInfo.StatusEnum", - "format": "" + "type": "PaymentInstrumentInfo.StatusEnum" }, { "name": "statusComment", "baseName": "statusComment", - "type": "string", - "format": "" + "type": "string" }, { "name": "statusReason", "baseName": "statusReason", - "type": "PaymentInstrumentInfo.StatusReasonEnum", - "format": "" + "type": "PaymentInstrumentInfo.StatusReasonEnum" }, { "name": "type", "baseName": "type", - "type": "PaymentInstrumentInfo.TypeEnum", - "format": "" + "type": "PaymentInstrumentInfo.TypeEnum" } ]; static getAttributeTypeMap() { return PaymentInstrumentInfo.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentInstrumentInfo { diff --git a/src/typings/balancePlatform/paymentInstrumentRequirement.ts b/src/typings/balancePlatform/paymentInstrumentRequirement.ts index db71dab54..3213748f6 100644 --- a/src/typings/balancePlatform/paymentInstrumentRequirement.ts +++ b/src/typings/balancePlatform/paymentInstrumentRequirement.ts @@ -12,76 +12,65 @@ export class PaymentInstrumentRequirement { /** * Specifies the requirements for the payment instrument that need to be included in the request for a particular route. */ - "description"?: string; + 'description'?: string; /** * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. */ - "issuingCountryCode"?: string; + 'issuingCountryCode'?: string; /** * The two-character ISO-3166-1 alpha-2 country code list for payment instruments. */ - "issuingCountryCodes"?: Array; + 'issuingCountryCodes'?: Array; /** * Specifies if the requirement only applies to transfers to another balance platform. */ - "onlyForCrossBalancePlatform"?: boolean; + 'onlyForCrossBalancePlatform'?: boolean; /** * The type of the payment instrument. For example, \"BankAccount\" or \"Card\". */ - "paymentInstrumentType"?: PaymentInstrumentRequirement.PaymentInstrumentTypeEnum; + 'paymentInstrumentType'?: PaymentInstrumentRequirement.PaymentInstrumentTypeEnum; /** * **paymentInstrumentRequirement** */ - "type": PaymentInstrumentRequirement.TypeEnum; + 'type': PaymentInstrumentRequirement.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuingCountryCode", "baseName": "issuingCountryCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuingCountryCodes", "baseName": "issuingCountryCodes", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "onlyForCrossBalancePlatform", "baseName": "onlyForCrossBalancePlatform", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "paymentInstrumentType", "baseName": "paymentInstrumentType", - "type": "PaymentInstrumentRequirement.PaymentInstrumentTypeEnum", - "format": "" + "type": "PaymentInstrumentRequirement.PaymentInstrumentTypeEnum" }, { "name": "type", "baseName": "type", - "type": "PaymentInstrumentRequirement.TypeEnum", - "format": "" + "type": "PaymentInstrumentRequirement.TypeEnum" } ]; static getAttributeTypeMap() { return PaymentInstrumentRequirement.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentInstrumentRequirement { diff --git a/src/typings/balancePlatform/paymentInstrumentRevealInfo.ts b/src/typings/balancePlatform/paymentInstrumentRevealInfo.ts index a2bbb80c4..d95cad1b4 100644 --- a/src/typings/balancePlatform/paymentInstrumentRevealInfo.ts +++ b/src/typings/balancePlatform/paymentInstrumentRevealInfo.ts @@ -7,49 +7,40 @@ * Do not edit this class manually. */ -import { Expiry } from "./expiry"; - +import { Expiry } from './expiry'; export class PaymentInstrumentRevealInfo { /** * The CVC2 value of the card. */ - "cvc": string; - "expiration": Expiry; + 'cvc': string; + 'expiration': Expiry; /** * The primary account number (PAN) of the card. */ - "pan": string; - - static readonly discriminator: string | undefined = undefined; + 'pan': string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "cvc", "baseName": "cvc", - "type": "string", - "format": "" + "type": "string" }, { "name": "expiration", "baseName": "expiration", - "type": "Expiry", - "format": "" + "type": "Expiry" }, { "name": "pan", "baseName": "pan", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PaymentInstrumentRevealInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/paymentInstrumentRevealRequest.ts b/src/typings/balancePlatform/paymentInstrumentRevealRequest.ts index 16b94e8fc..0fde6b477 100644 --- a/src/typings/balancePlatform/paymentInstrumentRevealRequest.ts +++ b/src/typings/balancePlatform/paymentInstrumentRevealRequest.ts @@ -12,35 +12,28 @@ export class PaymentInstrumentRevealRequest { /** * The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. */ - "encryptedKey": string; + 'encryptedKey': string; /** * The unique identifier of the payment instrument, which is the card for which you are managing the PIN. */ - "paymentInstrumentId": string; + 'paymentInstrumentId': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "encryptedKey", "baseName": "encryptedKey", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentInstrumentId", "baseName": "paymentInstrumentId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PaymentInstrumentRevealRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/paymentInstrumentRevealResponse.ts b/src/typings/balancePlatform/paymentInstrumentRevealResponse.ts index 12506760b..e0be7c1c0 100644 --- a/src/typings/balancePlatform/paymentInstrumentRevealResponse.ts +++ b/src/typings/balancePlatform/paymentInstrumentRevealResponse.ts @@ -12,25 +12,19 @@ export class PaymentInstrumentRevealResponse { /** * The data encrypted using the `encryptedKey`. */ - "encryptedData": string; + 'encryptedData': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "encryptedData", "baseName": "encryptedData", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PaymentInstrumentRevealResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/paymentInstrumentUpdateRequest.ts b/src/typings/balancePlatform/paymentInstrumentUpdateRequest.ts index ec102fb02..ee43abb50 100644 --- a/src/typings/balancePlatform/paymentInstrumentUpdateRequest.ts +++ b/src/typings/balancePlatform/paymentInstrumentUpdateRequest.ts @@ -7,70 +7,59 @@ * Do not edit this class manually. */ -import { CardInfo } from "./cardInfo"; - +import { CardInfo } from './cardInfo'; export class PaymentInstrumentUpdateRequest { /** * The unique identifier of the balance account associated with this payment instrument. >You can only change the balance account ID if the payment instrument has **inactive** status. */ - "balanceAccountId"?: string; - "card"?: CardInfo; + 'balanceAccountId'?: string; + 'card'?: CardInfo | null; /** * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. */ - "status"?: PaymentInstrumentUpdateRequest.StatusEnum; + 'status'?: PaymentInstrumentUpdateRequest.StatusEnum; /** * Comment for the status of the payment instrument. Required if `statusReason` is **other**. */ - "statusComment"?: string; + 'statusComment'?: string; /** * The reason for updating the status of the payment instrument. Possible values: **lost**, **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, **accountClosure**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. */ - "statusReason"?: PaymentInstrumentUpdateRequest.StatusReasonEnum; - - static readonly discriminator: string | undefined = undefined; + 'statusReason'?: PaymentInstrumentUpdateRequest.StatusReasonEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balanceAccountId", "baseName": "balanceAccountId", - "type": "string", - "format": "" + "type": "string" }, { "name": "card", "baseName": "card", - "type": "CardInfo", - "format": "" + "type": "CardInfo | null" }, { "name": "status", "baseName": "status", - "type": "PaymentInstrumentUpdateRequest.StatusEnum", - "format": "" + "type": "PaymentInstrumentUpdateRequest.StatusEnum" }, { "name": "statusComment", "baseName": "statusComment", - "type": "string", - "format": "" + "type": "string" }, { "name": "statusReason", "baseName": "statusReason", - "type": "PaymentInstrumentUpdateRequest.StatusReasonEnum", - "format": "" + "type": "PaymentInstrumentUpdateRequest.StatusReasonEnum" } ]; static getAttributeTypeMap() { return PaymentInstrumentUpdateRequest.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentInstrumentUpdateRequest { diff --git a/src/typings/balancePlatform/phone.ts b/src/typings/balancePlatform/phone.ts index e5639d26d..7fb4c66b9 100644 --- a/src/typings/balancePlatform/phone.ts +++ b/src/typings/balancePlatform/phone.ts @@ -12,36 +12,29 @@ export class Phone { /** * The full phone number provided as a single string. For example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. */ - "number": string; + 'number': string; /** * Type of phone number. Possible values: **Landline**, **Mobile**. */ - "type": Phone.TypeEnum; + 'type': Phone.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "number", "baseName": "number", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "Phone.TypeEnum", - "format": "" + "type": "Phone.TypeEnum" } ]; static getAttributeTypeMap() { return Phone.attributeTypeMap; } - - public constructor() { - } } export namespace Phone { diff --git a/src/typings/balancePlatform/phoneNumber.ts b/src/typings/balancePlatform/phoneNumber.ts index 3e0b87c93..aa414d703 100644 --- a/src/typings/balancePlatform/phoneNumber.ts +++ b/src/typings/balancePlatform/phoneNumber.ts @@ -12,46 +12,38 @@ export class PhoneNumber { /** * The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or **NL**. */ - "phoneCountryCode"?: string; + 'phoneCountryCode'?: string; /** * The phone number. The inclusion of the phone number country code is not necessary. */ - "phoneNumber"?: string; + 'phoneNumber'?: string; /** * The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. */ - "phoneType"?: PhoneNumber.PhoneTypeEnum; + 'phoneType'?: PhoneNumber.PhoneTypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "phoneCountryCode", "baseName": "phoneCountryCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "phoneNumber", "baseName": "phoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "phoneType", "baseName": "phoneType", - "type": "PhoneNumber.PhoneTypeEnum", - "format": "" + "type": "PhoneNumber.PhoneTypeEnum" } ]; static getAttributeTypeMap() { return PhoneNumber.attributeTypeMap; } - - public constructor() { - } } export namespace PhoneNumber { diff --git a/src/typings/balancePlatform/pinChangeRequest.ts b/src/typings/balancePlatform/pinChangeRequest.ts index f9dcc7653..6b4c94ae2 100644 --- a/src/typings/balancePlatform/pinChangeRequest.ts +++ b/src/typings/balancePlatform/pinChangeRequest.ts @@ -12,55 +12,46 @@ export class PinChangeRequest { /** * The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. */ - "encryptedKey": string; + 'encryptedKey': string; /** * The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). */ - "encryptedPinBlock": string; + 'encryptedPinBlock': string; /** * The unique identifier of the payment instrument, which is the card for which you are managing the PIN. */ - "paymentInstrumentId": string; + 'paymentInstrumentId': string; /** * The 16-digit token that you used to generate the `encryptedPinBlock`. */ - "token": string; + 'token': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "encryptedKey", "baseName": "encryptedKey", - "type": "string", - "format": "" + "type": "string" }, { "name": "encryptedPinBlock", "baseName": "encryptedPinBlock", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentInstrumentId", "baseName": "paymentInstrumentId", - "type": "string", - "format": "" + "type": "string" }, { "name": "token", "baseName": "token", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PinChangeRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/pinChangeResponse.ts b/src/typings/balancePlatform/pinChangeResponse.ts index 39083051b..0f7d18b56 100644 --- a/src/typings/balancePlatform/pinChangeResponse.ts +++ b/src/typings/balancePlatform/pinChangeResponse.ts @@ -12,26 +12,20 @@ export class PinChangeResponse { /** * The status of the request for PIN change. Possible values: **completed**, **pending**, **unavailable**. */ - "status": PinChangeResponse.StatusEnum; + 'status': PinChangeResponse.StatusEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "status", "baseName": "status", - "type": "PinChangeResponse.StatusEnum", - "format": "" + "type": "PinChangeResponse.StatusEnum" } ]; static getAttributeTypeMap() { return PinChangeResponse.attributeTypeMap; } - - public constructor() { - } } export namespace PinChangeResponse { diff --git a/src/typings/balancePlatform/platformPaymentConfiguration.ts b/src/typings/balancePlatform/platformPaymentConfiguration.ts index e0e8b6366..726ce025c 100644 --- a/src/typings/balancePlatform/platformPaymentConfiguration.ts +++ b/src/typings/balancePlatform/platformPaymentConfiguration.ts @@ -10,37 +10,30 @@ export class PlatformPaymentConfiguration { /** - * Specifies at what time a [sales day](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#sales-day) ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. + * Specifies at what time a sales day ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. */ - "salesDayClosingTime"?: string; + 'salesDayClosingTime'?: string; /** - * Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **1** to **20**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**. + * Specifies after how many business days the funds in a settlement batch are made available in this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. */ - "settlementDelayDays"?: number; + 'settlementDelayDays'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "salesDayClosingTime", "baseName": "salesDayClosingTime", - "type": "string", - "format": "time" + "type": "string" }, { "name": "settlementDelayDays", "baseName": "settlementDelayDays", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return PlatformPaymentConfiguration.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/processingTypesRestriction.ts b/src/typings/balancePlatform/processingTypesRestriction.ts index f7f27a2e5..66298fae8 100644 --- a/src/typings/balancePlatform/processingTypesRestriction.ts +++ b/src/typings/balancePlatform/processingTypesRestriction.ts @@ -12,36 +12,29 @@ export class ProcessingTypesRestriction { /** * Defines how the condition must be evaluated. */ - "operation": string; + 'operation': string; /** * List of processing types. Possible values: **atmWithdraw**, **balanceInquiry**, **ecommerce**, **moto**, **pos**, **recurring**, **token**. */ - "value"?: Array; + 'value'?: Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "operation", "baseName": "operation", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "ProcessingTypesRestriction.ValueEnum", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return ProcessingTypesRestriction.attributeTypeMap; } - - public constructor() { - } } export namespace ProcessingTypesRestriction { diff --git a/src/typings/balancePlatform/publicKeyResponse.ts b/src/typings/balancePlatform/publicKeyResponse.ts index c4c08b945..8cc7e66c6 100644 --- a/src/typings/balancePlatform/publicKeyResponse.ts +++ b/src/typings/balancePlatform/publicKeyResponse.ts @@ -12,35 +12,28 @@ export class PublicKeyResponse { /** * The public key you need for encrypting a symmetric session key. */ - "publicKey": string; + 'publicKey': string; /** * The expiry date of the public key. */ - "publicKeyExpiryDate": string; + 'publicKeyExpiryDate': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "publicKey", "baseName": "publicKey", - "type": "string", - "format": "" + "type": "string" }, { "name": "publicKeyExpiryDate", "baseName": "publicKeyExpiryDate", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PublicKeyResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/registerSCAFinalResponse.ts b/src/typings/balancePlatform/registerSCAFinalResponse.ts index 815fa1f0e..1783a2175 100644 --- a/src/typings/balancePlatform/registerSCAFinalResponse.ts +++ b/src/typings/balancePlatform/registerSCAFinalResponse.ts @@ -12,25 +12,19 @@ export class RegisterSCAFinalResponse { /** * Specifies if the registration was initiated successfully. */ - "success"?: boolean; + 'success'?: boolean; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "success", "baseName": "success", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return RegisterSCAFinalResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/registerSCARequest.ts b/src/typings/balancePlatform/registerSCARequest.ts index 55482657f..f9cc02034 100644 --- a/src/typings/balancePlatform/registerSCARequest.ts +++ b/src/typings/balancePlatform/registerSCARequest.ts @@ -7,49 +7,40 @@ * Do not edit this class manually. */ -import { DelegatedAuthenticationData } from "./delegatedAuthenticationData"; - +import { DelegatedAuthenticationData } from './delegatedAuthenticationData'; export class RegisterSCARequest { /** * The name of the SCA device that you are registering. You can use it to help your users identify the device. If you do not specify a `name`, Adyen automatically generates one. */ - "name"?: string; + 'name'?: string; /** * The unique identifier of the payment instrument for which you are registering the SCA device. */ - "paymentInstrumentId": string; - "strongCustomerAuthentication": DelegatedAuthenticationData; - - static readonly discriminator: string | undefined = undefined; + 'paymentInstrumentId': string; + 'strongCustomerAuthentication': DelegatedAuthenticationData; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentInstrumentId", "baseName": "paymentInstrumentId", - "type": "string", - "format": "" + "type": "string" }, { "name": "strongCustomerAuthentication", "baseName": "strongCustomerAuthentication", - "type": "DelegatedAuthenticationData", - "format": "" + "type": "DelegatedAuthenticationData" } ]; static getAttributeTypeMap() { return RegisterSCARequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/registerSCAResponse.ts b/src/typings/balancePlatform/registerSCAResponse.ts index 2d56acc0f..4feaed4d4 100644 --- a/src/typings/balancePlatform/registerSCAResponse.ts +++ b/src/typings/balancePlatform/registerSCAResponse.ts @@ -12,55 +12,46 @@ export class RegisterSCAResponse { /** * The unique identifier of the SCA device you are registering. */ - "id"?: string; + 'id'?: string; /** * The unique identifier of the payment instrument for which you are registering the SCA device. */ - "paymentInstrumentId"?: string; + 'paymentInstrumentId'?: string; /** * A string that you must pass to the authentication SDK to continue with the registration process. */ - "sdkInput"?: string; + 'sdkInput'?: string; /** * Specifies if the registration was initiated successfully. */ - "success"?: boolean; + 'success'?: boolean; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentInstrumentId", "baseName": "paymentInstrumentId", - "type": "string", - "format": "" + "type": "string" }, { "name": "sdkInput", "baseName": "sdkInput", - "type": "string", - "format": "" + "type": "string" }, { "name": "success", "baseName": "success", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return RegisterSCAResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/remediatingAction.ts b/src/typings/balancePlatform/remediatingAction.ts index 18c65df00..61360ba1d 100644 --- a/src/typings/balancePlatform/remediatingAction.ts +++ b/src/typings/balancePlatform/remediatingAction.ts @@ -12,35 +12,28 @@ export class RemediatingAction { /** * The remediating action code. */ - "code"?: string; + 'code'?: string; /** * A description of how you can resolve the verification error. */ - "message"?: string; + 'message'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "code", "baseName": "code", - "type": "string", - "format": "" + "type": "string" }, { "name": "message", "baseName": "message", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return RemediatingAction.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/repayment.ts b/src/typings/balancePlatform/repayment.ts index 148b94639..1288eab0a 100644 --- a/src/typings/balancePlatform/repayment.ts +++ b/src/typings/balancePlatform/repayment.ts @@ -7,47 +7,38 @@ * Do not edit this class manually. */ -import { RepaymentTerm } from "./repaymentTerm"; -import { ThresholdRepayment } from "./thresholdRepayment"; - +import { RepaymentTerm } from './repaymentTerm'; +import { ThresholdRepayment } from './thresholdRepayment'; export class Repayment { /** * The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). */ - "basisPoints": number; - "term"?: RepaymentTerm; - "threshold"?: ThresholdRepayment; - - static readonly discriminator: string | undefined = undefined; + 'basisPoints': number; + 'term'?: RepaymentTerm | null; + 'threshold'?: ThresholdRepayment | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "basisPoints", "baseName": "basisPoints", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "term", "baseName": "term", - "type": "RepaymentTerm", - "format": "" + "type": "RepaymentTerm | null" }, { "name": "threshold", "baseName": "threshold", - "type": "ThresholdRepayment", - "format": "" + "type": "ThresholdRepayment | null" } ]; static getAttributeTypeMap() { return Repayment.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/repaymentTerm.ts b/src/typings/balancePlatform/repaymentTerm.ts index 4e4a3da53..50f08d0d6 100644 --- a/src/typings/balancePlatform/repaymentTerm.ts +++ b/src/typings/balancePlatform/repaymentTerm.ts @@ -12,35 +12,28 @@ export class RepaymentTerm { /** * The estimated term for repaying the grant, in days. */ - "estimatedDays": number; + 'estimatedDays': number; /** * The maximum term for repaying the grant, in days. Only applies when `contractType` is **loan**. */ - "maximumDays"?: number; + 'maximumDays'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "estimatedDays", "baseName": "estimatedDays", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "maximumDays", "baseName": "maximumDays", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return RepaymentTerm.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/restServiceError.ts b/src/typings/balancePlatform/restServiceError.ts index 91c08a532..d84426f38 100644 --- a/src/typings/balancePlatform/restServiceError.ts +++ b/src/typings/balancePlatform/restServiceError.ts @@ -7,109 +7,94 @@ * Do not edit this class manually. */ -import { InvalidField } from "./invalidField"; - +import { InvalidField } from './invalidField'; export class RestServiceError { /** * A human-readable explanation specific to this occurrence of the problem. */ - "detail": string; + 'detail': string; /** * A code that identifies the problem type. */ - "errorCode": string; + 'errorCode': string; /** * A unique URI that identifies the specific occurrence of the problem. */ - "instance"?: string; + 'instance'?: string; /** * Detailed explanation of each validation error, when applicable. */ - "invalidFields"?: Array; + 'invalidFields'?: Array; /** * A unique reference for the request, essentially the same as `pspReference`. */ - "requestId"?: string; - "response"?: any; + 'requestId'?: string; + 'response'?: object; /** * The HTTP status code. */ - "status": number; + 'status': number; /** * A short, human-readable summary of the problem type. */ - "title": string; + 'title': string; /** * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. */ - "type": string; - - static readonly discriminator: string | undefined = undefined; + 'type': string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "detail", "baseName": "detail", - "type": "string", - "format": "" + "type": "string" }, { "name": "errorCode", "baseName": "errorCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "instance", "baseName": "instance", - "type": "string", - "format": "" + "type": "string" }, { "name": "invalidFields", "baseName": "invalidFields", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "requestId", "baseName": "requestId", - "type": "string", - "format": "" + "type": "string" }, { "name": "response", "baseName": "response", - "type": "any", - "format": "" + "type": "object" }, { "name": "status", "baseName": "status", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "title", "baseName": "title", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return RestServiceError.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/revealPinRequest.ts b/src/typings/balancePlatform/revealPinRequest.ts index ba914a621..0b02910db 100644 --- a/src/typings/balancePlatform/revealPinRequest.ts +++ b/src/typings/balancePlatform/revealPinRequest.ts @@ -12,35 +12,28 @@ export class RevealPinRequest { /** * The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. */ - "encryptedKey": string; + 'encryptedKey': string; /** * The unique identifier of the payment instrument, which is the card for which you are managing the PIN. */ - "paymentInstrumentId": string; + 'paymentInstrumentId': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "encryptedKey", "baseName": "encryptedKey", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentInstrumentId", "baseName": "paymentInstrumentId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return RevealPinRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/revealPinResponse.ts b/src/typings/balancePlatform/revealPinResponse.ts index 510cac212..ee690d575 100644 --- a/src/typings/balancePlatform/revealPinResponse.ts +++ b/src/typings/balancePlatform/revealPinResponse.ts @@ -12,35 +12,28 @@ export class RevealPinResponse { /** * The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). */ - "encryptedPinBlock": string; + 'encryptedPinBlock': string; /** * The 16-digit token that you need to extract the `encryptedPinBlock`. */ - "token": string; + 'token': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "encryptedPinBlock", "baseName": "encryptedPinBlock", - "type": "string", - "format": "" + "type": "string" }, { "name": "token", "baseName": "token", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return RevealPinResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/riskScores.ts b/src/typings/balancePlatform/riskScores.ts index 470a4e831..ba15a31c1 100644 --- a/src/typings/balancePlatform/riskScores.ts +++ b/src/typings/balancePlatform/riskScores.ts @@ -12,35 +12,28 @@ export class RiskScores { /** * Transaction risk score provided by Mastercard. Values provided by Mastercard range between 0 (lowest risk) to 998 (highest risk). */ - "mastercard"?: number; + 'mastercard'?: number; /** * Transaction risk score provided by Visa. Values provided by Visa range between 01 (lowest risk) to 99 (highest risk). */ - "visa"?: number; + 'visa'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "mastercard", "baseName": "mastercard", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "visa", "baseName": "visa", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return RiskScores.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/riskScoresRestriction.ts b/src/typings/balancePlatform/riskScoresRestriction.ts index 0a8e25552..816973909 100644 --- a/src/typings/balancePlatform/riskScoresRestriction.ts +++ b/src/typings/balancePlatform/riskScoresRestriction.ts @@ -7,39 +7,31 @@ * Do not edit this class manually. */ -import { RiskScores } from "./riskScores"; - +import { RiskScores } from './riskScores'; export class RiskScoresRestriction { /** * Defines how the condition must be evaluated. */ - "operation": string; - "value"?: RiskScores; - - static readonly discriminator: string | undefined = undefined; + 'operation': string; + 'value'?: RiskScores | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "operation", "baseName": "operation", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "RiskScores", - "format": "" + "type": "RiskScores | null" } ]; static getAttributeTypeMap() { return RiskScoresRestriction.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/sELocalAccountIdentification.ts b/src/typings/balancePlatform/sELocalAccountIdentification.ts index b2b23f2e4..ad111bcdc 100644 --- a/src/typings/balancePlatform/sELocalAccountIdentification.ts +++ b/src/typings/balancePlatform/sELocalAccountIdentification.ts @@ -12,46 +12,38 @@ export class SELocalAccountIdentification { /** * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. */ - "clearingNumber": string; + 'clearingNumber': string; /** * **seLocal** */ - "type": SELocalAccountIdentification.TypeEnum; + 'type': SELocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "clearingNumber", "baseName": "clearingNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "SELocalAccountIdentification.TypeEnum", - "format": "" + "type": "SELocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return SELocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace SELocalAccountIdentification { diff --git a/src/typings/balancePlatform/sGLocalAccountIdentification.ts b/src/typings/balancePlatform/sGLocalAccountIdentification.ts index fbcf1b2fc..647028a50 100644 --- a/src/typings/balancePlatform/sGLocalAccountIdentification.ts +++ b/src/typings/balancePlatform/sGLocalAccountIdentification.ts @@ -12,46 +12,38 @@ export class SGLocalAccountIdentification { /** * The 4- to 19-digit bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * The bank\'s 8- or 11-character BIC or SWIFT code. */ - "bic": string; + 'bic': string; /** * **sgLocal** */ - "type"?: SGLocalAccountIdentification.TypeEnum; + 'type'?: SGLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "bic", "baseName": "bic", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "SGLocalAccountIdentification.TypeEnum", - "format": "" + "type": "SGLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return SGLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace SGLocalAccountIdentification { diff --git a/src/typings/balancePlatform/sameAmountRestriction.ts b/src/typings/balancePlatform/sameAmountRestriction.ts index 87e4ad1f4..eaeebcb7a 100644 --- a/src/typings/balancePlatform/sameAmountRestriction.ts +++ b/src/typings/balancePlatform/sameAmountRestriction.ts @@ -12,32 +12,25 @@ export class SameAmountRestriction { /** * Defines how the condition must be evaluated. */ - "operation": string; - "value"?: boolean; + 'operation': string; + 'value'?: boolean; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "operation", "baseName": "operation", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return SameAmountRestriction.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/sameCounterpartyRestriction.ts b/src/typings/balancePlatform/sameCounterpartyRestriction.ts index ea39cbb68..542a46cdf 100644 --- a/src/typings/balancePlatform/sameCounterpartyRestriction.ts +++ b/src/typings/balancePlatform/sameCounterpartyRestriction.ts @@ -12,32 +12,25 @@ export class SameCounterpartyRestriction { /** * Defines how the condition must be evaluated. */ - "operation": string; - "value"?: boolean; + 'operation': string; + 'value'?: boolean; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "operation", "baseName": "operation", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return SameCounterpartyRestriction.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/searchRegisteredDevicesResponse.ts b/src/typings/balancePlatform/searchRegisteredDevicesResponse.ts index 51e171670..fbcb7e9de 100644 --- a/src/typings/balancePlatform/searchRegisteredDevicesResponse.ts +++ b/src/typings/balancePlatform/searchRegisteredDevicesResponse.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { Device } from "./device"; -import { Link } from "./link"; - +import { Device } from './device'; +import { Link } from './link'; export class SearchRegisteredDevicesResponse { /** * Contains a list of registered SCA devices and their corresponding details. */ - "data"?: Array; + 'data'?: Array; /** * The total amount of registered SCA devices that match the query parameters. */ - "itemsTotal"?: number; - "link"?: Link; + 'itemsTotal'?: number; + 'link'?: Link | null; /** * The total amount of list pages. */ - "pagesTotal"?: number; - - static readonly discriminator: string | undefined = undefined; + 'pagesTotal'?: number; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "itemsTotal", "baseName": "itemsTotal", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "link", "baseName": "link", - "type": "Link", - "format": "" + "type": "Link | null" }, { "name": "pagesTotal", "baseName": "pagesTotal", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return SearchRegisteredDevicesResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/settingType.ts b/src/typings/balancePlatform/settingType.ts index deb3a24fa..e5430d02a 100644 --- a/src/typings/balancePlatform/settingType.ts +++ b/src/typings/balancePlatform/settingType.ts @@ -7,6 +7,7 @@ * Do not edit this class manually. */ + export enum SettingType { Balance = 'balance' } diff --git a/src/typings/balancePlatform/sourceAccountTypesRestriction.ts b/src/typings/balancePlatform/sourceAccountTypesRestriction.ts index c6a600137..78a64d3fd 100644 --- a/src/typings/balancePlatform/sourceAccountTypesRestriction.ts +++ b/src/typings/balancePlatform/sourceAccountTypesRestriction.ts @@ -12,36 +12,29 @@ export class SourceAccountTypesRestriction { /** * Defines how the condition must be evaluated. */ - "operation": string; + 'operation': string; /** * The list of source account types to be evaluated. */ - "value"?: Array; + 'value'?: Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "operation", "baseName": "operation", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "SourceAccountTypesRestriction.ValueEnum", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return SourceAccountTypesRestriction.attributeTypeMap; } - - public constructor() { - } } export namespace SourceAccountTypesRestriction { diff --git a/src/typings/balancePlatform/stringMatch.ts b/src/typings/balancePlatform/stringMatch.ts index 743b29bae..64dd39441 100644 --- a/src/typings/balancePlatform/stringMatch.ts +++ b/src/typings/balancePlatform/stringMatch.ts @@ -12,36 +12,29 @@ export class StringMatch { /** * The type of string matching operation. Possible values: **startsWith**, **endsWith**, **isEqualTo**, **contains**, */ - "operation"?: StringMatch.OperationEnum; + 'operation'?: StringMatch.OperationEnum; /** * The string to be matched. */ - "value"?: string; + 'value'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "operation", "baseName": "operation", - "type": "StringMatch.OperationEnum", - "format": "" + "type": "StringMatch.OperationEnum" }, { "name": "value", "baseName": "value", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return StringMatch.attributeTypeMap; } - - public constructor() { - } } export namespace StringMatch { diff --git a/src/typings/balancePlatform/sweepConfigurationV2.ts b/src/typings/balancePlatform/sweepConfigurationV2.ts index ebffadd71..29d198f2d 100644 --- a/src/typings/balancePlatform/sweepConfigurationV2.ts +++ b/src/typings/balancePlatform/sweepConfigurationV2.ts @@ -7,170 +7,148 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { SweepCounterparty } from "./sweepCounterparty"; -import { SweepSchedule } from "./sweepSchedule"; - +import { Amount } from './amount'; +import { SweepCounterparty } from './sweepCounterparty'; +import { SweepSchedule } from './sweepSchedule'; export class SweepConfigurationV2 { /** * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. */ - "category"?: SweepConfigurationV2.CategoryEnum; - "counterparty": SweepCounterparty; + 'category'?: SweepConfigurationV2.CategoryEnum; + 'counterparty': SweepCounterparty; /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). */ - "currency": string; + 'currency': string; /** * The message that will be used in the sweep transfer\'s description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the sweep. */ - "id": string; + '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 in [SEPA countries](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; + 'priorities'?: Array; /** * The reason for disabling the sweep. */ - "reason"?: SweepConfigurationV2.ReasonEnum; + 'reason'?: SweepConfigurationV2.ReasonEnum; /** * The human readable reason for disabling the sweep. */ - "reasonDetail"?: string; + 'reasonDetail'?: string; /** * Your reference for the sweep configuration. */ - "reference"?: string; + 'reference'?: string; /** * The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. */ - "referenceForBeneficiary"?: string; - "schedule": SweepSchedule; + 'referenceForBeneficiary'?: string; + 'schedule': SweepSchedule; /** * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. */ - "status"?: SweepConfigurationV2.StatusEnum; - "sweepAmount"?: Amount; - "targetAmount"?: Amount; - "triggerAmount"?: Amount; + 'status'?: SweepConfigurationV2.StatusEnum; + 'sweepAmount'?: Amount | null; + 'targetAmount'?: Amount | null; + 'triggerAmount'?: Amount | null; /** * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. */ - "type"?: SweepConfigurationV2.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type'?: SweepConfigurationV2.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "category", "baseName": "category", - "type": "SweepConfigurationV2.CategoryEnum", - "format": "" + "type": "SweepConfigurationV2.CategoryEnum" }, { "name": "counterparty", "baseName": "counterparty", - "type": "SweepCounterparty", - "format": "" + "type": "SweepCounterparty" }, { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "priorities", "baseName": "priorities", - "type": "SweepConfigurationV2.PrioritiesEnum", - "format": "" + "type": "Array" }, { "name": "reason", "baseName": "reason", - "type": "SweepConfigurationV2.ReasonEnum", - "format": "" + "type": "SweepConfigurationV2.ReasonEnum" }, { "name": "reasonDetail", "baseName": "reasonDetail", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "referenceForBeneficiary", "baseName": "referenceForBeneficiary", - "type": "string", - "format": "" + "type": "string" }, { "name": "schedule", "baseName": "schedule", - "type": "SweepSchedule", - "format": "" + "type": "SweepSchedule" }, { "name": "status", "baseName": "status", - "type": "SweepConfigurationV2.StatusEnum", - "format": "" + "type": "SweepConfigurationV2.StatusEnum" }, { "name": "sweepAmount", "baseName": "sweepAmount", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "targetAmount", "baseName": "targetAmount", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "triggerAmount", "baseName": "triggerAmount", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "type", "baseName": "type", - "type": "SweepConfigurationV2.TypeEnum", - "format": "" + "type": "SweepConfigurationV2.TypeEnum" } ]; static getAttributeTypeMap() { return SweepConfigurationV2.attributeTypeMap; } - - public constructor() { - } } export namespace SweepConfigurationV2 { diff --git a/src/typings/balancePlatform/sweepCounterparty.ts b/src/typings/balancePlatform/sweepCounterparty.ts index 25e37179b..5d372627a 100644 --- a/src/typings/balancePlatform/sweepCounterparty.ts +++ b/src/typings/balancePlatform/sweepCounterparty.ts @@ -12,45 +12,37 @@ export class SweepCounterparty { /** * The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). > If you are updating the counterparty from a transfer instrument to a balance account, set `transferInstrumentId` to **null**. */ - "balanceAccountId"?: string; + 'balanceAccountId'?: string; /** * The merchant account that will be the source of funds. You can only use this parameter with sweeps of `type` **pull** and if you are processing payments with Adyen. */ - "merchantAccount"?: string; + 'merchantAccount'?: string; /** * The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.> If you are updating the counterparty from a balance account to a transfer instrument, set `balanceAccountId` to **null**. */ - "transferInstrumentId"?: string; + 'transferInstrumentId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balanceAccountId", "baseName": "balanceAccountId", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "transferInstrumentId", "baseName": "transferInstrumentId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return SweepCounterparty.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/sweepSchedule.ts b/src/typings/balancePlatform/sweepSchedule.ts index bd488d9a8..3aa2fe3fd 100644 --- a/src/typings/balancePlatform/sweepSchedule.ts +++ b/src/typings/balancePlatform/sweepSchedule.ts @@ -12,36 +12,29 @@ export class SweepSchedule { /** * A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: *****, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. Required when `type` is **cron**. */ - "cronExpression"?: string; + 'cronExpression'?: string; /** * The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached. */ - "type": SweepSchedule.TypeEnum; + 'type': SweepSchedule.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "cronExpression", "baseName": "cronExpression", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "SweepSchedule.TypeEnum", - "format": "" + "type": "SweepSchedule.TypeEnum" } ]; static getAttributeTypeMap() { return SweepSchedule.attributeTypeMap; } - - public constructor() { - } } export namespace SweepSchedule { diff --git a/src/typings/balancePlatform/target.ts b/src/typings/balancePlatform/target.ts index 895b3d137..c8e1a8af7 100644 --- a/src/typings/balancePlatform/target.ts +++ b/src/typings/balancePlatform/target.ts @@ -12,36 +12,29 @@ export class Target { /** * The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder\'s balance account */ - "id": string; + 'id': string; /** * The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account. */ - "type": Target.TypeEnum; + 'type': Target.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "Target.TypeEnum", - "format": "" + "type": "Target.TypeEnum" } ]; static getAttributeTypeMap() { return Target.attributeTypeMap; } - - public constructor() { - } } export namespace Target { diff --git a/src/typings/balancePlatform/targetUpdate.ts b/src/typings/balancePlatform/targetUpdate.ts index 0d7ee1098..e01bf8762 100644 --- a/src/typings/balancePlatform/targetUpdate.ts +++ b/src/typings/balancePlatform/targetUpdate.ts @@ -12,36 +12,29 @@ export class TargetUpdate { /** * The unique identifier of the `target.type`. This can be the ID of your: * balance platform * account holder * account holder\'s balance account */ - "id"?: string; + 'id'?: string; /** * The resource for which you want to receive notifications. Possible values: * **balancePlatform**: receive notifications about balance changes in your entire balance platform. * **accountHolder**: receive notifications about balance changes of a specific user. * **balanceAccount**: receive notifications about balance changes in a specific balance account. */ - "type"?: TargetUpdate.TypeEnum; + 'type'?: TargetUpdate.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "TargetUpdate.TypeEnum", - "format": "" + "type": "TargetUpdate.TypeEnum" } ]; static getAttributeTypeMap() { return TargetUpdate.attributeTypeMap; } - - public constructor() { - } } export namespace TargetUpdate { diff --git a/src/typings/balancePlatform/thresholdRepayment.ts b/src/typings/balancePlatform/thresholdRepayment.ts index f1407a4b9..cf3d4e186 100644 --- a/src/typings/balancePlatform/thresholdRepayment.ts +++ b/src/typings/balancePlatform/thresholdRepayment.ts @@ -7,29 +7,22 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class ThresholdRepayment { - "amount": Amount; - - static readonly discriminator: string | undefined = undefined; + 'amount': Amount; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" } ]; static getAttributeTypeMap() { return ThresholdRepayment.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/timeOfDay.ts b/src/typings/balancePlatform/timeOfDay.ts index 16586d209..e2bf35ec4 100644 --- a/src/typings/balancePlatform/timeOfDay.ts +++ b/src/typings/balancePlatform/timeOfDay.ts @@ -12,35 +12,28 @@ export class TimeOfDay { /** * The end time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**. */ - "endTime"?: string; + 'endTime'?: string; /** * The start time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**. */ - "startTime"?: string; + 'startTime'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "endTime", "baseName": "endTime", - "type": "string", - "format": "" + "type": "string" }, { "name": "startTime", "baseName": "startTime", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TimeOfDay.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/timeOfDayRestriction.ts b/src/typings/balancePlatform/timeOfDayRestriction.ts index 6f3e97b6c..e5ba5199a 100644 --- a/src/typings/balancePlatform/timeOfDayRestriction.ts +++ b/src/typings/balancePlatform/timeOfDayRestriction.ts @@ -7,39 +7,31 @@ * Do not edit this class manually. */ -import { TimeOfDay } from "./timeOfDay"; - +import { TimeOfDay } from './timeOfDay'; export class TimeOfDayRestriction { /** * Defines how the condition must be evaluated. */ - "operation": string; - "value"?: TimeOfDay; - - static readonly discriminator: string | undefined = undefined; + 'operation': string; + 'value'?: TimeOfDay | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "operation", "baseName": "operation", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "TimeOfDay", - "format": "" + "type": "TimeOfDay | null" } ]; static getAttributeTypeMap() { return TimeOfDayRestriction.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/tokenRequestorsRestriction.ts b/src/typings/balancePlatform/tokenRequestorsRestriction.ts index d5124f838..153a87c5a 100644 --- a/src/typings/balancePlatform/tokenRequestorsRestriction.ts +++ b/src/typings/balancePlatform/tokenRequestorsRestriction.ts @@ -12,32 +12,25 @@ export class TokenRequestorsRestriction { /** * Defines how the condition must be evaluated. */ - "operation": string; - "value"?: Array; + 'operation': string; + 'value'?: Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "operation", "baseName": "operation", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return TokenRequestorsRestriction.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/totalAmountRestriction.ts b/src/typings/balancePlatform/totalAmountRestriction.ts index d248dc4d9..d0065cfe2 100644 --- a/src/typings/balancePlatform/totalAmountRestriction.ts +++ b/src/typings/balancePlatform/totalAmountRestriction.ts @@ -7,39 +7,31 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class TotalAmountRestriction { /** * Defines how the condition must be evaluated. */ - "operation": string; - "value"?: Amount; - - static readonly discriminator: string | undefined = undefined; + 'operation': string; + 'value'?: Amount | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "operation", "baseName": "operation", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "Amount", - "format": "" + "type": "Amount | null" } ]; static getAttributeTypeMap() { return TotalAmountRestriction.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/transactionRule.ts b/src/typings/balancePlatform/transactionRule.ts index 8de46cb38..0f59d2425 100644 --- a/src/typings/balancePlatform/transactionRule.ts +++ b/src/typings/balancePlatform/transactionRule.ts @@ -7,156 +7,136 @@ * Do not edit this class manually. */ -import { TransactionRuleEntityKey } from "./transactionRuleEntityKey"; -import { TransactionRuleInterval } from "./transactionRuleInterval"; -import { TransactionRuleRestrictions } from "./transactionRuleRestrictions"; - +import { TransactionRuleEntityKey } from './transactionRuleEntityKey'; +import { TransactionRuleInterval } from './transactionRuleInterval'; +import { TransactionRuleRestrictions } from './transactionRuleRestrictions'; export class TransactionRule { /** * The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`. If not provided, by default, the rule will accumulate data at the **paymentInstrument** level. Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. */ - "aggregationLevel"?: string; + 'aggregationLevel'?: string; /** * Your description for the transaction rule. */ - "description": string; + 'description': string; /** * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2020-12-18T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. */ - "endDate"?: string; - "entityKey": TransactionRuleEntityKey; + 'endDate'?: string; + 'entityKey': TransactionRuleEntityKey; /** * The unique identifier of the transaction rule. */ - "id"?: string; - "interval": TransactionRuleInterval; + 'id'?: string; + 'interval': TransactionRuleInterval; /** * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. */ - "outcomeType"?: TransactionRule.OutcomeTypeEnum; + 'outcomeType'?: TransactionRule.OutcomeTypeEnum; /** * Your reference for the transaction rule. */ - "reference": string; + 'reference': string; /** * Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**. */ - "requestType"?: TransactionRule.RequestTypeEnum; - "ruleRestrictions": TransactionRuleRestrictions; + 'requestType'?: TransactionRule.RequestTypeEnum; + 'ruleRestrictions': TransactionRuleRestrictions; /** * A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**. */ - "score"?: number; + 'score'?: number; /** * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2020-12-18T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. */ - "startDate"?: string; + 'startDate'?: string; /** * The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. */ - "status"?: TransactionRule.StatusEnum; + 'status'?: TransactionRule.StatusEnum; /** * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. */ - "type": TransactionRule.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': TransactionRule.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "aggregationLevel", "baseName": "aggregationLevel", - "type": "string", - "format": "" + "type": "string" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "endDate", "baseName": "endDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "entityKey", "baseName": "entityKey", - "type": "TransactionRuleEntityKey", - "format": "" + "type": "TransactionRuleEntityKey" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "interval", "baseName": "interval", - "type": "TransactionRuleInterval", - "format": "" + "type": "TransactionRuleInterval" }, { "name": "outcomeType", "baseName": "outcomeType", - "type": "TransactionRule.OutcomeTypeEnum", - "format": "" + "type": "TransactionRule.OutcomeTypeEnum" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "requestType", "baseName": "requestType", - "type": "TransactionRule.RequestTypeEnum", - "format": "" + "type": "TransactionRule.RequestTypeEnum" }, { "name": "ruleRestrictions", "baseName": "ruleRestrictions", - "type": "TransactionRuleRestrictions", - "format": "" + "type": "TransactionRuleRestrictions" }, { "name": "score", "baseName": "score", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "startDate", "baseName": "startDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "TransactionRule.StatusEnum", - "format": "" + "type": "TransactionRule.StatusEnum" }, { "name": "type", "baseName": "type", - "type": "TransactionRule.TypeEnum", - "format": "" + "type": "TransactionRule.TypeEnum" } ]; static getAttributeTypeMap() { return TransactionRule.attributeTypeMap; } - - public constructor() { - } } export namespace TransactionRule { diff --git a/src/typings/balancePlatform/transactionRuleEntityKey.ts b/src/typings/balancePlatform/transactionRuleEntityKey.ts index 93b6eea50..d4856a1e7 100644 --- a/src/typings/balancePlatform/transactionRuleEntityKey.ts +++ b/src/typings/balancePlatform/transactionRuleEntityKey.ts @@ -12,35 +12,28 @@ export class TransactionRuleEntityKey { /** * The unique identifier of the resource. */ - "entityReference"?: string; + 'entityReference'?: string; /** * The type of resource. Possible values: **balancePlatform**, **paymentInstrumentGroup**, **accountHolder**, **balanceAccount**, or **paymentInstrument**. */ - "entityType"?: string; + 'entityType'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "entityReference", "baseName": "entityReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "entityType", "baseName": "entityType", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TransactionRuleEntityKey.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/transactionRuleInfo.ts b/src/typings/balancePlatform/transactionRuleInfo.ts index b252ee194..b75b0b7e5 100644 --- a/src/typings/balancePlatform/transactionRuleInfo.ts +++ b/src/typings/balancePlatform/transactionRuleInfo.ts @@ -7,146 +7,127 @@ * Do not edit this class manually. */ -import { TransactionRuleEntityKey } from "./transactionRuleEntityKey"; -import { TransactionRuleInterval } from "./transactionRuleInterval"; -import { TransactionRuleRestrictions } from "./transactionRuleRestrictions"; - +import { TransactionRuleEntityKey } from './transactionRuleEntityKey'; +import { TransactionRuleInterval } from './transactionRuleInterval'; +import { TransactionRuleRestrictions } from './transactionRuleRestrictions'; export class TransactionRuleInfo { /** * The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`. If not provided, by default, the rule will accumulate data at the **paymentInstrument** level. Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. */ - "aggregationLevel"?: string; + 'aggregationLevel'?: string; /** * Your description for the transaction rule. */ - "description": string; + 'description': string; /** * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2020-12-18T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. */ - "endDate"?: string; - "entityKey": TransactionRuleEntityKey; - "interval": TransactionRuleInterval; + 'endDate'?: string; + 'entityKey': TransactionRuleEntityKey; + 'interval': TransactionRuleInterval; /** * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. */ - "outcomeType"?: TransactionRuleInfo.OutcomeTypeEnum; + 'outcomeType'?: TransactionRuleInfo.OutcomeTypeEnum; /** * Your reference for the transaction rule. */ - "reference": string; + 'reference': string; /** * Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**. */ - "requestType"?: TransactionRuleInfo.RequestTypeEnum; - "ruleRestrictions": TransactionRuleRestrictions; + 'requestType'?: TransactionRuleInfo.RequestTypeEnum; + 'ruleRestrictions': TransactionRuleRestrictions; /** * A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**. */ - "score"?: number; + 'score'?: number; /** * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2020-12-18T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. */ - "startDate"?: string; + 'startDate'?: string; /** * The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. */ - "status"?: TransactionRuleInfo.StatusEnum; + 'status'?: TransactionRuleInfo.StatusEnum; /** * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. */ - "type": TransactionRuleInfo.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': TransactionRuleInfo.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "aggregationLevel", "baseName": "aggregationLevel", - "type": "string", - "format": "" + "type": "string" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "endDate", "baseName": "endDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "entityKey", "baseName": "entityKey", - "type": "TransactionRuleEntityKey", - "format": "" + "type": "TransactionRuleEntityKey" }, { "name": "interval", "baseName": "interval", - "type": "TransactionRuleInterval", - "format": "" + "type": "TransactionRuleInterval" }, { "name": "outcomeType", "baseName": "outcomeType", - "type": "TransactionRuleInfo.OutcomeTypeEnum", - "format": "" + "type": "TransactionRuleInfo.OutcomeTypeEnum" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "requestType", "baseName": "requestType", - "type": "TransactionRuleInfo.RequestTypeEnum", - "format": "" + "type": "TransactionRuleInfo.RequestTypeEnum" }, { "name": "ruleRestrictions", "baseName": "ruleRestrictions", - "type": "TransactionRuleRestrictions", - "format": "" + "type": "TransactionRuleRestrictions" }, { "name": "score", "baseName": "score", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "startDate", "baseName": "startDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "TransactionRuleInfo.StatusEnum", - "format": "" + "type": "TransactionRuleInfo.StatusEnum" }, { "name": "type", "baseName": "type", - "type": "TransactionRuleInfo.TypeEnum", - "format": "" + "type": "TransactionRuleInfo.TypeEnum" } ]; static getAttributeTypeMap() { return TransactionRuleInfo.attributeTypeMap; } - - public constructor() { - } } export namespace TransactionRuleInfo { diff --git a/src/typings/balancePlatform/transactionRuleInterval.ts b/src/typings/balancePlatform/transactionRuleInterval.ts index 0791ec0d2..d3cb3f96f 100644 --- a/src/typings/balancePlatform/transactionRuleInterval.ts +++ b/src/typings/balancePlatform/transactionRuleInterval.ts @@ -7,80 +7,68 @@ * Do not edit this class manually. */ -import { Duration } from "./duration"; - +import { Duration } from './duration'; export class TransactionRuleInterval { /** * The day of month, used when the `duration.unit` is **months**. If not provided, by default, this is set to **1**, the first day of the month. */ - "dayOfMonth"?: number; + 'dayOfMonth'?: number; /** * The day of week, used when the `duration.unit` is **weeks**. If not provided, by default, this is set to **monday**. Possible values: **sunday**, **monday**, **tuesday**, **wednesday**, **thursday**, **friday**. */ - "dayOfWeek"?: TransactionRuleInterval.DayOfWeekEnum; - "duration"?: Duration; + 'dayOfWeek'?: TransactionRuleInterval.DayOfWeekEnum; + 'duration'?: Duration | null; /** * The time of day, in **hh:mm:ss** format, used when the `duration.unit` is **hours**. If not provided, by default, this is set to **00:00:00**. */ - "timeOfDay"?: string; + 'timeOfDay'?: string; /** * The [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For example, **Europe/Amsterdam**. By default, this is set to **UTC**. */ - "timeZone"?: string; + 'timeZone'?: string; /** * The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the rule conditions and limits apply, and how often counters are reset. Possible values: * **perTransaction**: conditions are evaluated and the counters are reset for every transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every first day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the lifetime of the payment instrument. * **rolling**: conditions are applied and the counters are reset based on a `duration`. If the reset date and time are not provided, Adyen applies the default reset time similar to fixed intervals. For example, if the duration is every two weeks, the counter resets every third Monday at 00:00:00 CET. * **sliding**: conditions are applied and the counters are reset based on the current time and a `duration` that you specify. */ - "type": TransactionRuleInterval.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': TransactionRuleInterval.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "dayOfMonth", "baseName": "dayOfMonth", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "dayOfWeek", "baseName": "dayOfWeek", - "type": "TransactionRuleInterval.DayOfWeekEnum", - "format": "" + "type": "TransactionRuleInterval.DayOfWeekEnum" }, { "name": "duration", "baseName": "duration", - "type": "Duration", - "format": "" + "type": "Duration | null" }, { "name": "timeOfDay", "baseName": "timeOfDay", - "type": "string", - "format": "" + "type": "string" }, { "name": "timeZone", "baseName": "timeZone", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "TransactionRuleInterval.TypeEnum", - "format": "" + "type": "TransactionRuleInterval.TypeEnum" } ]; static getAttributeTypeMap() { return TransactionRuleInterval.attributeTypeMap; } - - public constructor() { - } } export namespace TransactionRuleInterval { diff --git a/src/typings/balancePlatform/transactionRuleResponse.ts b/src/typings/balancePlatform/transactionRuleResponse.ts index 9490f93db..ca9a9c41f 100644 --- a/src/typings/balancePlatform/transactionRuleResponse.ts +++ b/src/typings/balancePlatform/transactionRuleResponse.ts @@ -7,29 +7,22 @@ * Do not edit this class manually. */ -import { TransactionRule } from "./transactionRule"; - +import { TransactionRule } from './transactionRule'; export class TransactionRuleResponse { - "transactionRule"?: TransactionRule; - - static readonly discriminator: string | undefined = undefined; + 'transactionRule'?: TransactionRule | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "transactionRule", "baseName": "transactionRule", - "type": "TransactionRule", - "format": "" + "type": "TransactionRule | null" } ]; static getAttributeTypeMap() { return TransactionRuleResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/transactionRuleRestrictions.ts b/src/typings/balancePlatform/transactionRuleRestrictions.ts index fd4ccf76c..165e38cc0 100644 --- a/src/typings/balancePlatform/transactionRuleRestrictions.ts +++ b/src/typings/balancePlatform/transactionRuleRestrictions.ts @@ -7,213 +7,190 @@ * Do not edit this class manually. */ -import { ActiveNetworkTokensRestriction } from "./activeNetworkTokensRestriction"; -import { BrandVariantsRestriction } from "./brandVariantsRestriction"; -import { CounterpartyBankRestriction } from "./counterpartyBankRestriction"; -import { CounterpartyTypesRestriction } from "./counterpartyTypesRestriction"; -import { CountriesRestriction } from "./countriesRestriction"; -import { DayOfWeekRestriction } from "./dayOfWeekRestriction"; -import { DifferentCurrenciesRestriction } from "./differentCurrenciesRestriction"; -import { EntryModesRestriction } from "./entryModesRestriction"; -import { InternationalTransactionRestriction } from "./internationalTransactionRestriction"; -import { MatchingTransactionsRestriction } from "./matchingTransactionsRestriction"; -import { MatchingValuesRestriction } from "./matchingValuesRestriction"; -import { MccsRestriction } from "./mccsRestriction"; -import { MerchantNamesRestriction } from "./merchantNamesRestriction"; -import { MerchantsRestriction } from "./merchantsRestriction"; -import { ProcessingTypesRestriction } from "./processingTypesRestriction"; -import { RiskScoresRestriction } from "./riskScoresRestriction"; -import { SameAmountRestriction } from "./sameAmountRestriction"; -import { SameCounterpartyRestriction } from "./sameCounterpartyRestriction"; -import { SourceAccountTypesRestriction } from "./sourceAccountTypesRestriction"; -import { TimeOfDayRestriction } from "./timeOfDayRestriction"; -import { TokenRequestorsRestriction } from "./tokenRequestorsRestriction"; -import { TotalAmountRestriction } from "./totalAmountRestriction"; -import { WalletProviderAccountScoreRestriction } from "./walletProviderAccountScoreRestriction"; -import { WalletProviderDeviceScore } from "./walletProviderDeviceScore"; - +import { ActiveNetworkTokensRestriction } from './activeNetworkTokensRestriction'; +import { BrandVariantsRestriction } from './brandVariantsRestriction'; +import { CounterpartyBankRestriction } from './counterpartyBankRestriction'; +import { CounterpartyTypesRestriction } from './counterpartyTypesRestriction'; +import { CountriesRestriction } from './countriesRestriction'; +import { DayOfWeekRestriction } from './dayOfWeekRestriction'; +import { DifferentCurrenciesRestriction } from './differentCurrenciesRestriction'; +import { EntryModesRestriction } from './entryModesRestriction'; +import { InternationalTransactionRestriction } from './internationalTransactionRestriction'; +import { MatchingTransactionsRestriction } from './matchingTransactionsRestriction'; +import { MatchingValuesRestriction } from './matchingValuesRestriction'; +import { MccsRestriction } from './mccsRestriction'; +import { MerchantNamesRestriction } from './merchantNamesRestriction'; +import { MerchantsRestriction } from './merchantsRestriction'; +import { ProcessingTypesRestriction } from './processingTypesRestriction'; +import { RiskScoresRestriction } from './riskScoresRestriction'; +import { SameAmountRestriction } from './sameAmountRestriction'; +import { SameCounterpartyRestriction } from './sameCounterpartyRestriction'; +import { SourceAccountTypesRestriction } from './sourceAccountTypesRestriction'; +import { TimeOfDayRestriction } from './timeOfDayRestriction'; +import { TokenRequestorsRestriction } from './tokenRequestorsRestriction'; +import { TotalAmountRestriction } from './totalAmountRestriction'; +import { WalletProviderAccountScoreRestriction } from './walletProviderAccountScoreRestriction'; +import { WalletProviderDeviceScore } from './walletProviderDeviceScore'; +import { WalletProviderDeviceType } from './walletProviderDeviceType'; export class TransactionRuleRestrictions { - "activeNetworkTokens"?: ActiveNetworkTokensRestriction; - "brandVariants"?: BrandVariantsRestriction; - "counterpartyBank"?: CounterpartyBankRestriction; - "counterpartyTypes"?: CounterpartyTypesRestriction; - "countries"?: CountriesRestriction; - "dayOfWeek"?: DayOfWeekRestriction; - "differentCurrencies"?: DifferentCurrenciesRestriction; - "entryModes"?: EntryModesRestriction; - "internationalTransaction"?: InternationalTransactionRestriction; - "matchingTransactions"?: MatchingTransactionsRestriction; - "matchingValues"?: MatchingValuesRestriction; - "mccs"?: MccsRestriction; - "merchantNames"?: MerchantNamesRestriction; - "merchants"?: MerchantsRestriction; - "processingTypes"?: ProcessingTypesRestriction; - "riskScores"?: RiskScoresRestriction; - "sameAmountRestriction"?: SameAmountRestriction; - "sameCounterpartyRestriction"?: SameCounterpartyRestriction; - "sourceAccountTypes"?: SourceAccountTypesRestriction; - "timeOfDay"?: TimeOfDayRestriction; - "tokenRequestors"?: TokenRequestorsRestriction; - "totalAmount"?: TotalAmountRestriction; - "walletProviderAccountScore"?: WalletProviderAccountScoreRestriction; - "walletProviderDeviceScore"?: WalletProviderDeviceScore; - - static readonly discriminator: string | undefined = undefined; + 'activeNetworkTokens'?: ActiveNetworkTokensRestriction | null; + 'brandVariants'?: BrandVariantsRestriction | null; + 'counterpartyBank'?: CounterpartyBankRestriction | null; + 'counterpartyTypes'?: CounterpartyTypesRestriction | null; + 'countries'?: CountriesRestriction | null; + 'dayOfWeek'?: DayOfWeekRestriction | null; + 'differentCurrencies'?: DifferentCurrenciesRestriction | null; + 'entryModes'?: EntryModesRestriction | null; + 'internationalTransaction'?: InternationalTransactionRestriction | null; + 'matchingTransactions'?: MatchingTransactionsRestriction | null; + 'matchingValues'?: MatchingValuesRestriction | null; + 'mccs'?: MccsRestriction | null; + 'merchantNames'?: MerchantNamesRestriction | null; + 'merchants'?: MerchantsRestriction | null; + 'processingTypes'?: ProcessingTypesRestriction | null; + 'riskScores'?: RiskScoresRestriction | null; + 'sameAmountRestriction'?: SameAmountRestriction | null; + 'sameCounterpartyRestriction'?: SameCounterpartyRestriction | null; + 'sourceAccountTypes'?: SourceAccountTypesRestriction | null; + 'timeOfDay'?: TimeOfDayRestriction | null; + 'tokenRequestors'?: TokenRequestorsRestriction | null; + 'totalAmount'?: TotalAmountRestriction | null; + 'walletProviderAccountScore'?: WalletProviderAccountScoreRestriction | null; + 'walletProviderDeviceScore'?: WalletProviderDeviceScore | null; + 'walletProviderDeviceType'?: WalletProviderDeviceType | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "activeNetworkTokens", "baseName": "activeNetworkTokens", - "type": "ActiveNetworkTokensRestriction", - "format": "" + "type": "ActiveNetworkTokensRestriction | null" }, { "name": "brandVariants", "baseName": "brandVariants", - "type": "BrandVariantsRestriction", - "format": "" + "type": "BrandVariantsRestriction | null" }, { "name": "counterpartyBank", "baseName": "counterpartyBank", - "type": "CounterpartyBankRestriction", - "format": "" + "type": "CounterpartyBankRestriction | null" }, { "name": "counterpartyTypes", "baseName": "counterpartyTypes", - "type": "CounterpartyTypesRestriction", - "format": "" + "type": "CounterpartyTypesRestriction | null" }, { "name": "countries", "baseName": "countries", - "type": "CountriesRestriction", - "format": "" + "type": "CountriesRestriction | null" }, { "name": "dayOfWeek", "baseName": "dayOfWeek", - "type": "DayOfWeekRestriction", - "format": "" + "type": "DayOfWeekRestriction | null" }, { "name": "differentCurrencies", "baseName": "differentCurrencies", - "type": "DifferentCurrenciesRestriction", - "format": "" + "type": "DifferentCurrenciesRestriction | null" }, { "name": "entryModes", "baseName": "entryModes", - "type": "EntryModesRestriction", - "format": "" + "type": "EntryModesRestriction | null" }, { "name": "internationalTransaction", "baseName": "internationalTransaction", - "type": "InternationalTransactionRestriction", - "format": "" + "type": "InternationalTransactionRestriction | null" }, { "name": "matchingTransactions", "baseName": "matchingTransactions", - "type": "MatchingTransactionsRestriction", - "format": "" + "type": "MatchingTransactionsRestriction | null" }, { "name": "matchingValues", "baseName": "matchingValues", - "type": "MatchingValuesRestriction", - "format": "" + "type": "MatchingValuesRestriction | null" }, { "name": "mccs", "baseName": "mccs", - "type": "MccsRestriction", - "format": "" + "type": "MccsRestriction | null" }, { "name": "merchantNames", "baseName": "merchantNames", - "type": "MerchantNamesRestriction", - "format": "" + "type": "MerchantNamesRestriction | null" }, { "name": "merchants", "baseName": "merchants", - "type": "MerchantsRestriction", - "format": "" + "type": "MerchantsRestriction | null" }, { "name": "processingTypes", "baseName": "processingTypes", - "type": "ProcessingTypesRestriction", - "format": "" + "type": "ProcessingTypesRestriction | null" }, { "name": "riskScores", "baseName": "riskScores", - "type": "RiskScoresRestriction", - "format": "" + "type": "RiskScoresRestriction | null" }, { "name": "sameAmountRestriction", "baseName": "sameAmountRestriction", - "type": "SameAmountRestriction", - "format": "" + "type": "SameAmountRestriction | null" }, { "name": "sameCounterpartyRestriction", "baseName": "sameCounterpartyRestriction", - "type": "SameCounterpartyRestriction", - "format": "" + "type": "SameCounterpartyRestriction | null" }, { "name": "sourceAccountTypes", "baseName": "sourceAccountTypes", - "type": "SourceAccountTypesRestriction", - "format": "" + "type": "SourceAccountTypesRestriction | null" }, { "name": "timeOfDay", "baseName": "timeOfDay", - "type": "TimeOfDayRestriction", - "format": "" + "type": "TimeOfDayRestriction | null" }, { "name": "tokenRequestors", "baseName": "tokenRequestors", - "type": "TokenRequestorsRestriction", - "format": "" + "type": "TokenRequestorsRestriction | null" }, { "name": "totalAmount", "baseName": "totalAmount", - "type": "TotalAmountRestriction", - "format": "" + "type": "TotalAmountRestriction | null" }, { "name": "walletProviderAccountScore", "baseName": "walletProviderAccountScore", - "type": "WalletProviderAccountScoreRestriction", - "format": "" + "type": "WalletProviderAccountScoreRestriction | null" }, { "name": "walletProviderDeviceScore", "baseName": "walletProviderDeviceScore", - "type": "WalletProviderDeviceScore", - "format": "" + "type": "WalletProviderDeviceScore | null" + }, + { + "name": "walletProviderDeviceType", + "baseName": "walletProviderDeviceType", + "type": "WalletProviderDeviceType | null" } ]; static getAttributeTypeMap() { return TransactionRuleRestrictions.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/transactionRulesResponse.ts b/src/typings/balancePlatform/transactionRulesResponse.ts index cdcf1b9ce..e4022e074 100644 --- a/src/typings/balancePlatform/transactionRulesResponse.ts +++ b/src/typings/balancePlatform/transactionRulesResponse.ts @@ -7,32 +7,25 @@ * Do not edit this class manually. */ -import { TransactionRule } from "./transactionRule"; - +import { TransactionRule } from './transactionRule'; export class TransactionRulesResponse { /** * List of transaction rules. */ - "transactionRules"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'transactionRules'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "transactionRules", "baseName": "transactionRules", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return TransactionRulesResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/transferRoute.ts b/src/typings/balancePlatform/transferRoute.ts index 260300900..b18de62f8 100644 --- a/src/typings/balancePlatform/transferRoute.ts +++ b/src/typings/balancePlatform/transferRoute.ts @@ -7,73 +7,70 @@ * Do not edit this class manually. */ -import { TransferRouteRequirementsInner } from "./transferRouteRequirementsInner"; - +import { AddressRequirement } from './addressRequirement'; +import { AddressRequirement | AmountMinMaxRequirement | AmountNonZeroDecimalsRequirement | BankAccountIdentificationTypeRequirement | IbanAccountIdentificationRequirement | PaymentInstrumentRequirement | USInstantPayoutAddressRequirement | USInternationalAchAddressRequirement } from './addressRequirement | AmountMinMaxRequirement | AmountNonZeroDecimalsRequirement | BankAccountIdentificationTypeRequirement | IbanAccountIdentificationRequirement | PaymentInstrumentRequirement | USInstantPayoutAddressRequirement | USInternationalAchAddressRequirement'; +import { AmountMinMaxRequirement } from './amountMinMaxRequirement'; +import { AmountNonZeroDecimalsRequirement } from './amountNonZeroDecimalsRequirement'; +import { BankAccountIdentificationTypeRequirement } from './bankAccountIdentificationTypeRequirement'; +import { IbanAccountIdentificationRequirement } from './ibanAccountIdentificationRequirement'; +import { PaymentInstrumentRequirement } from './paymentInstrumentRequirement'; +import { USInstantPayoutAddressRequirement } from './uSInstantPayoutAddressRequirement'; +import { USInternationalAchAddressRequirement } from './uSInternationalAchAddressRequirement'; export class TransferRoute { /** * The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. */ - "category"?: TransferRoute.CategoryEnum; + 'category'?: TransferRoute.CategoryEnum; /** * The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**. */ - "country"?: string; + 'country'?: string; /** * The three-character ISO currency code of transfer. For example, **USD** or **EUR**. */ - "currency"?: string; + '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 in [SEPA countries](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; + 'priority'?: TransferRoute.PriorityEnum; /** * A set of rules defined by clearing houses and banking partners. Your transfer request must adhere to these rules to ensure successful initiation of transfer. Based on the priority, one or more requirements may be returned. Each requirement is defined with a `type` and `description`. */ - "requirements"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'requirements'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "category", "baseName": "category", - "type": "TransferRoute.CategoryEnum", - "format": "" + "type": "TransferRoute.CategoryEnum" }, { "name": "country", "baseName": "country", - "type": "string", - "format": "" + "type": "string" }, { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "priority", "baseName": "priority", - "type": "TransferRoute.PriorityEnum", - "format": "" + "type": "TransferRoute.PriorityEnum" }, { "name": "requirements", "baseName": "requirements", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return TransferRoute.attributeTypeMap; } - - public constructor() { - } } export namespace TransferRoute { @@ -81,6 +78,7 @@ export namespace TransferRoute { Bank = 'bank', Card = 'card', Grants = 'grants', + Interest = 'interest', Internal = 'internal', IssuedCard = 'issuedCard', Migration = 'migration', diff --git a/src/typings/balancePlatform/transferRouteRequest.ts b/src/typings/balancePlatform/transferRouteRequest.ts index ad5c10a82..428842b4c 100644 --- a/src/typings/balancePlatform/transferRouteRequest.ts +++ b/src/typings/balancePlatform/transferRouteRequest.ts @@ -7,90 +7,77 @@ * Do not edit this class manually. */ -import { Counterparty } from "./counterparty"; - +import { Counterparty } from './counterparty'; export class TransferRouteRequest { /** * The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). Required if `counterparty` is **transferInstrumentId**. */ - "balanceAccountId"?: string; + 'balanceAccountId'?: string; /** * The unique identifier assigned to the balance platform associated with the account holder. */ - "balancePlatform": string; + 'balancePlatform': string; /** * The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. */ - "category": TransferRouteRequest.CategoryEnum; - "counterparty"?: Counterparty; + 'category': TransferRouteRequest.CategoryEnum; + 'counterparty'?: Counterparty | null; /** * The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**. > Either `counterparty` or `country` field must be provided in a transfer route request. */ - "country"?: string; + 'country'?: string; /** * The three-character ISO currency code of transfer. For example, **USD** or **EUR**. */ - "currency": string; + '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 in [SEPA countries](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; - - static readonly discriminator: string | undefined = undefined; + 'priorities'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balanceAccountId", "baseName": "balanceAccountId", - "type": "string", - "format": "" + "type": "string" }, { "name": "balancePlatform", "baseName": "balancePlatform", - "type": "string", - "format": "" + "type": "string" }, { "name": "category", "baseName": "category", - "type": "TransferRouteRequest.CategoryEnum", - "format": "" + "type": "TransferRouteRequest.CategoryEnum" }, { "name": "counterparty", "baseName": "counterparty", - "type": "Counterparty", - "format": "" + "type": "Counterparty | null" }, { "name": "country", "baseName": "country", - "type": "string", - "format": "" + "type": "string" }, { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "priorities", "baseName": "priorities", - "type": "TransferRouteRequest.PrioritiesEnum", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return TransferRouteRequest.attributeTypeMap; } - - public constructor() { - } } export namespace TransferRouteRequest { diff --git a/src/typings/balancePlatform/transferRouteRequirementsInner.ts b/src/typings/balancePlatform/transferRouteRequirementsInner.ts deleted file mode 100644 index d347f2e19..000000000 --- a/src/typings/balancePlatform/transferRouteRequirementsInner.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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 { AddressRequirement } from "./addressRequirement"; -import { AmountMinMaxRequirement } from "./amountMinMaxRequirement"; -import { AmountNonZeroDecimalsRequirement } from "./amountNonZeroDecimalsRequirement"; -import { BankAccountIdentificationTypeRequirement } from "./bankAccountIdentificationTypeRequirement"; -import { IbanAccountIdentificationRequirement } from "./ibanAccountIdentificationRequirement"; -import { PaymentInstrumentRequirement } from "./paymentInstrumentRequirement"; -import { USInstantPayoutAddressRequirement } from "./uSInstantPayoutAddressRequirement"; -import { USInternationalAchAddressRequirement } from "./uSInternationalAchAddressRequirement"; - - -/** - * @type TransferRouteRequirementsInner - * Type - * @export - */ -export type TransferRouteRequirementsInner = AddressRequirement | AmountMinMaxRequirement | AmountNonZeroDecimalsRequirement | BankAccountIdentificationTypeRequirement | IbanAccountIdentificationRequirement | PaymentInstrumentRequirement | USInstantPayoutAddressRequirement | USInternationalAchAddressRequirement; - -/** -* @type TransferRouteRequirementsInnerClass -* @export -*/ -export class TransferRouteRequirementsInnerClass { - - static readonly discriminator: string = "type"; - - static readonly mapping: {[index: string]: string} | undefined = undefined; -} diff --git a/src/typings/balancePlatform/transferRouteResponse.ts b/src/typings/balancePlatform/transferRouteResponse.ts index adf413ba2..777a92a85 100644 --- a/src/typings/balancePlatform/transferRouteResponse.ts +++ b/src/typings/balancePlatform/transferRouteResponse.ts @@ -7,32 +7,25 @@ * Do not edit this class manually. */ -import { TransferRoute } from "./transferRoute"; - +import { TransferRoute } from './transferRoute'; export class TransferRouteResponse { /** * List of available priorities for a transfer, along with requirements. Use this information to initiate a transfer. */ - "transferRoutes"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'transferRoutes'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "transferRoutes", "baseName": "transferRoutes", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return TransferRouteResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/uKLocalAccountIdentification.ts b/src/typings/balancePlatform/uKLocalAccountIdentification.ts index 5dc48dcb2..dc7fd2267 100644 --- a/src/typings/balancePlatform/uKLocalAccountIdentification.ts +++ b/src/typings/balancePlatform/uKLocalAccountIdentification.ts @@ -12,46 +12,38 @@ export class UKLocalAccountIdentification { /** * The 8-digit bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. */ - "sortCode": string; + 'sortCode': string; /** * **ukLocal** */ - "type": UKLocalAccountIdentification.TypeEnum; + 'type': UKLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "sortCode", "baseName": "sortCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "UKLocalAccountIdentification.TypeEnum", - "format": "" + "type": "UKLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return UKLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace UKLocalAccountIdentification { diff --git a/src/typings/balancePlatform/uSInstantPayoutAddressRequirement.ts b/src/typings/balancePlatform/uSInstantPayoutAddressRequirement.ts index e6710dd5e..b8787dc18 100644 --- a/src/typings/balancePlatform/uSInstantPayoutAddressRequirement.ts +++ b/src/typings/balancePlatform/uSInstantPayoutAddressRequirement.ts @@ -12,36 +12,29 @@ export class USInstantPayoutAddressRequirement { /** * Specifies that you must provide complete street addresses for the party and counterParty for transactions greater than USD 3000. */ - "description"?: string; + 'description'?: string; /** * **usInstantPayoutAddressRequirement** */ - "type": USInstantPayoutAddressRequirement.TypeEnum; + 'type': USInstantPayoutAddressRequirement.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "USInstantPayoutAddressRequirement.TypeEnum", - "format": "" + "type": "USInstantPayoutAddressRequirement.TypeEnum" } ]; static getAttributeTypeMap() { return USInstantPayoutAddressRequirement.attributeTypeMap; } - - public constructor() { - } } export namespace USInstantPayoutAddressRequirement { diff --git a/src/typings/balancePlatform/uSInternationalAchAddressRequirement.ts b/src/typings/balancePlatform/uSInternationalAchAddressRequirement.ts index f75ce01a8..f9e7a0b3b 100644 --- a/src/typings/balancePlatform/uSInternationalAchAddressRequirement.ts +++ b/src/typings/balancePlatform/uSInternationalAchAddressRequirement.ts @@ -12,36 +12,29 @@ export class USInternationalAchAddressRequirement { /** * Specifies that you must provide a complete street address for International ACH (IAT) transactions. */ - "description"?: string; + 'description'?: string; /** * **usInternationalAchAddressRequirement** */ - "type": USInternationalAchAddressRequirement.TypeEnum; + 'type': USInternationalAchAddressRequirement.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "USInternationalAchAddressRequirement.TypeEnum", - "format": "" + "type": "USInternationalAchAddressRequirement.TypeEnum" } ]; static getAttributeTypeMap() { return USInternationalAchAddressRequirement.attributeTypeMap; } - - public constructor() { - } } export namespace USInternationalAchAddressRequirement { diff --git a/src/typings/balancePlatform/uSLocalAccountIdentification.ts b/src/typings/balancePlatform/uSLocalAccountIdentification.ts index f9b3cc960..af0ddefd0 100644 --- a/src/typings/balancePlatform/uSLocalAccountIdentification.ts +++ b/src/typings/balancePlatform/uSLocalAccountIdentification.ts @@ -12,56 +12,47 @@ export class USLocalAccountIdentification { /** * The bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ - "accountType"?: USLocalAccountIdentification.AccountTypeEnum; + 'accountType'?: USLocalAccountIdentification.AccountTypeEnum; /** * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. */ - "routingNumber": string; + 'routingNumber': string; /** * **usLocal** */ - "type": USLocalAccountIdentification.TypeEnum; + 'type': USLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "accountType", "baseName": "accountType", - "type": "USLocalAccountIdentification.AccountTypeEnum", - "format": "" + "type": "USLocalAccountIdentification.AccountTypeEnum" }, { "name": "routingNumber", "baseName": "routingNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "USLocalAccountIdentification.TypeEnum", - "format": "" + "type": "USLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return USLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace USLocalAccountIdentification { diff --git a/src/typings/balancePlatform/updateNetworkTokenRequest.ts b/src/typings/balancePlatform/updateNetworkTokenRequest.ts index e3ae656c0..d5e827f4c 100644 --- a/src/typings/balancePlatform/updateNetworkTokenRequest.ts +++ b/src/typings/balancePlatform/updateNetworkTokenRequest.ts @@ -12,26 +12,20 @@ export class UpdateNetworkTokenRequest { /** * The new status of the network token. Possible values: **active**, **suspended**, **closed**. The **closed** status is final and cannot be changed. */ - "status"?: UpdateNetworkTokenRequest.StatusEnum; + 'status'?: UpdateNetworkTokenRequest.StatusEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "status", "baseName": "status", - "type": "UpdateNetworkTokenRequest.StatusEnum", - "format": "" + "type": "UpdateNetworkTokenRequest.StatusEnum" } ]; static getAttributeTypeMap() { return UpdateNetworkTokenRequest.attributeTypeMap; } - - public constructor() { - } } export namespace UpdateNetworkTokenRequest { diff --git a/src/typings/balancePlatform/updatePaymentInstrument.ts b/src/typings/balancePlatform/updatePaymentInstrument.ts index 39ce81850..df637fe94 100644 --- a/src/typings/balancePlatform/updatePaymentInstrument.ts +++ b/src/typings/balancePlatform/updatePaymentInstrument.ts @@ -7,10 +7,9 @@ * Do not edit this class manually. */ -import { BankAccountDetails } from "./bankAccountDetails"; -import { Card } from "./card"; -import { PaymentInstrumentAdditionalBankAccountIdentificationsInner } from "./paymentInstrumentAdditionalBankAccountIdentificationsInner"; - +import { BankAccountDetails } from './bankAccountDetails'; +import { Card } from './card'; +import { IbanAccountIdentification } from './ibanAccountIdentification'; export class UpdatePaymentInstrument { /** @@ -19,160 +18,140 @@ export class UpdatePaymentInstrument { * @deprecated since Configuration API v2 * Please use `bankAccount` object instead */ - "additionalBankAccountIdentifications"?: Array; + 'additionalBankAccountIdentifications'?: Array; /** * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. */ - "balanceAccountId": string; - "bankAccount"?: BankAccountDetails; - "card"?: Card; + 'balanceAccountId': string; + 'bankAccount'?: BankAccountDetails | null; + 'card'?: Card | null; /** * Your description for the payment instrument, maximum 300 characters. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the payment instrument. */ - "id": string; + 'id': string; /** * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. */ - "issuingCountryCode": string; + 'issuingCountryCode': string; /** * The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. */ - "paymentInstrumentGroupId"?: string; + 'paymentInstrumentGroupId'?: string; /** * Your reference for the payment instrument, maximum 150 characters. */ - "reference"?: string; + 'reference'?: string; /** * The unique identifier of the payment instrument that replaced this payment instrument. */ - "replacedById"?: string; + 'replacedById'?: string; /** * The unique identifier of the payment instrument that is replaced by this payment instrument. */ - "replacementOfId"?: string; + 'replacementOfId'?: string; /** * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. */ - "status"?: UpdatePaymentInstrument.StatusEnum; + 'status'?: UpdatePaymentInstrument.StatusEnum; /** * Comment for the status of the payment instrument. Required if `statusReason` is **other**. */ - "statusComment"?: string; + 'statusComment'?: string; /** * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. */ - "statusReason"?: UpdatePaymentInstrument.StatusReasonEnum; + 'statusReason'?: UpdatePaymentInstrument.StatusReasonEnum; /** * The type of payment instrument. Possible values: **card**, **bankAccount**. */ - "type": UpdatePaymentInstrument.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': UpdatePaymentInstrument.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalBankAccountIdentifications", "baseName": "additionalBankAccountIdentifications", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "balanceAccountId", "baseName": "balanceAccountId", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankAccount", "baseName": "bankAccount", - "type": "BankAccountDetails", - "format": "" + "type": "BankAccountDetails | null" }, { "name": "card", "baseName": "card", - "type": "Card", - "format": "" + "type": "Card | null" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuingCountryCode", "baseName": "issuingCountryCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentInstrumentGroupId", "baseName": "paymentInstrumentGroupId", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "replacedById", "baseName": "replacedById", - "type": "string", - "format": "" + "type": "string" }, { "name": "replacementOfId", "baseName": "replacementOfId", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "UpdatePaymentInstrument.StatusEnum", - "format": "" + "type": "UpdatePaymentInstrument.StatusEnum" }, { "name": "statusComment", "baseName": "statusComment", - "type": "string", - "format": "" + "type": "string" }, { "name": "statusReason", "baseName": "statusReason", - "type": "UpdatePaymentInstrument.StatusReasonEnum", - "format": "" + "type": "UpdatePaymentInstrument.StatusReasonEnum" }, { "name": "type", "baseName": "type", - "type": "UpdatePaymentInstrument.TypeEnum", - "format": "" + "type": "UpdatePaymentInstrument.TypeEnum" } ]; static getAttributeTypeMap() { return UpdatePaymentInstrument.attributeTypeMap; } - - public constructor() { - } } export namespace UpdatePaymentInstrument { diff --git a/src/typings/balancePlatform/updateSweepConfigurationV2.ts b/src/typings/balancePlatform/updateSweepConfigurationV2.ts index eaaf795a3..4d8b3de55 100644 --- a/src/typings/balancePlatform/updateSweepConfigurationV2.ts +++ b/src/typings/balancePlatform/updateSweepConfigurationV2.ts @@ -7,170 +7,148 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { SweepCounterparty } from "./sweepCounterparty"; -import { SweepSchedule } from "./sweepSchedule"; - +import { Amount } from './amount'; +import { SweepCounterparty } from './sweepCounterparty'; +import { SweepSchedule } from './sweepSchedule'; export class UpdateSweepConfigurationV2 { /** * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. */ - "category"?: UpdateSweepConfigurationV2.CategoryEnum; - "counterparty"?: SweepCounterparty; + 'category'?: UpdateSweepConfigurationV2.CategoryEnum; + 'counterparty'?: SweepCounterparty | null; /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). */ - "currency"?: string; + 'currency'?: string; /** * The message that will be used in the sweep transfer\'s description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the sweep. */ - "id"?: string; + '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 in [SEPA countries](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; + 'priorities'?: Array; /** * The reason for disabling the sweep. */ - "reason"?: UpdateSweepConfigurationV2.ReasonEnum; + 'reason'?: UpdateSweepConfigurationV2.ReasonEnum; /** * The human readable reason for disabling the sweep. */ - "reasonDetail"?: string; + 'reasonDetail'?: string; /** * Your reference for the sweep configuration. */ - "reference"?: string; + 'reference'?: string; /** * The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. */ - "referenceForBeneficiary"?: string; - "schedule"?: SweepSchedule; + 'referenceForBeneficiary'?: string; + 'schedule'?: SweepSchedule | null; /** * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. */ - "status"?: UpdateSweepConfigurationV2.StatusEnum; - "sweepAmount"?: Amount; - "targetAmount"?: Amount; - "triggerAmount"?: Amount; + 'status'?: UpdateSweepConfigurationV2.StatusEnum; + 'sweepAmount'?: Amount | null; + 'targetAmount'?: Amount | null; + 'triggerAmount'?: Amount | null; /** * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. */ - "type"?: UpdateSweepConfigurationV2.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type'?: UpdateSweepConfigurationV2.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "category", "baseName": "category", - "type": "UpdateSweepConfigurationV2.CategoryEnum", - "format": "" + "type": "UpdateSweepConfigurationV2.CategoryEnum" }, { "name": "counterparty", "baseName": "counterparty", - "type": "SweepCounterparty", - "format": "" + "type": "SweepCounterparty | null" }, { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "priorities", "baseName": "priorities", - "type": "UpdateSweepConfigurationV2.PrioritiesEnum", - "format": "" + "type": "Array" }, { "name": "reason", "baseName": "reason", - "type": "UpdateSweepConfigurationV2.ReasonEnum", - "format": "" + "type": "UpdateSweepConfigurationV2.ReasonEnum" }, { "name": "reasonDetail", "baseName": "reasonDetail", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "referenceForBeneficiary", "baseName": "referenceForBeneficiary", - "type": "string", - "format": "" + "type": "string" }, { "name": "schedule", "baseName": "schedule", - "type": "SweepSchedule", - "format": "" + "type": "SweepSchedule | null" }, { "name": "status", "baseName": "status", - "type": "UpdateSweepConfigurationV2.StatusEnum", - "format": "" + "type": "UpdateSweepConfigurationV2.StatusEnum" }, { "name": "sweepAmount", "baseName": "sweepAmount", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "targetAmount", "baseName": "targetAmount", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "triggerAmount", "baseName": "triggerAmount", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "type", "baseName": "type", - "type": "UpdateSweepConfigurationV2.TypeEnum", - "format": "" + "type": "UpdateSweepConfigurationV2.TypeEnum" } ]; static getAttributeTypeMap() { return UpdateSweepConfigurationV2.attributeTypeMap; } - - public constructor() { - } } export namespace UpdateSweepConfigurationV2 { diff --git a/src/typings/balancePlatform/verificationDeadline.ts b/src/typings/balancePlatform/verificationDeadline.ts index f3040c497..169e3f154 100644 --- a/src/typings/balancePlatform/verificationDeadline.ts +++ b/src/typings/balancePlatform/verificationDeadline.ts @@ -12,46 +12,38 @@ export class VerificationDeadline { /** * The names of the capabilities to be disallowed. */ - "capabilities": Array; + 'capabilities': Array; /** * The unique identifiers of the bank account(s) that the deadline applies to */ - "entityIds"?: Array; + 'entityIds'?: Array; /** * The date that verification is due by before capabilities are disallowed. */ - "expiresAt": Date; + 'expiresAt': Date; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "capabilities", "baseName": "capabilities", - "type": "VerificationDeadline.CapabilitiesEnum", - "format": "" + "type": "Array" }, { "name": "entityIds", "baseName": "entityIds", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "expiresAt", "baseName": "expiresAt", - "type": "Date", - "format": "date-time" + "type": "Date" } ]; static getAttributeTypeMap() { return VerificationDeadline.attributeTypeMap; } - - public constructor() { - } } export namespace VerificationDeadline { diff --git a/src/typings/balancePlatform/verificationError.ts b/src/typings/balancePlatform/verificationError.ts index ce4c1c6c1..6295a0e3e 100644 --- a/src/typings/balancePlatform/verificationError.ts +++ b/src/typings/balancePlatform/verificationError.ts @@ -7,84 +7,72 @@ * Do not edit this class manually. */ -import { RemediatingAction } from "./remediatingAction"; -import { VerificationErrorRecursive } from "./verificationErrorRecursive"; - +import { RemediatingAction } from './remediatingAction'; +import { VerificationErrorRecursive } from './verificationErrorRecursive'; export class VerificationError { /** * Contains the capabilities that the verification error applies to. */ - "capabilities"?: Array; + 'capabilities'?: Array; /** * The verification error code. */ - "code"?: string; + 'code'?: string; /** * A description of the error. */ - "message"?: string; + 'message'?: string; /** * Contains the actions that you can take to resolve the verification error. */ - "remediatingActions"?: Array; + 'remediatingActions'?: Array; /** * Contains more granular information about the verification error. */ - "subErrors"?: Array; + 'subErrors'?: Array; /** - * The type of error. Possible values: **invalidInput**, **dataMissing**. + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** */ - "type"?: VerificationError.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type'?: VerificationError.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "capabilities", "baseName": "capabilities", - "type": "VerificationError.CapabilitiesEnum", - "format": "" + "type": "Array" }, { "name": "code", "baseName": "code", - "type": "string", - "format": "" + "type": "string" }, { "name": "message", "baseName": "message", - "type": "string", - "format": "" + "type": "string" }, { "name": "remediatingActions", "baseName": "remediatingActions", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "subErrors", "baseName": "subErrors", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "type", "baseName": "type", - "type": "VerificationError.TypeEnum", - "format": "" + "type": "VerificationError.TypeEnum" } ]; static getAttributeTypeMap() { return VerificationError.attributeTypeMap; } - - public constructor() { - } } export namespace VerificationError { diff --git a/src/typings/balancePlatform/verificationErrorRecursive.ts b/src/typings/balancePlatform/verificationErrorRecursive.ts index 079d32f73..79f870449 100644 --- a/src/typings/balancePlatform/verificationErrorRecursive.ts +++ b/src/typings/balancePlatform/verificationErrorRecursive.ts @@ -7,73 +7,62 @@ * Do not edit this class manually. */ -import { RemediatingAction } from "./remediatingAction"; - +import { RemediatingAction } from './remediatingAction'; export class VerificationErrorRecursive { /** * Contains the capabilities that the verification error applies to. */ - "capabilities"?: Array; + 'capabilities'?: Array; /** * The verification error code. */ - "code"?: string; + 'code'?: string; /** * A description of the error. */ - "message"?: string; + 'message'?: string; /** - * The type of error. Possible values: **invalidInput**, **dataMissing**. + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** */ - "type"?: VerificationErrorRecursive.TypeEnum; + 'type'?: VerificationErrorRecursive.TypeEnum; /** * Contains the actions that you can take to resolve the verification error. */ - "remediatingActions"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'remediatingActions'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "capabilities", "baseName": "capabilities", - "type": "VerificationErrorRecursive.CapabilitiesEnum", - "format": "" + "type": "Array" }, { "name": "code", "baseName": "code", - "type": "string", - "format": "" + "type": "string" }, { "name": "message", "baseName": "message", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "VerificationErrorRecursive.TypeEnum", - "format": "" + "type": "VerificationErrorRecursive.TypeEnum" }, { "name": "remediatingActions", "baseName": "remediatingActions", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return VerificationErrorRecursive.attributeTypeMap; } - - public constructor() { - } } export namespace VerificationErrorRecursive { diff --git a/src/typings/balancePlatform/walletProviderAccountScoreRestriction.ts b/src/typings/balancePlatform/walletProviderAccountScoreRestriction.ts index 0759f2f5e..f5032dd37 100644 --- a/src/typings/balancePlatform/walletProviderAccountScoreRestriction.ts +++ b/src/typings/balancePlatform/walletProviderAccountScoreRestriction.ts @@ -12,32 +12,25 @@ export class WalletProviderAccountScoreRestriction { /** * Defines how the condition must be evaluated. */ - "operation": string; - "value"?: number; + 'operation': string; + 'value'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "operation", "baseName": "operation", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return WalletProviderAccountScoreRestriction.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/walletProviderDeviceScore.ts b/src/typings/balancePlatform/walletProviderDeviceScore.ts index 918989b27..2a39962b3 100644 --- a/src/typings/balancePlatform/walletProviderDeviceScore.ts +++ b/src/typings/balancePlatform/walletProviderDeviceScore.ts @@ -12,32 +12,25 @@ export class WalletProviderDeviceScore { /** * Defines how the condition must be evaluated. */ - "operation": string; - "value"?: number; + 'operation': string; + 'value'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "operation", "baseName": "operation", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return WalletProviderDeviceScore.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balancePlatform/walletProviderDeviceType.ts b/src/typings/balancePlatform/walletProviderDeviceType.ts new file mode 100644 index 000000000..5711d8b45 --- /dev/null +++ b/src/typings/balancePlatform/walletProviderDeviceType.ts @@ -0,0 +1,48 @@ +/* + * 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 WalletProviderDeviceType { + /** + * Defines how the condition must be evaluated. + */ + 'operation': string; + 'value'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "operation", + "baseName": "operation", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return WalletProviderDeviceType.attributeTypeMap; + } +} + +export namespace WalletProviderDeviceType { + export enum ValueEnum { + Card = 'CARD', + MobilePhone = 'MOBILE_PHONE', + Other = 'OTHER', + Pc = 'PC', + TabletOrEreader = 'TABLET_OR_EREADER', + Unknown = 'UNKNOWN', + WatchOrWristband = 'WATCH_OR_WRISTBAND', + Wearable = 'WEARABLE' + } +} diff --git a/src/typings/balancePlatform/webhookSetting.ts b/src/typings/balancePlatform/webhookSetting.ts index e28586f50..d4afd39b1 100644 --- a/src/typings/balancePlatform/webhookSetting.ts +++ b/src/typings/balancePlatform/webhookSetting.ts @@ -7,69 +7,53 @@ * Do not edit this class manually. */ -import { SettingType } from "./settingType"; -import { Target } from "./target"; - +import { SettingType } from './settingType'; +import { Target } from './target'; export class WebhookSetting { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. */ - "currency": string; + 'currency': string; /** * The unique identifier of the webhook setting. */ - "id": string; - "status": string; - "target": Target; - "type": SettingType; - - static readonly discriminator: string | undefined = "type"; + 'id': string; + 'status': string; + 'target': Target; + 'type': SettingType; - static readonly mapping: {[index: string]: string} | undefined = { - "balance": "BalanceWebhookSetting", - }; + static discriminator: string | undefined = "type"; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "string", - "format": "" + "type": "string" }, { "name": "target", "baseName": "target", - "type": "Target", - "format": "" + "type": "Target" }, { "name": "type", "baseName": "type", - "type": "SettingType", - "format": "" + "type": "SettingType" } ]; static getAttributeTypeMap() { return WebhookSetting.attributeTypeMap; } - - public constructor() { - //this.type = "WebhookSetting"; - } } -export namespace WebhookSetting { -} diff --git a/src/typings/balancePlatform/webhookSettings.ts b/src/typings/balancePlatform/webhookSettings.ts index 24735404b..7533c60b3 100644 --- a/src/typings/balancePlatform/webhookSettings.ts +++ b/src/typings/balancePlatform/webhookSettings.ts @@ -7,32 +7,25 @@ * Do not edit this class manually. */ -import { WebhookSetting } from "./webhookSetting"; - +import { WebhookSetting } from './webhookSetting'; export class WebhookSettings { /** * The list of webhook settings. */ - "webhookSettings"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'webhookSettings'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "webhookSettings", "baseName": "webhookSettings", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return WebhookSettings.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balanceWebhooks/balanceAccountBalanceNotificationRequest.ts b/src/typings/balanceWebhooks/balanceAccountBalanceNotificationRequest.ts index 455c49337..626417416 100644 --- a/src/typings/balanceWebhooks/balanceAccountBalanceNotificationRequest.ts +++ b/src/typings/balanceWebhooks/balanceAccountBalanceNotificationRequest.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { BalanceNotificationData } from "./balanceNotificationData"; - +import { BalanceNotificationData } from './balanceNotificationData'; export class BalanceAccountBalanceNotificationRequest { - "data": BalanceNotificationData; + 'data': BalanceNotificationData; /** * The environment from which the webhook originated. Possible values: **test**, **live**. */ - "environment": string; + 'environment': string; /** * When the event was queued. */ - "timestamp"?: Date; + 'timestamp'?: Date; /** * Type of webhook. */ - "type": BalanceAccountBalanceNotificationRequest.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': BalanceAccountBalanceNotificationRequest.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "BalanceNotificationData", - "format": "" + "type": "BalanceNotificationData" }, { "name": "environment", "baseName": "environment", - "type": "string", - "format": "" + "type": "string" }, { "name": "timestamp", "baseName": "timestamp", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "type", "baseName": "type", - "type": "BalanceAccountBalanceNotificationRequest.TypeEnum", - "format": "" + "type": "BalanceAccountBalanceNotificationRequest.TypeEnum" } ]; static getAttributeTypeMap() { return BalanceAccountBalanceNotificationRequest.attributeTypeMap; } - - public constructor() { - } } export namespace BalanceAccountBalanceNotificationRequest { diff --git a/src/typings/balanceWebhooks/balanceNotificationData.ts b/src/typings/balanceWebhooks/balanceNotificationData.ts index 85783fa41..a8aa1b6da 100644 --- a/src/typings/balanceWebhooks/balanceNotificationData.ts +++ b/src/typings/balanceWebhooks/balanceNotificationData.ts @@ -7,89 +7,76 @@ * Do not edit this class manually. */ -import { Balances } from "./balances"; - +import { Balances } from './balances'; export class BalanceNotificationData { /** * The unique identifier of the balance account. */ - "balanceAccountId": string; + 'balanceAccountId': string; /** * The unique identifier of the balance platform. */ - "balancePlatform"?: string; - "balances": Balances; + 'balancePlatform'?: string; + 'balances': Balances; /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. */ - "creationDate"?: Date; + 'creationDate'?: Date; /** * TThe three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ - "currency": string; + 'currency': string; /** * The ID of the resource. */ - "id"?: string; + 'id'?: string; /** * The unique identifier of the balance webhook setting. */ - "settingIds": Array; - - static readonly discriminator: string | undefined = undefined; + 'settingIds': Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balanceAccountId", "baseName": "balanceAccountId", - "type": "string", - "format": "" + "type": "string" }, { "name": "balancePlatform", "baseName": "balancePlatform", - "type": "string", - "format": "" + "type": "string" }, { "name": "balances", "baseName": "balances", - "type": "Balances", - "format": "" + "type": "Balances" }, { "name": "creationDate", "baseName": "creationDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "settingIds", "baseName": "settingIds", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return BalanceNotificationData.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balanceWebhooks/balancePlatformNotificationResponse.ts b/src/typings/balanceWebhooks/balancePlatformNotificationResponse.ts index 18122d640..74120e5ab 100644 --- a/src/typings/balanceWebhooks/balancePlatformNotificationResponse.ts +++ b/src/typings/balanceWebhooks/balancePlatformNotificationResponse.ts @@ -12,25 +12,19 @@ export class BalancePlatformNotificationResponse { /** * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). */ - "notificationResponse"?: string; + 'notificationResponse'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "notificationResponse", "baseName": "notificationResponse", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return BalancePlatformNotificationResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balanceWebhooks/balanceWebhooksHandler.ts b/src/typings/balanceWebhooks/balanceWebhooksHandler.ts deleted file mode 100644 index d86551d4a..000000000 --- a/src/typings/balanceWebhooks/balanceWebhooksHandler.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* - * The version of the OpenAPI document: v1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit this class manually. - */ - -import { balanceWebhooks } from ".."; - -/** - * Union type for all supported webhook requests. - * Allows generic handling of configuration-related webhook events. - */ -export type GenericWebhook = - | balanceWebhooks.BalanceAccountBalanceNotificationRequest; - -/** - * Handler for processing BalanceWebhooks. - * - * This class provides functionality to deserialize the payload of BalanceWebhooks events. - */ -export class BalanceWebhooksHandler { - - private readonly payload: Record; - - public constructor(jsonPayload: string) { - this.payload = JSON.parse(jsonPayload); - } - - /** - * This method checks the type of the webhook payload and returns the appropriate deserialized object. - * - * @returns A deserialized object of type GenericWebhook. - * @throws Error if the type is not recognized. - */ - public getGenericWebhook(): GenericWebhook { - - const type = this.payload["type"]; - - if(Object.values(balanceWebhooks.BalanceAccountBalanceNotificationRequest.TypeEnum).includes(type)) { - return this.getBalanceAccountBalanceNotificationRequest(); - } - - throw new Error("Could not parse the json payload: " + this.payload); - - } - - /** - * Deserialize the webhook payload into a BalanceAccountBalanceNotificationRequest - * - * @returns Deserialized BalanceAccountBalanceNotificationRequest object. - */ - public getBalanceAccountBalanceNotificationRequest(): balanceWebhooks.BalanceAccountBalanceNotificationRequest { - return balanceWebhooks.ObjectSerializer.deserialize(this.payload, "BalanceAccountBalanceNotificationRequest"); - } - -} \ No newline at end of file diff --git a/src/typings/balanceWebhooks/balances.ts b/src/typings/balanceWebhooks/balances.ts index aac5e0af4..3729451f3 100644 --- a/src/typings/balanceWebhooks/balances.ts +++ b/src/typings/balanceWebhooks/balances.ts @@ -12,55 +12,46 @@ export class Balances { /** * The balance that is available for use. */ - "available"?: number; + 'available'?: number; /** * The sum of transactions that have already been settled. */ - "balance"?: number; + 'balance'?: number; /** * The sum of transactions that will be settled in the future. */ - "pending"?: number; + 'pending'?: number; /** * The balance currently held in reserve. */ - "reserved"?: number; + 'reserved'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "available", "baseName": "available", - "type": "number", - "format": "int64" + "type": "number" }, { "name": "balance", "baseName": "balance", - "type": "number", - "format": "int64" + "type": "number" }, { "name": "pending", "baseName": "pending", - "type": "number", - "format": "int64" + "type": "number" }, { "name": "reserved", "baseName": "reserved", - "type": "number", - "format": "int64" + "type": "number" } ]; static getAttributeTypeMap() { return Balances.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/balanceWebhooks/models.ts b/src/typings/balanceWebhooks/models.ts index 5803870f5..e229a8482 100644 --- a/src/typings/balanceWebhooks/models.ts +++ b/src/typings/balanceWebhooks/models.ts @@ -1,7 +1,157 @@ -export * from "./balanceAccountBalanceNotificationRequest" -export * from "./balanceNotificationData" -export * from "./balancePlatformNotificationResponse" -export * from "./balances" +/* + * The version of the OpenAPI document: v1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ -// serializing and deserializing typed objects -export * from "./objectSerializer" \ No newline at end of file + +export * from './balanceAccountBalanceNotificationRequest'; +export * from './balanceNotificationData'; +export * from './balancePlatformNotificationResponse'; +export * from './balances'; + + +import { BalanceAccountBalanceNotificationRequest } from './balanceAccountBalanceNotificationRequest'; +import { BalanceNotificationData } from './balanceNotificationData'; +import { BalancePlatformNotificationResponse } from './balancePlatformNotificationResponse'; +import { Balances } from './balances'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "BalanceAccountBalanceNotificationRequest.TypeEnum": BalanceAccountBalanceNotificationRequest.TypeEnum, +} + +let typeMap: {[index: string]: any} = { + "BalanceAccountBalanceNotificationRequest": BalanceAccountBalanceNotificationRequest, + "BalanceNotificationData": BalanceNotificationData, + "BalancePlatformNotificationResponse": BalancePlatformNotificationResponse, + "Balances": Balances, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/balanceWebhooks/objectSerializer.ts b/src/typings/balanceWebhooks/objectSerializer.ts deleted file mode 100644 index 869b57c15..000000000 --- a/src/typings/balanceWebhooks/objectSerializer.ts +++ /dev/null @@ -1,352 +0,0 @@ -export * from "./models"; - -import { BalanceAccountBalanceNotificationRequest } from "./balanceAccountBalanceNotificationRequest"; -import { BalanceNotificationData } from "./balanceNotificationData"; -import { BalancePlatformNotificationResponse } from "./balancePlatformNotificationResponse"; -import { Balances } from "./balances"; - -/* tslint:disable:no-unused-variable */ -let primitives = [ - "string", - "boolean", - "double", - "integer", - "long", - "float", - "number", - "any" - ]; - -let enumsMap: Set = new Set([ - "BalanceAccountBalanceNotificationRequest.TypeEnum", -]); - -let typeMap: {[index: string]: any} = { - "BalanceAccountBalanceNotificationRequest": BalanceAccountBalanceNotificationRequest, - "BalanceNotificationData": BalanceNotificationData, - "BalancePlatformNotificationResponse": BalancePlatformNotificationResponse, - "Balances": Balances, -} - -type MimeTypeDescriptor = { - type: string; - subtype: string; - subtypeTokens: string[]; -}; - -/** - * Every mime-type consists of a type, subtype, and optional parameters. - * The subtype can be composite, including information about the content format. - * For example: `application/json-patch+json`, `application/merge-patch+json`. - * - * This helper transforms a string mime-type into an internal representation. - * This simplifies the implementation of predicates that in turn define common rules for parsing or stringifying - * the payload. - */ -const parseMimeType = (mimeType: string): MimeTypeDescriptor => { - const [type = '', subtype = ''] = mimeType.split('/'); - return { - type, - subtype, - subtypeTokens: subtype.split('+'), - }; -}; - -type MimeTypePredicate = (mimeType: string) => boolean; - -// This factory creates a predicate function that checks a string mime-type against defined rules. -const mimeTypePredicateFactory = (predicate: (descriptor: MimeTypeDescriptor) => boolean): MimeTypePredicate => (mimeType) => predicate(parseMimeType(mimeType)); - -// Use this factory when you need to define a simple predicate based only on type and, if applicable, subtype. -const mimeTypeSimplePredicateFactory = (type: string, subtype?: string): MimeTypePredicate => mimeTypePredicateFactory((descriptor) => { - if (descriptor.type !== type) return false; - if (subtype != null && descriptor.subtype !== subtype) return false; - return true; -}); - -// Creating a set of named predicates that will help us determine how to handle different mime-types -const isTextLikeMimeType = mimeTypeSimplePredicateFactory('text'); -const isJsonMimeType = mimeTypeSimplePredicateFactory('application', 'json'); -const isJsonLikeMimeType = mimeTypePredicateFactory((descriptor) => descriptor.type === 'application' && descriptor.subtypeTokens.some((item) => item === 'json')); -const isOctetStreamMimeType = mimeTypeSimplePredicateFactory('application', 'octet-stream'); -const isFormUrlencodedMimeType = mimeTypeSimplePredicateFactory('application', 'x-www-form-urlencoded'); - -// Defining a list of mime-types in the order of prioritization for handling. -const supportedMimeTypePredicatesWithPriority: MimeTypePredicate[] = [ - isJsonMimeType, - isJsonLikeMimeType, - isTextLikeMimeType, - isOctetStreamMimeType, - isFormUrlencodedMimeType, -]; - -const nullableSuffix = " | null"; -const optionalSuffix = " | undefined"; -const arrayPrefix = "Array<"; -const arraySuffix = ">"; -const mapPrefix = "{ [key: string]: "; -const mapSuffix = "; }"; - -export class ObjectSerializer { - public static findCorrectType(data: any, expectedType: string) { - if (data == undefined) { - return expectedType; - } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { - return expectedType; - } else if (expectedType === "Date") { - return expectedType; - } else { - if (enumsMap.has(expectedType)) { - return expectedType; - } - - if (!typeMap[expectedType]) { - return expectedType; // w/e we don't know the type - } - - // Check the discriminator - let discriminatorProperty = typeMap[expectedType].discriminator; - if (discriminatorProperty == null) { - return expectedType; // the type does not have a discriminator. use it. - } else { - if (data[discriminatorProperty]) { - var discriminatorType = data[discriminatorProperty]; - let mapping = typeMap[expectedType].mapping; - if (mapping != undefined && mapping[discriminatorType]) { - return mapping[discriminatorType]; // use the type given in the discriminator - } else if(typeMap[discriminatorType]) { - return discriminatorType; - } else { - return expectedType; // discriminator did not map to a type - } - } else { - return expectedType; // discriminator was not present (or an empty string) - } - } - } - } - - /** - * Serializes a value into a plain JSON-compatible object based on its type. - * - * Supports primitives, arrays, maps, dates, enums, and classes defined in `typeMap`. - * Falls back to raw data if type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The value to serialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A JSON-compatible representation of `data`. - */ - public static serialize(data: any, type: string, format: string = ""): any { - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.serialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.serialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - if (format == "date") { - let month = data.getMonth()+1 - month = month < 10 ? "0" + month.toString() : month.toString() - let day = data.getDate(); - day = day < 10 ? "0" + day.toString() : day.toString(); - - return data.getFullYear() + "-" + month + "-" + day; - } else { - return data.toISOString(); - } - } else { - if (enumsMap.has(type)) { - return data; - } - if (!typeMap[type]) { // in case we dont know the type - return data; - } - - // Get the actual type of this object - type = this.findCorrectType(data, type); - - const clazz = typeMap[type]; - - // Safe check for getAttributeTypeMap - if (typeof clazz.getAttributeTypeMap !== "function") { - return { ...data }; // fallback: shallow copy - } - - // get the map for the correct type. - let attributeTypes = typeMap[type].getAttributeTypeMap(); - let instance: {[index: string]: any} = {}; - for (let attributeType of attributeTypes) { - instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format); - } - return instance; - } - } - - /** - * Deserializes a plain JSON-compatible object into a typed instance. - * - * Handles primitives, arrays, maps, dates, enums, and known classes from `typeMap`. - * Uses discriminators when available to resolve polymorphic types. - * Falls back to raw data if the type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The raw input to deserialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A deserialized instance or value of `data`. - */ - public static deserialize(data: any, type: string, format: string = ""): any { - // polymorphism may change the actual type. - type = ObjectSerializer.findCorrectType(data, type); - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.deserialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.deserialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - return new Date(data); - } else { - if (enumsMap.has(type)) {// is Enum - return data; - } - - if (!typeMap[type]) { // dont know the type - return data; - } - let instance = new typeMap[type](); - - // Safe check for getAttributeTypeMap - if (typeof typeMap[type].getAttributeTypeMap !== "function") { - Object.assign(instance, data); // fallback: shallow copy - return instance; - } - - let attributeTypes = typeMap[type].getAttributeTypeMap(); - for (let attributeType of attributeTypes) { - let value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format); - if (value !== undefined) { - instance[attributeType.name] = value; - } - } - return instance; - } - } - - - /** - * Normalize media type - * - * We currently do not handle any media types attributes, i.e. anything - * after a semicolon. All content is assumed to be UTF-8 compatible. - */ - public static normalizeMediaType(mediaType: string | undefined): string | undefined { - if (mediaType === undefined) { - return undefined; - } - return (mediaType.split(";")[0] ?? '').trim().toLowerCase(); - } - - /** - * From a list of possible media types, choose the one we can handle best. - * - * The order of the given media types does not have any impact on the choice - * made. - */ - public static getPreferredMediaType(mediaTypes: Array): string { - /** According to OAS 3 we should default to json */ - if (mediaTypes.length === 0) { - return "application/json"; - } - - const normalMediaTypes = mediaTypes.map(ObjectSerializer.normalizeMediaType); - - for (const predicate of supportedMimeTypePredicatesWithPriority) { - for (const mediaType of normalMediaTypes) { - if (mediaType != null && predicate(mediaType)) { - return mediaType; - } - } - } - - throw new Error("None of the given media types are supported: " + mediaTypes.join(", ")); - } - - /** - * Convert data to a string according the given media type - */ - public static stringify(data: any, mediaType: string): string { - if (isTextLikeMimeType(mediaType)) { - return String(data); - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.stringify(data); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify."); - } - - /** - * Parse data from a string according to the given media type - */ - public static parse(rawData: string, mediaType: string | undefined) { - if (mediaType === undefined) { - throw new Error("Cannot parse content. No Content-Type defined."); - } - - if (isTextLikeMimeType(mediaType)) { - return rawData; - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.parse(rawData); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse."); - } -} diff --git a/src/typings/binLookup/amount.ts b/src/typings/binLookup/amount.ts index 97b74e474..0a978eb34 100644 --- a/src/typings/binLookup/amount.ts +++ b/src/typings/binLookup/amount.ts @@ -12,35 +12,28 @@ export class Amount { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ - "currency": string; + 'currency': string; /** * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ - "value": number; + 'value': number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "number", - "format": "int64" + "type": "number" } ]; static getAttributeTypeMap() { return Amount.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/binLookup/binDetail.ts b/src/typings/binLookup/binDetail.ts index 2d7698a42..93b8a7624 100644 --- a/src/typings/binLookup/binDetail.ts +++ b/src/typings/binLookup/binDetail.ts @@ -12,25 +12,19 @@ export class BinDetail { /** * The country where the card was issued. */ - "issuerCountry"?: string; + 'issuerCountry'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "issuerCountry", "baseName": "issuerCountry", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return BinDetail.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/binLookup/cardBin.ts b/src/typings/binLookup/cardBin.ts index 1783ad7da..c4bdcb808 100644 --- a/src/typings/binLookup/cardBin.ts +++ b/src/typings/binLookup/cardBin.ts @@ -12,125 +12,109 @@ export class CardBin { /** * The first 6 digit of the card number. Enable this field via merchant account settings. */ - "bin"?: string; + 'bin'?: string; /** * If true, it indicates a commercial card. Enable this field via merchant account settings. */ - "commercial"?: boolean; + 'commercial'?: boolean; /** * The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * DEFERRED_DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this field via merchant account settings. */ - "fundingSource"?: string; + 'fundingSource'?: string; /** * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". */ - "fundsAvailability"?: string; + 'fundsAvailability'?: string; /** * The first 8 digit of the card number. Enable this field via merchant account settings. */ - "issuerBin"?: string; + 'issuerBin'?: string; /** * The issuing bank of the card. */ - "issuingBank"?: string; + 'issuingBank'?: string; /** * The country where the card was issued from. */ - "issuingCountry"?: string; + 'issuingCountry'?: string; /** * The currency of the card. */ - "issuingCurrency"?: string; + 'issuingCurrency'?: string; /** * The payment method associated with the card (e.g. visa, mc, or amex). */ - "paymentMethod"?: string; + 'paymentMethod'?: string; /** * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". */ - "payoutEligible"?: string; + 'payoutEligible'?: string; /** * The last four digits of the card number. */ - "summary"?: string; + 'summary'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "bin", "baseName": "bin", - "type": "string", - "format": "" + "type": "string" }, { "name": "commercial", "baseName": "commercial", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "fundingSource", "baseName": "fundingSource", - "type": "string", - "format": "" + "type": "string" }, { "name": "fundsAvailability", "baseName": "fundsAvailability", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuerBin", "baseName": "issuerBin", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuingBank", "baseName": "issuingBank", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuingCountry", "baseName": "issuingCountry", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuingCurrency", "baseName": "issuingCurrency", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMethod", "baseName": "paymentMethod", - "type": "string", - "format": "" + "type": "string" }, { "name": "payoutEligible", "baseName": "payoutEligible", - "type": "string", - "format": "" + "type": "string" }, { "name": "summary", "baseName": "summary", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CardBin.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/binLookup/costEstimateAssumptions.ts b/src/typings/binLookup/costEstimateAssumptions.ts index 081b84472..a4539a8bc 100644 --- a/src/typings/binLookup/costEstimateAssumptions.ts +++ b/src/typings/binLookup/costEstimateAssumptions.ts @@ -12,45 +12,37 @@ export class CostEstimateAssumptions { /** * If true, the cardholder is expected to successfully authorise via 3D Secure. */ - "assume3DSecureAuthenticated"?: boolean; + 'assume3DSecureAuthenticated'?: boolean; /** * If true, the transaction is expected to have valid Level 3 data. */ - "assumeLevel3Data"?: boolean; + 'assumeLevel3Data'?: boolean; /** * If not zero, the number of installments. */ - "installments"?: number; + 'installments'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "assume3DSecureAuthenticated", "baseName": "assume3DSecureAuthenticated", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "assumeLevel3Data", "baseName": "assumeLevel3Data", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "installments", "baseName": "installments", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return CostEstimateAssumptions.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/binLookup/costEstimateRequest.ts b/src/typings/binLookup/costEstimateRequest.ts index 3c6627ec4..2d41310e4 100644 --- a/src/typings/binLookup/costEstimateRequest.ts +++ b/src/typings/binLookup/costEstimateRequest.ts @@ -7,114 +7,98 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { CostEstimateAssumptions } from "./costEstimateAssumptions"; -import { MerchantDetails } from "./merchantDetails"; -import { Recurring } from "./recurring"; - +import { Amount } from './amount'; +import { CostEstimateAssumptions } from './costEstimateAssumptions'; +import { MerchantDetails } from './merchantDetails'; +import { Recurring } from './recurring'; export class CostEstimateRequest { - "amount": Amount; - "assumptions"?: CostEstimateAssumptions | null; + 'amount': Amount; + 'assumptions'?: CostEstimateAssumptions | null; /** * The card number (4-19 characters) for PCI compliant use cases. Do not use any separators. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. */ - "cardNumber"?: string; + 'cardNumber'?: string; /** * Encrypted data that stores card information for non PCI-compliant use cases. The encrypted data must be created with the Checkout Card Component or Secured Fields Component, and must contain the `encryptedCardNumber` field. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. */ - "encryptedCardNumber"?: string; + 'encryptedCardNumber'?: string; /** * The merchant account identifier you want to process the (transaction) request with. */ - "merchantAccount": string; - "merchantDetails"?: MerchantDetails | null; - "recurring"?: Recurring | null; + 'merchantAccount': string; + 'merchantDetails'?: MerchantDetails | null; + 'recurring'?: Recurring | null; /** * The `recurringDetailReference` you want to use for this cost estimate. The value `LATEST` can be used to select the most recently stored recurring detail. */ - "selectedRecurringDetailReference"?: string; + 'selectedRecurringDetailReference'?: string; /** * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the card holder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ - "shopperInteraction"?: CostEstimateRequest.ShopperInteractionEnum; + 'shopperInteraction'?: CostEstimateRequest.ShopperInteractionEnum; /** * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ - "shopperReference"?: string; - - static readonly discriminator: string | undefined = undefined; + 'shopperReference'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "assumptions", "baseName": "assumptions", - "type": "CostEstimateAssumptions | null", - "format": "" + "type": "CostEstimateAssumptions | null" }, { "name": "cardNumber", "baseName": "cardNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "encryptedCardNumber", "baseName": "encryptedCardNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantDetails", "baseName": "merchantDetails", - "type": "MerchantDetails | null", - "format": "" + "type": "MerchantDetails | null" }, { "name": "recurring", "baseName": "recurring", - "type": "Recurring | null", - "format": "" + "type": "Recurring | null" }, { "name": "selectedRecurringDetailReference", "baseName": "selectedRecurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperInteraction", "baseName": "shopperInteraction", - "type": "CostEstimateRequest.ShopperInteractionEnum", - "format": "" + "type": "CostEstimateRequest.ShopperInteractionEnum" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CostEstimateRequest.attributeTypeMap; } - - public constructor() { - } } export namespace CostEstimateRequest { diff --git a/src/typings/binLookup/costEstimateResponse.ts b/src/typings/binLookup/costEstimateResponse.ts index 8d62d53b6..002cbba49 100644 --- a/src/typings/binLookup/costEstimateResponse.ts +++ b/src/typings/binLookup/costEstimateResponse.ts @@ -7,57 +7,47 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { CardBin } from "./cardBin"; - +import { Amount } from './amount'; +import { CardBin } from './cardBin'; export class CostEstimateResponse { - "cardBin"?: CardBin | null; - "costEstimateAmount"?: Amount | null; + 'cardBin'?: CardBin | null; + 'costEstimateAmount'?: Amount | null; /** * Adyen\'s 16-character reference associated with the request. */ - "costEstimateReference"?: string; + 'costEstimateReference'?: string; /** * The result of the cost estimation. */ - "resultCode"?: string; - - static readonly discriminator: string | undefined = undefined; + 'resultCode'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "cardBin", "baseName": "cardBin", - "type": "CardBin | null", - "format": "" + "type": "CardBin | null" }, { "name": "costEstimateAmount", "baseName": "costEstimateAmount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "costEstimateReference", "baseName": "costEstimateReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "resultCode", "baseName": "resultCode", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CostEstimateResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/binLookup/dSPublicKeyDetail.ts b/src/typings/binLookup/dSPublicKeyDetail.ts index 8393f7232..568d4c9ba 100644 --- a/src/typings/binLookup/dSPublicKeyDetail.ts +++ b/src/typings/binLookup/dSPublicKeyDetail.ts @@ -12,65 +12,55 @@ export class DSPublicKeyDetail { /** * Card brand. */ - "brand"?: string; + 'brand'?: string; /** * Directory Server (DS) identifier. */ - "directoryServerId"?: string; + 'directoryServerId'?: string; /** * The version of the mobile 3D Secure 2 SDK. For the possible values, refer to the versions in [Adyen 3DS2 Android](https://github.com/Adyen/adyen-3ds2-android/releases) and [Adyen 3DS2 iOS](https://github.com/Adyen/adyen-3ds2-ios/releases). */ - "fromSDKVersion"?: string; + 'fromSDKVersion'?: string; /** * Public key. The 3D Secure 2 SDK encrypts the device information by using the DS public key. */ - "publicKey"?: string; + 'publicKey'?: string; /** * Directory Server root certificates. The 3D Secure 2 SDK verifies the ACS signed content using the rootCertificates. */ - "rootCertificates"?: string; + 'rootCertificates'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "brand", "baseName": "brand", - "type": "string", - "format": "" + "type": "string" }, { "name": "directoryServerId", "baseName": "directoryServerId", - "type": "string", - "format": "" + "type": "string" }, { "name": "fromSDKVersion", "baseName": "fromSDKVersion", - "type": "string", - "format": "" + "type": "string" }, { "name": "publicKey", "baseName": "publicKey", - "type": "string", - "format": "byte" + "type": "string" }, { "name": "rootCertificates", "baseName": "rootCertificates", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return DSPublicKeyDetail.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/binLookup/merchantDetails.ts b/src/typings/binLookup/merchantDetails.ts index 51fa9994f..763599c9f 100644 --- a/src/typings/binLookup/merchantDetails.ts +++ b/src/typings/binLookup/merchantDetails.ts @@ -12,45 +12,37 @@ export class MerchantDetails { /** * 2-letter ISO 3166 country code of the card acceptor location. > This parameter is required for the merchants who don\'t use Adyen as the payment authorisation gateway. */ - "countryCode"?: string; + 'countryCode'?: string; /** * If true, indicates that the merchant is enrolled in 3D Secure for the card network. */ - "enrolledIn3DSecure"?: boolean; + 'enrolledIn3DSecure'?: boolean; /** * The merchant category code (MCC) is a four-digit number which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. The list of MCCs can be found [here](https://en.wikipedia.org/wiki/Merchant_category_code). */ - "mcc"?: string; + 'mcc'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "countryCode", "baseName": "countryCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "enrolledIn3DSecure", "baseName": "enrolledIn3DSecure", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "mcc", "baseName": "mcc", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return MerchantDetails.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/binLookup/models.ts b/src/typings/binLookup/models.ts index f5e899237..2460db20f 100644 --- a/src/typings/binLookup/models.ts +++ b/src/typings/binLookup/models.ts @@ -1,16 +1,186 @@ -export * from "./amount" -export * from "./binDetail" -export * from "./cardBin" -export * from "./costEstimateAssumptions" -export * from "./costEstimateRequest" -export * from "./costEstimateResponse" -export * from "./dSPublicKeyDetail" -export * from "./merchantDetails" -export * from "./recurring" -export * from "./serviceError" -export * from "./threeDS2CardRangeDetail" -export * from "./threeDSAvailabilityRequest" -export * from "./threeDSAvailabilityResponse" - -// serializing and deserializing typed objects -export * from "./objectSerializer" \ No newline at end of file +/* + * The version of the OpenAPI document: v54 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export * from './amount'; +export * from './binDetail'; +export * from './cardBin'; +export * from './costEstimateAssumptions'; +export * from './costEstimateRequest'; +export * from './costEstimateResponse'; +export * from './dSPublicKeyDetail'; +export * from './merchantDetails'; +export * from './recurring'; +export * from './serviceError'; +export * from './threeDS2CardRangeDetail'; +export * from './threeDSAvailabilityRequest'; +export * from './threeDSAvailabilityResponse'; + + +import { Amount } from './amount'; +import { BinDetail } from './binDetail'; +import { CardBin } from './cardBin'; +import { CostEstimateAssumptions } from './costEstimateAssumptions'; +import { CostEstimateRequest } from './costEstimateRequest'; +import { CostEstimateResponse } from './costEstimateResponse'; +import { DSPublicKeyDetail } from './dSPublicKeyDetail'; +import { MerchantDetails } from './merchantDetails'; +import { Recurring } from './recurring'; +import { ServiceError } from './serviceError'; +import { ThreeDS2CardRangeDetail } from './threeDS2CardRangeDetail'; +import { ThreeDSAvailabilityRequest } from './threeDSAvailabilityRequest'; +import { ThreeDSAvailabilityResponse } from './threeDSAvailabilityResponse'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "CostEstimateRequest.ShopperInteractionEnum": CostEstimateRequest.ShopperInteractionEnum, + "Recurring.ContractEnum": Recurring.ContractEnum, + "Recurring.TokenServiceEnum": Recurring.TokenServiceEnum, +} + +let typeMap: {[index: string]: any} = { + "Amount": Amount, + "BinDetail": BinDetail, + "CardBin": CardBin, + "CostEstimateAssumptions": CostEstimateAssumptions, + "CostEstimateRequest": CostEstimateRequest, + "CostEstimateResponse": CostEstimateResponse, + "DSPublicKeyDetail": DSPublicKeyDetail, + "MerchantDetails": MerchantDetails, + "Recurring": Recurring, + "ServiceError": ServiceError, + "ThreeDS2CardRangeDetail": ThreeDS2CardRangeDetail, + "ThreeDSAvailabilityRequest": ThreeDSAvailabilityRequest, + "ThreeDSAvailabilityResponse": ThreeDSAvailabilityResponse, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/binLookup/objectSerializer.ts b/src/typings/binLookup/objectSerializer.ts deleted file mode 100644 index 1d45ce0e1..000000000 --- a/src/typings/binLookup/objectSerializer.ts +++ /dev/null @@ -1,372 +0,0 @@ -export * from "./models"; - -import { Amount } from "./amount"; -import { BinDetail } from "./binDetail"; -import { CardBin } from "./cardBin"; -import { CostEstimateAssumptions } from "./costEstimateAssumptions"; -import { CostEstimateRequest } from "./costEstimateRequest"; -import { CostEstimateResponse } from "./costEstimateResponse"; -import { DSPublicKeyDetail } from "./dSPublicKeyDetail"; -import { MerchantDetails } from "./merchantDetails"; -import { Recurring } from "./recurring"; -import { ServiceError } from "./serviceError"; -import { ThreeDS2CardRangeDetail } from "./threeDS2CardRangeDetail"; -import { ThreeDSAvailabilityRequest } from "./threeDSAvailabilityRequest"; -import { ThreeDSAvailabilityResponse } from "./threeDSAvailabilityResponse"; - -/* tslint:disable:no-unused-variable */ -let primitives = [ - "string", - "boolean", - "double", - "integer", - "long", - "float", - "number", - "any" - ]; - -let enumsMap: Set = new Set([ - "CostEstimateRequest.ShopperInteractionEnum", - "Recurring.ContractEnum", - "Recurring.TokenServiceEnum", -]); - -let typeMap: {[index: string]: any} = { - "Amount": Amount, - "BinDetail": BinDetail, - "CardBin": CardBin, - "CostEstimateAssumptions": CostEstimateAssumptions, - "CostEstimateRequest": CostEstimateRequest, - "CostEstimateResponse": CostEstimateResponse, - "DSPublicKeyDetail": DSPublicKeyDetail, - "MerchantDetails": MerchantDetails, - "Recurring": Recurring, - "ServiceError": ServiceError, - "ThreeDS2CardRangeDetail": ThreeDS2CardRangeDetail, - "ThreeDSAvailabilityRequest": ThreeDSAvailabilityRequest, - "ThreeDSAvailabilityResponse": ThreeDSAvailabilityResponse, -} - -type MimeTypeDescriptor = { - type: string; - subtype: string; - subtypeTokens: string[]; -}; - -/** - * Every mime-type consists of a type, subtype, and optional parameters. - * The subtype can be composite, including information about the content format. - * For example: `application/json-patch+json`, `application/merge-patch+json`. - * - * This helper transforms a string mime-type into an internal representation. - * This simplifies the implementation of predicates that in turn define common rules for parsing or stringifying - * the payload. - */ -const parseMimeType = (mimeType: string): MimeTypeDescriptor => { - const [type = '', subtype = ''] = mimeType.split('/'); - return { - type, - subtype, - subtypeTokens: subtype.split('+'), - }; -}; - -type MimeTypePredicate = (mimeType: string) => boolean; - -// This factory creates a predicate function that checks a string mime-type against defined rules. -const mimeTypePredicateFactory = (predicate: (descriptor: MimeTypeDescriptor) => boolean): MimeTypePredicate => (mimeType) => predicate(parseMimeType(mimeType)); - -// Use this factory when you need to define a simple predicate based only on type and, if applicable, subtype. -const mimeTypeSimplePredicateFactory = (type: string, subtype?: string): MimeTypePredicate => mimeTypePredicateFactory((descriptor) => { - if (descriptor.type !== type) return false; - if (subtype != null && descriptor.subtype !== subtype) return false; - return true; -}); - -// Creating a set of named predicates that will help us determine how to handle different mime-types -const isTextLikeMimeType = mimeTypeSimplePredicateFactory('text'); -const isJsonMimeType = mimeTypeSimplePredicateFactory('application', 'json'); -const isJsonLikeMimeType = mimeTypePredicateFactory((descriptor) => descriptor.type === 'application' && descriptor.subtypeTokens.some((item) => item === 'json')); -const isOctetStreamMimeType = mimeTypeSimplePredicateFactory('application', 'octet-stream'); -const isFormUrlencodedMimeType = mimeTypeSimplePredicateFactory('application', 'x-www-form-urlencoded'); - -// Defining a list of mime-types in the order of prioritization for handling. -const supportedMimeTypePredicatesWithPriority: MimeTypePredicate[] = [ - isJsonMimeType, - isJsonLikeMimeType, - isTextLikeMimeType, - isOctetStreamMimeType, - isFormUrlencodedMimeType, -]; - -const nullableSuffix = " | null"; -const optionalSuffix = " | undefined"; -const arrayPrefix = "Array<"; -const arraySuffix = ">"; -const mapPrefix = "{ [key: string]: "; -const mapSuffix = "; }"; - -export class ObjectSerializer { - public static findCorrectType(data: any, expectedType: string) { - if (data == undefined) { - return expectedType; - } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { - return expectedType; - } else if (expectedType === "Date") { - return expectedType; - } else { - if (enumsMap.has(expectedType)) { - return expectedType; - } - - if (!typeMap[expectedType]) { - return expectedType; // w/e we don't know the type - } - - // Check the discriminator - let discriminatorProperty = typeMap[expectedType].discriminator; - if (discriminatorProperty == null) { - return expectedType; // the type does not have a discriminator. use it. - } else { - if (data[discriminatorProperty]) { - var discriminatorType = data[discriminatorProperty]; - let mapping = typeMap[expectedType].mapping; - if (mapping != undefined && mapping[discriminatorType]) { - return mapping[discriminatorType]; // use the type given in the discriminator - } else if(typeMap[discriminatorType]) { - return discriminatorType; - } else { - return expectedType; // discriminator did not map to a type - } - } else { - return expectedType; // discriminator was not present (or an empty string) - } - } - } - } - - /** - * Serializes a value into a plain JSON-compatible object based on its type. - * - * Supports primitives, arrays, maps, dates, enums, and classes defined in `typeMap`. - * Falls back to raw data if type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The value to serialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A JSON-compatible representation of `data`. - */ - public static serialize(data: any, type: string, format: string = ""): any { - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.serialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.serialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - if (format == "date") { - let month = data.getMonth()+1 - month = month < 10 ? "0" + month.toString() : month.toString() - let day = data.getDate(); - day = day < 10 ? "0" + day.toString() : day.toString(); - - return data.getFullYear() + "-" + month + "-" + day; - } else { - return data.toISOString(); - } - } else { - if (enumsMap.has(type)) { - return data; - } - if (!typeMap[type]) { // in case we dont know the type - return data; - } - - // Get the actual type of this object - type = this.findCorrectType(data, type); - - const clazz = typeMap[type]; - - // Safe check for getAttributeTypeMap - if (typeof clazz.getAttributeTypeMap !== "function") { - return { ...data }; // fallback: shallow copy - } - - // get the map for the correct type. - let attributeTypes = typeMap[type].getAttributeTypeMap(); - let instance: {[index: string]: any} = {}; - for (let attributeType of attributeTypes) { - instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format); - } - return instance; - } - } - - /** - * Deserializes a plain JSON-compatible object into a typed instance. - * - * Handles primitives, arrays, maps, dates, enums, and known classes from `typeMap`. - * Uses discriminators when available to resolve polymorphic types. - * Falls back to raw data if the type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The raw input to deserialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A deserialized instance or value of `data`. - */ - public static deserialize(data: any, type: string, format: string = ""): any { - // polymorphism may change the actual type. - type = ObjectSerializer.findCorrectType(data, type); - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.deserialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.deserialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - return new Date(data); - } else { - if (enumsMap.has(type)) {// is Enum - return data; - } - - if (!typeMap[type]) { // dont know the type - return data; - } - let instance = new typeMap[type](); - - // Safe check for getAttributeTypeMap - if (typeof typeMap[type].getAttributeTypeMap !== "function") { - Object.assign(instance, data); // fallback: shallow copy - return instance; - } - - let attributeTypes = typeMap[type].getAttributeTypeMap(); - for (let attributeType of attributeTypes) { - let value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format); - if (value !== undefined) { - instance[attributeType.name] = value; - } - } - return instance; - } - } - - - /** - * Normalize media type - * - * We currently do not handle any media types attributes, i.e. anything - * after a semicolon. All content is assumed to be UTF-8 compatible. - */ - public static normalizeMediaType(mediaType: string | undefined): string | undefined { - if (mediaType === undefined) { - return undefined; - } - return (mediaType.split(";")[0] ?? '').trim().toLowerCase(); - } - - /** - * From a list of possible media types, choose the one we can handle best. - * - * The order of the given media types does not have any impact on the choice - * made. - */ - public static getPreferredMediaType(mediaTypes: Array): string { - /** According to OAS 3 we should default to json */ - if (mediaTypes.length === 0) { - return "application/json"; - } - - const normalMediaTypes = mediaTypes.map(ObjectSerializer.normalizeMediaType); - - for (const predicate of supportedMimeTypePredicatesWithPriority) { - for (const mediaType of normalMediaTypes) { - if (mediaType != null && predicate(mediaType)) { - return mediaType; - } - } - } - - throw new Error("None of the given media types are supported: " + mediaTypes.join(", ")); - } - - /** - * Convert data to a string according the given media type - */ - public static stringify(data: any, mediaType: string): string { - if (isTextLikeMimeType(mediaType)) { - return String(data); - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.stringify(data); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify."); - } - - /** - * Parse data from a string according to the given media type - */ - public static parse(rawData: string, mediaType: string | undefined) { - if (mediaType === undefined) { - throw new Error("Cannot parse content. No Content-Type defined."); - } - - if (isTextLikeMimeType(mediaType)) { - return rawData; - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.parse(rawData); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse."); - } -} diff --git a/src/typings/binLookup/recurring.ts b/src/typings/binLookup/recurring.ts index 02bad97a6..06eb738ab 100644 --- a/src/typings/binLookup/recurring.ts +++ b/src/typings/binLookup/recurring.ts @@ -12,66 +12,56 @@ export class Recurring { /** * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). */ - "contract"?: Recurring.ContractEnum; + 'contract'?: Recurring.ContractEnum; /** * A descriptive name for this detail. */ - "recurringDetailName"?: string; + 'recurringDetailName'?: string; /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. */ - "recurringExpiry"?: Date; + 'recurringExpiry'?: Date; /** * Minimum number of days between authorisations. Only for 3D Secure 2. */ - "recurringFrequency"?: string; + 'recurringFrequency'?: string; /** * The name of the token service. */ - "tokenService"?: Recurring.TokenServiceEnum; + 'tokenService'?: Recurring.TokenServiceEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "contract", "baseName": "contract", - "type": "Recurring.ContractEnum", - "format": "" + "type": "Recurring.ContractEnum" }, { "name": "recurringDetailName", "baseName": "recurringDetailName", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringExpiry", "baseName": "recurringExpiry", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "recurringFrequency", "baseName": "recurringFrequency", - "type": "string", - "format": "" + "type": "string" }, { "name": "tokenService", "baseName": "tokenService", - "type": "Recurring.TokenServiceEnum", - "format": "" + "type": "Recurring.TokenServiceEnum" } ]; static getAttributeTypeMap() { return Recurring.attributeTypeMap; } - - public constructor() { - } } export namespace Recurring { diff --git a/src/typings/binLookup/serviceError.ts b/src/typings/binLookup/serviceError.ts index c5442f6fd..37ae5448e 100644 --- a/src/typings/binLookup/serviceError.ts +++ b/src/typings/binLookup/serviceError.ts @@ -12,75 +12,64 @@ export class ServiceError { /** * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. */ - "additionalData"?: { [key: string]: string; }; + 'additionalData'?: { [key: string]: string; }; /** * The error code mapped to the error message. */ - "errorCode"?: string; + 'errorCode'?: string; /** * The category of the error. */ - "errorType"?: string; + 'errorType'?: string; /** * A short explanation of the issue. */ - "message"?: string; + 'message'?: string; /** * The PSP reference of the payment. */ - "pspReference"?: string; + 'pspReference'?: string; /** * The HTTP response status. */ - "status"?: number; + 'status'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "errorCode", "baseName": "errorCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "errorType", "baseName": "errorType", - "type": "string", - "format": "" + "type": "string" }, { "name": "message", "baseName": "message", - "type": "string", - "format": "" + "type": "string" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return ServiceError.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/binLookup/threeDS2CardRangeDetail.ts b/src/typings/binLookup/threeDS2CardRangeDetail.ts index 6a0363f4c..c8481bb35 100644 --- a/src/typings/binLookup/threeDS2CardRangeDetail.ts +++ b/src/typings/binLookup/threeDS2CardRangeDetail.ts @@ -12,75 +12,64 @@ export class ThreeDS2CardRangeDetail { /** * Provides additional information to the 3DS Server. Possible values: - 01 (Authentication is available at ACS) - 02 (Attempts supported by ACS or DS) - 03 (Decoupled authentication supported) - 04 (Whitelisting supported) */ - "acsInfoInd"?: Array; + 'acsInfoInd'?: Array; /** * Card brand. */ - "brandCode"?: string; + 'brandCode'?: string; /** * BIN end range. */ - "endRange"?: string; + 'endRange'?: string; /** * BIN start range. */ - "startRange"?: string; + 'startRange'?: string; /** * Supported 3D Secure protocol versions */ - "threeDS2Versions"?: Array; + 'threeDS2Versions'?: Array; /** * In a 3D Secure 2 browser-based flow, this is the URL where you should send the device fingerprint to. */ - "threeDSMethodURL"?: string; + 'threeDSMethodURL'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "acsInfoInd", "baseName": "acsInfoInd", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "brandCode", "baseName": "brandCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "endRange", "baseName": "endRange", - "type": "string", - "format": "" + "type": "string" }, { "name": "startRange", "baseName": "startRange", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDS2Versions", "baseName": "threeDS2Versions", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "threeDSMethodURL", "baseName": "threeDSMethodURL", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ThreeDS2CardRangeDetail.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/binLookup/threeDSAvailabilityRequest.ts b/src/typings/binLookup/threeDSAvailabilityRequest.ts index e49a4a9b9..b003df44a 100644 --- a/src/typings/binLookup/threeDSAvailabilityRequest.ts +++ b/src/typings/binLookup/threeDSAvailabilityRequest.ts @@ -12,75 +12,64 @@ export class ThreeDSAvailabilityRequest { /** * This field contains additional data, which may be required for a particular request. The `additionalData` object consists of entries, each of which includes the key and value. */ - "additionalData"?: { [key: string]: string; }; + 'additionalData'?: { [key: string]: string; }; /** * List of brands. */ - "brands"?: Array; + 'brands'?: Array; /** * Card number or BIN. */ - "cardNumber"?: string; + 'cardNumber'?: string; /** * The merchant account identifier. */ - "merchantAccount": string; + 'merchantAccount': string; /** * A recurring detail reference corresponding to a card. */ - "recurringDetailReference"?: string; + 'recurringDetailReference'?: string; /** * The shopper\'s reference to uniquely identify this shopper (e.g. user ID or account ID). */ - "shopperReference"?: string; + 'shopperReference'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "brands", "baseName": "brands", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "cardNumber", "baseName": "cardNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ThreeDSAvailabilityRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/binLookup/threeDSAvailabilityResponse.ts b/src/typings/binLookup/threeDSAvailabilityResponse.ts index f3438e91b..7af1392a7 100644 --- a/src/typings/binLookup/threeDSAvailabilityResponse.ts +++ b/src/typings/binLookup/threeDSAvailabilityResponse.ts @@ -7,71 +7,60 @@ * Do not edit this class manually. */ -import { BinDetail } from "./binDetail"; -import { DSPublicKeyDetail } from "./dSPublicKeyDetail"; -import { ThreeDS2CardRangeDetail } from "./threeDS2CardRangeDetail"; - +import { BinDetail } from './binDetail'; +import { DSPublicKeyDetail } from './dSPublicKeyDetail'; +import { ThreeDS2CardRangeDetail } from './threeDS2CardRangeDetail'; export class ThreeDSAvailabilityResponse { - "binDetails"?: BinDetail | null; + 'binDetails'?: BinDetail | null; /** * List of Directory Server (DS) public keys. */ - "dsPublicKeys"?: Array; + 'dsPublicKeys'?: Array; /** * Indicator if 3D Secure 1 is supported. */ - "threeDS1Supported"?: boolean; + 'threeDS1Supported'?: boolean; /** * List of brand and card range pairs. */ - "threeDS2CardRangeDetails"?: Array; + 'threeDS2CardRangeDetails'?: Array; /** * Indicator if 3D Secure 2 is supported. */ - "threeDS2supported"?: boolean; - - static readonly discriminator: string | undefined = undefined; + 'threeDS2supported'?: boolean; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "binDetails", "baseName": "binDetails", - "type": "BinDetail | null", - "format": "" + "type": "BinDetail | null" }, { "name": "dsPublicKeys", "baseName": "dsPublicKeys", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "threeDS1Supported", "baseName": "threeDS1Supported", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "threeDS2CardRangeDetails", "baseName": "threeDS2CardRangeDetails", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "threeDS2supported", "baseName": "threeDS2supported", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return ThreeDSAvailabilityResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/accountInfo.ts b/src/typings/checkout/accountInfo.ts index 97609e072..b4b679574 100644 --- a/src/typings/checkout/accountInfo.ts +++ b/src/typings/checkout/accountInfo.ts @@ -12,215 +12,191 @@ export class AccountInfo { /** * Indicator for the length of time since this shopper account was created in the merchant\'s environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ - "accountAgeIndicator"?: AccountInfo.AccountAgeIndicatorEnum; + 'accountAgeIndicator'?: AccountInfo.AccountAgeIndicatorEnum; /** * Date when the shopper\'s account was last changed. */ - "accountChangeDate"?: Date; + 'accountChangeDate'?: Date; /** * Indicator for the length of time since the shopper\'s account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ - "accountChangeIndicator"?: AccountInfo.AccountChangeIndicatorEnum; + 'accountChangeIndicator'?: AccountInfo.AccountChangeIndicatorEnum; /** * Date when the shopper\'s account was created. */ - "accountCreationDate"?: Date; + 'accountCreationDate'?: Date; /** * Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit */ - "accountType"?: AccountInfo.AccountTypeEnum; + 'accountType'?: AccountInfo.AccountTypeEnum; /** * Number of attempts the shopper tried to add a card to their account in the last day. */ - "addCardAttemptsDay"?: number; + 'addCardAttemptsDay'?: number; /** * Date the selected delivery address was first used. */ - "deliveryAddressUsageDate"?: Date; + 'deliveryAddressUsageDate'?: Date; /** * Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ - "deliveryAddressUsageIndicator"?: AccountInfo.DeliveryAddressUsageIndicatorEnum; + 'deliveryAddressUsageIndicator'?: AccountInfo.DeliveryAddressUsageIndicatorEnum; /** * Shopper\'s home phone number (including the country code). * * @deprecated since Adyen Checkout API v68 * Use `ThreeDS2RequestData.homePhone` instead. */ - "homePhone"?: string; + 'homePhone'?: string; /** * Shopper\'s mobile phone number (including the country code). * * @deprecated since Adyen Checkout API v68 * Use `ThreeDS2RequestData.mobilePhone` instead. */ - "mobilePhone"?: string; + 'mobilePhone'?: string; /** * Date when the shopper last changed their password. */ - "passwordChangeDate"?: Date; + 'passwordChangeDate'?: Date; /** * Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ - "passwordChangeIndicator"?: AccountInfo.PasswordChangeIndicatorEnum; + 'passwordChangeIndicator'?: AccountInfo.PasswordChangeIndicatorEnum; /** * Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. */ - "pastTransactionsDay"?: number; + 'pastTransactionsDay'?: number; /** * Number of all transactions (successful and abandoned) from this shopper in the past year. */ - "pastTransactionsYear"?: number; + 'pastTransactionsYear'?: number; /** * Date this payment method was added to the shopper\'s account. */ - "paymentAccountAge"?: Date; + 'paymentAccountAge'?: Date; /** * Indicator for the length of time since this payment method was added to this shopper\'s account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ - "paymentAccountIndicator"?: AccountInfo.PaymentAccountIndicatorEnum; + 'paymentAccountIndicator'?: AccountInfo.PaymentAccountIndicatorEnum; /** * Number of successful purchases in the last six months. */ - "purchasesLast6Months"?: number; + 'purchasesLast6Months'?: number; /** * Whether suspicious activity was recorded on this account. */ - "suspiciousActivity"?: boolean; + 'suspiciousActivity'?: boolean; /** * Shopper\'s work phone number (including the country code). * * @deprecated since Adyen Checkout API v68 * Use `ThreeDS2RequestData.workPhone` instead. */ - "workPhone"?: string; + 'workPhone'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountAgeIndicator", "baseName": "accountAgeIndicator", - "type": "AccountInfo.AccountAgeIndicatorEnum", - "format": "" + "type": "AccountInfo.AccountAgeIndicatorEnum" }, { "name": "accountChangeDate", "baseName": "accountChangeDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "accountChangeIndicator", "baseName": "accountChangeIndicator", - "type": "AccountInfo.AccountChangeIndicatorEnum", - "format": "" + "type": "AccountInfo.AccountChangeIndicatorEnum" }, { "name": "accountCreationDate", "baseName": "accountCreationDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "accountType", "baseName": "accountType", - "type": "AccountInfo.AccountTypeEnum", - "format": "" + "type": "AccountInfo.AccountTypeEnum" }, { "name": "addCardAttemptsDay", "baseName": "addCardAttemptsDay", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "deliveryAddressUsageDate", "baseName": "deliveryAddressUsageDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "deliveryAddressUsageIndicator", "baseName": "deliveryAddressUsageIndicator", - "type": "AccountInfo.DeliveryAddressUsageIndicatorEnum", - "format": "" + "type": "AccountInfo.DeliveryAddressUsageIndicatorEnum" }, { "name": "homePhone", "baseName": "homePhone", - "type": "string", - "format": "" + "type": "string" }, { "name": "mobilePhone", "baseName": "mobilePhone", - "type": "string", - "format": "" + "type": "string" }, { "name": "passwordChangeDate", "baseName": "passwordChangeDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "passwordChangeIndicator", "baseName": "passwordChangeIndicator", - "type": "AccountInfo.PasswordChangeIndicatorEnum", - "format": "" + "type": "AccountInfo.PasswordChangeIndicatorEnum" }, { "name": "pastTransactionsDay", "baseName": "pastTransactionsDay", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "pastTransactionsYear", "baseName": "pastTransactionsYear", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "paymentAccountAge", "baseName": "paymentAccountAge", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "paymentAccountIndicator", "baseName": "paymentAccountIndicator", - "type": "AccountInfo.PaymentAccountIndicatorEnum", - "format": "" + "type": "AccountInfo.PaymentAccountIndicatorEnum" }, { "name": "purchasesLast6Months", "baseName": "purchasesLast6Months", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "suspiciousActivity", "baseName": "suspiciousActivity", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "workPhone", "baseName": "workPhone", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AccountInfo.attributeTypeMap; } - - public constructor() { - } } export namespace AccountInfo { diff --git a/src/typings/checkout/acctInfo.ts b/src/typings/checkout/acctInfo.ts index 5cea7366e..57025cc94 100644 --- a/src/typings/checkout/acctInfo.ts +++ b/src/typings/checkout/acctInfo.ts @@ -12,176 +12,155 @@ export class AcctInfo { /** * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days */ - "chAccAgeInd"?: AcctInfo.ChAccAgeIndEnum; + 'chAccAgeInd'?: AcctInfo.ChAccAgeIndEnum; /** * Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** */ - "chAccChange"?: string; + 'chAccChange'?: string; /** * Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days */ - "chAccChangeInd"?: AcctInfo.ChAccChangeIndEnum; + 'chAccChangeInd'?: AcctInfo.ChAccChangeIndEnum; /** * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. Format: **YYYYMMDD** */ - "chAccPwChange"?: string; + 'chAccPwChange'?: string; /** * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days */ - "chAccPwChangeInd"?: AcctInfo.ChAccPwChangeIndEnum; + 'chAccPwChangeInd'?: AcctInfo.ChAccPwChangeIndEnum; /** * Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** */ - "chAccString"?: string; + 'chAccString'?: string; /** * Number of purchases with this cardholder account during the previous six months. Max length: 4 characters. */ - "nbPurchaseAccount"?: string; + 'nbPurchaseAccount'?: string; /** * String that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Format: **YYYYMMDD** */ - "paymentAccAge"?: string; + 'paymentAccAge'?: string; /** * Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days */ - "paymentAccInd"?: AcctInfo.PaymentAccIndEnum; + 'paymentAccInd'?: AcctInfo.PaymentAccIndEnum; /** * Number of Add Card attempts in the last 24 hours. Max length: 3 characters. */ - "provisionAttemptsDay"?: string; + 'provisionAttemptsDay'?: string; /** * String when the shipping address used for this transaction was first used with the 3DS Requestor. Format: **YYYYMMDD** */ - "shipAddressUsage"?: string; + 'shipAddressUsage'?: string; /** * Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days */ - "shipAddressUsageInd"?: AcctInfo.ShipAddressUsageIndEnum; + 'shipAddressUsageInd'?: AcctInfo.ShipAddressUsageIndEnum; /** * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name */ - "shipNameIndicator"?: AcctInfo.ShipNameIndicatorEnum; + 'shipNameIndicator'?: AcctInfo.ShipNameIndicatorEnum; /** * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed */ - "suspiciousAccActivity"?: AcctInfo.SuspiciousAccActivityEnum; + 'suspiciousAccActivity'?: AcctInfo.SuspiciousAccActivityEnum; /** * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. */ - "txnActivityDay"?: string; + 'txnActivityDay'?: string; /** * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. Max length: 3 characters. */ - "txnActivityYear"?: string; + 'txnActivityYear'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "chAccAgeInd", "baseName": "chAccAgeInd", - "type": "AcctInfo.ChAccAgeIndEnum", - "format": "" + "type": "AcctInfo.ChAccAgeIndEnum" }, { "name": "chAccChange", "baseName": "chAccChange", - "type": "string", - "format": "" + "type": "string" }, { "name": "chAccChangeInd", "baseName": "chAccChangeInd", - "type": "AcctInfo.ChAccChangeIndEnum", - "format": "" + "type": "AcctInfo.ChAccChangeIndEnum" }, { "name": "chAccPwChange", "baseName": "chAccPwChange", - "type": "string", - "format": "" + "type": "string" }, { "name": "chAccPwChangeInd", "baseName": "chAccPwChangeInd", - "type": "AcctInfo.ChAccPwChangeIndEnum", - "format": "" + "type": "AcctInfo.ChAccPwChangeIndEnum" }, { "name": "chAccString", "baseName": "chAccString", - "type": "string", - "format": "" + "type": "string" }, { "name": "nbPurchaseAccount", "baseName": "nbPurchaseAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentAccAge", "baseName": "paymentAccAge", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentAccInd", "baseName": "paymentAccInd", - "type": "AcctInfo.PaymentAccIndEnum", - "format": "" + "type": "AcctInfo.PaymentAccIndEnum" }, { "name": "provisionAttemptsDay", "baseName": "provisionAttemptsDay", - "type": "string", - "format": "" + "type": "string" }, { "name": "shipAddressUsage", "baseName": "shipAddressUsage", - "type": "string", - "format": "" + "type": "string" }, { "name": "shipAddressUsageInd", "baseName": "shipAddressUsageInd", - "type": "AcctInfo.ShipAddressUsageIndEnum", - "format": "" + "type": "AcctInfo.ShipAddressUsageIndEnum" }, { "name": "shipNameIndicator", "baseName": "shipNameIndicator", - "type": "AcctInfo.ShipNameIndicatorEnum", - "format": "" + "type": "AcctInfo.ShipNameIndicatorEnum" }, { "name": "suspiciousAccActivity", "baseName": "suspiciousAccActivity", - "type": "AcctInfo.SuspiciousAccActivityEnum", - "format": "" + "type": "AcctInfo.SuspiciousAccActivityEnum" }, { "name": "txnActivityDay", "baseName": "txnActivityDay", - "type": "string", - "format": "" + "type": "string" }, { "name": "txnActivityYear", "baseName": "txnActivityYear", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AcctInfo.attributeTypeMap; } - - public constructor() { - } } export namespace AcctInfo { diff --git a/src/typings/checkout/achDetails.ts b/src/typings/checkout/achDetails.ts index 3da8192b3..573ca5555 100644 --- a/src/typings/checkout/achDetails.ts +++ b/src/typings/checkout/achDetails.ts @@ -12,139 +12,122 @@ export class AchDetails { /** * The account holder type (personal or business). */ - "accountHolderType"?: AchDetails.AccountHolderTypeEnum; + 'accountHolderType'?: AchDetails.AccountHolderTypeEnum; /** * The bank account number (without separators). */ - "bankAccountNumber"?: string; + 'bankAccountNumber'?: string; /** * The bank account type (checking, savings...). */ - "bankAccountType"?: AchDetails.BankAccountTypeEnum; + 'bankAccountType'?: AchDetails.BankAccountTypeEnum; /** * The bank routing number of the account. The field value is `nil` in most cases. */ - "bankLocationId"?: string; + 'bankLocationId'?: string; /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * Encrypted bank account number. The bank account number (without separators). */ - "encryptedBankAccountNumber"?: string; + 'encryptedBankAccountNumber'?: string; /** * Encrypted location id. The bank routing number of the account. The field value is `nil` in most cases. */ - "encryptedBankLocationId"?: string; + 'encryptedBankLocationId'?: string; /** * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don\'t accept \'ø\'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don\'t match the required format, the response returns the error message: 203 \'Invalid bank account holder name\'. */ - "ownerName"?: string; + 'ownerName'?: 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; + 'recurringDetailReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * The unique identifier of your user\'s verified transfer instrument, which you can use to top up their balance accounts. */ - "transferInstrumentId"?: string; + 'transferInstrumentId'?: string; /** * **ach** */ - "type"?: AchDetails.TypeEnum; + 'type'?: AchDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountHolderType", "baseName": "accountHolderType", - "type": "AchDetails.AccountHolderTypeEnum", - "format": "" + "type": "AchDetails.AccountHolderTypeEnum" }, { "name": "bankAccountNumber", "baseName": "bankAccountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankAccountType", "baseName": "bankAccountType", - "type": "AchDetails.BankAccountTypeEnum", - "format": "" + "type": "AchDetails.BankAccountTypeEnum" }, { "name": "bankLocationId", "baseName": "bankLocationId", - "type": "string", - "format": "" + "type": "string" }, { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "encryptedBankAccountNumber", "baseName": "encryptedBankAccountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "encryptedBankLocationId", "baseName": "encryptedBankLocationId", - "type": "string", - "format": "" + "type": "string" }, { "name": "ownerName", "baseName": "ownerName", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "transferInstrumentId", "baseName": "transferInstrumentId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "AchDetails.TypeEnum", - "format": "" + "type": "AchDetails.TypeEnum" } ]; static getAttributeTypeMap() { return AchDetails.attributeTypeMap; } - - public constructor() { - } } export namespace AchDetails { diff --git a/src/typings/checkout/additionalData3DSecure.ts b/src/typings/checkout/additionalData3DSecure.ts index 2cba3bec2..4316b655d 100644 --- a/src/typings/checkout/additionalData3DSecure.ts +++ b/src/typings/checkout/additionalData3DSecure.ts @@ -15,79 +15,68 @@ export class AdditionalData3DSecure { * @deprecated since Adyen Checkout API v69 * Use `authenticationData.threeDSRequestData.nativeThreeDS` instead. */ - "allow3DS2"?: string; + 'allow3DS2'?: string; /** * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen */ - "challengeWindowSize"?: AdditionalData3DSecure.ChallengeWindowSizeEnum; + 'challengeWindowSize'?: AdditionalData3DSecure.ChallengeWindowSizeEnum; /** * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don\'t perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. * * @deprecated since Adyen Checkout API v69 * Use [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead */ - "executeThreeD"?: string; + 'executeThreeD'?: string; /** * In case of Secure+, this field must be set to **CUPSecurePlus**. */ - "mpiImplementationType"?: string; + 'mpiImplementationType'?: string; /** * Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** */ - "scaExemption"?: string; + 'scaExemption'?: string; /** * Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen\'s Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error. */ - "threeDSVersion"?: string; + 'threeDSVersion'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "allow3DS2", "baseName": "allow3DS2", - "type": "string", - "format": "" + "type": "string" }, { "name": "challengeWindowSize", "baseName": "challengeWindowSize", - "type": "AdditionalData3DSecure.ChallengeWindowSizeEnum", - "format": "" + "type": "AdditionalData3DSecure.ChallengeWindowSizeEnum" }, { "name": "executeThreeD", "baseName": "executeThreeD", - "type": "string", - "format": "" + "type": "string" }, { "name": "mpiImplementationType", "baseName": "mpiImplementationType", - "type": "string", - "format": "" + "type": "string" }, { "name": "scaExemption", "baseName": "scaExemption", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSVersion", "baseName": "threeDSVersion", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalData3DSecure.attributeTypeMap; } - - public constructor() { - } } export namespace AdditionalData3DSecure { diff --git a/src/typings/checkout/additionalDataAirline.ts b/src/typings/checkout/additionalDataAirline.ts index 69ed3ca2d..c7f24251c 100644 --- a/src/typings/checkout/additionalDataAirline.ts +++ b/src/typings/checkout/additionalDataAirline.ts @@ -12,305 +12,271 @@ export class AdditionalDataAirline { /** * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters */ - "airline_agency_invoice_number"?: string; + 'airline_agency_invoice_number'?: string; /** * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters */ - "airline_agency_plan_name"?: string; + 'airline_agency_plan_name'?: string; /** * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. */ - "airline_airline_code"?: string; + 'airline_airline_code'?: string; /** * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. */ - "airline_airline_designator_code"?: string; + 'airline_airline_designator_code'?: string; /** * The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 18 characters */ - "airline_boarding_fee"?: string; + 'airline_boarding_fee'?: string; /** * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters */ - "airline_computerized_reservation_system"?: string; + 'airline_computerized_reservation_system'?: string; /** * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not be all spaces */ - "airline_customer_reference_number"?: string; + 'airline_customer_reference_number'?: string; /** * A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters */ - "airline_document_type"?: string; + 'airline_document_type'?: string; /** * The flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 characters * maxLength: 16 characters */ - "airline_flight_date"?: string; + 'airline_flight_date'?: string; /** * The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD */ - "airline_issue_date"?: string; + 'airline_issue_date'?: string; /** * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. */ - "airline_leg_carrier_code"?: string; + 'airline_leg_carrier_code'?: string; /** * A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not be all zeros. */ - "airline_leg_class_of_travel"?: string; + 'airline_leg_class_of_travel'?: string; /** * Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters */ - "airline_leg_date_of_travel"?: string; + 'airline_leg_date_of_travel'?: string; /** * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. */ - "airline_leg_depart_airport"?: string; + 'airline_leg_depart_airport'?: string; /** * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 * Must not be all zeros. */ - "airline_leg_depart_tax"?: string; + 'airline_leg_depart_tax'?: string; /** * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. */ - "airline_leg_destination_code"?: string; + 'airline_leg_destination_code'?: string; /** * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 6 characters * Must not be all spaces * Must not be all zeros. */ - "airline_leg_fare_base_code"?: string; + 'airline_leg_fare_base_code'?: string; /** * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces * Must not be all zeros. */ - "airline_leg_flight_number"?: string; + 'airline_leg_flight_number'?: string; /** * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character */ - "airline_leg_stop_over_code"?: string; + 'airline_leg_stop_over_code'?: string; /** * The passenger\'s date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 */ - "airline_passenger_date_of_birth"?: string; + 'airline_passenger_date_of_birth'?: string; /** * The passenger\'s first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII */ - "airline_passenger_first_name"?: string; + 'airline_passenger_first_name'?: string; /** * The passenger\'s last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII */ - "airline_passenger_last_name"?: string; + 'airline_passenger_last_name'?: string; /** * The passenger\'s phone number, including country code. This is an alphanumeric field that can include the \'+\' and \'-\' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters */ - "airline_passenger_phone_number"?: string; + 'airline_passenger_phone_number'?: string; /** * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters */ - "airline_passenger_traveller_type"?: string; + 'airline_passenger_traveller_type'?: string; /** * The passenger\'s name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all zeros. */ - "airline_passenger_name": string; + 'airline_passenger_name': string; /** * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters */ - "airline_ticket_issue_address"?: string; + 'airline_ticket_issue_address'?: string; /** * The ticket\'s unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. */ - "airline_ticket_number"?: string; + 'airline_ticket_number'?: string; /** * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * Must not be all zeros. */ - "airline_travel_agency_code"?: string; + 'airline_travel_agency_code'?: string; /** * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. */ - "airline_travel_agency_name"?: string; + 'airline_travel_agency_name'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "airline_agency_invoice_number", "baseName": "airline.agency_invoice_number", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_agency_plan_name", "baseName": "airline.agency_plan_name", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_airline_code", "baseName": "airline.airline_code", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_airline_designator_code", "baseName": "airline.airline_designator_code", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_boarding_fee", "baseName": "airline.boarding_fee", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_computerized_reservation_system", "baseName": "airline.computerized_reservation_system", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_customer_reference_number", "baseName": "airline.customer_reference_number", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_document_type", "baseName": "airline.document_type", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_flight_date", "baseName": "airline.flight_date", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_issue_date", "baseName": "airline.issue_date", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_leg_carrier_code", "baseName": "airline.leg.carrier_code", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_leg_class_of_travel", "baseName": "airline.leg.class_of_travel", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_leg_date_of_travel", "baseName": "airline.leg.date_of_travel", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_leg_depart_airport", "baseName": "airline.leg.depart_airport", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_leg_depart_tax", "baseName": "airline.leg.depart_tax", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_leg_destination_code", "baseName": "airline.leg.destination_code", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_leg_fare_base_code", "baseName": "airline.leg.fare_base_code", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_leg_flight_number", "baseName": "airline.leg.flight_number", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_leg_stop_over_code", "baseName": "airline.leg.stop_over_code", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_passenger_date_of_birth", "baseName": "airline.passenger.date_of_birth", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_passenger_first_name", "baseName": "airline.passenger.first_name", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_passenger_last_name", "baseName": "airline.passenger.last_name", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_passenger_phone_number", "baseName": "airline.passenger.phone_number", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_passenger_traveller_type", "baseName": "airline.passenger.traveller_type", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_passenger_name", "baseName": "airline.passenger_name", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_ticket_issue_address", "baseName": "airline.ticket_issue_address", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_ticket_number", "baseName": "airline.ticket_number", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_travel_agency_code", "baseName": "airline.travel_agency_code", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_travel_agency_name", "baseName": "airline.travel_agency_name", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalDataAirline.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/additionalDataCarRental.ts b/src/typings/checkout/additionalDataCarRental.ts index f3bc944bf..092c183fc 100644 --- a/src/typings/checkout/additionalDataCarRental.ts +++ b/src/typings/checkout/additionalDataCarRental.ts @@ -12,245 +12,217 @@ export class AdditionalDataCarRental { /** * The pick-up date. * Date format: `yyyyMMdd` */ - "carRental_checkOutDate"?: string; + 'carRental_checkOutDate'?: string; /** * The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. */ - "carRental_customerServiceTollFreeNumber"?: string; + 'carRental_customerServiceTollFreeNumber'?: string; /** * Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not be all spaces */ - "carRental_daysRented"?: string; + 'carRental_daysRented'?: string; /** * Any fuel charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 */ - "carRental_fuelCharges"?: string; + 'carRental_fuelCharges'?: string; /** * Any insurance charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * Must not be all spaces *Must not be all zeros. */ - "carRental_insuranceCharges"?: string; + 'carRental_insuranceCharges'?: string; /** * The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. */ - "carRental_locationCity"?: string; + 'carRental_locationCity'?: string; /** * The country where the car is rented, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 */ - "carRental_locationCountry"?: string; + 'carRental_locationCountry'?: string; /** * The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all zeros. */ - "carRental_locationStateProvince"?: string; + 'carRental_locationStateProvince'?: string; /** * Indicates if the customer didn\'t pick up their rental car. * Y - Customer did not pick up their car * N - Not applicable */ - "carRental_noShowIndicator"?: string; + 'carRental_noShowIndicator'?: string; /** * The charge for not returning a car to the original rental location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 */ - "carRental_oneWayDropOffCharges"?: string; + 'carRental_oneWayDropOffCharges'?: string; /** * The daily rental rate, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * maxLength: 12 */ - "carRental_rate"?: string; + 'carRental_rate'?: string; /** * Specifies whether the given rate is applied daily or weekly. * D - Daily rate * W - Weekly rate */ - "carRental_rateIndicator"?: string; + 'carRental_rateIndicator'?: string; /** * The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all zeros. */ - "carRental_rentalAgreementNumber"?: string; + 'carRental_rentalAgreementNumber'?: string; /** * The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. */ - "carRental_rentalClassId"?: string; + 'carRental_rentalClassId'?: string; /** * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start with a space or be all spaces *Must not be all zeros. */ - "carRental_renterName"?: string; + 'carRental_renterName'?: string; /** * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. */ - "carRental_returnCity"?: string; + 'carRental_returnCity'?: string; /** * The country where the car must be returned, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 */ - "carRental_returnCountry"?: string; + 'carRental_returnCountry'?: string; /** * The last date to return the car by. * Date format: `yyyyMMdd` * maxLength: 8 */ - "carRental_returnDate"?: string; + 'carRental_returnDate'?: string; /** * The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must not be all zeros. */ - "carRental_returnLocationId"?: string; + 'carRental_returnLocationId'?: string; /** * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must not be all zeros. */ - "carRental_returnStateProvince"?: string; + 'carRental_returnStateProvince'?: string; /** * Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not collected */ - "carRental_taxExemptIndicator"?: string; + 'carRental_taxExemptIndicator'?: string; /** * Number of days the car is rented for. This should be included in the auth message. * Format: Numeric * maxLength: 4 */ - "travelEntertainmentAuthData_duration"?: string; + 'travelEntertainmentAuthData_duration'?: string; /** * Indicates what market-specific dataset will be submitted or is being submitted. Value should be \'A\' for car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 */ - "travelEntertainmentAuthData_market"?: string; + 'travelEntertainmentAuthData_market'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "carRental_checkOutDate", "baseName": "carRental.checkOutDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_customerServiceTollFreeNumber", "baseName": "carRental.customerServiceTollFreeNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_daysRented", "baseName": "carRental.daysRented", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_fuelCharges", "baseName": "carRental.fuelCharges", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_insuranceCharges", "baseName": "carRental.insuranceCharges", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_locationCity", "baseName": "carRental.locationCity", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_locationCountry", "baseName": "carRental.locationCountry", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_locationStateProvince", "baseName": "carRental.locationStateProvince", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_noShowIndicator", "baseName": "carRental.noShowIndicator", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_oneWayDropOffCharges", "baseName": "carRental.oneWayDropOffCharges", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_rate", "baseName": "carRental.rate", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_rateIndicator", "baseName": "carRental.rateIndicator", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_rentalAgreementNumber", "baseName": "carRental.rentalAgreementNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_rentalClassId", "baseName": "carRental.rentalClassId", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_renterName", "baseName": "carRental.renterName", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_returnCity", "baseName": "carRental.returnCity", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_returnCountry", "baseName": "carRental.returnCountry", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_returnDate", "baseName": "carRental.returnDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_returnLocationId", "baseName": "carRental.returnLocationId", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_returnStateProvince", "baseName": "carRental.returnStateProvince", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_taxExemptIndicator", "baseName": "carRental.taxExemptIndicator", - "type": "string", - "format": "" + "type": "string" }, { "name": "travelEntertainmentAuthData_duration", "baseName": "travelEntertainmentAuthData.duration", - "type": "string", - "format": "" + "type": "string" }, { "name": "travelEntertainmentAuthData_market", "baseName": "travelEntertainmentAuthData.market", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalDataCarRental.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/additionalDataCommon.ts b/src/typings/checkout/additionalDataCommon.ts index 0562ac9e3..f3fb98287 100644 --- a/src/typings/checkout/additionalDataCommon.ts +++ b/src/typings/checkout/additionalDataCommon.ts @@ -12,226 +12,200 @@ export class AdditionalDataCommon { /** * Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing result codes and refusal reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the possible values, and the `refusalReason` values you can trigger. */ - "RequestedTestAcquirerResponseCode"?: string; + 'RequestedTestAcquirerResponseCode'?: string; /** * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn\'t a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. */ - "RequestedTestErrorResponseCode"?: string; + 'RequestedTestErrorResponseCode'?: string; /** * Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account. If a payment was partially authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount in additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. */ - "allowPartialAuth"?: string; + 'allowPartialAuth'?: string; /** * Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation. */ - "authorisationType"?: string; + 'authorisationType'?: string; /** * Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window. */ - "autoRescue"?: string; + 'autoRescue'?: string; /** * Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request\'s additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). */ - "customRoutingFlag"?: string; + 'customRoutingFlag'?: string; /** * In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. */ - "industryUsage"?: AdditionalDataCommon.IndustryUsageEnum; + 'industryUsage'?: AdditionalDataCommon.IndustryUsageEnum; /** * Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction. */ - "manualCapture"?: string; + 'manualCapture'?: string; /** * The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days. */ - "maxDaysToRescue"?: string; + 'maxDaysToRescue'?: string; /** * Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT. */ - "networkTxReference"?: string; + 'networkTxReference'?: string; /** * Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. */ - "overwriteBrand"?: string; + 'overwriteBrand'?: string; /** * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant\'s address. * Format: alpha-numeric. * Maximum length: 13 characters. */ - "subMerchantCity"?: string; + 'subMerchantCity'?: string; /** * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant\'s address. * Format: alpha-numeric. * Fixed length: 3 characters. */ - "subMerchantCountry"?: string; + 'subMerchantCountry'?: string; /** * This field is required for transactions performed by registered payment facilitators. This field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters */ - "subMerchantEmail"?: string; + 'subMerchantEmail'?: string; /** * This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. */ - "subMerchantID"?: string; + 'subMerchantID'?: string; /** * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters. */ - "subMerchantName"?: string; + 'subMerchantName'?: string; /** * This field is required for transactions performed by registered payment facilitators. This field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters */ - "subMerchantPhoneNumber"?: string; + 'subMerchantPhoneNumber'?: string; /** * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant\'s address. * Format: alpha-numeric. * Maximum length: 10 characters. */ - "subMerchantPostalCode"?: string; + 'subMerchantPostalCode'?: string; /** * This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant\'s address. * Format: alpha-numeric. * Maximum length: 3 characters. */ - "subMerchantState"?: string; + 'subMerchantState'?: string; /** * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant\'s address. * Format: alpha-numeric. * Maximum length: 60 characters. */ - "subMerchantStreet"?: string; + 'subMerchantStreet'?: string; /** * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters. */ - "subMerchantTaxId"?: string; + 'subMerchantTaxId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "RequestedTestAcquirerResponseCode", "baseName": "RequestedTestAcquirerResponseCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "RequestedTestErrorResponseCode", "baseName": "RequestedTestErrorResponseCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "allowPartialAuth", "baseName": "allowPartialAuth", - "type": "string", - "format": "" + "type": "string" }, { "name": "authorisationType", "baseName": "authorisationType", - "type": "string", - "format": "" + "type": "string" }, { "name": "autoRescue", "baseName": "autoRescue", - "type": "string", - "format": "" + "type": "string" }, { "name": "customRoutingFlag", "baseName": "customRoutingFlag", - "type": "string", - "format": "" + "type": "string" }, { "name": "industryUsage", "baseName": "industryUsage", - "type": "AdditionalDataCommon.IndustryUsageEnum", - "format": "" + "type": "AdditionalDataCommon.IndustryUsageEnum" }, { "name": "manualCapture", "baseName": "manualCapture", - "type": "string", - "format": "" + "type": "string" }, { "name": "maxDaysToRescue", "baseName": "maxDaysToRescue", - "type": "string", - "format": "" + "type": "string" }, { "name": "networkTxReference", "baseName": "networkTxReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "overwriteBrand", "baseName": "overwriteBrand", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchantCity", "baseName": "subMerchantCity", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchantCountry", "baseName": "subMerchantCountry", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchantEmail", "baseName": "subMerchantEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchantID", "baseName": "subMerchantID", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchantName", "baseName": "subMerchantName", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchantPhoneNumber", "baseName": "subMerchantPhoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchantPostalCode", "baseName": "subMerchantPostalCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchantState", "baseName": "subMerchantState", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchantStreet", "baseName": "subMerchantStreet", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchantTaxId", "baseName": "subMerchantTaxId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalDataCommon.attributeTypeMap; } - - public constructor() { - } } export namespace AdditionalDataCommon { diff --git a/src/typings/checkout/additionalDataLevel23.ts b/src/typings/checkout/additionalDataLevel23.ts index c9724a7fa..2782bd466 100644 --- a/src/typings/checkout/additionalDataLevel23.ts +++ b/src/typings/checkout/additionalDataLevel23.ts @@ -12,185 +12,163 @@ export class AdditionalDataLevel23 { /** * The reference number to identify the customer and their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ - "enhancedSchemeData_customerReference"?: string; + 'enhancedSchemeData_customerReference'?: string; /** * The three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * Encoding: ASCII * Fixed length: 3 characters */ - "enhancedSchemeData_destinationCountryCode"?: string; + 'enhancedSchemeData_destinationCountryCode'?: string; /** * The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. */ - "enhancedSchemeData_destinationPostalCode"?: string; + 'enhancedSchemeData_destinationPostalCode'?: string; /** * The state or province code of the destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a space. */ - "enhancedSchemeData_destinationStateProvinceCode"?: string; + 'enhancedSchemeData_destinationStateProvinceCode'?: string; /** * The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ - "enhancedSchemeData_dutyAmount"?: string; + 'enhancedSchemeData_dutyAmount'?: string; /** * The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ - "enhancedSchemeData_freightAmount"?: string; + '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. */ - "enhancedSchemeData_itemDetailLine_itemNr_commodityCode"?: string; + 'enhancedSchemeData_itemDetailLine_itemNr_commodityCode'?: string; /** * A description of the item. * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros. */ - "enhancedSchemeData_itemDetailLine_itemNr_description"?: string; + 'enhancedSchemeData_itemDetailLine_itemNr_description'?: string; /** * The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ - "enhancedSchemeData_itemDetailLine_itemNr_discountAmount"?: string; + 'enhancedSchemeData_itemDetailLine_itemNr_discountAmount'?: string; /** * The product code. Must be a unique product code associated with the item or service. This can be your unique code for the item, or the manufacturer\'s product code. * Encoding: ASCII. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ - "enhancedSchemeData_itemDetailLine_itemNr_productCode"?: string; + 'enhancedSchemeData_itemDetailLine_itemNr_productCode'?: string; /** * The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a space or be all spaces. */ - "enhancedSchemeData_itemDetailLine_itemNr_quantity"?: string; + 'enhancedSchemeData_itemDetailLine_itemNr_quantity'?: string; /** * The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements for level 2/3 ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ - "enhancedSchemeData_itemDetailLine_itemNr_totalAmount"?: string; + 'enhancedSchemeData_itemDetailLine_itemNr_totalAmount'?: string; /** * The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ - "enhancedSchemeData_itemDetailLine_itemNr_unitOfMeasure"?: string; + 'enhancedSchemeData_itemDetailLine_itemNr_unitOfMeasure'?: string; /** * The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. */ - "enhancedSchemeData_itemDetailLine_itemNr_unitPrice"?: string; + 'enhancedSchemeData_itemDetailLine_itemNr_unitPrice'?: string; /** * The order date. * Format: `ddMMyy` * Encoding: ASCII * Max length: 6 characters */ - "enhancedSchemeData_orderDate"?: string; + 'enhancedSchemeData_orderDate'?: string; /** * The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. */ - "enhancedSchemeData_shipFromPostalCode"?: string; + 'enhancedSchemeData_shipFromPostalCode'?: string; /** * The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. */ - "enhancedSchemeData_totalTaxAmount"?: string; + 'enhancedSchemeData_totalTaxAmount'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "enhancedSchemeData_customerReference", "baseName": "enhancedSchemeData.customerReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_destinationCountryCode", "baseName": "enhancedSchemeData.destinationCountryCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_destinationPostalCode", "baseName": "enhancedSchemeData.destinationPostalCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_destinationStateProvinceCode", "baseName": "enhancedSchemeData.destinationStateProvinceCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_dutyAmount", "baseName": "enhancedSchemeData.dutyAmount", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_freightAmount", "baseName": "enhancedSchemeData.freightAmount", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_itemDetailLine_itemNr_commodityCode", "baseName": "enhancedSchemeData.itemDetailLine[itemNr].commodityCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_itemDetailLine_itemNr_description", "baseName": "enhancedSchemeData.itemDetailLine[itemNr].description", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_itemDetailLine_itemNr_discountAmount", "baseName": "enhancedSchemeData.itemDetailLine[itemNr].discountAmount", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_itemDetailLine_itemNr_productCode", "baseName": "enhancedSchemeData.itemDetailLine[itemNr].productCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_itemDetailLine_itemNr_quantity", "baseName": "enhancedSchemeData.itemDetailLine[itemNr].quantity", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_itemDetailLine_itemNr_totalAmount", "baseName": "enhancedSchemeData.itemDetailLine[itemNr].totalAmount", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_itemDetailLine_itemNr_unitOfMeasure", "baseName": "enhancedSchemeData.itemDetailLine[itemNr].unitOfMeasure", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_itemDetailLine_itemNr_unitPrice", "baseName": "enhancedSchemeData.itemDetailLine[itemNr].unitPrice", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_orderDate", "baseName": "enhancedSchemeData.orderDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_shipFromPostalCode", "baseName": "enhancedSchemeData.shipFromPostalCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_totalTaxAmount", "baseName": "enhancedSchemeData.totalTaxAmount", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalDataLevel23.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/additionalDataLodging.ts b/src/typings/checkout/additionalDataLodging.ts index 69fe79dae..727e447d2 100644 --- a/src/typings/checkout/additionalDataLodging.ts +++ b/src/typings/checkout/additionalDataLodging.ts @@ -12,185 +12,163 @@ export class AdditionalDataLodging { /** * A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit */ - "lodging_SpecialProgramCode"?: string; + 'lodging_SpecialProgramCode'?: string; /** * The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. */ - "lodging_checkInDate"?: string; + 'lodging_checkInDate'?: string; /** * The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. */ - "lodging_checkOutDate"?: string; + 'lodging_checkOutDate'?: string; /** * The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. */ - "lodging_customerServiceTollFreeNumber"?: string; + 'lodging_customerServiceTollFreeNumber'?: string; /** * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be \'Y\' or \'N\'. * Format: alphabetic * Max length: 1 character */ - "lodging_fireSafetyActIndicator"?: string; + 'lodging_fireSafetyActIndicator'?: string; /** * The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters */ - "lodging_folioCashAdvances"?: string; + 'lodging_folioCashAdvances'?: string; /** * The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros. */ - "lodging_folioNumber"?: string; + 'lodging_folioNumber'?: string; /** * Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters */ - "lodging_foodBeverageCharges"?: string; + 'lodging_foodBeverageCharges'?: string; /** * Indicates if the customer didn\'t check in for their booking. Possible values: * **Y**: the customer didn\'t check in * **N**: the customer checked in */ - "lodging_noShowIndicator"?: string; + 'lodging_noShowIndicator'?: string; /** * The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters */ - "lodging_prepaidExpenses"?: string; + 'lodging_prepaidExpenses'?: string; /** * The lodging property location\'s phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. */ - "lodging_propertyPhoneNumber"?: string; + 'lodging_propertyPhoneNumber'?: string; /** * The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters */ - "lodging_room1_numberOfNights"?: string; + 'lodging_room1_numberOfNights'?: string; /** * The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number */ - "lodging_room1_rate"?: string; + 'lodging_room1_rate'?: string; /** * The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number */ - "lodging_totalRoomTax"?: string; + 'lodging_totalRoomTax'?: string; /** * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number */ - "lodging_totalTax"?: string; + 'lodging_totalTax'?: string; /** * The number of nights. This should be included in the auth message. * Format: numeric * Max length: 4 characters */ - "travelEntertainmentAuthData_duration"?: string; + 'travelEntertainmentAuthData_duration'?: string; /** * Indicates what market-specific dataset will be submitted. Must be \'H\' for Hotel. This should be included in the auth message. * Format: alphanumeric * Max length: 1 character */ - "travelEntertainmentAuthData_market"?: string; + 'travelEntertainmentAuthData_market'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "lodging_SpecialProgramCode", "baseName": "lodging.SpecialProgramCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "lodging_checkInDate", "baseName": "lodging.checkInDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "lodging_checkOutDate", "baseName": "lodging.checkOutDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "lodging_customerServiceTollFreeNumber", "baseName": "lodging.customerServiceTollFreeNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "lodging_fireSafetyActIndicator", "baseName": "lodging.fireSafetyActIndicator", - "type": "string", - "format": "" + "type": "string" }, { "name": "lodging_folioCashAdvances", "baseName": "lodging.folioCashAdvances", - "type": "string", - "format": "" + "type": "string" }, { "name": "lodging_folioNumber", "baseName": "lodging.folioNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "lodging_foodBeverageCharges", "baseName": "lodging.foodBeverageCharges", - "type": "string", - "format": "" + "type": "string" }, { "name": "lodging_noShowIndicator", "baseName": "lodging.noShowIndicator", - "type": "string", - "format": "" + "type": "string" }, { "name": "lodging_prepaidExpenses", "baseName": "lodging.prepaidExpenses", - "type": "string", - "format": "" + "type": "string" }, { "name": "lodging_propertyPhoneNumber", "baseName": "lodging.propertyPhoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "lodging_room1_numberOfNights", "baseName": "lodging.room1.numberOfNights", - "type": "string", - "format": "" + "type": "string" }, { "name": "lodging_room1_rate", "baseName": "lodging.room1.rate", - "type": "string", - "format": "" + "type": "string" }, { "name": "lodging_totalRoomTax", "baseName": "lodging.totalRoomTax", - "type": "string", - "format": "" + "type": "string" }, { "name": "lodging_totalTax", "baseName": "lodging.totalTax", - "type": "string", - "format": "" + "type": "string" }, { "name": "travelEntertainmentAuthData_duration", "baseName": "travelEntertainmentAuthData.duration", - "type": "string", - "format": "" + "type": "string" }, { "name": "travelEntertainmentAuthData_market", "baseName": "travelEntertainmentAuthData.market", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalDataLodging.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/additionalDataOpenInvoice.ts b/src/typings/checkout/additionalDataOpenInvoice.ts index 44b1682ab..94c44792e 100644 --- a/src/typings/checkout/additionalDataOpenInvoice.ts +++ b/src/typings/checkout/additionalDataOpenInvoice.ts @@ -12,195 +12,172 @@ export class AdditionalDataOpenInvoice { /** * Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it\'s not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. */ - "openinvoicedata_merchantData"?: string; + 'openinvoicedata_merchantData'?: string; /** * The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. */ - "openinvoicedata_numberOfLines"?: string; + 'openinvoicedata_numberOfLines'?: string; /** * First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. */ - "openinvoicedata_recipientFirstName"?: string; + 'openinvoicedata_recipientFirstName'?: string; /** * Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. */ - "openinvoicedata_recipientLastName"?: string; + 'openinvoicedata_recipientLastName'?: string; /** * The three-character ISO currency code. */ - "openinvoicedataLine_itemNr_currencyCode"?: string; + 'openinvoicedataLine_itemNr_currencyCode'?: string; /** * A text description of the product the invoice line refers to. */ - "openinvoicedataLine_itemNr_description"?: string; + 'openinvoicedataLine_itemNr_description'?: string; /** * The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. */ - "openinvoicedataLine_itemNr_itemAmount"?: string; + 'openinvoicedataLine_itemNr_itemAmount'?: string; /** * A unique id for this item. Required for RatePay if the description of each item is not unique. */ - "openinvoicedataLine_itemNr_itemId"?: string; + 'openinvoicedataLine_itemNr_itemId'?: string; /** * The VAT due for one item in the invoice line, represented in minor units. */ - "openinvoicedataLine_itemNr_itemVatAmount"?: string; + 'openinvoicedataLine_itemNr_itemVatAmount'?: string; /** * The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. */ - "openinvoicedataLine_itemNr_itemVatPercentage"?: string; + 'openinvoicedataLine_itemNr_itemVatPercentage'?: string; /** * The number of units purchased of a specific product. */ - "openinvoicedataLine_itemNr_numberOfItems"?: string; + 'openinvoicedataLine_itemNr_numberOfItems'?: string; /** * Name of the shipping company handling the the return shipment. */ - "openinvoicedataLine_itemNr_returnShippingCompany"?: string; + 'openinvoicedataLine_itemNr_returnShippingCompany'?: string; /** * The tracking number for the return of the shipment. */ - "openinvoicedataLine_itemNr_returnTrackingNumber"?: string; + 'openinvoicedataLine_itemNr_returnTrackingNumber'?: string; /** * URI where the customer can track the return of their shipment. */ - "openinvoicedataLine_itemNr_returnTrackingUri"?: string; + 'openinvoicedataLine_itemNr_returnTrackingUri'?: string; /** * Name of the shipping company handling the delivery. */ - "openinvoicedataLine_itemNr_shippingCompany"?: string; + 'openinvoicedataLine_itemNr_shippingCompany'?: string; /** * Shipping method. */ - "openinvoicedataLine_itemNr_shippingMethod"?: string; + 'openinvoicedataLine_itemNr_shippingMethod'?: string; /** * The tracking number for the shipment. */ - "openinvoicedataLine_itemNr_trackingNumber"?: string; + 'openinvoicedataLine_itemNr_trackingNumber'?: string; /** * URI where the customer can track their shipment. */ - "openinvoicedataLine_itemNr_trackingUri"?: string; + 'openinvoicedataLine_itemNr_trackingUri'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "openinvoicedata_merchantData", "baseName": "openinvoicedata.merchantData", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedata_numberOfLines", "baseName": "openinvoicedata.numberOfLines", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedata_recipientFirstName", "baseName": "openinvoicedata.recipientFirstName", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedata_recipientLastName", "baseName": "openinvoicedata.recipientLastName", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedataLine_itemNr_currencyCode", "baseName": "openinvoicedataLine[itemNr].currencyCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedataLine_itemNr_description", "baseName": "openinvoicedataLine[itemNr].description", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedataLine_itemNr_itemAmount", "baseName": "openinvoicedataLine[itemNr].itemAmount", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedataLine_itemNr_itemId", "baseName": "openinvoicedataLine[itemNr].itemId", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedataLine_itemNr_itemVatAmount", "baseName": "openinvoicedataLine[itemNr].itemVatAmount", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedataLine_itemNr_itemVatPercentage", "baseName": "openinvoicedataLine[itemNr].itemVatPercentage", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedataLine_itemNr_numberOfItems", "baseName": "openinvoicedataLine[itemNr].numberOfItems", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedataLine_itemNr_returnShippingCompany", "baseName": "openinvoicedataLine[itemNr].returnShippingCompany", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedataLine_itemNr_returnTrackingNumber", "baseName": "openinvoicedataLine[itemNr].returnTrackingNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedataLine_itemNr_returnTrackingUri", "baseName": "openinvoicedataLine[itemNr].returnTrackingUri", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedataLine_itemNr_shippingCompany", "baseName": "openinvoicedataLine[itemNr].shippingCompany", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedataLine_itemNr_shippingMethod", "baseName": "openinvoicedataLine[itemNr].shippingMethod", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedataLine_itemNr_trackingNumber", "baseName": "openinvoicedataLine[itemNr].trackingNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedataLine_itemNr_trackingUri", "baseName": "openinvoicedataLine[itemNr].trackingUri", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalDataOpenInvoice.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/additionalDataOpi.ts b/src/typings/checkout/additionalDataOpi.ts index 9f407f21c..4f80f0bca 100644 --- a/src/typings/checkout/additionalDataOpi.ts +++ b/src/typings/checkout/additionalDataOpi.ts @@ -12,25 +12,19 @@ export class AdditionalDataOpi { /** * Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). */ - "opi_includeTransToken"?: string; + 'opi_includeTransToken'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "opi_includeTransToken", "baseName": "opi.includeTransToken", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalDataOpi.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/additionalDataRatepay.ts b/src/typings/checkout/additionalDataRatepay.ts index f3286d8d2..75a11ff0a 100644 --- a/src/typings/checkout/additionalDataRatepay.ts +++ b/src/typings/checkout/additionalDataRatepay.ts @@ -12,95 +12,82 @@ export class AdditionalDataRatepay { /** * Amount the customer has to pay each month. */ - "ratepay_installmentAmount"?: string; + 'ratepay_installmentAmount'?: string; /** * Interest rate of this installment. */ - "ratepay_interestRate"?: string; + 'ratepay_interestRate'?: string; /** * Amount of the last installment. */ - "ratepay_lastInstallmentAmount"?: string; + 'ratepay_lastInstallmentAmount'?: string; /** * Calendar day of the first payment. */ - "ratepay_paymentFirstday"?: string; + 'ratepay_paymentFirstday'?: string; /** * Date the merchant delivered the goods to the customer. */ - "ratepaydata_deliveryDate"?: string; + 'ratepaydata_deliveryDate'?: string; /** * Date by which the customer must settle the payment. */ - "ratepaydata_dueDate"?: string; + 'ratepaydata_dueDate'?: string; /** * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. */ - "ratepaydata_invoiceDate"?: string; + 'ratepaydata_invoiceDate'?: string; /** * Identification name or number for the invoice, defined by the merchant. */ - "ratepaydata_invoiceId"?: string; + 'ratepaydata_invoiceId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "ratepay_installmentAmount", "baseName": "ratepay.installmentAmount", - "type": "string", - "format": "" + "type": "string" }, { "name": "ratepay_interestRate", "baseName": "ratepay.interestRate", - "type": "string", - "format": "" + "type": "string" }, { "name": "ratepay_lastInstallmentAmount", "baseName": "ratepay.lastInstallmentAmount", - "type": "string", - "format": "" + "type": "string" }, { "name": "ratepay_paymentFirstday", "baseName": "ratepay.paymentFirstday", - "type": "string", - "format": "" + "type": "string" }, { "name": "ratepaydata_deliveryDate", "baseName": "ratepaydata.deliveryDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "ratepaydata_dueDate", "baseName": "ratepaydata.dueDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "ratepaydata_invoiceDate", "baseName": "ratepaydata.invoiceDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "ratepaydata_invoiceId", "baseName": "ratepaydata.invoiceId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalDataRatepay.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/additionalDataRetry.ts b/src/typings/checkout/additionalDataRetry.ts index c5629f260..cfae3f0d9 100644 --- a/src/typings/checkout/additionalDataRetry.ts +++ b/src/typings/checkout/additionalDataRetry.ts @@ -12,45 +12,37 @@ export class AdditionalDataRetry { /** * The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. */ - "retry_chainAttemptNumber"?: string; + 'retry_chainAttemptNumber'?: string; /** * The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. */ - "retry_orderAttemptNumber"?: string; + 'retry_orderAttemptNumber'?: string; /** * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. */ - "retry_skipRetry"?: string; + 'retry_skipRetry'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "retry_chainAttemptNumber", "baseName": "retry.chainAttemptNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "retry_orderAttemptNumber", "baseName": "retry.orderAttemptNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "retry_skipRetry", "baseName": "retry.skipRetry", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalDataRetry.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/additionalDataRisk.ts b/src/typings/checkout/additionalDataRisk.ts index 0683ca688..079accb09 100644 --- a/src/typings/checkout/additionalDataRisk.ts +++ b/src/typings/checkout/additionalDataRisk.ts @@ -12,225 +12,199 @@ export class AdditionalDataRisk { /** * The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). */ - "riskdata__customFieldName"?: string; + 'riskdata__customFieldName'?: string; /** * The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ - "riskdata_basket_item_itemNr_amountPerItem"?: string; + 'riskdata_basket_item_itemNr_amountPerItem'?: string; /** * Brand of the item. */ - "riskdata_basket_item_itemNr_brand"?: string; + 'riskdata_basket_item_itemNr_brand'?: string; /** * Category of the item. */ - "riskdata_basket_item_itemNr_category"?: string; + 'riskdata_basket_item_itemNr_category'?: string; /** * Color of the item. */ - "riskdata_basket_item_itemNr_color"?: string; + 'riskdata_basket_item_itemNr_color'?: string; /** * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). */ - "riskdata_basket_item_itemNr_currency"?: string; + 'riskdata_basket_item_itemNr_currency'?: string; /** * ID of the item. */ - "riskdata_basket_item_itemNr_itemID"?: string; + 'riskdata_basket_item_itemNr_itemID'?: string; /** * Manufacturer of the item. */ - "riskdata_basket_item_itemNr_manufacturer"?: string; + 'riskdata_basket_item_itemNr_manufacturer'?: string; /** * A text description of the product the invoice line refers to. */ - "riskdata_basket_item_itemNr_productTitle"?: string; + 'riskdata_basket_item_itemNr_productTitle'?: string; /** * Quantity of the item purchased. */ - "riskdata_basket_item_itemNr_quantity"?: string; + 'riskdata_basket_item_itemNr_quantity'?: string; /** * Email associated with the given product in the basket (usually in electronic gift cards). */ - "riskdata_basket_item_itemNr_receiverEmail"?: string; + 'riskdata_basket_item_itemNr_receiverEmail'?: string; /** * Size of the item. */ - "riskdata_basket_item_itemNr_size"?: string; + 'riskdata_basket_item_itemNr_size'?: string; /** * [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). */ - "riskdata_basket_item_itemNr_sku"?: string; + 'riskdata_basket_item_itemNr_sku'?: string; /** * [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). */ - "riskdata_basket_item_itemNr_upc"?: string; + 'riskdata_basket_item_itemNr_upc'?: string; /** * Code of the promotion. */ - "riskdata_promotions_promotion_itemNr_promotionCode"?: string; + 'riskdata_promotions_promotion_itemNr_promotionCode'?: string; /** * The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ - "riskdata_promotions_promotion_itemNr_promotionDiscountAmount"?: string; + 'riskdata_promotions_promotion_itemNr_promotionDiscountAmount'?: string; /** * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). */ - "riskdata_promotions_promotion_itemNr_promotionDiscountCurrency"?: string; + 'riskdata_promotions_promotion_itemNr_promotionDiscountCurrency'?: string; /** * Promotion\'s percentage discount. It is represented in percentage value and there is no need to include the \'%\' sign. e.g. for a promotion discount of 30%, the value of the field should be 30. */ - "riskdata_promotions_promotion_itemNr_promotionDiscountPercentage"?: string; + 'riskdata_promotions_promotion_itemNr_promotionDiscountPercentage'?: string; /** * Name of the promotion. */ - "riskdata_promotions_promotion_itemNr_promotionName"?: string; + 'riskdata_promotions_promotion_itemNr_promotionName'?: string; /** * Reference number of the risk profile that you want to apply to the payment. If not provided or left blank, the merchant-level account\'s default risk profile will be applied to the payment. For more information, see [dynamically assign a risk profile to a payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). */ - "riskdata_riskProfileReference"?: string; + 'riskdata_riskProfileReference'?: string; /** * If this parameter is provided with the value **true**, risk checks for the payment request are skipped and the transaction will not get a risk score. */ - "riskdata_skipRisk"?: string; + 'riskdata_skipRisk'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "riskdata__customFieldName", "baseName": "riskdata.[customFieldName]", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_basket_item_itemNr_amountPerItem", "baseName": "riskdata.basket.item[itemNr].amountPerItem", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_basket_item_itemNr_brand", "baseName": "riskdata.basket.item[itemNr].brand", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_basket_item_itemNr_category", "baseName": "riskdata.basket.item[itemNr].category", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_basket_item_itemNr_color", "baseName": "riskdata.basket.item[itemNr].color", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_basket_item_itemNr_currency", "baseName": "riskdata.basket.item[itemNr].currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_basket_item_itemNr_itemID", "baseName": "riskdata.basket.item[itemNr].itemID", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_basket_item_itemNr_manufacturer", "baseName": "riskdata.basket.item[itemNr].manufacturer", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_basket_item_itemNr_productTitle", "baseName": "riskdata.basket.item[itemNr].productTitle", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_basket_item_itemNr_quantity", "baseName": "riskdata.basket.item[itemNr].quantity", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_basket_item_itemNr_receiverEmail", "baseName": "riskdata.basket.item[itemNr].receiverEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_basket_item_itemNr_size", "baseName": "riskdata.basket.item[itemNr].size", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_basket_item_itemNr_sku", "baseName": "riskdata.basket.item[itemNr].sku", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_basket_item_itemNr_upc", "baseName": "riskdata.basket.item[itemNr].upc", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_promotions_promotion_itemNr_promotionCode", "baseName": "riskdata.promotions.promotion[itemNr].promotionCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_promotions_promotion_itemNr_promotionDiscountAmount", "baseName": "riskdata.promotions.promotion[itemNr].promotionDiscountAmount", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_promotions_promotion_itemNr_promotionDiscountCurrency", "baseName": "riskdata.promotions.promotion[itemNr].promotionDiscountCurrency", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_promotions_promotion_itemNr_promotionDiscountPercentage", "baseName": "riskdata.promotions.promotion[itemNr].promotionDiscountPercentage", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_promotions_promotion_itemNr_promotionName", "baseName": "riskdata.promotions.promotion[itemNr].promotionName", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_riskProfileReference", "baseName": "riskdata.riskProfileReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_skipRisk", "baseName": "riskdata.skipRisk", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalDataRisk.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/additionalDataRiskStandalone.ts b/src/typings/checkout/additionalDataRiskStandalone.ts index ab999eca4..dfd395451 100644 --- a/src/typings/checkout/additionalDataRiskStandalone.ts +++ b/src/typings/checkout/additionalDataRiskStandalone.ts @@ -12,165 +12,145 @@ export class AdditionalDataRiskStandalone { /** * Shopper\'s country of residence in the form of ISO standard 3166 2-character country codes. */ - "PayPal_CountryCode"?: string; + 'PayPal_CountryCode'?: string; /** * Shopper\'s email. */ - "PayPal_EmailId"?: string; + 'PayPal_EmailId'?: string; /** * Shopper\'s first name. */ - "PayPal_FirstName"?: string; + 'PayPal_FirstName'?: string; /** * Shopper\'s last name. */ - "PayPal_LastName"?: string; + 'PayPal_LastName'?: string; /** * Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. */ - "PayPal_PayerId"?: string; + 'PayPal_PayerId'?: string; /** * Shopper\'s phone number. */ - "PayPal_Phone"?: string; + 'PayPal_Phone'?: string; /** * Allowed values: * **Eligible** — Merchant is protected by PayPal\'s Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal\'s Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy. */ - "PayPal_ProtectionEligibility"?: string; + 'PayPal_ProtectionEligibility'?: string; /** * Unique transaction ID of the payment. */ - "PayPal_TransactionId"?: string; + 'PayPal_TransactionId'?: string; /** * Raw AVS result received from the acquirer, where available. Example: D */ - "avsResultRaw"?: string; + 'avsResultRaw'?: string; /** * The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization). */ - "bin"?: string; + 'bin'?: string; /** * Raw CVC result received from the acquirer, where available. Example: 1 */ - "cvcResultRaw"?: string; + 'cvcResultRaw'?: string; /** * Unique identifier or token for the shopper\'s card details. */ - "riskToken"?: string; + 'riskToken'?: string; /** * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true */ - "threeDAuthenticated"?: string; + 'threeDAuthenticated'?: string; /** * A Boolean value indicating whether 3DS was offered for this payment. Example: true */ - "threeDOffered"?: string; + 'threeDOffered'?: string; /** * Required for PayPal payments only. The only supported value is: **paypal**. */ - "tokenDataType"?: string; + 'tokenDataType'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "PayPal_CountryCode", "baseName": "PayPal.CountryCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "PayPal_EmailId", "baseName": "PayPal.EmailId", - "type": "string", - "format": "" + "type": "string" }, { "name": "PayPal_FirstName", "baseName": "PayPal.FirstName", - "type": "string", - "format": "" + "type": "string" }, { "name": "PayPal_LastName", "baseName": "PayPal.LastName", - "type": "string", - "format": "" + "type": "string" }, { "name": "PayPal_PayerId", "baseName": "PayPal.PayerId", - "type": "string", - "format": "" + "type": "string" }, { "name": "PayPal_Phone", "baseName": "PayPal.Phone", - "type": "string", - "format": "" + "type": "string" }, { "name": "PayPal_ProtectionEligibility", "baseName": "PayPal.ProtectionEligibility", - "type": "string", - "format": "" + "type": "string" }, { "name": "PayPal_TransactionId", "baseName": "PayPal.TransactionId", - "type": "string", - "format": "" + "type": "string" }, { "name": "avsResultRaw", "baseName": "avsResultRaw", - "type": "string", - "format": "" + "type": "string" }, { "name": "bin", "baseName": "bin", - "type": "string", - "format": "" + "type": "string" }, { "name": "cvcResultRaw", "baseName": "cvcResultRaw", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskToken", "baseName": "riskToken", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDAuthenticated", "baseName": "threeDAuthenticated", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDOffered", "baseName": "threeDOffered", - "type": "string", - "format": "" + "type": "string" }, { "name": "tokenDataType", "baseName": "tokenDataType", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalDataRiskStandalone.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/additionalDataSubMerchant.ts b/src/typings/checkout/additionalDataSubMerchant.ts index b6a48b41a..0e54b5faa 100644 --- a/src/typings/checkout/additionalDataSubMerchant.ts +++ b/src/typings/checkout/additionalDataSubMerchant.ts @@ -12,135 +12,118 @@ export class AdditionalDataSubMerchant { /** * Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. */ - "subMerchant_numberOfSubSellers"?: string; + 'subMerchant_numberOfSubSellers'?: string; /** * Required for transactions performed by registered payment facilitators. The city of the sub-merchant\'s address. * Format: Alphanumeric * Maximum length: 13 characters */ - "subMerchant_subSeller_subSellerNr_city"?: string; + 'subMerchant_subSeller_subSellerNr_city'?: string; /** * Required for transactions performed by registered payment facilitators. The three-letter country code of the sub-merchant\'s address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters */ - "subMerchant_subSeller_subSellerNr_country"?: string; + 'subMerchant_subSeller_subSellerNr_country'?: string; /** * Required for transactions performed by registered payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters */ - "subMerchant_subSeller_subSellerNr_email"?: string; + 'subMerchant_subSeller_subSellerNr_email'?: string; /** * Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters */ - "subMerchant_subSeller_subSellerNr_id"?: string; + 'subMerchant_subSeller_subSellerNr_id'?: string; /** * Required for transactions performed by registered payment facilitators. The sub-merchant\'s 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits */ - "subMerchant_subSeller_subSellerNr_mcc"?: string; + 'subMerchant_subSeller_subSellerNr_mcc'?: string; /** * Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters */ - "subMerchant_subSeller_subSellerNr_name"?: string; + 'subMerchant_subSeller_subSellerNr_name'?: string; /** * Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters */ - "subMerchant_subSeller_subSellerNr_phoneNumber"?: string; + 'subMerchant_subSeller_subSellerNr_phoneNumber'?: string; /** * Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant\'s address, without dashes. * Format: Numeric * Fixed length: 8 digits */ - "subMerchant_subSeller_subSellerNr_postalCode"?: string; + 'subMerchant_subSeller_subSellerNr_postalCode'?: string; /** * Required for transactions performed by registered payment facilitators. The state code of the sub-merchant\'s address, if applicable to the country. * Format: Alphanumeric * Maximum length: 2 characters */ - "subMerchant_subSeller_subSellerNr_state"?: string; + 'subMerchant_subSeller_subSellerNr_state'?: string; /** * Required for transactions performed by registered payment facilitators. The street name and house number of the sub-merchant\'s address. * Format: Alphanumeric * Maximum length: 60 characters */ - "subMerchant_subSeller_subSellerNr_street"?: string; + 'subMerchant_subSeller_subSellerNr_street'?: string; /** * Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ */ - "subMerchant_subSeller_subSellerNr_taxId"?: string; + 'subMerchant_subSeller_subSellerNr_taxId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "subMerchant_numberOfSubSellers", "baseName": "subMerchant.numberOfSubSellers", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchant_subSeller_subSellerNr_city", "baseName": "subMerchant.subSeller[subSellerNr].city", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchant_subSeller_subSellerNr_country", "baseName": "subMerchant.subSeller[subSellerNr].country", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchant_subSeller_subSellerNr_email", "baseName": "subMerchant.subSeller[subSellerNr].email", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchant_subSeller_subSellerNr_id", "baseName": "subMerchant.subSeller[subSellerNr].id", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchant_subSeller_subSellerNr_mcc", "baseName": "subMerchant.subSeller[subSellerNr].mcc", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchant_subSeller_subSellerNr_name", "baseName": "subMerchant.subSeller[subSellerNr].name", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchant_subSeller_subSellerNr_phoneNumber", "baseName": "subMerchant.subSeller[subSellerNr].phoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchant_subSeller_subSellerNr_postalCode", "baseName": "subMerchant.subSeller[subSellerNr].postalCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchant_subSeller_subSellerNr_state", "baseName": "subMerchant.subSeller[subSellerNr].state", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchant_subSeller_subSellerNr_street", "baseName": "subMerchant.subSeller[subSellerNr].street", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchant_subSeller_subSellerNr_taxId", "baseName": "subMerchant.subSeller[subSellerNr].taxId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalDataSubMerchant.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/additionalDataTemporaryServices.ts b/src/typings/checkout/additionalDataTemporaryServices.ts index 1a4697829..ffc792474 100644 --- a/src/typings/checkout/additionalDataTemporaryServices.ts +++ b/src/typings/checkout/additionalDataTemporaryServices.ts @@ -12,105 +12,91 @@ export class AdditionalDataTemporaryServices { /** * The customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 */ - "enhancedSchemeData_customerReference"?: string; + 'enhancedSchemeData_customerReference'?: string; /** * The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. */ - "enhancedSchemeData_employeeName"?: string; + 'enhancedSchemeData_employeeName'?: string; /** * The job description of the person working in a temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. */ - "enhancedSchemeData_jobDescription"?: string; + 'enhancedSchemeData_jobDescription'?: string; /** * The amount paid for regular hours worked, [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not be empty * Can be all zeros */ - "enhancedSchemeData_regularHoursRate"?: string; + 'enhancedSchemeData_regularHoursRate'?: string; /** * The hours worked. * maxLength: 7 * Must not be empty * Can be all zeros */ - "enhancedSchemeData_regularHoursWorked"?: string; + 'enhancedSchemeData_regularHoursWorked'?: string; /** * The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * Must not be all spaces */ - "enhancedSchemeData_requestName"?: string; + 'enhancedSchemeData_requestName'?: string; /** * The billing period start date. * Format: ddMMyy * maxLength: 6 */ - "enhancedSchemeData_tempStartDate"?: string; + 'enhancedSchemeData_tempStartDate'?: string; /** * The billing period end date. * Format: ddMMyy * maxLength: 6 */ - "enhancedSchemeData_tempWeekEnding"?: string; + 'enhancedSchemeData_tempWeekEnding'?: string; /** * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00 * maxLength: 12 */ - "enhancedSchemeData_totalTaxAmount"?: string; + 'enhancedSchemeData_totalTaxAmount'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "enhancedSchemeData_customerReference", "baseName": "enhancedSchemeData.customerReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_employeeName", "baseName": "enhancedSchemeData.employeeName", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_jobDescription", "baseName": "enhancedSchemeData.jobDescription", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_regularHoursRate", "baseName": "enhancedSchemeData.regularHoursRate", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_regularHoursWorked", "baseName": "enhancedSchemeData.regularHoursWorked", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_requestName", "baseName": "enhancedSchemeData.requestName", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_tempStartDate", "baseName": "enhancedSchemeData.tempStartDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_tempWeekEnding", "baseName": "enhancedSchemeData.tempWeekEnding", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_totalTaxAmount", "baseName": "enhancedSchemeData.totalTaxAmount", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalDataTemporaryServices.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/additionalDataWallets.ts b/src/typings/checkout/additionalDataWallets.ts index 5e65f1187..41d1aa23c 100644 --- a/src/typings/checkout/additionalDataWallets.ts +++ b/src/typings/checkout/additionalDataWallets.ts @@ -12,75 +12,64 @@ export class AdditionalDataWallets { /** * The Android Pay token retrieved from the SDK. */ - "androidpay_token"?: string; + 'androidpay_token'?: string; /** * The Mastercard Masterpass Transaction ID retrieved from the SDK. */ - "masterpass_transactionId"?: string; + 'masterpass_transactionId'?: string; /** * The Apple Pay token retrieved from the SDK. */ - "payment_token"?: string; + 'payment_token'?: string; /** * The Google Pay token retrieved from the SDK. */ - "paywithgoogle_token"?: string; + 'paywithgoogle_token'?: string; /** * The Samsung Pay token retrieved from the SDK. */ - "samsungpay_token"?: string; + 'samsungpay_token'?: string; /** * The Visa Checkout Call ID retrieved from the SDK. */ - "visacheckout_callId"?: string; + 'visacheckout_callId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "androidpay_token", "baseName": "androidpay.token", - "type": "string", - "format": "" + "type": "string" }, { "name": "masterpass_transactionId", "baseName": "masterpass.transactionId", - "type": "string", - "format": "" + "type": "string" }, { "name": "payment_token", "baseName": "payment.token", - "type": "string", - "format": "" + "type": "string" }, { "name": "paywithgoogle_token", "baseName": "paywithgoogle.token", - "type": "string", - "format": "" + "type": "string" }, { "name": "samsungpay_token", "baseName": "samsungpay.token", - "type": "string", - "format": "" + "type": "string" }, { "name": "visacheckout_callId", "baseName": "visacheckout.callId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalDataWallets.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/address.ts b/src/typings/checkout/address.ts index e2888d0df..73d109426 100644 --- a/src/typings/checkout/address.ts +++ b/src/typings/checkout/address.ts @@ -12,75 +12,64 @@ export class Address { /** * The name of the city. Maximum length: 3000 characters. */ - "city": string; + 'city': string; /** * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don\'t know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ - "country": string; + 'country': string; /** * The number or name of the house. Maximum length: 3000 characters. */ - "houseNumberOrName": string; + 'houseNumberOrName': string; /** * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. */ - "postalCode": string; + 'postalCode': string; /** * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ - "stateOrProvince"?: string; + 'stateOrProvince'?: string; /** * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. */ - "street": string; + 'street': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "city", "baseName": "city", - "type": "string", - "format": "" + "type": "string" }, { "name": "country", "baseName": "country", - "type": "string", - "format": "" + "type": "string" }, { "name": "houseNumberOrName", "baseName": "houseNumberOrName", - "type": "string", - "format": "" + "type": "string" }, { "name": "postalCode", "baseName": "postalCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "stateOrProvince", "baseName": "stateOrProvince", - "type": "string", - "format": "" + "type": "string" }, { "name": "street", "baseName": "street", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Address.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/affirmDetails.ts b/src/typings/checkout/affirmDetails.ts index a4f2800c6..49d3df670 100644 --- a/src/typings/checkout/affirmDetails.ts +++ b/src/typings/checkout/affirmDetails.ts @@ -12,36 +12,29 @@ export class AffirmDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * **affirm** */ - "type"?: AffirmDetails.TypeEnum; + 'type'?: AffirmDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "AffirmDetails.TypeEnum", - "format": "" + "type": "AffirmDetails.TypeEnum" } ]; static getAttributeTypeMap() { return AffirmDetails.attributeTypeMap; } - - public constructor() { - } } export namespace AffirmDetails { diff --git a/src/typings/checkout/afterpayDetails.ts b/src/typings/checkout/afterpayDetails.ts index f4fbac506..405fc327d 100644 --- a/src/typings/checkout/afterpayDetails.ts +++ b/src/typings/checkout/afterpayDetails.ts @@ -12,89 +12,77 @@ export class AfterpayDetails { /** * The address where to send the invoice. */ - "billingAddress"?: string; + 'billingAddress'?: string; /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The address where the goods should be delivered. */ - "deliveryAddress"?: string; + 'deliveryAddress'?: string; /** * Shopper name, date of birth, phone number, and email address. */ - "personalDetails"?: string; + 'personalDetails'?: 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; + 'recurringDetailReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * **afterpay_default** */ - "type": AfterpayDetails.TypeEnum; + 'type': AfterpayDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "billingAddress", "baseName": "billingAddress", - "type": "string", - "format": "" + "type": "string" }, { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "deliveryAddress", "baseName": "deliveryAddress", - "type": "string", - "format": "" + "type": "string" }, { "name": "personalDetails", "baseName": "personalDetails", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "AfterpayDetails.TypeEnum", - "format": "" + "type": "AfterpayDetails.TypeEnum" } ]; static getAttributeTypeMap() { return AfterpayDetails.attributeTypeMap; } - - public constructor() { - } } export namespace AfterpayDetails { diff --git a/src/typings/checkout/agency.ts b/src/typings/checkout/agency.ts index f6c76e066..3821cc692 100644 --- a/src/typings/checkout/agency.ts +++ b/src/typings/checkout/agency.ts @@ -12,35 +12,28 @@ export class Agency { /** * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters */ - "invoiceNumber"?: string; + 'invoiceNumber'?: string; /** * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters */ - "planName"?: string; + 'planName'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "invoiceNumber", "baseName": "invoiceNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "planName", "baseName": "planName", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Agency.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/airline.ts b/src/typings/checkout/airline.ts index 1f5ef6cac..eac592f19 100644 --- a/src/typings/checkout/airline.ts +++ b/src/typings/checkout/airline.ts @@ -7,141 +7,122 @@ * Do not edit this class manually. */ -import { Agency } from "./agency"; -import { Leg } from "./leg"; -import { Passenger } from "./passenger"; -import { Ticket } from "./ticket"; -import { TravelAgency } from "./travelAgency"; - +import { Agency } from './agency'; +import { Leg } from './leg'; +import { Passenger } from './passenger'; +import { Ticket } from './ticket'; +import { TravelAgency } from './travelAgency'; export class Airline { - "agency"?: Agency | null; + 'agency'?: Agency | null; /** * The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 11 characters */ - "boardingFee"?: number; + 'boardingFee'?: number; /** * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ - "code"?: string; + 'code'?: string; /** * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters */ - "computerizedReservationSystem"?: string; + 'computerizedReservationSystem'?: string; /** * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not start with a space or be all spaces. */ - "customerReferenceNumber"?: string; + 'customerReferenceNumber'?: string; /** * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. */ - "designatorCode"?: string; + 'designatorCode'?: string; /** * A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters */ - "documentType"?: string; + 'documentType'?: string; /** * The flight departure date. Time is optional. * Format for date only: `yyyy-MM-dd` * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local time of departure airport. * minLength: 10 characters * maxLength: 16 characters */ - "flightDate"?: Date; - "legs"?: Array; + 'flightDate'?: Date; + 'legs'?: Array; /** * The passenger\'s name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not start with a space or be all spaces. * Must not be all zeros. */ - "passengerName": string; - "passengers"?: Array; - "ticket"?: Ticket | null; - "travelAgency"?: TravelAgency | null; - - static readonly discriminator: string | undefined = undefined; + 'passengerName': string; + 'passengers'?: Array; + 'ticket'?: Ticket | null; + 'travelAgency'?: TravelAgency | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "agency", "baseName": "agency", - "type": "Agency | null", - "format": "" + "type": "Agency | null" }, { "name": "boardingFee", "baseName": "boardingFee", - "type": "number", - "format": "int64" + "type": "number" }, { "name": "code", "baseName": "code", - "type": "string", - "format": "" + "type": "string" }, { "name": "computerizedReservationSystem", "baseName": "computerizedReservationSystem", - "type": "string", - "format": "" + "type": "string" }, { "name": "customerReferenceNumber", "baseName": "customerReferenceNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "designatorCode", "baseName": "designatorCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "documentType", "baseName": "documentType", - "type": "string", - "format": "" + "type": "string" }, { "name": "flightDate", "baseName": "flightDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "legs", "baseName": "legs", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "passengerName", "baseName": "passengerName", - "type": "string", - "format": "" + "type": "string" }, { "name": "passengers", "baseName": "passengers", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "ticket", "baseName": "ticket", - "type": "Ticket | null", - "format": "" + "type": "Ticket | null" }, { "name": "travelAgency", "baseName": "travelAgency", - "type": "TravelAgency | null", - "format": "" + "type": "TravelAgency | null" } ]; static getAttributeTypeMap() { return Airline.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/amazonPayDetails.ts b/src/typings/checkout/amazonPayDetails.ts index 9110174e1..fd748cbbe 100644 --- a/src/typings/checkout/amazonPayDetails.ts +++ b/src/typings/checkout/amazonPayDetails.ts @@ -12,56 +12,47 @@ export class AmazonPayDetails { /** * This is the `amazonPayToken` that you obtained from the [Get Checkout Session](https://amazon-pay-acquirer-guide.s3-eu-west-1.amazonaws.com/v1/amazon-pay-api-v2/checkout-session.html#get-checkout-session) response. This token is used for API only integration specifically. */ - "amazonPayToken"?: string; + 'amazonPayToken'?: string; /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The `checkoutSessionId` is used to identify the checkout session at the Amazon Pay side. This field is required only for drop-in and components integration, where it replaces the amazonPayToken. */ - "checkoutSessionId"?: string; + 'checkoutSessionId'?: string; /** * **amazonpay** */ - "type"?: AmazonPayDetails.TypeEnum; + 'type'?: AmazonPayDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amazonPayToken", "baseName": "amazonPayToken", - "type": "string", - "format": "" + "type": "string" }, { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "checkoutSessionId", "baseName": "checkoutSessionId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "AmazonPayDetails.TypeEnum", - "format": "" + "type": "AmazonPayDetails.TypeEnum" } ]; static getAttributeTypeMap() { return AmazonPayDetails.attributeTypeMap; } - - public constructor() { - } } export namespace AmazonPayDetails { diff --git a/src/typings/checkout/amount.ts b/src/typings/checkout/amount.ts index 36fec19f3..b542bda59 100644 --- a/src/typings/checkout/amount.ts +++ b/src/typings/checkout/amount.ts @@ -12,35 +12,28 @@ export class Amount { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ - "currency": string; + 'currency': string; /** * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ - "value": number; + 'value': number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "number", - "format": "int64" + "type": "number" } ]; static getAttributeTypeMap() { return Amount.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/amounts.ts b/src/typings/checkout/amounts.ts index 78a022585..5de135a81 100644 --- a/src/typings/checkout/amounts.ts +++ b/src/typings/checkout/amounts.ts @@ -12,35 +12,28 @@ export class Amounts { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). */ - "currency": string; + 'currency': string; /** * The amounts of the donation (in [minor units](https://docs.adyen.com/development-resources/currency-codes/)). */ - "values": Array; + 'values': Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "values", "baseName": "values", - "type": "Array", - "format": "int64" + "type": "Array" } ]; static getAttributeTypeMap() { return Amounts.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/ancvDetails.ts b/src/typings/checkout/ancvDetails.ts index 81af60d0c..8d288639f 100644 --- a/src/typings/checkout/ancvDetails.ts +++ b/src/typings/checkout/ancvDetails.ts @@ -12,69 +12,59 @@ export class AncvDetails { /** * ANCV account identification (email or account number) */ - "beneficiaryId"?: string; + 'beneficiaryId'?: string; /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: 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; + 'recurringDetailReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * **ancv** */ - "type"?: AncvDetails.TypeEnum; + 'type'?: AncvDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "beneficiaryId", "baseName": "beneficiaryId", - "type": "string", - "format": "" + "type": "string" }, { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "AncvDetails.TypeEnum", - "format": "" + "type": "AncvDetails.TypeEnum" } ]; static getAttributeTypeMap() { return AncvDetails.attributeTypeMap; } - - public constructor() { - } } export namespace AncvDetails { diff --git a/src/typings/checkout/androidPayDetails.ts b/src/typings/checkout/androidPayDetails.ts index b8af148d0..f2be6740c 100644 --- a/src/typings/checkout/androidPayDetails.ts +++ b/src/typings/checkout/androidPayDetails.ts @@ -12,36 +12,29 @@ export class AndroidPayDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * **androidpay** */ - "type"?: AndroidPayDetails.TypeEnum; + 'type'?: AndroidPayDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "AndroidPayDetails.TypeEnum", - "format": "" + "type": "AndroidPayDetails.TypeEnum" } ]; static getAttributeTypeMap() { return AndroidPayDetails.attributeTypeMap; } - - public constructor() { - } } export namespace AndroidPayDetails { diff --git a/src/typings/checkout/applePayDetails.ts b/src/typings/checkout/applePayDetails.ts index 9156c8b46..4c920996d 100644 --- a/src/typings/checkout/applePayDetails.ts +++ b/src/typings/checkout/applePayDetails.ts @@ -12,79 +12,68 @@ export class ApplePayDetails { /** * The stringified and base64 encoded `paymentData` you retrieved from the Apple framework. */ - "applePayToken": string; + 'applePayToken': string; /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ - "fundingSource"?: ApplePayDetails.FundingSourceEnum; + 'fundingSource'?: ApplePayDetails.FundingSourceEnum; /** * This is the `recurringDetailReference` returned in the response when you created the token. * * @deprecated since Adyen Checkout API v49 * Use `storedPaymentMethodId` instead. */ - "recurringDetailReference"?: string; + 'recurringDetailReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * **applepay** */ - "type"?: ApplePayDetails.TypeEnum; + 'type'?: ApplePayDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "applePayToken", "baseName": "applePayToken", - "type": "string", - "format": "" + "type": "string" }, { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "fundingSource", "baseName": "fundingSource", - "type": "ApplePayDetails.FundingSourceEnum", - "format": "" + "type": "ApplePayDetails.FundingSourceEnum" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "ApplePayDetails.TypeEnum", - "format": "" + "type": "ApplePayDetails.TypeEnum" } ]; static getAttributeTypeMap() { return ApplePayDetails.attributeTypeMap; } - - public constructor() { - } } export namespace ApplePayDetails { diff --git a/src/typings/checkout/applePayDonations.ts b/src/typings/checkout/applePayDonations.ts index 246012055..337f8169c 100644 --- a/src/typings/checkout/applePayDonations.ts +++ b/src/typings/checkout/applePayDonations.ts @@ -12,79 +12,68 @@ export class ApplePayDonations { /** * The stringified and base64 encoded `paymentData` you retrieved from the Apple framework. */ - "applePayToken": string; + 'applePayToken': string; /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ - "fundingSource"?: ApplePayDonations.FundingSourceEnum; + 'fundingSource'?: ApplePayDonations.FundingSourceEnum; /** * This is the `recurringDetailReference` returned in the response when you created the token. * * @deprecated since Adyen Checkout API v49 * Use `storedPaymentMethodId` instead. */ - "recurringDetailReference"?: string; + 'recurringDetailReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * **applepay** */ - "type"?: ApplePayDonations.TypeEnum; + 'type'?: ApplePayDonations.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "applePayToken", "baseName": "applePayToken", - "type": "string", - "format": "" + "type": "string" }, { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "fundingSource", "baseName": "fundingSource", - "type": "ApplePayDonations.FundingSourceEnum", - "format": "" + "type": "ApplePayDonations.FundingSourceEnum" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "ApplePayDonations.TypeEnum", - "format": "" + "type": "ApplePayDonations.TypeEnum" } ]; static getAttributeTypeMap() { return ApplePayDonations.attributeTypeMap; } - - public constructor() { - } } export namespace ApplePayDonations { diff --git a/src/typings/checkout/applePaySessionRequest.ts b/src/typings/checkout/applePaySessionRequest.ts index a285a5416..20a7806f5 100644 --- a/src/typings/checkout/applePaySessionRequest.ts +++ b/src/typings/checkout/applePaySessionRequest.ts @@ -12,45 +12,37 @@ export class ApplePaySessionRequest { /** * This is the name that your shoppers will see in the Apple Pay interface. The value returned as `configuration.merchantName` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. */ - "displayName": string; + 'displayName': string; /** * The domain name you provided when you added Apple Pay in your Customer Area. This must match the `window.location.hostname` of the web shop. */ - "domainName": string; + 'domainName': string; /** * Your merchant identifier registered with Apple Pay. Use the value of the `configuration.merchantId` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. */ - "merchantIdentifier": string; + 'merchantIdentifier': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "displayName", "baseName": "displayName", - "type": "string", - "format": "" + "type": "string" }, { "name": "domainName", "baseName": "domainName", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantIdentifier", "baseName": "merchantIdentifier", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ApplePaySessionRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/applePaySessionResponse.ts b/src/typings/checkout/applePaySessionResponse.ts index 0118a7c86..82edcc74a 100644 --- a/src/typings/checkout/applePaySessionResponse.ts +++ b/src/typings/checkout/applePaySessionResponse.ts @@ -12,25 +12,19 @@ export class ApplePaySessionResponse { /** * Base64 encoded data you need to [complete the Apple Pay merchant validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). */ - "data": string; + 'data': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ApplePaySessionResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/applicationInfo.ts b/src/typings/checkout/applicationInfo.ts index 1f1b3bc2b..e926e01cb 100644 --- a/src/typings/checkout/applicationInfo.ts +++ b/src/typings/checkout/applicationInfo.ts @@ -7,67 +7,55 @@ * Do not edit this class manually. */ -import { CommonField } from "./commonField"; -import { ExternalPlatform } from "./externalPlatform"; -import { MerchantDevice } from "./merchantDevice"; -import { ShopperInteractionDevice } from "./shopperInteractionDevice"; - +import { CommonField } from './commonField'; +import { ExternalPlatform } from './externalPlatform'; +import { MerchantDevice } from './merchantDevice'; +import { ShopperInteractionDevice } from './shopperInteractionDevice'; export class ApplicationInfo { - "adyenLibrary"?: CommonField | null; - "adyenPaymentSource"?: CommonField | null; - "externalPlatform"?: ExternalPlatform | null; - "merchantApplication"?: CommonField | null; - "merchantDevice"?: MerchantDevice | null; - "shopperInteractionDevice"?: ShopperInteractionDevice | null; - - static readonly discriminator: string | undefined = undefined; + 'adyenLibrary'?: CommonField | null; + 'adyenPaymentSource'?: CommonField | null; + 'externalPlatform'?: ExternalPlatform | null; + 'merchantApplication'?: CommonField | null; + 'merchantDevice'?: MerchantDevice | null; + 'shopperInteractionDevice'?: ShopperInteractionDevice | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "adyenLibrary", "baseName": "adyenLibrary", - "type": "CommonField | null", - "format": "" + "type": "CommonField | null" }, { "name": "adyenPaymentSource", "baseName": "adyenPaymentSource", - "type": "CommonField | null", - "format": "" + "type": "CommonField | null" }, { "name": "externalPlatform", "baseName": "externalPlatform", - "type": "ExternalPlatform | null", - "format": "" + "type": "ExternalPlatform | null" }, { "name": "merchantApplication", "baseName": "merchantApplication", - "type": "CommonField | null", - "format": "" + "type": "CommonField | null" }, { "name": "merchantDevice", "baseName": "merchantDevice", - "type": "MerchantDevice | null", - "format": "" + "type": "MerchantDevice | null" }, { "name": "shopperInteractionDevice", "baseName": "shopperInteractionDevice", - "type": "ShopperInteractionDevice | null", - "format": "" + "type": "ShopperInteractionDevice | null" } ]; static getAttributeTypeMap() { return ApplicationInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/authenticationData.ts b/src/typings/checkout/authenticationData.ts index 270925b5c..c48142dca 100644 --- a/src/typings/checkout/authenticationData.ts +++ b/src/typings/checkout/authenticationData.ts @@ -7,50 +7,41 @@ * Do not edit this class manually. */ -import { ThreeDSRequestData } from "./threeDSRequestData"; - +import { ThreeDSRequestData } from './threeDSRequestData'; export class AuthenticationData { /** * Indicates when 3D Secure authentication should be attempted. This overrides all other rules, including [Dynamic 3D Secure settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * **always**: Perform 3D Secure authentication. * **never**: Don\'t perform 3D Secure authentication. If PSD2 SCA or other national regulations require authentication, the transaction gets declined. */ - "attemptAuthentication"?: AuthenticationData.AttemptAuthenticationEnum; + 'attemptAuthentication'?: AuthenticationData.AttemptAuthenticationEnum; /** * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. Default: **false**. */ - "authenticationOnly"?: boolean; - "threeDSRequestData"?: ThreeDSRequestData | null; - - static readonly discriminator: string | undefined = undefined; + 'authenticationOnly'?: boolean; + 'threeDSRequestData'?: ThreeDSRequestData | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "attemptAuthentication", "baseName": "attemptAuthentication", - "type": "AuthenticationData.AttemptAuthenticationEnum", - "format": "" + "type": "AuthenticationData.AttemptAuthenticationEnum" }, { "name": "authenticationOnly", "baseName": "authenticationOnly", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "threeDSRequestData", "baseName": "threeDSRequestData", - "type": "ThreeDSRequestData | null", - "format": "" + "type": "ThreeDSRequestData | null" } ]; static getAttributeTypeMap() { return AuthenticationData.attributeTypeMap; } - - public constructor() { - } } export namespace AuthenticationData { diff --git a/src/typings/checkout/bacsDirectDebitDetails.ts b/src/typings/checkout/bacsDirectDebitDetails.ts index fb78deee4..51861dc76 100644 --- a/src/typings/checkout/bacsDirectDebitDetails.ts +++ b/src/typings/checkout/bacsDirectDebitDetails.ts @@ -12,99 +12,86 @@ export class BacsDirectDebitDetails { /** * The bank account number (without separators). */ - "bankAccountNumber"?: string; + 'bankAccountNumber'?: string; /** * The bank routing number of the account. */ - "bankLocationId"?: string; + 'bankLocationId'?: string; /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The name of the bank account holder. */ - "holderName"?: string; + 'holderName'?: 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; + 'recurringDetailReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * The unique identifier of your user\'s verified transfer instrument, which you can use to top up their balance accounts. */ - "transferInstrumentId"?: string; + 'transferInstrumentId'?: string; /** * **directdebit_GB** */ - "type"?: BacsDirectDebitDetails.TypeEnum; + 'type'?: BacsDirectDebitDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "bankAccountNumber", "baseName": "bankAccountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankLocationId", "baseName": "bankLocationId", - "type": "string", - "format": "" + "type": "string" }, { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "holderName", "baseName": "holderName", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "transferInstrumentId", "baseName": "transferInstrumentId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "BacsDirectDebitDetails.TypeEnum", - "format": "" + "type": "BacsDirectDebitDetails.TypeEnum" } ]; static getAttributeTypeMap() { return BacsDirectDebitDetails.attributeTypeMap; } - - public constructor() { - } } export namespace BacsDirectDebitDetails { diff --git a/src/typings/checkout/balanceCheckRequest.ts b/src/typings/checkout/balanceCheckRequest.ts index e0af6c0d0..2330552c3 100644 --- a/src/typings/checkout/balanceCheckRequest.ts +++ b/src/typings/checkout/balanceCheckRequest.ts @@ -7,438 +7,388 @@ * Do not edit this class manually. */ -import { AccountInfo } from "./accountInfo"; -import { Address } from "./address"; -import { Amount } from "./amount"; -import { ApplicationInfo } from "./applicationInfo"; -import { BrowserInfo } from "./browserInfo"; -import { ForexQuote } from "./forexQuote"; -import { Installments } from "./installments"; -import { MerchantRiskIndicator } from "./merchantRiskIndicator"; -import { Name } from "./name"; -import { Recurring } from "./recurring"; -import { Split } from "./split"; -import { ThreeDS2RequestData } from "./threeDS2RequestData"; - +import { AccountInfo } from './accountInfo'; +import { Address } from './address'; +import { Amount } from './amount'; +import { ApplicationInfo } from './applicationInfo'; +import { BrowserInfo } from './browserInfo'; +import { ForexQuote } from './forexQuote'; +import { Installments } from './installments'; +import { MerchantRiskIndicator } from './merchantRiskIndicator'; +import { Name } from './name'; +import { Recurring } from './recurring'; +import { Split } from './split'; +import { ThreeDS2RequestData } from './threeDS2RequestData'; export class BalanceCheckRequest { - "accountInfo"?: AccountInfo | null; - "additionalAmount"?: Amount | null; + 'accountInfo'?: AccountInfo | null; + 'additionalAmount'?: Amount | null; /** * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ - "additionalData"?: { [key: string]: string; }; - "amount": Amount; - "applicationInfo"?: ApplicationInfo | null; - "billingAddress"?: Address | null; - "browserInfo"?: BrowserInfo | null; + 'additionalData'?: { [key: string]: string; }; + 'amount': Amount; + 'applicationInfo'?: ApplicationInfo | null; + 'billingAddress'?: Address | null; + 'browserInfo'?: BrowserInfo | null; /** * The delay between the authorisation and scheduled auto-capture, specified in hours. */ - "captureDelayHours"?: number; + 'captureDelayHours'?: number; /** * The shopper\'s date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ - "dateOfBirth"?: string; - "dccQuote"?: ForexQuote | null; - "deliveryAddress"?: Address | null; + 'dateOfBirth'?: string; + 'dccQuote'?: ForexQuote | null; + 'deliveryAddress'?: Address | null; /** * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 */ - "deliveryDate"?: Date; + 'deliveryDate'?: Date; /** * A string containing the shopper\'s device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ - "deviceFingerprint"?: string; + 'deviceFingerprint'?: string; /** * An integer value that is added to the normal fraud score. The value can be either positive or negative. */ - "fraudOffset"?: number; - "installments"?: Installments | null; + '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. */ - "localizedShopperStatement"?: { [key: string]: string; }; + 'localizedShopperStatement'?: { [key: string]: string; }; /** * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ - "mcc"?: string; + 'mcc'?: string; /** * The merchant account identifier, with which you want to process the transaction. */ - "merchantAccount": string; + 'merchantAccount': string; /** * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. */ - "merchantOrderReference"?: string; - "merchantRiskIndicator"?: MerchantRiskIndicator | null; + 'merchantOrderReference'?: string; + 'merchantRiskIndicator'?: MerchantRiskIndicator | null; /** * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. */ - "metadata"?: { [key: string]: string; }; + 'metadata'?: { [key: string]: string; }; /** * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. */ - "orderReference"?: string; + 'orderReference'?: string; /** * The collection that contains the type of the payment method and its specific information. */ - "paymentMethod": { [key: string]: string; }; - "recurring"?: Recurring | null; + 'paymentMethod': { [key: string]: string; }; + 'recurring'?: Recurring | 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. */ - "recurringProcessingModel"?: BalanceCheckRequest.RecurringProcessingModelEnum; + 'recurringProcessingModel'?: BalanceCheckRequest.RecurringProcessingModelEnum; /** * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ - "reference"?: string; + 'reference'?: string; /** * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. */ - "selectedBrand"?: string; + 'selectedBrand'?: string; /** * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. */ - "selectedRecurringDetailReference"?: string; + 'selectedRecurringDetailReference'?: string; /** * A session ID used to identify a payment session. */ - "sessionId"?: string; + 'sessionId'?: string; /** * The shopper\'s email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require `shopperEmail` for all browser-based and mobile implementations. */ - "shopperEmail"?: string; + 'shopperEmail'?: string; /** * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ - "shopperIP"?: string; + 'shopperIP'?: string; /** * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ - "shopperInteraction"?: BalanceCheckRequest.ShopperInteractionEnum; + 'shopperInteraction'?: BalanceCheckRequest.ShopperInteractionEnum; /** * The combination of a language code and a country code to specify the language to be used in the payment. */ - "shopperLocale"?: string; - "shopperName"?: Name | null; + 'shopperLocale'?: string; + 'shopperName'?: Name | null; /** * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ - "shopperReference"?: string; + 'shopperReference'?: string; /** * The text to be shown on the shopper\'s bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , \' _ - ? + * /_**. */ - "shopperStatement"?: string; + 'shopperStatement'?: string; /** * The shopper\'s social security number. */ - "socialSecurityNumber"?: string; + 'socialSecurityNumber'?: string; /** * An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). */ - "splits"?: Array; + 'splits'?: Array; /** * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. */ - "store"?: string; + 'store'?: string; /** * The shopper\'s telephone number. */ - "telephoneNumber"?: string; - "threeDS2RequestData"?: ThreeDS2RequestData | null; + 'telephoneNumber'?: string; + 'threeDS2RequestData'?: ThreeDS2RequestData | null; /** * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. * * @deprecated since Adyen Checkout API v69 * Use `authenticationData.authenticationOnly` instead. */ - "threeDSAuthenticationOnly"?: boolean; + 'threeDSAuthenticationOnly'?: boolean; /** * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). */ - "totalsGroup"?: string; + 'totalsGroup'?: string; /** * Set to true if the payment should be routed to a trusted MID. */ - "trustedShopper"?: boolean; - - static readonly discriminator: string | undefined = undefined; + 'trustedShopper'?: boolean; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountInfo", "baseName": "accountInfo", - "type": "AccountInfo | null", - "format": "" + "type": "AccountInfo | null" }, { "name": "additionalAmount", "baseName": "additionalAmount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo | null", - "format": "" + "type": "ApplicationInfo | null" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "Address | null", - "format": "" + "type": "Address | null" }, { "name": "browserInfo", "baseName": "browserInfo", - "type": "BrowserInfo | null", - "format": "" + "type": "BrowserInfo | null" }, { "name": "captureDelayHours", "baseName": "captureDelayHours", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "dateOfBirth", "baseName": "dateOfBirth", - "type": "string", - "format": "date" + "type": "string" }, { "name": "dccQuote", "baseName": "dccQuote", - "type": "ForexQuote | null", - "format": "" + "type": "ForexQuote | null" }, { "name": "deliveryAddress", "baseName": "deliveryAddress", - "type": "Address | null", - "format": "" + "type": "Address | null" }, { "name": "deliveryDate", "baseName": "deliveryDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "deviceFingerprint", "baseName": "deviceFingerprint", - "type": "string", - "format": "" + "type": "string" }, { "name": "fraudOffset", "baseName": "fraudOffset", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "installments", "baseName": "installments", - "type": "Installments | null", - "format": "" + "type": "Installments | null" }, { "name": "localizedShopperStatement", "baseName": "localizedShopperStatement", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "mcc", "baseName": "mcc", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantOrderReference", "baseName": "merchantOrderReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantRiskIndicator", "baseName": "merchantRiskIndicator", - "type": "MerchantRiskIndicator | null", - "format": "" + "type": "MerchantRiskIndicator | null" }, { "name": "metadata", "baseName": "metadata", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "orderReference", "baseName": "orderReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMethod", "baseName": "paymentMethod", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "recurring", "baseName": "recurring", - "type": "Recurring | null", - "format": "" + "type": "Recurring | null" }, { "name": "recurringProcessingModel", "baseName": "recurringProcessingModel", - "type": "BalanceCheckRequest.RecurringProcessingModelEnum", - "format": "" + "type": "BalanceCheckRequest.RecurringProcessingModelEnum" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "selectedBrand", "baseName": "selectedBrand", - "type": "string", - "format": "" + "type": "string" }, { "name": "selectedRecurringDetailReference", "baseName": "selectedRecurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "sessionId", "baseName": "sessionId", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperEmail", "baseName": "shopperEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperIP", "baseName": "shopperIP", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperInteraction", "baseName": "shopperInteraction", - "type": "BalanceCheckRequest.ShopperInteractionEnum", - "format": "" + "type": "BalanceCheckRequest.ShopperInteractionEnum" }, { "name": "shopperLocale", "baseName": "shopperLocale", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperName", "baseName": "shopperName", - "type": "Name | null", - "format": "" + "type": "Name | null" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperStatement", "baseName": "shopperStatement", - "type": "string", - "format": "" + "type": "string" }, { "name": "socialSecurityNumber", "baseName": "socialSecurityNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "splits", "baseName": "splits", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "store", "baseName": "store", - "type": "string", - "format": "" + "type": "string" }, { "name": "telephoneNumber", "baseName": "telephoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDS2RequestData", "baseName": "threeDS2RequestData", - "type": "ThreeDS2RequestData | null", - "format": "" + "type": "ThreeDS2RequestData | null" }, { "name": "threeDSAuthenticationOnly", "baseName": "threeDSAuthenticationOnly", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "totalsGroup", "baseName": "totalsGroup", - "type": "string", - "format": "" + "type": "string" }, { "name": "trustedShopper", "baseName": "trustedShopper", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return BalanceCheckRequest.attributeTypeMap; } - - public constructor() { - } } export namespace BalanceCheckRequest { diff --git a/src/typings/checkout/balanceCheckResponse.ts b/src/typings/checkout/balanceCheckResponse.ts index 12741d66a..59654dc73 100644 --- a/src/typings/checkout/balanceCheckResponse.ts +++ b/src/typings/checkout/balanceCheckResponse.ts @@ -7,85 +7,72 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { FraudResult } from "./fraudResult"; - +import { Amount } from './amount'; +import { FraudResult } from './fraudResult'; export class BalanceCheckResponse { /** * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. */ - "additionalData"?: { [key: string]: string; }; - "balance": Amount; - "fraudResult"?: FraudResult | null; + 'additionalData'?: { [key: string]: string; }; + 'balance': Amount; + 'fraudResult'?: FraudResult | null; /** * Adyen\'s 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ - "pspReference"?: string; + 'pspReference'?: string; /** * If the payment\'s authorisation is refused or an error occurs during authorisation, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ - "refusalReason"?: string; + 'refusalReason'?: string; /** * The result of the cancellation request. Possible values: * **Success** – Indicates that the balance check was successful. * **NotEnoughBalance** – Commonly indicates that the card did not have enough balance to pay the amount in the request, or that the currency of the balance on the card did not match the currency of the requested amount. * **Failed** – Indicates that the balance check failed. */ - "resultCode": BalanceCheckResponse.ResultCodeEnum; - "transactionLimit"?: Amount | null; - - static readonly discriminator: string | undefined = undefined; + 'resultCode': BalanceCheckResponse.ResultCodeEnum; + 'transactionLimit'?: Amount | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "balance", "baseName": "balance", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "fraudResult", "baseName": "fraudResult", - "type": "FraudResult | null", - "format": "" + "type": "FraudResult | null" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "refusalReason", "baseName": "refusalReason", - "type": "string", - "format": "" + "type": "string" }, { "name": "resultCode", "baseName": "resultCode", - "type": "BalanceCheckResponse.ResultCodeEnum", - "format": "" + "type": "BalanceCheckResponse.ResultCodeEnum" }, { "name": "transactionLimit", "baseName": "transactionLimit", - "type": "Amount | null", - "format": "" + "type": "Amount | null" } ]; static getAttributeTypeMap() { return BalanceCheckResponse.attributeTypeMap; } - - public constructor() { - } } export namespace BalanceCheckResponse { diff --git a/src/typings/checkout/billDeskDetails.ts b/src/typings/checkout/billDeskDetails.ts index 60c7fe54c..a291bc1e3 100644 --- a/src/typings/checkout/billDeskDetails.ts +++ b/src/typings/checkout/billDeskDetails.ts @@ -12,51 +12,43 @@ export class BillDeskDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The issuer id of the shopper\'s selected bank. */ - "issuer": string; + 'issuer': string; /** * **billdesk** */ - "type": BillDeskDetails.TypeEnum; + 'type': BillDeskDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuer", "baseName": "issuer", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "BillDeskDetails.TypeEnum", - "format": "" + "type": "BillDeskDetails.TypeEnum" } ]; static getAttributeTypeMap() { return BillDeskDetails.attributeTypeMap; } - - public constructor() { - } } export namespace BillDeskDetails { export enum TypeEnum { - BilldeskOnline = 'billdesk_online', - BilldeskWallet = 'billdesk_wallet' + Online = 'billdesk_online', + Wallet = 'billdesk_wallet' } } diff --git a/src/typings/checkout/billingAddress.ts b/src/typings/checkout/billingAddress.ts index 0ded3095d..ce5d93e51 100644 --- a/src/typings/checkout/billingAddress.ts +++ b/src/typings/checkout/billingAddress.ts @@ -12,75 +12,64 @@ export class BillingAddress { /** * The name of the city. Maximum length: 3000 characters. */ - "city": string; + 'city': string; /** * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don\'t know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ - "country": string; + 'country': string; /** * The number or name of the house. Maximum length: 3000 characters. */ - "houseNumberOrName": string; + 'houseNumberOrName': string; /** * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. */ - "postalCode": string; + 'postalCode': string; /** * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ - "stateOrProvince"?: string; + 'stateOrProvince'?: string; /** * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. */ - "street": string; + 'street': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "city", "baseName": "city", - "type": "string", - "format": "" + "type": "string" }, { "name": "country", "baseName": "country", - "type": "string", - "format": "" + "type": "string" }, { "name": "houseNumberOrName", "baseName": "houseNumberOrName", - "type": "string", - "format": "" + "type": "string" }, { "name": "postalCode", "baseName": "postalCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "stateOrProvince", "baseName": "stateOrProvince", - "type": "string", - "format": "" + "type": "string" }, { "name": "street", "baseName": "street", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return BillingAddress.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/blikDetails.ts b/src/typings/checkout/blikDetails.ts index c2a9e1956..ef8a9abb1 100644 --- a/src/typings/checkout/blikDetails.ts +++ b/src/typings/checkout/blikDetails.ts @@ -12,69 +12,59 @@ export class BlikDetails { /** * BLIK code consisting of 6 digits. */ - "blikCode"?: string; + 'blikCode'?: string; /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: 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; + 'recurringDetailReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * **blik** */ - "type"?: BlikDetails.TypeEnum; + 'type'?: BlikDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "blikCode", "baseName": "blikCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "BlikDetails.TypeEnum", - "format": "" + "type": "BlikDetails.TypeEnum" } ]; static getAttributeTypeMap() { return BlikDetails.attributeTypeMap; } - - public constructor() { - } } export namespace BlikDetails { diff --git a/src/typings/checkout/browserInfo.ts b/src/typings/checkout/browserInfo.ts index 20bd64102..5c3afcbb5 100644 --- a/src/typings/checkout/browserInfo.ts +++ b/src/typings/checkout/browserInfo.ts @@ -12,105 +12,91 @@ export class BrowserInfo { /** * The accept header value of the shopper\'s browser. */ - "acceptHeader": string; + 'acceptHeader': string; /** * The color depth of the shopper\'s browser in bits per pixel. This should be obtained by using the browser\'s `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. */ - "colorDepth": number; + 'colorDepth': number; /** * Boolean value indicating if the shopper\'s browser is able to execute Java. */ - "javaEnabled": boolean; + 'javaEnabled': boolean; /** * Boolean value indicating if the shopper\'s browser is able to execute JavaScript. A default \'true\' value is assumed if the field is not present. */ - "javaScriptEnabled"?: boolean; + 'javaScriptEnabled'?: boolean; /** * The `navigator.language` value of the shopper\'s browser (as defined in IETF BCP 47). */ - "language": string; + 'language': string; /** * The total height of the shopper\'s device screen in pixels. */ - "screenHeight": number; + 'screenHeight': number; /** * The total width of the shopper\'s device screen in pixels. */ - "screenWidth": number; + 'screenWidth': number; /** * Time difference between UTC time and the shopper\'s browser local time, in minutes. */ - "timeZoneOffset": number; + 'timeZoneOffset': number; /** * The user agent value of the shopper\'s browser. */ - "userAgent": string; + 'userAgent': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "acceptHeader", "baseName": "acceptHeader", - "type": "string", - "format": "" + "type": "string" }, { "name": "colorDepth", "baseName": "colorDepth", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "javaEnabled", "baseName": "javaEnabled", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "javaScriptEnabled", "baseName": "javaScriptEnabled", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "language", "baseName": "language", - "type": "string", - "format": "" + "type": "string" }, { "name": "screenHeight", "baseName": "screenHeight", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "screenWidth", "baseName": "screenWidth", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "timeZoneOffset", "baseName": "timeZoneOffset", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "userAgent", "baseName": "userAgent", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return BrowserInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/cancelOrderRequest.ts b/src/typings/checkout/cancelOrderRequest.ts index d9948aa1b..95885831f 100644 --- a/src/typings/checkout/cancelOrderRequest.ts +++ b/src/typings/checkout/cancelOrderRequest.ts @@ -7,39 +7,31 @@ * Do not edit this class manually. */ -import { EncryptedOrderData } from "./encryptedOrderData"; - +import { EncryptedOrderData } from './encryptedOrderData'; export class CancelOrderRequest { /** * The merchant account identifier that orderData belongs to. */ - "merchantAccount": string; - "order": EncryptedOrderData; - - static readonly discriminator: string | undefined = undefined; + 'merchantAccount': string; + 'order': EncryptedOrderData; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "order", "baseName": "order", - "type": "EncryptedOrderData", - "format": "" + "type": "EncryptedOrderData" } ]; static getAttributeTypeMap() { return CancelOrderRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/cancelOrderResponse.ts b/src/typings/checkout/cancelOrderResponse.ts index 8b76d0b76..c382b05b1 100644 --- a/src/typings/checkout/cancelOrderResponse.ts +++ b/src/typings/checkout/cancelOrderResponse.ts @@ -12,36 +12,29 @@ export class CancelOrderResponse { /** * A unique reference of the cancellation request. */ - "pspReference": string; + 'pspReference': string; /** * The result of the cancellation request. Possible values: * **Received** – Indicates the cancellation has successfully been received by Adyen, and will be processed. */ - "resultCode": CancelOrderResponse.ResultCodeEnum; + 'resultCode': CancelOrderResponse.ResultCodeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "resultCode", "baseName": "resultCode", - "type": "CancelOrderResponse.ResultCodeEnum", - "format": "" + "type": "CancelOrderResponse.ResultCodeEnum" } ]; static getAttributeTypeMap() { return CancelOrderResponse.attributeTypeMap; } - - public constructor() { - } } export namespace CancelOrderResponse { diff --git a/src/typings/checkout/cardBrandDetails.ts b/src/typings/checkout/cardBrandDetails.ts index 2339c5ff3..838b52d08 100644 --- a/src/typings/checkout/cardBrandDetails.ts +++ b/src/typings/checkout/cardBrandDetails.ts @@ -12,35 +12,28 @@ export class CardBrandDetails { /** * Indicates if you support the card brand. */ - "supported"?: boolean; + 'supported'?: boolean; /** * The name of the card brand. */ - "type"?: string; + 'type'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "supported", "baseName": "supported", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CardBrandDetails.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/cardDetails.ts b/src/typings/checkout/cardDetails.ts index 6de3e21c7..88ebec954 100644 --- a/src/typings/checkout/cardDetails.ts +++ b/src/typings/checkout/cardDetails.ts @@ -12,269 +12,239 @@ export class CardDetails { /** * Secondary brand of the card. For example: **plastix**, **hmclub**. */ - "brand"?: string; + 'brand'?: string; /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * @deprecated */ - "cupsecureplus_smscode"?: string; + 'cupsecureplus_smscode'?: string; /** * The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ - "cvc"?: string; + 'cvc'?: string; /** * Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details. */ - "encryptedCard"?: string; + 'encryptedCard'?: string; /** * The encrypted card number. */ - "encryptedCardNumber"?: string; + 'encryptedCardNumber'?: string; /** * The encrypted card expiry month. */ - "encryptedExpiryMonth"?: string; + 'encryptedExpiryMonth'?: string; /** * The encrypted card expiry year. */ - "encryptedExpiryYear"?: string; + 'encryptedExpiryYear'?: string; /** * The encrypted card verification code. */ - "encryptedSecurityCode"?: string; + 'encryptedSecurityCode'?: string; /** * The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ - "expiryMonth"?: string; + 'expiryMonth'?: string; /** * The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ - "expiryYear"?: string; + 'expiryYear'?: string; /** * The encoded fastlane data blob */ - "fastlaneData"?: string; + 'fastlaneData'?: string; /** * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ - "fundingSource"?: CardDetails.FundingSourceEnum; + 'fundingSource'?: CardDetails.FundingSourceEnum; /** * The name of the card holder. */ - "holderName"?: string; + 'holderName'?: string; /** * The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. */ - "networkPaymentReference"?: string; + 'networkPaymentReference'?: string; /** * The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ - "number"?: string; + 'number'?: 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; + 'recurringDetailReference'?: string; /** * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India. */ - "shopperNotificationReference"?: string; + 'shopperNotificationReference'?: string; /** * An identifier used for the Click to Pay transaction. */ - "srcCorrelationId"?: string; + 'srcCorrelationId'?: string; /** * The SRC reference for the Click to Pay token. */ - "srcDigitalCardId"?: string; + 'srcDigitalCardId'?: string; /** * The scheme that is being used for Click to Pay. */ - "srcScheme"?: string; + 'srcScheme'?: string; /** * The reference for the Click to Pay token. */ - "srcTokenReference"?: string; + 'srcTokenReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. */ - "threeDS2SdkVersion"?: string; + 'threeDS2SdkVersion'?: string; /** * Default payment method details. Common for scheme payment methods, and for simple payment method details. */ - "type"?: CardDetails.TypeEnum; + 'type'?: CardDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "brand", "baseName": "brand", - "type": "string", - "format": "" + "type": "string" }, { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "cupsecureplus_smscode", "baseName": "cupsecureplus.smscode", - "type": "string", - "format": "" + "type": "string" }, { "name": "cvc", "baseName": "cvc", - "type": "string", - "format": "" + "type": "string" }, { "name": "encryptedCard", "baseName": "encryptedCard", - "type": "string", - "format": "" + "type": "string" }, { "name": "encryptedCardNumber", "baseName": "encryptedCardNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "encryptedExpiryMonth", "baseName": "encryptedExpiryMonth", - "type": "string", - "format": "" + "type": "string" }, { "name": "encryptedExpiryYear", "baseName": "encryptedExpiryYear", - "type": "string", - "format": "" + "type": "string" }, { "name": "encryptedSecurityCode", "baseName": "encryptedSecurityCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "expiryMonth", "baseName": "expiryMonth", - "type": "string", - "format": "" + "type": "string" }, { "name": "expiryYear", "baseName": "expiryYear", - "type": "string", - "format": "" + "type": "string" }, { "name": "fastlaneData", "baseName": "fastlaneData", - "type": "string", - "format": "" + "type": "string" }, { "name": "fundingSource", "baseName": "fundingSource", - "type": "CardDetails.FundingSourceEnum", - "format": "" + "type": "CardDetails.FundingSourceEnum" }, { "name": "holderName", "baseName": "holderName", - "type": "string", - "format": "" + "type": "string" }, { "name": "networkPaymentReference", "baseName": "networkPaymentReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "number", "baseName": "number", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperNotificationReference", "baseName": "shopperNotificationReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "srcCorrelationId", "baseName": "srcCorrelationId", - "type": "string", - "format": "" + "type": "string" }, { "name": "srcDigitalCardId", "baseName": "srcDigitalCardId", - "type": "string", - "format": "" + "type": "string" }, { "name": "srcScheme", "baseName": "srcScheme", - "type": "string", - "format": "" + "type": "string" }, { "name": "srcTokenReference", "baseName": "srcTokenReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDS2SdkVersion", "baseName": "threeDS2SdkVersion", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "CardDetails.TypeEnum", - "format": "" + "type": "CardDetails.TypeEnum" } ]; static getAttributeTypeMap() { return CardDetails.attributeTypeMap; } - - public constructor() { - } } export namespace CardDetails { diff --git a/src/typings/checkout/cardDetailsRequest.ts b/src/typings/checkout/cardDetailsRequest.ts index 4d1bb2375..67c95f7b3 100644 --- a/src/typings/checkout/cardDetailsRequest.ts +++ b/src/typings/checkout/cardDetailsRequest.ts @@ -12,65 +12,55 @@ export class CardDetailsRequest { /** * A minimum of the first eight digits of the card number. The full card number gives the best result. You must be [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect raw card data. Alternatively, you can use the `encryptedCardNumber` field. */ - "cardNumber": string; + 'cardNumber': string; /** * The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE */ - "countryCode"?: string; + 'countryCode'?: string; /** * The encrypted card number. */ - "encryptedCardNumber"?: string; + 'encryptedCardNumber'?: string; /** * The merchant account identifier, with which you want to process the transaction. */ - "merchantAccount": string; + 'merchantAccount': string; /** * The card brands you support. This is the [`brands`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods__resParam_paymentMethods-brands) array from your [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. If not included, our API uses the ones configured for your merchant account and, if provided, the country code. */ - "supportedBrands"?: Array; + 'supportedBrands'?: Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "cardNumber", "baseName": "cardNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "countryCode", "baseName": "countryCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "encryptedCardNumber", "baseName": "encryptedCardNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "supportedBrands", "baseName": "supportedBrands", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return CardDetailsRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/cardDetailsResponse.ts b/src/typings/checkout/cardDetailsResponse.ts index 48e2cbfae..9642f9d92 100644 --- a/src/typings/checkout/cardDetailsResponse.ts +++ b/src/typings/checkout/cardDetailsResponse.ts @@ -7,62 +7,52 @@ * Do not edit this class manually. */ -import { CardBrandDetails } from "./cardBrandDetails"; - +import { CardBrandDetails } from './cardBrandDetails'; export class CardDetailsResponse { /** * The list of brands identified for the card. */ - "brands"?: Array; + 'brands'?: Array; /** * The funding source of the card, for example **DEBIT**, **CREDIT**, or **PREPAID**. */ - "fundingSource"?: string; + 'fundingSource'?: string; /** * Indicates if this is a commercial card or a consumer card. If **true**, it is a commercial card. If **false**, it is a consumer card. */ - "isCardCommercial"?: boolean; + 'isCardCommercial'?: boolean; /** * The two-letter country code of the country where the card was issued. */ - "issuingCountryCode"?: string; - - static readonly discriminator: string | undefined = undefined; + 'issuingCountryCode'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "brands", "baseName": "brands", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "fundingSource", "baseName": "fundingSource", - "type": "string", - "format": "" + "type": "string" }, { "name": "isCardCommercial", "baseName": "isCardCommercial", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "issuingCountryCode", "baseName": "issuingCountryCode", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CardDetailsResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/cardDonations.ts b/src/typings/checkout/cardDonations.ts index 74beef7dd..35f2c8743 100644 --- a/src/typings/checkout/cardDonations.ts +++ b/src/typings/checkout/cardDonations.ts @@ -12,269 +12,239 @@ export class CardDonations { /** * Secondary brand of the card. For example: **plastix**, **hmclub**. */ - "brand"?: string; + 'brand'?: string; /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * @deprecated */ - "cupsecureplus_smscode"?: string; + 'cupsecureplus_smscode'?: string; /** * The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ - "cvc"?: string; + 'cvc'?: string; /** * Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details. */ - "encryptedCard"?: string; + 'encryptedCard'?: string; /** * The encrypted card number. */ - "encryptedCardNumber"?: string; + 'encryptedCardNumber'?: string; /** * The encrypted card expiry month. */ - "encryptedExpiryMonth"?: string; + 'encryptedExpiryMonth'?: string; /** * The encrypted card expiry year. */ - "encryptedExpiryYear"?: string; + 'encryptedExpiryYear'?: string; /** * The encrypted card verification code. */ - "encryptedSecurityCode"?: string; + 'encryptedSecurityCode'?: string; /** * The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ - "expiryMonth"?: string; + 'expiryMonth'?: string; /** * The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ - "expiryYear"?: string; + 'expiryYear'?: string; /** * The encoded fastlane data blob */ - "fastlaneData"?: string; + 'fastlaneData'?: string; /** * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ - "fundingSource"?: CardDonations.FundingSourceEnum; + 'fundingSource'?: CardDonations.FundingSourceEnum; /** * The name of the card holder. */ - "holderName"?: string; + 'holderName'?: string; /** * The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. */ - "networkPaymentReference"?: string; + 'networkPaymentReference'?: string; /** * The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ - "number"?: string; + 'number'?: 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; + 'recurringDetailReference'?: string; /** * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India. */ - "shopperNotificationReference"?: string; + 'shopperNotificationReference'?: string; /** * An identifier used for the Click to Pay transaction. */ - "srcCorrelationId"?: string; + 'srcCorrelationId'?: string; /** * The SRC reference for the Click to Pay token. */ - "srcDigitalCardId"?: string; + 'srcDigitalCardId'?: string; /** * The scheme that is being used for Click to Pay. */ - "srcScheme"?: string; + 'srcScheme'?: string; /** * The reference for the Click to Pay token. */ - "srcTokenReference"?: string; + 'srcTokenReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. */ - "threeDS2SdkVersion"?: string; + 'threeDS2SdkVersion'?: string; /** * Default payment method details. Common for scheme payment methods, and for simple payment method details. */ - "type"?: CardDonations.TypeEnum; + 'type'?: CardDonations.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "brand", "baseName": "brand", - "type": "string", - "format": "" + "type": "string" }, { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "cupsecureplus_smscode", "baseName": "cupsecureplus.smscode", - "type": "string", - "format": "" + "type": "string" }, { "name": "cvc", "baseName": "cvc", - "type": "string", - "format": "" + "type": "string" }, { "name": "encryptedCard", "baseName": "encryptedCard", - "type": "string", - "format": "" + "type": "string" }, { "name": "encryptedCardNumber", "baseName": "encryptedCardNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "encryptedExpiryMonth", "baseName": "encryptedExpiryMonth", - "type": "string", - "format": "" + "type": "string" }, { "name": "encryptedExpiryYear", "baseName": "encryptedExpiryYear", - "type": "string", - "format": "" + "type": "string" }, { "name": "encryptedSecurityCode", "baseName": "encryptedSecurityCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "expiryMonth", "baseName": "expiryMonth", - "type": "string", - "format": "" + "type": "string" }, { "name": "expiryYear", "baseName": "expiryYear", - "type": "string", - "format": "" + "type": "string" }, { "name": "fastlaneData", "baseName": "fastlaneData", - "type": "string", - "format": "" + "type": "string" }, { "name": "fundingSource", "baseName": "fundingSource", - "type": "CardDonations.FundingSourceEnum", - "format": "" + "type": "CardDonations.FundingSourceEnum" }, { "name": "holderName", "baseName": "holderName", - "type": "string", - "format": "" + "type": "string" }, { "name": "networkPaymentReference", "baseName": "networkPaymentReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "number", "baseName": "number", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperNotificationReference", "baseName": "shopperNotificationReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "srcCorrelationId", "baseName": "srcCorrelationId", - "type": "string", - "format": "" + "type": "string" }, { "name": "srcDigitalCardId", "baseName": "srcDigitalCardId", - "type": "string", - "format": "" + "type": "string" }, { "name": "srcScheme", "baseName": "srcScheme", - "type": "string", - "format": "" + "type": "string" }, { "name": "srcTokenReference", "baseName": "srcTokenReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDS2SdkVersion", "baseName": "threeDS2SdkVersion", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "CardDonations.TypeEnum", - "format": "" + "type": "CardDonations.TypeEnum" } ]; static getAttributeTypeMap() { return CardDonations.attributeTypeMap; } - - public constructor() { - } } export namespace CardDonations { diff --git a/src/typings/checkout/cashAppDetails.ts b/src/typings/checkout/cashAppDetails.ts index 8d8d4e894..754500b4d 100644 --- a/src/typings/checkout/cashAppDetails.ts +++ b/src/typings/checkout/cashAppDetails.ts @@ -12,119 +12,104 @@ export class CashAppDetails { /** * Cash App issued cashtag for recurring payment */ - "cashtag"?: string; + 'cashtag'?: string; /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * Cash App issued customerId for recurring payment */ - "customerId"?: string; + 'customerId'?: string; /** * Cash App issued grantId for one time payment */ - "grantId"?: string; + 'grantId'?: string; /** * Cash App issued onFileGrantId for recurring payment */ - "onFileGrantId"?: string; + 'onFileGrantId'?: 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; + 'recurringDetailReference'?: string; /** * Cash App request id */ - "requestId"?: string; + 'requestId'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * The payment method subtype. */ - "subtype"?: string; + 'subtype'?: string; /** * cashapp */ - "type"?: CashAppDetails.TypeEnum; + 'type'?: CashAppDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "cashtag", "baseName": "cashtag", - "type": "string", - "format": "" + "type": "string" }, { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "customerId", "baseName": "customerId", - "type": "string", - "format": "" + "type": "string" }, { "name": "grantId", "baseName": "grantId", - "type": "string", - "format": "" + "type": "string" }, { "name": "onFileGrantId", "baseName": "onFileGrantId", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "requestId", "baseName": "requestId", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "subtype", "baseName": "subtype", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "CashAppDetails.TypeEnum", - "format": "" + "type": "CashAppDetails.TypeEnum" } ]; static getAttributeTypeMap() { return CashAppDetails.attributeTypeMap; } - - public constructor() { - } } export namespace CashAppDetails { diff --git a/src/typings/checkout/cellulantDetails.ts b/src/typings/checkout/cellulantDetails.ts index b5c345944..49785df50 100644 --- a/src/typings/checkout/cellulantDetails.ts +++ b/src/typings/checkout/cellulantDetails.ts @@ -12,46 +12,38 @@ export class CellulantDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The Cellulant issuer. */ - "issuer"?: string; + 'issuer'?: string; /** * **Cellulant** */ - "type"?: CellulantDetails.TypeEnum; + 'type'?: CellulantDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuer", "baseName": "issuer", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "CellulantDetails.TypeEnum", - "format": "" + "type": "CellulantDetails.TypeEnum" } ]; static getAttributeTypeMap() { return CellulantDetails.attributeTypeMap; } - - public constructor() { - } } export namespace CellulantDetails { diff --git a/src/typings/checkout/checkoutAwaitAction.ts b/src/typings/checkout/checkoutAwaitAction.ts index 59e2dee15..9d438b5ac 100644 --- a/src/typings/checkout/checkoutAwaitAction.ts +++ b/src/typings/checkout/checkoutAwaitAction.ts @@ -12,56 +12,47 @@ export class CheckoutAwaitAction { /** * Encoded payment data. */ - "paymentData"?: string; + 'paymentData'?: string; /** * Specifies the payment method. */ - "paymentMethodType"?: string; + 'paymentMethodType'?: string; /** * **await** */ - "type": CheckoutAwaitAction.TypeEnum; + 'type': CheckoutAwaitAction.TypeEnum; /** * Specifies the URL to redirect to. */ - "url"?: string; + 'url'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "paymentData", "baseName": "paymentData", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMethodType", "baseName": "paymentMethodType", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "CheckoutAwaitAction.TypeEnum", - "format": "" + "type": "CheckoutAwaitAction.TypeEnum" }, { "name": "url", "baseName": "url", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CheckoutAwaitAction.attributeTypeMap; } - - public constructor() { - } } export namespace CheckoutAwaitAction { diff --git a/src/typings/checkout/checkoutBankAccount.ts b/src/typings/checkout/checkoutBankAccount.ts index 75e4c4d34..bc8e094fe 100644 --- a/src/typings/checkout/checkoutBankAccount.ts +++ b/src/typings/checkout/checkoutBankAccount.ts @@ -12,116 +12,101 @@ export class CheckoutBankAccount { /** * The type of the bank account. */ - "accountType"?: CheckoutBankAccount.AccountTypeEnum; + 'accountType'?: CheckoutBankAccount.AccountTypeEnum; /** * The bank account number (without separators). */ - "bankAccountNumber"?: string; + 'bankAccountNumber'?: string; /** * The bank city. */ - "bankCity"?: string; + 'bankCity'?: string; /** * The location id of the bank. The field value is `nil` in most cases. */ - "bankLocationId"?: string; + 'bankLocationId'?: string; /** * The name of the bank. */ - "bankName"?: string; + 'bankName'?: string; /** * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. */ - "bic"?: string; + 'bic'?: string; /** * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. \'NL\'). */ - "countryCode"?: string; + 'countryCode'?: string; /** * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). */ - "iban"?: string; + 'iban'?: string; /** * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don\'t accept \'ø\'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don\'t match the required format, the response returns the error message: 203 \'Invalid bank account holder name\'. */ - "ownerName"?: string; + 'ownerName'?: string; /** * The bank account holder\'s tax ID. */ - "taxId"?: string; + 'taxId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountType", "baseName": "accountType", - "type": "CheckoutBankAccount.AccountTypeEnum", - "format": "" + "type": "CheckoutBankAccount.AccountTypeEnum" }, { "name": "bankAccountNumber", "baseName": "bankAccountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankCity", "baseName": "bankCity", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankLocationId", "baseName": "bankLocationId", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankName", "baseName": "bankName", - "type": "string", - "format": "" + "type": "string" }, { "name": "bic", "baseName": "bic", - "type": "string", - "format": "" + "type": "string" }, { "name": "countryCode", "baseName": "countryCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "iban", "baseName": "iban", - "type": "string", - "format": "" + "type": "string" }, { "name": "ownerName", "baseName": "ownerName", - "type": "string", - "format": "" + "type": "string" }, { "name": "taxId", "baseName": "taxId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CheckoutBankAccount.attributeTypeMap; } - - public constructor() { - } } export namespace CheckoutBankAccount { diff --git a/src/typings/checkout/checkoutBankTransferAction.ts b/src/typings/checkout/checkoutBankTransferAction.ts index 16ddfa866..b788fdf5b 100644 --- a/src/typings/checkout/checkoutBankTransferAction.ts +++ b/src/typings/checkout/checkoutBankTransferAction.ts @@ -7,150 +7,131 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class CheckoutBankTransferAction { /** * The account number of the bank transfer. */ - "accountNumber"?: string; + 'accountNumber'?: string; /** * The name of the account holder. */ - "beneficiary"?: string; + 'beneficiary'?: string; /** * The BIC of the IBAN. */ - "bic"?: string; + 'bic'?: string; /** * The url to download payment details with. */ - "downloadUrl"?: string; + 'downloadUrl'?: string; /** * The IBAN of the bank transfer. */ - "iban"?: string; + 'iban'?: string; /** * Specifies the payment method. */ - "paymentMethodType"?: string; + 'paymentMethodType'?: string; /** * The transfer reference. */ - "reference"?: string; + 'reference'?: string; /** * The routing number of the bank transfer. */ - "routingNumber"?: string; + 'routingNumber'?: string; /** * The e-mail of the shopper, included if an e-mail was sent to the shopper. */ - "shopperEmail"?: string; + 'shopperEmail'?: string; /** * The sort code of the bank transfer. */ - "sortCode"?: string; - "totalAmount"?: Amount | null; + 'sortCode'?: string; + 'totalAmount'?: Amount | null; /** * The type of the action. */ - "type": CheckoutBankTransferAction.TypeEnum; + 'type': CheckoutBankTransferAction.TypeEnum; /** * Specifies the URL to redirect to. */ - "url"?: string; - - static readonly discriminator: string | undefined = undefined; + 'url'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "beneficiary", "baseName": "beneficiary", - "type": "string", - "format": "" + "type": "string" }, { "name": "bic", "baseName": "bic", - "type": "string", - "format": "" + "type": "string" }, { "name": "downloadUrl", "baseName": "downloadUrl", - "type": "string", - "format": "" + "type": "string" }, { "name": "iban", "baseName": "iban", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMethodType", "baseName": "paymentMethodType", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "routingNumber", "baseName": "routingNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperEmail", "baseName": "shopperEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "sortCode", "baseName": "sortCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "totalAmount", "baseName": "totalAmount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "type", "baseName": "type", - "type": "CheckoutBankTransferAction.TypeEnum", - "format": "" + "type": "CheckoutBankTransferAction.TypeEnum" }, { "name": "url", "baseName": "url", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CheckoutBankTransferAction.attributeTypeMap; } - - public constructor() { - } } export namespace CheckoutBankTransferAction { diff --git a/src/typings/checkout/checkoutDelegatedAuthenticationAction.ts b/src/typings/checkout/checkoutDelegatedAuthenticationAction.ts index 4c1fde1ab..7e6130c03 100644 --- a/src/typings/checkout/checkoutDelegatedAuthenticationAction.ts +++ b/src/typings/checkout/checkoutDelegatedAuthenticationAction.ts @@ -12,76 +12,65 @@ export class CheckoutDelegatedAuthenticationAction { /** * A token needed to authorise a payment. */ - "authorisationToken"?: string; + 'authorisationToken'?: string; /** * Encoded payment data. */ - "paymentData"?: string; + 'paymentData'?: string; /** * Specifies the payment method. */ - "paymentMethodType"?: string; + 'paymentMethodType'?: string; /** * A token to pass to the delegatedAuthentication component. */ - "token"?: string; + 'token'?: string; /** * **delegatedAuthentication** */ - "type": CheckoutDelegatedAuthenticationAction.TypeEnum; + 'type': CheckoutDelegatedAuthenticationAction.TypeEnum; /** * Specifies the URL to redirect to. */ - "url"?: string; + 'url'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "authorisationToken", "baseName": "authorisationToken", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentData", "baseName": "paymentData", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMethodType", "baseName": "paymentMethodType", - "type": "string", - "format": "" + "type": "string" }, { "name": "token", "baseName": "token", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "CheckoutDelegatedAuthenticationAction.TypeEnum", - "format": "" + "type": "CheckoutDelegatedAuthenticationAction.TypeEnum" }, { "name": "url", "baseName": "url", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CheckoutDelegatedAuthenticationAction.attributeTypeMap; } - - public constructor() { - } } export namespace CheckoutDelegatedAuthenticationAction { diff --git a/src/typings/checkout/checkoutNativeRedirectAction.ts b/src/typings/checkout/checkoutNativeRedirectAction.ts index cf1268d79..98e36b2d0 100644 --- a/src/typings/checkout/checkoutNativeRedirectAction.ts +++ b/src/typings/checkout/checkoutNativeRedirectAction.ts @@ -12,76 +12,65 @@ export class CheckoutNativeRedirectAction { /** * When the redirect URL must be accessed via POST, use this data to post to the redirect URL. */ - "data"?: { [key: string]: string; }; + 'data'?: { [key: string]: string; }; /** * Specifies the HTTP method, for example GET or POST. */ - "method"?: string; + 'method'?: string; /** * Native SDK\'s redirect data containing the direct issuer link and state data that must be submitted to the /v1/nativeRedirect/redirectResult. */ - "nativeRedirectData"?: string; + 'nativeRedirectData'?: string; /** * Specifies the payment method. */ - "paymentMethodType"?: string; + 'paymentMethodType'?: string; /** * **nativeRedirect** */ - "type": CheckoutNativeRedirectAction.TypeEnum; + 'type': CheckoutNativeRedirectAction.TypeEnum; /** * Specifies the URL to redirect to. */ - "url"?: string; + 'url'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "method", "baseName": "method", - "type": "string", - "format": "" + "type": "string" }, { "name": "nativeRedirectData", "baseName": "nativeRedirectData", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMethodType", "baseName": "paymentMethodType", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "CheckoutNativeRedirectAction.TypeEnum", - "format": "" + "type": "CheckoutNativeRedirectAction.TypeEnum" }, { "name": "url", "baseName": "url", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CheckoutNativeRedirectAction.attributeTypeMap; } - - public constructor() { - } } export namespace CheckoutNativeRedirectAction { diff --git a/src/typings/checkout/checkoutOrderResponse.ts b/src/typings/checkout/checkoutOrderResponse.ts index 737ce8b58..7a30f402b 100644 --- a/src/typings/checkout/checkoutOrderResponse.ts +++ b/src/typings/checkout/checkoutOrderResponse.ts @@ -7,76 +7,64 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class CheckoutOrderResponse { - "amount"?: Amount | null; + 'amount'?: Amount | null; /** * The expiry date for the order. */ - "expiresAt"?: string; + 'expiresAt'?: string; /** * The encrypted order data. */ - "orderData"?: string; + 'orderData'?: string; /** * The `pspReference` that belongs to the order. */ - "pspReference": string; + 'pspReference': string; /** * The merchant reference for the order. */ - "reference"?: string; - "remainingAmount"?: Amount | null; - - static readonly discriminator: string | undefined = undefined; + 'reference'?: string; + 'remainingAmount'?: Amount | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "expiresAt", "baseName": "expiresAt", - "type": "string", - "format": "" + "type": "string" }, { "name": "orderData", "baseName": "orderData", - "type": "string", - "format": "" + "type": "string" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "remainingAmount", "baseName": "remainingAmount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" } ]; static getAttributeTypeMap() { return CheckoutOrderResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/checkoutQrCodeAction.ts b/src/typings/checkout/checkoutQrCodeAction.ts index 4c13f8052..7b3f595de 100644 --- a/src/typings/checkout/checkoutQrCodeAction.ts +++ b/src/typings/checkout/checkoutQrCodeAction.ts @@ -12,76 +12,65 @@ export class CheckoutQrCodeAction { /** * Expiry time of the QR code. */ - "expiresAt"?: string; + 'expiresAt'?: string; /** * Encoded payment data. */ - "paymentData"?: string; + 'paymentData'?: string; /** * Specifies the payment method. */ - "paymentMethodType"?: string; + 'paymentMethodType'?: string; /** * The contents of the QR code as a UTF8 string. */ - "qrCodeData"?: string; + 'qrCodeData'?: string; /** * **qrCode** */ - "type": CheckoutQrCodeAction.TypeEnum; + 'type': CheckoutQrCodeAction.TypeEnum; /** * Specifies the URL to redirect to. */ - "url"?: string; + 'url'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "expiresAt", "baseName": "expiresAt", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentData", "baseName": "paymentData", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMethodType", "baseName": "paymentMethodType", - "type": "string", - "format": "" + "type": "string" }, { "name": "qrCodeData", "baseName": "qrCodeData", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "CheckoutQrCodeAction.TypeEnum", - "format": "" + "type": "CheckoutQrCodeAction.TypeEnum" }, { "name": "url", "baseName": "url", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CheckoutQrCodeAction.attributeTypeMap; } - - public constructor() { - } } export namespace CheckoutQrCodeAction { diff --git a/src/typings/checkout/checkoutRedirectAction.ts b/src/typings/checkout/checkoutRedirectAction.ts index c467184e1..151573529 100644 --- a/src/typings/checkout/checkoutRedirectAction.ts +++ b/src/typings/checkout/checkoutRedirectAction.ts @@ -12,66 +12,56 @@ export class CheckoutRedirectAction { /** * When the redirect URL must be accessed via POST, use this data to post to the redirect URL. */ - "data"?: { [key: string]: string; }; + 'data'?: { [key: string]: string; }; /** * Specifies the HTTP method, for example GET or POST. */ - "method"?: string; + 'method'?: string; /** * Specifies the payment method. */ - "paymentMethodType"?: string; + 'paymentMethodType'?: string; /** * **redirect** */ - "type": CheckoutRedirectAction.TypeEnum; + 'type': CheckoutRedirectAction.TypeEnum; /** * Specifies the URL to redirect to. */ - "url"?: string; + 'url'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "method", "baseName": "method", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMethodType", "baseName": "paymentMethodType", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "CheckoutRedirectAction.TypeEnum", - "format": "" + "type": "CheckoutRedirectAction.TypeEnum" }, { "name": "url", "baseName": "url", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CheckoutRedirectAction.attributeTypeMap; } - - public constructor() { - } } export namespace CheckoutRedirectAction { diff --git a/src/typings/checkout/checkoutSDKAction.ts b/src/typings/checkout/checkoutSDKAction.ts index eb03832a4..ca15ad282 100644 --- a/src/typings/checkout/checkoutSDKAction.ts +++ b/src/typings/checkout/checkoutSDKAction.ts @@ -12,66 +12,56 @@ export class CheckoutSDKAction { /** * Encoded payment data. */ - "paymentData"?: string; + 'paymentData'?: string; /** * Specifies the payment method. */ - "paymentMethodType"?: string; + 'paymentMethodType'?: string; /** * The data to pass to the SDK. */ - "sdkData"?: { [key: string]: string; }; + 'sdkData'?: { [key: string]: string; }; /** * The type of the action. */ - "type": CheckoutSDKAction.TypeEnum; + 'type': CheckoutSDKAction.TypeEnum; /** * Specifies the URL to redirect to. */ - "url"?: string; + 'url'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "paymentData", "baseName": "paymentData", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMethodType", "baseName": "paymentMethodType", - "type": "string", - "format": "" + "type": "string" }, { "name": "sdkData", "baseName": "sdkData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "type", "baseName": "type", - "type": "CheckoutSDKAction.TypeEnum", - "format": "" + "type": "CheckoutSDKAction.TypeEnum" }, { "name": "url", "baseName": "url", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CheckoutSDKAction.attributeTypeMap; } - - public constructor() { - } } export namespace CheckoutSDKAction { diff --git a/src/typings/checkout/checkoutSessionInstallmentOption.ts b/src/typings/checkout/checkoutSessionInstallmentOption.ts index 6f048e3d4..76132d9e7 100644 --- a/src/typings/checkout/checkoutSessionInstallmentOption.ts +++ b/src/typings/checkout/checkoutSessionInstallmentOption.ts @@ -12,46 +12,38 @@ export class CheckoutSessionInstallmentOption { /** * Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving*** **bonus** * **with_interest** * **buynow_paylater** * **nointerest_bonus** * **interest_bonus** * **refund_prctg** * **nointeres_refund_prctg** * **interes_refund_prctg** */ - "plans"?: Array; + 'plans'?: Array; /** * Preselected number of installments offered for this payment method. */ - "preselectedValue"?: number; + 'preselectedValue'?: number; /** * An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. */ - "values"?: Array; + 'values'?: Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "plans", "baseName": "plans", - "type": "CheckoutSessionInstallmentOption.PlansEnum", - "format": "" + "type": "Array" }, { "name": "preselectedValue", "baseName": "preselectedValue", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "values", "baseName": "values", - "type": "Array", - "format": "int32" + "type": "Array" } ]; static getAttributeTypeMap() { return CheckoutSessionInstallmentOption.attributeTypeMap; } - - public constructor() { - } } export namespace CheckoutSessionInstallmentOption { diff --git a/src/typings/checkout/checkoutSessionThreeDS2RequestData.ts b/src/typings/checkout/checkoutSessionThreeDS2RequestData.ts index 02b645c17..265e37b9c 100644 --- a/src/typings/checkout/checkoutSessionThreeDS2RequestData.ts +++ b/src/typings/checkout/checkoutSessionThreeDS2RequestData.ts @@ -7,54 +7,44 @@ * Do not edit this class manually. */ -import { Phone } from "./phone"; - +import { Phone } from './phone'; export class CheckoutSessionThreeDS2RequestData { - "homePhone"?: Phone | null; - "mobilePhone"?: Phone | null; + 'homePhone'?: Phone | null; + 'mobilePhone'?: Phone | null; /** * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only */ - "threeDSRequestorChallengeInd"?: CheckoutSessionThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum; - "workPhone"?: Phone | null; - - static readonly discriminator: string | undefined = undefined; + 'threeDSRequestorChallengeInd'?: CheckoutSessionThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum; + 'workPhone'?: Phone | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "homePhone", "baseName": "homePhone", - "type": "Phone | null", - "format": "" + "type": "Phone | null" }, { "name": "mobilePhone", "baseName": "mobilePhone", - "type": "Phone | null", - "format": "" + "type": "Phone | null" }, { "name": "threeDSRequestorChallengeInd", "baseName": "threeDSRequestorChallengeInd", - "type": "CheckoutSessionThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum", - "format": "" + "type": "CheckoutSessionThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum" }, { "name": "workPhone", "baseName": "workPhone", - "type": "Phone | null", - "format": "" + "type": "Phone | null" } ]; static getAttributeTypeMap() { return CheckoutSessionThreeDS2RequestData.attributeTypeMap; } - - public constructor() { - } } export namespace CheckoutSessionThreeDS2RequestData { diff --git a/src/typings/checkout/checkoutThreeDS2Action.ts b/src/typings/checkout/checkoutThreeDS2Action.ts index ce4301cba..fea988cab 100644 --- a/src/typings/checkout/checkoutThreeDS2Action.ts +++ b/src/typings/checkout/checkoutThreeDS2Action.ts @@ -12,86 +12,74 @@ export class CheckoutThreeDS2Action { /** * A token needed to authorise a payment. */ - "authorisationToken"?: string; + 'authorisationToken'?: string; /** * Encoded payment data. */ - "paymentData"?: string; + 'paymentData'?: string; /** * Specifies the payment method. */ - "paymentMethodType"?: string; + 'paymentMethodType'?: string; /** * A subtype of the token. */ - "subtype"?: string; + 'subtype'?: string; /** * A token to pass to the 3DS2 Component to get the fingerprint. */ - "token"?: string; + 'token'?: string; /** * **threeDS2** */ - "type": CheckoutThreeDS2Action.TypeEnum; + 'type': CheckoutThreeDS2Action.TypeEnum; /** * Specifies the URL to redirect to. */ - "url"?: string; + 'url'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "authorisationToken", "baseName": "authorisationToken", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentData", "baseName": "paymentData", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMethodType", "baseName": "paymentMethodType", - "type": "string", - "format": "" + "type": "string" }, { "name": "subtype", "baseName": "subtype", - "type": "string", - "format": "" + "type": "string" }, { "name": "token", "baseName": "token", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "CheckoutThreeDS2Action.TypeEnum", - "format": "" + "type": "CheckoutThreeDS2Action.TypeEnum" }, { "name": "url", "baseName": "url", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CheckoutThreeDS2Action.attributeTypeMap; } - - public constructor() { - } } export namespace CheckoutThreeDS2Action { diff --git a/src/typings/checkout/checkoutVoucherAction.ts b/src/typings/checkout/checkoutVoucherAction.ts index 611a87cc5..4f4cf6d7e 100644 --- a/src/typings/checkout/checkoutVoucherAction.ts +++ b/src/typings/checkout/checkoutVoucherAction.ts @@ -7,224 +7,197 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class CheckoutVoucherAction { /** * The voucher alternative reference code. */ - "alternativeReference"?: string; + 'alternativeReference'?: string; /** * A collection institution number (store number) for Econtext Pay-Easy ATM. */ - "collectionInstitutionNumber"?: string; + 'collectionInstitutionNumber'?: string; /** * The URL to download the voucher. */ - "downloadUrl"?: string; + 'downloadUrl'?: string; /** * An entity number of Multibanco. */ - "entity"?: string; + 'entity'?: string; /** * The date time of the voucher expiry. */ - "expiresAt"?: string; - "initialAmount"?: Amount | null; + 'expiresAt'?: string; + 'initialAmount'?: Amount | null; /** * The URL to the detailed instructions to make payment using the voucher. */ - "instructionsUrl"?: string; + 'instructionsUrl'?: string; /** * The issuer of the voucher. */ - "issuer"?: string; + 'issuer'?: string; /** * The shopper telephone number (partially masked). */ - "maskedTelephoneNumber"?: string; + 'maskedTelephoneNumber'?: string; /** * The merchant name. */ - "merchantName"?: string; + 'merchantName'?: string; /** * The merchant reference. */ - "merchantReference"?: string; + 'merchantReference'?: string; /** * A Base64-encoded token containing all properties of the voucher. For iOS, you can use this to pass a voucher to Apple Wallet. */ - "passCreationToken"?: string; + 'passCreationToken'?: string; /** * Encoded payment data. */ - "paymentData"?: string; + 'paymentData'?: string; /** * Specifies the payment method. */ - "paymentMethodType"?: string; + 'paymentMethodType'?: string; /** * The voucher reference code. */ - "reference"?: string; + 'reference'?: string; /** * The shopper email. */ - "shopperEmail"?: string; + 'shopperEmail'?: string; /** * The shopper name. */ - "shopperName"?: string; - "surcharge"?: Amount | null; - "totalAmount"?: Amount | null; + 'shopperName'?: string; + 'surcharge'?: Amount | null; + 'totalAmount'?: Amount | null; /** * **voucher** */ - "type": CheckoutVoucherAction.TypeEnum; + 'type': CheckoutVoucherAction.TypeEnum; /** * Specifies the URL to redirect to. */ - "url"?: string; - - static readonly discriminator: string | undefined = undefined; + 'url'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "alternativeReference", "baseName": "alternativeReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "collectionInstitutionNumber", "baseName": "collectionInstitutionNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "downloadUrl", "baseName": "downloadUrl", - "type": "string", - "format": "" + "type": "string" }, { "name": "entity", "baseName": "entity", - "type": "string", - "format": "" + "type": "string" }, { "name": "expiresAt", "baseName": "expiresAt", - "type": "string", - "format": "" + "type": "string" }, { "name": "initialAmount", "baseName": "initialAmount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "instructionsUrl", "baseName": "instructionsUrl", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuer", "baseName": "issuer", - "type": "string", - "format": "" + "type": "string" }, { "name": "maskedTelephoneNumber", "baseName": "maskedTelephoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantName", "baseName": "merchantName", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantReference", "baseName": "merchantReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "passCreationToken", "baseName": "passCreationToken", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentData", "baseName": "paymentData", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMethodType", "baseName": "paymentMethodType", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperEmail", "baseName": "shopperEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperName", "baseName": "shopperName", - "type": "string", - "format": "" + "type": "string" }, { "name": "surcharge", "baseName": "surcharge", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "totalAmount", "baseName": "totalAmount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "type", "baseName": "type", - "type": "CheckoutVoucherAction.TypeEnum", - "format": "" + "type": "CheckoutVoucherAction.TypeEnum" }, { "name": "url", "baseName": "url", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CheckoutVoucherAction.attributeTypeMap; } - - public constructor() { - } } export namespace CheckoutVoucherAction { diff --git a/src/typings/checkout/commonField.ts b/src/typings/checkout/commonField.ts index 99cb39f2d..4ac617f81 100644 --- a/src/typings/checkout/commonField.ts +++ b/src/typings/checkout/commonField.ts @@ -12,35 +12,28 @@ export class CommonField { /** * Name of the field. For example, Name of External Platform. */ - "name"?: string; + 'name'?: string; /** * Version of the field. For example, Version of External Platform. */ - "version"?: string; + 'version'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "version", "baseName": "version", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CommonField.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/company.ts b/src/typings/checkout/company.ts index 47972d751..1b57a139c 100644 --- a/src/typings/checkout/company.ts +++ b/src/typings/checkout/company.ts @@ -12,75 +12,64 @@ export class Company { /** * The company website\'s home page. */ - "homepage"?: string; + 'homepage'?: string; /** * The company name. */ - "name"?: string; + 'name'?: string; /** * Registration number of the company. */ - "registrationNumber"?: string; + 'registrationNumber'?: string; /** * Registry location of the company. */ - "registryLocation"?: string; + 'registryLocation'?: string; /** * Tax ID of the company. */ - "taxId"?: string; + 'taxId'?: string; /** * The company type. */ - "type"?: string; + 'type'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "homepage", "baseName": "homepage", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "registrationNumber", "baseName": "registrationNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "registryLocation", "baseName": "registryLocation", - "type": "string", - "format": "" + "type": "string" }, { "name": "taxId", "baseName": "taxId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Company.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/createCheckoutSessionRequest.ts b/src/typings/checkout/createCheckoutSessionRequest.ts index 1cff77c65..f3b7423f2 100644 --- a/src/typings/checkout/createCheckoutSessionRequest.ts +++ b/src/typings/checkout/createCheckoutSessionRequest.ts @@ -7,605 +7,538 @@ * Do not edit this class manually. */ -import { AccountInfo } from "./accountInfo"; -import { Amount } from "./amount"; -import { ApplicationInfo } from "./applicationInfo"; -import { AuthenticationData } from "./authenticationData"; -import { BillingAddress } from "./billingAddress"; -import { CheckoutSessionInstallmentOption } from "./checkoutSessionInstallmentOption"; -import { CheckoutSessionThreeDS2RequestData } from "./checkoutSessionThreeDS2RequestData"; -import { Company } from "./company"; -import { DeliveryAddress } from "./deliveryAddress"; -import { FundOrigin } from "./fundOrigin"; -import { FundRecipient } from "./fundRecipient"; -import { LineItem } from "./lineItem"; -import { Mandate } from "./mandate"; -import { Name } from "./name"; -import { PlatformChargebackLogic } from "./platformChargebackLogic"; -import { RiskData } from "./riskData"; -import { Split } from "./split"; -import { ThreeDSecureData } from "./threeDSecureData"; - +import { AccountInfo } from './accountInfo'; +import { Amount } from './amount'; +import { ApplicationInfo } from './applicationInfo'; +import { AuthenticationData } from './authenticationData'; +import { BillingAddress } from './billingAddress'; +import { CheckoutSessionInstallmentOption } from './checkoutSessionInstallmentOption'; +import { CheckoutSessionThreeDS2RequestData } from './checkoutSessionThreeDS2RequestData'; +import { Company } from './company'; +import { DeliveryAddress } from './deliveryAddress'; +import { FundOrigin } from './fundOrigin'; +import { FundRecipient } from './fundRecipient'; +import { LineItem } from './lineItem'; +import { Mandate } from './mandate'; +import { Name } from './name'; +import { PlatformChargebackLogic } from './platformChargebackLogic'; +import { RiskData } from './riskData'; +import { Split } from './split'; +import { ThreeDSecureData } from './threeDSecureData'; export class CreateCheckoutSessionRequest { - "accountInfo"?: AccountInfo | null; - "additionalAmount"?: Amount | null; + 'accountInfo'?: AccountInfo | null; + 'additionalAmount'?: Amount | null; /** * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ - "additionalData"?: { [key: string]: string; }; + 'additionalData'?: { [key: string]: string; }; /** * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` */ - "allowedPaymentMethods"?: Array; - "amount": Amount; - "applicationInfo"?: ApplicationInfo | null; - "authenticationData"?: AuthenticationData | null; - "billingAddress"?: BillingAddress | null; + 'allowedPaymentMethods'?: Array; + 'amount': Amount; + 'applicationInfo'?: ApplicationInfo | null; + 'authenticationData'?: AuthenticationData | null; + 'billingAddress'?: BillingAddress | null; /** * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` */ - "blockedPaymentMethods"?: Array; + 'blockedPaymentMethods'?: Array; /** * The delay between the authorisation and scheduled auto-capture, specified in hours. */ - "captureDelayHours"?: number; + 'captureDelayHours'?: number; /** * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** */ - "channel"?: CreateCheckoutSessionRequest.ChannelEnum; - "company"?: Company | null; + 'channel'?: CreateCheckoutSessionRequest.ChannelEnum; + 'company'?: Company | null; /** * The shopper\'s two-letter country code. */ - "countryCode"?: string; + 'countryCode'?: string; /** * The shopper\'s date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ - "dateOfBirth"?: string; + 'dateOfBirth'?: string; /** * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. */ - "deliverAt"?: Date; - "deliveryAddress"?: DeliveryAddress | null; + 'deliverAt'?: Date; + 'deliveryAddress'?: DeliveryAddress | null; /** * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). */ - "enableOneClick"?: boolean; + 'enableOneClick'?: boolean; /** * When true and `shopperReference` is provided, the payment details will be tokenized for payouts. */ - "enablePayOut"?: boolean; + 'enablePayOut'?: boolean; /** * When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. */ - "enableRecurring"?: boolean; + 'enableRecurring'?: boolean; /** * The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation. */ - "expiresAt"?: Date; - "fundOrigin"?: FundOrigin | null; - "fundRecipient"?: FundRecipient | null; + 'expiresAt'?: Date; + 'fundOrigin'?: FundOrigin | null; + 'fundRecipient'?: FundRecipient | null; /** * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. */ - "installmentOptions"?: { [key: string]: CheckoutSessionInstallmentOption; }; + 'installmentOptions'?: { [key: string]: CheckoutSessionInstallmentOption; }; /** * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, Riverty, and Zip. */ - "lineItems"?: Array; - "mandate"?: Mandate | null; + 'lineItems'?: Array; + 'mandate'?: Mandate | null; /** * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ - "mcc"?: string; + 'mcc'?: string; /** * The merchant account identifier, with which you want to process the transaction. */ - "merchantAccount": string; + 'merchantAccount': string; /** * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. */ - "merchantOrderReference"?: string; + 'merchantOrderReference'?: string; /** * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per value. */ - "metadata"?: { [key: string]: string; }; + 'metadata'?: { [key: string]: string; }; /** * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration */ - "mode"?: CreateCheckoutSessionRequest.ModeEnum; - "mpiData"?: ThreeDSecureData | null; - "platformChargebackLogic"?: PlatformChargebackLogic | null; + 'mode'?: CreateCheckoutSessionRequest.ModeEnum; + 'mpiData'?: ThreeDSecureData | null; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. */ - "recurringExpiry"?: string; + 'recurringExpiry'?: string; /** * Minimum number of days between authorisations. Only for 3D Secure 2. */ - "recurringFrequency"?: string; + 'recurringFrequency'?: string; /** * Defines a recurring payment type. Required when creating a token to store 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. */ - "recurringProcessingModel"?: CreateCheckoutSessionRequest.RecurringProcessingModelEnum; + 'recurringProcessingModel'?: CreateCheckoutSessionRequest.RecurringProcessingModelEnum; /** * Specifies the redirect method (GET or POST) when redirecting back from the issuer. */ - "redirectFromIssuerMethod"?: string; + 'redirectFromIssuerMethod'?: string; /** * Specifies the redirect method (GET or POST) when redirecting to the issuer. */ - "redirectToIssuerMethod"?: string; + 'redirectToIssuerMethod'?: string; /** * The reference to uniquely identify a payment. */ - "reference": string; + 'reference': string; /** * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. */ - "returnUrl": string; - "riskData"?: RiskData | null; + 'returnUrl': string; + 'riskData'?: RiskData | null; /** * The shopper\'s email address. */ - "shopperEmail"?: string; + 'shopperEmail'?: string; /** * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ - "shopperIP"?: string; + 'shopperIP'?: string; /** * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ - "shopperInteraction"?: CreateCheckoutSessionRequest.ShopperInteractionEnum; + 'shopperInteraction'?: CreateCheckoutSessionRequest.ShopperInteractionEnum; /** * The combination of a language code and a country code to specify the language to be used in the payment. */ - "shopperLocale"?: string; - "shopperName"?: Name | null; + 'shopperLocale'?: string; + 'shopperName'?: Name | null; /** * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ - "shopperReference"?: string; + 'shopperReference'?: string; /** * The text to be shown on the shopper\'s bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , \' _ - ? + * /_**. */ - "shopperStatement"?: string; + 'shopperStatement'?: string; /** * Set to true to show the payment amount per installment. */ - "showInstallmentAmount"?: boolean; + 'showInstallmentAmount'?: boolean; /** * Set to **true** to show a button that lets the shopper remove a stored payment method. */ - "showRemovePaymentMethodButton"?: boolean; + 'showRemovePaymentMethodButton'?: boolean; /** * The shopper\'s social security number. */ - "socialSecurityNumber"?: string; + 'socialSecurityNumber'?: string; /** * Boolean value indicating whether the card payment method should be split into separate debit and credit options. */ - "splitCardFundingSources"?: boolean; + 'splitCardFundingSources'?: boolean; /** * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). */ - "splits"?: Array; + 'splits'?: Array; /** * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. */ - "store"?: string; + 'store'?: string; /** * Specifies how payment methods should be filtered based on the \'store\' parameter: - \'exclusive\': Only payment methods belonging to the specified \'store\' are returned. - \'inclusive\': Payment methods from the \'store\' and those not associated with any other store are returned. */ - "storeFiltrationMode"?: CreateCheckoutSessionRequest.StoreFiltrationModeEnum; + 'storeFiltrationMode'?: CreateCheckoutSessionRequest.StoreFiltrationModeEnum; /** * When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). */ - "storePaymentMethod"?: boolean; + 'storePaymentMethod'?: boolean; /** * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. */ - "storePaymentMethodMode"?: CreateCheckoutSessionRequest.StorePaymentMethodModeEnum; + 'storePaymentMethodMode'?: CreateCheckoutSessionRequest.StorePaymentMethodModeEnum; /** * The shopper\'s telephone number. */ - "telephoneNumber"?: string; + 'telephoneNumber'?: string; /** * Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area. */ - "themeId"?: string; - "threeDS2RequestData"?: CheckoutSessionThreeDS2RequestData | null; + 'themeId'?: string; + 'threeDS2RequestData'?: CheckoutSessionThreeDS2RequestData | null; /** * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. * * @deprecated since Adyen Checkout API v69 * Use `authenticationData.authenticationOnly` instead. */ - "threeDSAuthenticationOnly"?: boolean; + 'threeDSAuthenticationOnly'?: boolean; /** * Set to true if the payment should be routed to a trusted MID. */ - "trustedShopper"?: boolean; - - static readonly discriminator: string | undefined = undefined; + 'trustedShopper'?: boolean; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountInfo", "baseName": "accountInfo", - "type": "AccountInfo | null", - "format": "" + "type": "AccountInfo | null" }, { "name": "additionalAmount", "baseName": "additionalAmount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "allowedPaymentMethods", "baseName": "allowedPaymentMethods", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo | null", - "format": "" + "type": "ApplicationInfo | null" }, { "name": "authenticationData", "baseName": "authenticationData", - "type": "AuthenticationData | null", - "format": "" + "type": "AuthenticationData | null" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "BillingAddress | null", - "format": "" + "type": "BillingAddress | null" }, { "name": "blockedPaymentMethods", "baseName": "blockedPaymentMethods", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "captureDelayHours", "baseName": "captureDelayHours", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "channel", "baseName": "channel", - "type": "CreateCheckoutSessionRequest.ChannelEnum", - "format": "" + "type": "CreateCheckoutSessionRequest.ChannelEnum" }, { "name": "company", "baseName": "company", - "type": "Company | null", - "format": "" + "type": "Company | null" }, { "name": "countryCode", "baseName": "countryCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "dateOfBirth", "baseName": "dateOfBirth", - "type": "string", - "format": "date" + "type": "string" }, { "name": "deliverAt", "baseName": "deliverAt", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "deliveryAddress", "baseName": "deliveryAddress", - "type": "DeliveryAddress | null", - "format": "" + "type": "DeliveryAddress | null" }, { "name": "enableOneClick", "baseName": "enableOneClick", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "enablePayOut", "baseName": "enablePayOut", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "enableRecurring", "baseName": "enableRecurring", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "expiresAt", "baseName": "expiresAt", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "fundOrigin", "baseName": "fundOrigin", - "type": "FundOrigin | null", - "format": "" + "type": "FundOrigin | null" }, { "name": "fundRecipient", "baseName": "fundRecipient", - "type": "FundRecipient | null", - "format": "" + "type": "FundRecipient | null" }, { "name": "installmentOptions", "baseName": "installmentOptions", - "type": "{ [key: string]: CheckoutSessionInstallmentOption; }", - "format": "" + "type": "{ [key: string]: CheckoutSessionInstallmentOption; }" }, { "name": "lineItems", "baseName": "lineItems", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "mandate", "baseName": "mandate", - "type": "Mandate | null", - "format": "" + "type": "Mandate | null" }, { "name": "mcc", "baseName": "mcc", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantOrderReference", "baseName": "merchantOrderReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "metadata", "baseName": "metadata", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "mode", "baseName": "mode", - "type": "CreateCheckoutSessionRequest.ModeEnum", - "format": "" + "type": "CreateCheckoutSessionRequest.ModeEnum" }, { "name": "mpiData", "baseName": "mpiData", - "type": "ThreeDSecureData | null", - "format": "" + "type": "ThreeDSecureData | null" }, { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic | null", - "format": "" + "type": "PlatformChargebackLogic | null" }, { "name": "recurringExpiry", "baseName": "recurringExpiry", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringFrequency", "baseName": "recurringFrequency", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringProcessingModel", "baseName": "recurringProcessingModel", - "type": "CreateCheckoutSessionRequest.RecurringProcessingModelEnum", - "format": "" + "type": "CreateCheckoutSessionRequest.RecurringProcessingModelEnum" }, { "name": "redirectFromIssuerMethod", "baseName": "redirectFromIssuerMethod", - "type": "string", - "format": "" + "type": "string" }, { "name": "redirectToIssuerMethod", "baseName": "redirectToIssuerMethod", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "returnUrl", "baseName": "returnUrl", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskData", "baseName": "riskData", - "type": "RiskData | null", - "format": "" + "type": "RiskData | null" }, { "name": "shopperEmail", "baseName": "shopperEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperIP", "baseName": "shopperIP", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperInteraction", "baseName": "shopperInteraction", - "type": "CreateCheckoutSessionRequest.ShopperInteractionEnum", - "format": "" + "type": "CreateCheckoutSessionRequest.ShopperInteractionEnum" }, { "name": "shopperLocale", "baseName": "shopperLocale", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperName", "baseName": "shopperName", - "type": "Name | null", - "format": "" + "type": "Name | null" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperStatement", "baseName": "shopperStatement", - "type": "string", - "format": "" + "type": "string" }, { "name": "showInstallmentAmount", "baseName": "showInstallmentAmount", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "showRemovePaymentMethodButton", "baseName": "showRemovePaymentMethodButton", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "socialSecurityNumber", "baseName": "socialSecurityNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "splitCardFundingSources", "baseName": "splitCardFundingSources", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "splits", "baseName": "splits", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "store", "baseName": "store", - "type": "string", - "format": "" + "type": "string" }, { "name": "storeFiltrationMode", "baseName": "storeFiltrationMode", - "type": "CreateCheckoutSessionRequest.StoreFiltrationModeEnum", - "format": "" + "type": "CreateCheckoutSessionRequest.StoreFiltrationModeEnum" }, { "name": "storePaymentMethod", "baseName": "storePaymentMethod", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "storePaymentMethodMode", "baseName": "storePaymentMethodMode", - "type": "CreateCheckoutSessionRequest.StorePaymentMethodModeEnum", - "format": "" + "type": "CreateCheckoutSessionRequest.StorePaymentMethodModeEnum" }, { "name": "telephoneNumber", "baseName": "telephoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "themeId", "baseName": "themeId", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDS2RequestData", "baseName": "threeDS2RequestData", - "type": "CheckoutSessionThreeDS2RequestData | null", - "format": "" + "type": "CheckoutSessionThreeDS2RequestData | null" }, { "name": "threeDSAuthenticationOnly", "baseName": "threeDSAuthenticationOnly", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "trustedShopper", "baseName": "trustedShopper", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return CreateCheckoutSessionRequest.attributeTypeMap; } - - public constructor() { - } } export namespace CreateCheckoutSessionRequest { diff --git a/src/typings/checkout/createCheckoutSessionResponse.ts b/src/typings/checkout/createCheckoutSessionResponse.ts index 4c222ab32..f06288d6b 100644 --- a/src/typings/checkout/createCheckoutSessionResponse.ts +++ b/src/typings/checkout/createCheckoutSessionResponse.ts @@ -7,635 +7,565 @@ * Do not edit this class manually. */ -import { AccountInfo } from "./accountInfo"; -import { Amount } from "./amount"; -import { ApplicationInfo } from "./applicationInfo"; -import { AuthenticationData } from "./authenticationData"; -import { BillingAddress } from "./billingAddress"; -import { CheckoutSessionInstallmentOption } from "./checkoutSessionInstallmentOption"; -import { CheckoutSessionThreeDS2RequestData } from "./checkoutSessionThreeDS2RequestData"; -import { Company } from "./company"; -import { DeliveryAddress } from "./deliveryAddress"; -import { FundOrigin } from "./fundOrigin"; -import { FundRecipient } from "./fundRecipient"; -import { LineItem } from "./lineItem"; -import { Mandate } from "./mandate"; -import { Name } from "./name"; -import { PlatformChargebackLogic } from "./platformChargebackLogic"; -import { RiskData } from "./riskData"; -import { Split } from "./split"; -import { ThreeDSecureData } from "./threeDSecureData"; - +import { AccountInfo } from './accountInfo'; +import { Amount } from './amount'; +import { ApplicationInfo } from './applicationInfo'; +import { AuthenticationData } from './authenticationData'; +import { BillingAddress } from './billingAddress'; +import { CheckoutSessionInstallmentOption } from './checkoutSessionInstallmentOption'; +import { CheckoutSessionThreeDS2RequestData } from './checkoutSessionThreeDS2RequestData'; +import { Company } from './company'; +import { DeliveryAddress } from './deliveryAddress'; +import { FundOrigin } from './fundOrigin'; +import { FundRecipient } from './fundRecipient'; +import { LineItem } from './lineItem'; +import { Mandate } from './mandate'; +import { Name } from './name'; +import { PlatformChargebackLogic } from './platformChargebackLogic'; +import { RiskData } from './riskData'; +import { Split } from './split'; +import { ThreeDSecureData } from './threeDSecureData'; export class CreateCheckoutSessionResponse { - "accountInfo"?: AccountInfo | null; - "additionalAmount"?: Amount | null; + 'accountInfo'?: AccountInfo | null; + 'additionalAmount'?: Amount | null; /** * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ - "additionalData"?: { [key: string]: string; }; + 'additionalData'?: { [key: string]: string; }; /** * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` */ - "allowedPaymentMethods"?: Array; - "amount": Amount; - "applicationInfo"?: ApplicationInfo | null; - "authenticationData"?: AuthenticationData | null; - "billingAddress"?: BillingAddress | null; + 'allowedPaymentMethods'?: Array; + 'amount': Amount; + 'applicationInfo'?: ApplicationInfo | null; + 'authenticationData'?: AuthenticationData | null; + 'billingAddress'?: BillingAddress | null; /** * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` */ - "blockedPaymentMethods"?: Array; + 'blockedPaymentMethods'?: Array; /** * The delay between the authorisation and scheduled auto-capture, specified in hours. */ - "captureDelayHours"?: number; + 'captureDelayHours'?: number; /** * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** */ - "channel"?: CreateCheckoutSessionResponse.ChannelEnum; - "company"?: Company | null; + 'channel'?: CreateCheckoutSessionResponse.ChannelEnum; + 'company'?: Company | null; /** * The shopper\'s two-letter country code. */ - "countryCode"?: string; + 'countryCode'?: string; /** * The shopper\'s date of birth in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ - "dateOfBirth"?: Date; + 'dateOfBirth'?: Date; /** * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. */ - "deliverAt"?: Date; - "deliveryAddress"?: DeliveryAddress | null; + 'deliverAt'?: Date; + 'deliveryAddress'?: DeliveryAddress | null; /** * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). */ - "enableOneClick"?: boolean; + 'enableOneClick'?: boolean; /** * When true and `shopperReference` is provided, the payment details will be tokenized for payouts. */ - "enablePayOut"?: boolean; + 'enablePayOut'?: boolean; /** * When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. */ - "enableRecurring"?: boolean; + 'enableRecurring'?: boolean; /** * The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation. */ - "expiresAt": Date; - "fundOrigin"?: FundOrigin | null; - "fundRecipient"?: FundRecipient | null; + 'expiresAt': Date; + 'fundOrigin'?: FundOrigin | null; + 'fundRecipient'?: FundRecipient | null; /** * A unique identifier of the session. */ - "id": string; + 'id': string; /** * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. */ - "installmentOptions"?: { [key: string]: CheckoutSessionInstallmentOption; }; + 'installmentOptions'?: { [key: string]: CheckoutSessionInstallmentOption; }; /** * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, Riverty, and Zip. */ - "lineItems"?: Array; - "mandate"?: Mandate | null; + 'lineItems'?: Array; + 'mandate'?: Mandate | null; /** * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ - "mcc"?: string; + 'mcc'?: string; /** * The merchant account identifier, with which you want to process the transaction. */ - "merchantAccount": string; + 'merchantAccount': string; /** * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. */ - "merchantOrderReference"?: string; + 'merchantOrderReference'?: string; /** * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per value. */ - "metadata"?: { [key: string]: string; }; + 'metadata'?: { [key: string]: string; }; /** * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration */ - "mode"?: CreateCheckoutSessionResponse.ModeEnum; - "mpiData"?: ThreeDSecureData | null; - "platformChargebackLogic"?: PlatformChargebackLogic | null; + 'mode'?: CreateCheckoutSessionResponse.ModeEnum; + 'mpiData'?: ThreeDSecureData | null; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. */ - "recurringExpiry"?: string; + 'recurringExpiry'?: string; /** * Minimum number of days between authorisations. Only for 3D Secure 2. */ - "recurringFrequency"?: string; + 'recurringFrequency'?: string; /** * Defines a recurring payment type. Required when creating a token to store 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. */ - "recurringProcessingModel"?: CreateCheckoutSessionResponse.RecurringProcessingModelEnum; + 'recurringProcessingModel'?: CreateCheckoutSessionResponse.RecurringProcessingModelEnum; /** * Specifies the redirect method (GET or POST) when redirecting back from the issuer. */ - "redirectFromIssuerMethod"?: string; + 'redirectFromIssuerMethod'?: string; /** * Specifies the redirect method (GET or POST) when redirecting to the issuer. */ - "redirectToIssuerMethod"?: string; + 'redirectToIssuerMethod'?: string; /** * The reference to uniquely identify a payment. */ - "reference": string; + 'reference': string; /** * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. */ - "returnUrl": string; - "riskData"?: RiskData | null; + 'returnUrl': string; + 'riskData'?: RiskData | null; /** * The payment session data you need to pass to your front end. */ - "sessionData"?: string; + 'sessionData'?: string; /** * The shopper\'s email address. */ - "shopperEmail"?: string; + 'shopperEmail'?: string; /** * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ - "shopperIP"?: string; + 'shopperIP'?: string; /** * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ - "shopperInteraction"?: CreateCheckoutSessionResponse.ShopperInteractionEnum; + 'shopperInteraction'?: CreateCheckoutSessionResponse.ShopperInteractionEnum; /** * The combination of a language code and a country code to specify the language to be used in the payment. */ - "shopperLocale"?: string; - "shopperName"?: Name | null; + 'shopperLocale'?: string; + 'shopperName'?: Name | null; /** * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ - "shopperReference"?: string; + 'shopperReference'?: string; /** * The text to be shown on the shopper\'s bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , \' _ - ? + * /_**. */ - "shopperStatement"?: string; + 'shopperStatement'?: string; /** * Set to true to show the payment amount per installment. */ - "showInstallmentAmount"?: boolean; + 'showInstallmentAmount'?: boolean; /** * Set to **true** to show a button that lets the shopper remove a stored payment method. */ - "showRemovePaymentMethodButton"?: boolean; + 'showRemovePaymentMethodButton'?: boolean; /** * The shopper\'s social security number. */ - "socialSecurityNumber"?: string; + 'socialSecurityNumber'?: string; /** * Boolean value indicating whether the card payment method should be split into separate debit and credit options. */ - "splitCardFundingSources"?: boolean; + 'splitCardFundingSources'?: boolean; /** * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). */ - "splits"?: Array; + 'splits'?: Array; /** * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. */ - "store"?: string; + 'store'?: string; /** * Specifies how payment methods should be filtered based on the \'store\' parameter: - \'exclusive\': Only payment methods belonging to the specified \'store\' are returned. - \'inclusive\': Payment methods from the \'store\' and those not associated with any other store are returned. */ - "storeFiltrationMode"?: CreateCheckoutSessionResponse.StoreFiltrationModeEnum; + 'storeFiltrationMode'?: CreateCheckoutSessionResponse.StoreFiltrationModeEnum; /** * When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). */ - "storePaymentMethod"?: boolean; + 'storePaymentMethod'?: boolean; /** * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. */ - "storePaymentMethodMode"?: CreateCheckoutSessionResponse.StorePaymentMethodModeEnum; + 'storePaymentMethodMode'?: CreateCheckoutSessionResponse.StorePaymentMethodModeEnum; /** * The shopper\'s telephone number. */ - "telephoneNumber"?: string; + 'telephoneNumber'?: string; /** * Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area. */ - "themeId"?: string; - "threeDS2RequestData"?: CheckoutSessionThreeDS2RequestData | null; + 'themeId'?: string; + 'threeDS2RequestData'?: CheckoutSessionThreeDS2RequestData | null; /** * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. * * @deprecated since Adyen Checkout API v69 * Use `authenticationData.authenticationOnly` instead. */ - "threeDSAuthenticationOnly"?: boolean; + 'threeDSAuthenticationOnly'?: boolean; /** * Set to true if the payment should be routed to a trusted MID. */ - "trustedShopper"?: boolean; + 'trustedShopper'?: boolean; /** * The URL for the Hosted Checkout page. Redirect the shopper to this URL so they can make the payment. */ - "url"?: string; - - static readonly discriminator: string | undefined = undefined; + 'url'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountInfo", "baseName": "accountInfo", - "type": "AccountInfo | null", - "format": "" + "type": "AccountInfo | null" }, { "name": "additionalAmount", "baseName": "additionalAmount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "allowedPaymentMethods", "baseName": "allowedPaymentMethods", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo | null", - "format": "" + "type": "ApplicationInfo | null" }, { "name": "authenticationData", "baseName": "authenticationData", - "type": "AuthenticationData | null", - "format": "" + "type": "AuthenticationData | null" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "BillingAddress | null", - "format": "" + "type": "BillingAddress | null" }, { "name": "blockedPaymentMethods", "baseName": "blockedPaymentMethods", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "captureDelayHours", "baseName": "captureDelayHours", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "channel", "baseName": "channel", - "type": "CreateCheckoutSessionResponse.ChannelEnum", - "format": "" + "type": "CreateCheckoutSessionResponse.ChannelEnum" }, { "name": "company", "baseName": "company", - "type": "Company | null", - "format": "" + "type": "Company | null" }, { "name": "countryCode", "baseName": "countryCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "dateOfBirth", "baseName": "dateOfBirth", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "deliverAt", "baseName": "deliverAt", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "deliveryAddress", "baseName": "deliveryAddress", - "type": "DeliveryAddress | null", - "format": "" + "type": "DeliveryAddress | null" }, { "name": "enableOneClick", "baseName": "enableOneClick", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "enablePayOut", "baseName": "enablePayOut", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "enableRecurring", "baseName": "enableRecurring", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "expiresAt", "baseName": "expiresAt", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "fundOrigin", "baseName": "fundOrigin", - "type": "FundOrigin | null", - "format": "" + "type": "FundOrigin | null" }, { "name": "fundRecipient", "baseName": "fundRecipient", - "type": "FundRecipient | null", - "format": "" + "type": "FundRecipient | null" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentOptions", "baseName": "installmentOptions", - "type": "{ [key: string]: CheckoutSessionInstallmentOption; }", - "format": "" + "type": "{ [key: string]: CheckoutSessionInstallmentOption; }" }, { "name": "lineItems", "baseName": "lineItems", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "mandate", "baseName": "mandate", - "type": "Mandate | null", - "format": "" + "type": "Mandate | null" }, { "name": "mcc", "baseName": "mcc", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantOrderReference", "baseName": "merchantOrderReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "metadata", "baseName": "metadata", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "mode", "baseName": "mode", - "type": "CreateCheckoutSessionResponse.ModeEnum", - "format": "" + "type": "CreateCheckoutSessionResponse.ModeEnum" }, { "name": "mpiData", "baseName": "mpiData", - "type": "ThreeDSecureData | null", - "format": "" + "type": "ThreeDSecureData | null" }, { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic | null", - "format": "" + "type": "PlatformChargebackLogic | null" }, { "name": "recurringExpiry", "baseName": "recurringExpiry", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringFrequency", "baseName": "recurringFrequency", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringProcessingModel", "baseName": "recurringProcessingModel", - "type": "CreateCheckoutSessionResponse.RecurringProcessingModelEnum", - "format": "" + "type": "CreateCheckoutSessionResponse.RecurringProcessingModelEnum" }, { "name": "redirectFromIssuerMethod", "baseName": "redirectFromIssuerMethod", - "type": "string", - "format": "" + "type": "string" }, { "name": "redirectToIssuerMethod", "baseName": "redirectToIssuerMethod", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "returnUrl", "baseName": "returnUrl", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskData", "baseName": "riskData", - "type": "RiskData | null", - "format": "" + "type": "RiskData | null" }, { "name": "sessionData", "baseName": "sessionData", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperEmail", "baseName": "shopperEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperIP", "baseName": "shopperIP", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperInteraction", "baseName": "shopperInteraction", - "type": "CreateCheckoutSessionResponse.ShopperInteractionEnum", - "format": "" + "type": "CreateCheckoutSessionResponse.ShopperInteractionEnum" }, { "name": "shopperLocale", "baseName": "shopperLocale", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperName", "baseName": "shopperName", - "type": "Name | null", - "format": "" + "type": "Name | null" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperStatement", "baseName": "shopperStatement", - "type": "string", - "format": "" + "type": "string" }, { "name": "showInstallmentAmount", "baseName": "showInstallmentAmount", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "showRemovePaymentMethodButton", "baseName": "showRemovePaymentMethodButton", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "socialSecurityNumber", "baseName": "socialSecurityNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "splitCardFundingSources", "baseName": "splitCardFundingSources", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "splits", "baseName": "splits", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "store", "baseName": "store", - "type": "string", - "format": "" + "type": "string" }, { "name": "storeFiltrationMode", "baseName": "storeFiltrationMode", - "type": "CreateCheckoutSessionResponse.StoreFiltrationModeEnum", - "format": "" + "type": "CreateCheckoutSessionResponse.StoreFiltrationModeEnum" }, { "name": "storePaymentMethod", "baseName": "storePaymentMethod", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "storePaymentMethodMode", "baseName": "storePaymentMethodMode", - "type": "CreateCheckoutSessionResponse.StorePaymentMethodModeEnum", - "format": "" + "type": "CreateCheckoutSessionResponse.StorePaymentMethodModeEnum" }, { "name": "telephoneNumber", "baseName": "telephoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "themeId", "baseName": "themeId", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDS2RequestData", "baseName": "threeDS2RequestData", - "type": "CheckoutSessionThreeDS2RequestData | null", - "format": "" + "type": "CheckoutSessionThreeDS2RequestData | null" }, { "name": "threeDSAuthenticationOnly", "baseName": "threeDSAuthenticationOnly", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "trustedShopper", "baseName": "trustedShopper", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "url", "baseName": "url", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CreateCheckoutSessionResponse.attributeTypeMap; } - - public constructor() { - } } export namespace CreateCheckoutSessionResponse { diff --git a/src/typings/checkout/createOrderRequest.ts b/src/typings/checkout/createOrderRequest.ts index 8e3b103a5..8470622e8 100644 --- a/src/typings/checkout/createOrderRequest.ts +++ b/src/typings/checkout/createOrderRequest.ts @@ -7,59 +7,49 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class CreateOrderRequest { - "amount": Amount; + 'amount': Amount; /** * The date when the order should expire. If not provided, the default expiry duration is 1 day. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. */ - "expiresAt"?: string; + 'expiresAt'?: string; /** * The merchant account identifier, with which you want to process the order. */ - "merchantAccount": string; + 'merchantAccount': string; /** * A custom reference identifying the order. */ - "reference": string; - - static readonly discriminator: string | undefined = undefined; + 'reference': string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "expiresAt", "baseName": "expiresAt", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CreateOrderRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/createOrderResponse.ts b/src/typings/checkout/createOrderResponse.ts index daf711281..76e77ace8 100644 --- a/src/typings/checkout/createOrderResponse.ts +++ b/src/typings/checkout/createOrderResponse.ts @@ -7,115 +7,99 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { FraudResult } from "./fraudResult"; - +import { Amount } from './amount'; +import { FraudResult } from './fraudResult'; export class CreateOrderResponse { /** * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. */ - "additionalData"?: { [key: string]: string; }; - "amount": Amount; + 'additionalData'?: { [key: string]: string; }; + 'amount': Amount; /** * The date that the order will expire. */ - "expiresAt": string; - "fraudResult"?: FraudResult | null; + 'expiresAt': string; + 'fraudResult'?: FraudResult | null; /** * The encrypted data that will be used by merchant for adding payments to the order. */ - "orderData": string; + 'orderData': string; /** * Adyen\'s 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ - "pspReference"?: string; + 'pspReference'?: string; /** * The reference provided by merchant for creating the order. */ - "reference"?: string; + 'reference'?: string; /** * If the payment\'s authorisation is refused or an error occurs during authorisation, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ - "refusalReason"?: string; - "remainingAmount": Amount; + 'refusalReason'?: string; + 'remainingAmount': Amount; /** * The result of the order creation request. The value is always **Success**. */ - "resultCode": CreateOrderResponse.ResultCodeEnum; - - static readonly discriminator: string | undefined = undefined; + 'resultCode': CreateOrderResponse.ResultCodeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "expiresAt", "baseName": "expiresAt", - "type": "string", - "format": "" + "type": "string" }, { "name": "fraudResult", "baseName": "fraudResult", - "type": "FraudResult | null", - "format": "" + "type": "FraudResult | null" }, { "name": "orderData", "baseName": "orderData", - "type": "string", - "format": "" + "type": "string" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "refusalReason", "baseName": "refusalReason", - "type": "string", - "format": "" + "type": "string" }, { "name": "remainingAmount", "baseName": "remainingAmount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "resultCode", "baseName": "resultCode", - "type": "CreateOrderResponse.ResultCodeEnum", - "format": "" + "type": "CreateOrderResponse.ResultCodeEnum" } ]; static getAttributeTypeMap() { return CreateOrderResponse.attributeTypeMap; } - - public constructor() { - } } export namespace CreateOrderResponse { diff --git a/src/typings/checkout/deliveryAddress.ts b/src/typings/checkout/deliveryAddress.ts index 39fd2c84c..81335f240 100644 --- a/src/typings/checkout/deliveryAddress.ts +++ b/src/typings/checkout/deliveryAddress.ts @@ -12,89 +12,76 @@ export class DeliveryAddress { /** * The name of the city. Maximum length: 3000 characters. */ - "city": string; + 'city': string; /** * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don\'t know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ - "country": string; - "firstName"?: string; + 'country': string; + 'firstName'?: string; /** * The number or name of the house. Maximum length: 3000 characters. */ - "houseNumberOrName": string; - "lastName"?: string; + 'houseNumberOrName': string; + 'lastName'?: string; /** * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. */ - "postalCode": string; + 'postalCode': string; /** * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ - "stateOrProvince"?: string; + 'stateOrProvince'?: string; /** * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. */ - "street": string; + 'street': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "city", "baseName": "city", - "type": "string", - "format": "" + "type": "string" }, { "name": "country", "baseName": "country", - "type": "string", - "format": "" + "type": "string" }, { "name": "firstName", "baseName": "firstName", - "type": "string", - "format": "" + "type": "string" }, { "name": "houseNumberOrName", "baseName": "houseNumberOrName", - "type": "string", - "format": "" + "type": "string" }, { "name": "lastName", "baseName": "lastName", - "type": "string", - "format": "" + "type": "string" }, { "name": "postalCode", "baseName": "postalCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "stateOrProvince", "baseName": "stateOrProvince", - "type": "string", - "format": "" + "type": "string" }, { "name": "street", "baseName": "street", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return DeliveryAddress.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/deliveryMethod.ts b/src/typings/checkout/deliveryMethod.ts index ba4305aee..0beb2f5d9 100644 --- a/src/typings/checkout/deliveryMethod.ts +++ b/src/typings/checkout/deliveryMethod.ts @@ -7,70 +7,59 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class DeliveryMethod { - "amount"?: Amount | null; + 'amount'?: Amount | null; /** * The name of the delivery method as shown to the shopper. */ - "description"?: string; + 'description'?: string; /** * The reference of the delivery method. */ - "reference"?: string; + 'reference'?: string; /** * If you display the PayPal lightbox with delivery methods, set to **true** for the delivery method that is selected. Only one delivery method can be selected at a time. */ - "selected"?: boolean; + 'selected'?: boolean; /** * The type of the delivery method. */ - "type"?: DeliveryMethod.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type'?: DeliveryMethod.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "selected", "baseName": "selected", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "type", "baseName": "type", - "type": "DeliveryMethod.TypeEnum", - "format": "" + "type": "DeliveryMethod.TypeEnum" } ]; static getAttributeTypeMap() { return DeliveryMethod.attributeTypeMap; } - - public constructor() { - } } export namespace DeliveryMethod { diff --git a/src/typings/checkout/detailsRequestAuthenticationData.ts b/src/typings/checkout/detailsRequestAuthenticationData.ts index f73318884..fa86768ef 100644 --- a/src/typings/checkout/detailsRequestAuthenticationData.ts +++ b/src/typings/checkout/detailsRequestAuthenticationData.ts @@ -12,25 +12,19 @@ export class DetailsRequestAuthenticationData { /** * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. Default: *false**. */ - "authenticationOnly"?: boolean; + 'authenticationOnly'?: boolean; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "authenticationOnly", "baseName": "authenticationOnly", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return DetailsRequestAuthenticationData.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/deviceRenderOptions.ts b/src/typings/checkout/deviceRenderOptions.ts index 3110e41fb..a6f03bd53 100644 --- a/src/typings/checkout/deviceRenderOptions.ts +++ b/src/typings/checkout/deviceRenderOptions.ts @@ -12,36 +12,29 @@ export class DeviceRenderOptions { /** * Supported SDK interface types. Allowed values: * native * html * both */ - "sdkInterface"?: DeviceRenderOptions.SdkInterfaceEnum; + 'sdkInterface'?: DeviceRenderOptions.SdkInterfaceEnum; /** * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect */ - "sdkUiType"?: Array; + 'sdkUiType'?: Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "sdkInterface", "baseName": "sdkInterface", - "type": "DeviceRenderOptions.SdkInterfaceEnum", - "format": "" + "type": "DeviceRenderOptions.SdkInterfaceEnum" }, { "name": "sdkUiType", "baseName": "sdkUiType", - "type": "DeviceRenderOptions.SdkUiTypeEnum", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return DeviceRenderOptions.attributeTypeMap; } - - public constructor() { - } } export namespace DeviceRenderOptions { diff --git a/src/typings/checkout/dokuDetails.ts b/src/typings/checkout/dokuDetails.ts index 2dce369c1..b6331d2d7 100644 --- a/src/typings/checkout/dokuDetails.ts +++ b/src/typings/checkout/dokuDetails.ts @@ -12,80 +12,70 @@ export class DokuDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The shopper\'s first name. */ - "firstName": string; + 'firstName': string; /** * The shopper\'s last name. */ - "lastName": string; + 'lastName': string; /** * The shopper\'s email. */ - "shopperEmail": string; + 'shopperEmail': string; /** * **doku** */ - "type": DokuDetails.TypeEnum; + 'type': DokuDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "firstName", "baseName": "firstName", - "type": "string", - "format": "" + "type": "string" }, { "name": "lastName", "baseName": "lastName", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperEmail", "baseName": "shopperEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "DokuDetails.TypeEnum", - "format": "" + "type": "DokuDetails.TypeEnum" } ]; static getAttributeTypeMap() { return DokuDetails.attributeTypeMap; } - - public constructor() { - } } export namespace DokuDetails { export enum TypeEnum { - DokuMandiriVa = 'doku_mandiri_va', - DokuCimbVa = 'doku_cimb_va', - DokuDanamonVa = 'doku_danamon_va', - DokuBniVa = 'doku_bni_va', - DokuPermataLiteAtm = 'doku_permata_lite_atm', - DokuBriVa = 'doku_bri_va', - DokuBcaVa = 'doku_bca_va', - DokuAlfamart = 'doku_alfamart', - DokuIndomaret = 'doku_indomaret', - DokuWallet = 'doku_wallet', - DokuOvo = 'doku_ovo' + MandiriVa = 'doku_mandiri_va', + CimbVa = 'doku_cimb_va', + DanamonVa = 'doku_danamon_va', + BniVa = 'doku_bni_va', + PermataLiteAtm = 'doku_permata_lite_atm', + BriVa = 'doku_bri_va', + BcaVa = 'doku_bca_va', + Alfamart = 'doku_alfamart', + Indomaret = 'doku_indomaret', + Wallet = 'doku_wallet', + Ovo = 'doku_ovo' } } diff --git a/src/typings/checkout/donation.ts b/src/typings/checkout/donation.ts index 84fcb3e89..7334a3a2b 100644 --- a/src/typings/checkout/donation.ts +++ b/src/typings/checkout/donation.ts @@ -12,65 +12,55 @@ export class Donation { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). */ - "currency": string; + 'currency': string; /** * The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the shopper can select from. */ - "donationType": string; + 'donationType': string; /** * The maximum amount a transaction can be rounded up to make a donation. This field is only present when `donationType` is **roundup**. */ - "maxRoundupAmount"?: number; + 'maxRoundupAmount'?: number; /** * The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donation amounts that the shopper can select from. */ - "type": string; + 'type': string; /** * The fixed donation amounts in [minor units](https://docs.adyen.com/development-resources/currency-codes//#minor-units). This field is only present when `donationType` is **fixedAmounts**. */ - "values"?: Array; + 'values'?: Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "donationType", "baseName": "donationType", - "type": "string", - "format": "" + "type": "string" }, { "name": "maxRoundupAmount", "baseName": "maxRoundupAmount", - "type": "number", - "format": "int64" + "type": "number" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" }, { "name": "values", "baseName": "values", - "type": "Array", - "format": "int64" + "type": "Array" } ]; static getAttributeTypeMap() { return Donation.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/donationCampaign.ts b/src/typings/checkout/donationCampaign.ts index 457a2791d..e31a4fca6 100644 --- a/src/typings/checkout/donationCampaign.ts +++ b/src/typings/checkout/donationCampaign.ts @@ -7,127 +7,110 @@ * Do not edit this class manually. */ -import { Amounts } from "./amounts"; -import { Donation } from "./donation"; - +import { Amounts } from './amounts'; +import { Donation } from './donation'; export class DonationCampaign { - "amounts"?: Amounts | null; + 'amounts'?: Amounts | null; /** * The URL for the banner of the nonprofit or campaign. */ - "bannerUrl"?: string; + 'bannerUrl'?: string; /** * The name of the donation campaign.. */ - "campaignName"?: string; + 'campaignName'?: string; /** * The cause of the nonprofit. */ - "causeName"?: string; - "donation"?: Donation | null; + 'causeName'?: string; + 'donation'?: Donation | null; /** * The unique campaign ID of the donation campaign. */ - "id"?: string; + 'id'?: string; /** * The URL for the logo of the nonprofit. */ - "logoUrl"?: string; + 'logoUrl'?: string; /** * The description of the nonprofit. */ - "nonprofitDescription"?: string; + 'nonprofitDescription'?: string; /** * The name of the nonprofit organization that receives the donation. */ - "nonprofitName"?: string; + 'nonprofitName'?: string; /** * The website URL of the nonprofit. */ - "nonprofitUrl"?: string; + 'nonprofitUrl'?: string; /** * The URL of the terms and conditions page of the nonprofit and the campaign. */ - "termsAndConditionsUrl"?: string; - - static readonly discriminator: string | undefined = undefined; + 'termsAndConditionsUrl'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amounts", "baseName": "amounts", - "type": "Amounts | null", - "format": "" + "type": "Amounts | null" }, { "name": "bannerUrl", "baseName": "bannerUrl", - "type": "string", - "format": "" + "type": "string" }, { "name": "campaignName", "baseName": "campaignName", - "type": "string", - "format": "" + "type": "string" }, { "name": "causeName", "baseName": "causeName", - "type": "string", - "format": "" + "type": "string" }, { "name": "donation", "baseName": "donation", - "type": "Donation | null", - "format": "" + "type": "Donation | null" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "logoUrl", "baseName": "logoUrl", - "type": "string", - "format": "" + "type": "string" }, { "name": "nonprofitDescription", "baseName": "nonprofitDescription", - "type": "string", - "format": "" + "type": "string" }, { "name": "nonprofitName", "baseName": "nonprofitName", - "type": "string", - "format": "" + "type": "string" }, { "name": "nonprofitUrl", "baseName": "nonprofitUrl", - "type": "string", - "format": "" + "type": "string" }, { "name": "termsAndConditionsUrl", "baseName": "termsAndConditionsUrl", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return DonationCampaign.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/donationCampaignsRequest.ts b/src/typings/checkout/donationCampaignsRequest.ts index 458ed4fe7..bf262469c 100644 --- a/src/typings/checkout/donationCampaignsRequest.ts +++ b/src/typings/checkout/donationCampaignsRequest.ts @@ -12,45 +12,37 @@ export class DonationCampaignsRequest { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). */ - "currency": string; + 'currency': string; /** * Locale on the shopper interaction device. */ - "locale"?: string; + 'locale'?: string; /** * Your merchant account identifier. */ - "merchantAccount": string; + 'merchantAccount': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "locale", "baseName": "locale", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return DonationCampaignsRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/donationCampaignsResponse.ts b/src/typings/checkout/donationCampaignsResponse.ts index 4e585efeb..31442d8d1 100644 --- a/src/typings/checkout/donationCampaignsResponse.ts +++ b/src/typings/checkout/donationCampaignsResponse.ts @@ -7,32 +7,25 @@ * Do not edit this class manually. */ -import { DonationCampaign } from "./donationCampaign"; - +import { DonationCampaign } from './donationCampaign'; export class DonationCampaignsResponse { /** * List of active donation campaigns for your merchant account. */ - "donationCampaigns"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'donationCampaigns'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "donationCampaigns", "baseName": "donationCampaigns", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return DonationCampaignsResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/donationPaymentRequest.ts b/src/typings/checkout/donationPaymentRequest.ts index 17088d6b1..22fb1ae1e 100644 --- a/src/typings/checkout/donationPaymentRequest.ts +++ b/src/typings/checkout/donationPaymentRequest.ts @@ -7,425 +7,384 @@ * Do not edit this class manually. */ -import { AccountInfo } from "./accountInfo"; -import { Amount } from "./amount"; -import { ApplicationInfo } from "./applicationInfo"; -import { AuthenticationData } from "./authenticationData"; -import { BillingAddress } from "./billingAddress"; -import { BrowserInfo } from "./browserInfo"; -import { DeliveryAddress } from "./deliveryAddress"; -import { DonationPaymentRequestPaymentMethod } from "./donationPaymentRequestPaymentMethod"; -import { LineItem } from "./lineItem"; -import { MerchantRiskIndicator } from "./merchantRiskIndicator"; -import { Name } from "./name"; -import { ThreeDS2RequestFields } from "./threeDS2RequestFields"; -import { ThreeDSecureData } from "./threeDSecureData"; - +import { AccountInfo } from './accountInfo'; +import { Amount } from './amount'; +import { ApplePayDonations } from './applePayDonations'; +import { ApplicationInfo } from './applicationInfo'; +import { AuthenticationData } from './authenticationData'; +import { BillingAddress } from './billingAddress'; +import { BrowserInfo } from './browserInfo'; +import { CardDonations } from './cardDonations'; +import { DeliveryAddress } from './deliveryAddress'; +import { GooglePayDonations } from './googlePayDonations'; +import { IdealDonations } from './idealDonations'; +import { LineItem } from './lineItem'; +import { MerchantRiskIndicator } from './merchantRiskIndicator'; +import { Name } from './name'; +import { PayWithGoogleDonations } from './payWithGoogleDonations'; +import { ThreeDS2RequestFields } from './threeDS2RequestFields'; +import { ThreeDSecureData } from './threeDSecureData'; export class DonationPaymentRequest { - "accountInfo"?: AccountInfo | null; + 'accountInfo'?: AccountInfo | null; /** * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ - "additionalData"?: { [key: string]: string; }; - "amount": Amount; - "applicationInfo"?: ApplicationInfo | null; - "authenticationData"?: AuthenticationData | null; - "billingAddress"?: BillingAddress | null; - "browserInfo"?: BrowserInfo | null; + 'additionalData'?: { [key: string]: string; }; + 'amount': Amount; + 'applicationInfo'?: ApplicationInfo | null; + 'authenticationData'?: AuthenticationData | null; + 'billingAddress'?: BillingAddress | null; + 'browserInfo'?: BrowserInfo | null; /** * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web */ - "channel"?: DonationPaymentRequest.ChannelEnum; + 'channel'?: DonationPaymentRequest.ChannelEnum; /** * Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. * * @deprecated since Adyen Checkout API v68 * Use `checkoutAttemptId` instead */ - "conversionId"?: string; + 'conversionId'?: string; /** * The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE */ - "countryCode"?: string; + 'countryCode'?: string; /** * The shopper\'s date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ - "dateOfBirth"?: Date; + 'dateOfBirth'?: Date; /** * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 */ - "deliverAt"?: Date; - "deliveryAddress"?: DeliveryAddress | null; + 'deliverAt'?: Date; + 'deliveryAddress'?: DeliveryAddress | null; /** * A string containing the shopper\'s device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ - "deviceFingerprint"?: string; + 'deviceFingerprint'?: string; /** * Donation account to which the transaction is credited. */ - "donationAccount"?: string; + 'donationAccount'?: string; /** * The donation campaign ID received in the `/donationCampaigns` call. */ - "donationCampaignId"?: string; + 'donationCampaignId'?: string; /** * PSP reference of the transaction from which the donation token is generated. Required when `donationToken` is provided. */ - "donationOriginalPspReference"?: string; + 'donationOriginalPspReference'?: string; /** * Donation token received in the `/payments` call. */ - "donationToken"?: string; + 'donationToken'?: string; /** * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, Riverty, and Zip. */ - "lineItems"?: Array; + 'lineItems'?: Array; /** * The merchant account identifier, with which you want to process the transaction. */ - "merchantAccount": string; - "merchantRiskIndicator"?: MerchantRiskIndicator | null; + 'merchantAccount': string; + 'merchantRiskIndicator'?: MerchantRiskIndicator | null; /** * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. */ - "metadata"?: { [key: string]: string; }; - "mpiData"?: ThreeDSecureData | null; + 'metadata'?: { [key: string]: string; }; + 'mpiData'?: ThreeDSecureData | null; /** * Required for the 3D Secure 2 `channel` **Web** integration. Set this parameter to the origin URL of the page that you are loading the 3D Secure Component from. */ - "origin"?: string; - "paymentMethod": DonationPaymentRequestPaymentMethod; + 'origin'?: string; + /** + * The type and required details of a payment method to use. + */ + 'paymentMethod': ApplePayDonations | CardDonations | GooglePayDonations | IdealDonations | PayWithGoogleDonations; /** * 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. */ - "recurringProcessingModel"?: DonationPaymentRequest.RecurringProcessingModelEnum; + 'recurringProcessingModel'?: DonationPaymentRequest.RecurringProcessingModelEnum; /** * Specifies the redirect method (GET or POST) when redirecting back from the issuer. */ - "redirectFromIssuerMethod"?: string; + 'redirectFromIssuerMethod'?: string; /** * Specifies the redirect method (GET or POST) when redirecting to the issuer. */ - "redirectToIssuerMethod"?: string; + 'redirectToIssuerMethod'?: string; /** * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ - "reference": string; + 'reference': string; /** * The URL to return to in case of a redirection. The format depends on the channel. This URL can have a maximum of 1024 characters. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. */ - "returnUrl": string; + 'returnUrl': string; /** * The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 */ - "sessionValidity"?: string; + 'sessionValidity'?: string; /** * The shopper\'s email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require `shopperEmail` for all browser-based and mobile implementations. */ - "shopperEmail"?: string; + 'shopperEmail'?: string; /** * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ - "shopperIP"?: string; + 'shopperIP'?: string; /** * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ - "shopperInteraction"?: DonationPaymentRequest.ShopperInteractionEnum; + 'shopperInteraction'?: DonationPaymentRequest.ShopperInteractionEnum; /** * The combination of a language code and a country code to specify the language to be used in the payment. */ - "shopperLocale"?: string; - "shopperName"?: Name | null; + 'shopperLocale'?: string; + 'shopperName'?: Name | null; /** * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. */ - "shopperReference"?: string; + 'shopperReference'?: string; /** * The shopper\'s social security number. */ - "socialSecurityNumber"?: string; + 'socialSecurityNumber'?: string; /** * The shopper\'s telephone number. */ - "telephoneNumber"?: string; - "threeDS2RequestData"?: ThreeDS2RequestFields | null; + 'telephoneNumber'?: string; + 'threeDS2RequestData'?: ThreeDS2RequestFields | null; /** * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. * * @deprecated since Adyen Checkout API v69 * Use `authenticationData.authenticationOnly` instead. */ - "threeDSAuthenticationOnly"?: boolean; + 'threeDSAuthenticationOnly'?: boolean; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountInfo", "baseName": "accountInfo", - "type": "AccountInfo | null", - "format": "" + "type": "AccountInfo | null" }, { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo | null", - "format": "" + "type": "ApplicationInfo | null" }, { "name": "authenticationData", "baseName": "authenticationData", - "type": "AuthenticationData | null", - "format": "" + "type": "AuthenticationData | null" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "BillingAddress | null", - "format": "" + "type": "BillingAddress | null" }, { "name": "browserInfo", "baseName": "browserInfo", - "type": "BrowserInfo | null", - "format": "" + "type": "BrowserInfo | null" }, { "name": "channel", "baseName": "channel", - "type": "DonationPaymentRequest.ChannelEnum", - "format": "" + "type": "DonationPaymentRequest.ChannelEnum" }, { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "conversionId", "baseName": "conversionId", - "type": "string", - "format": "" + "type": "string" }, { "name": "countryCode", "baseName": "countryCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "dateOfBirth", "baseName": "dateOfBirth", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "deliverAt", "baseName": "deliverAt", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "deliveryAddress", "baseName": "deliveryAddress", - "type": "DeliveryAddress | null", - "format": "" + "type": "DeliveryAddress | null" }, { "name": "deviceFingerprint", "baseName": "deviceFingerprint", - "type": "string", - "format": "" + "type": "string" }, { "name": "donationAccount", "baseName": "donationAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "donationCampaignId", "baseName": "donationCampaignId", - "type": "string", - "format": "" + "type": "string" }, { "name": "donationOriginalPspReference", "baseName": "donationOriginalPspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "donationToken", "baseName": "donationToken", - "type": "string", - "format": "" + "type": "string" }, { "name": "lineItems", "baseName": "lineItems", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantRiskIndicator", "baseName": "merchantRiskIndicator", - "type": "MerchantRiskIndicator | null", - "format": "" + "type": "MerchantRiskIndicator | null" }, { "name": "metadata", "baseName": "metadata", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "mpiData", "baseName": "mpiData", - "type": "ThreeDSecureData | null", - "format": "" + "type": "ThreeDSecureData | null" }, { "name": "origin", "baseName": "origin", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMethod", "baseName": "paymentMethod", - "type": "DonationPaymentRequestPaymentMethod", - "format": "" + "type": "ApplePayDonations | CardDonations | GooglePayDonations | IdealDonations | PayWithGoogleDonations" }, { "name": "recurringProcessingModel", "baseName": "recurringProcessingModel", - "type": "DonationPaymentRequest.RecurringProcessingModelEnum", - "format": "" + "type": "DonationPaymentRequest.RecurringProcessingModelEnum" }, { "name": "redirectFromIssuerMethod", "baseName": "redirectFromIssuerMethod", - "type": "string", - "format": "" + "type": "string" }, { "name": "redirectToIssuerMethod", "baseName": "redirectToIssuerMethod", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "returnUrl", "baseName": "returnUrl", - "type": "string", - "format": "" + "type": "string" }, { "name": "sessionValidity", "baseName": "sessionValidity", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperEmail", "baseName": "shopperEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperIP", "baseName": "shopperIP", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperInteraction", "baseName": "shopperInteraction", - "type": "DonationPaymentRequest.ShopperInteractionEnum", - "format": "" + "type": "DonationPaymentRequest.ShopperInteractionEnum" }, { "name": "shopperLocale", "baseName": "shopperLocale", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperName", "baseName": "shopperName", - "type": "Name | null", - "format": "" + "type": "Name | null" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "socialSecurityNumber", "baseName": "socialSecurityNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "telephoneNumber", "baseName": "telephoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDS2RequestData", "baseName": "threeDS2RequestData", - "type": "ThreeDS2RequestFields | null", - "format": "" + "type": "ThreeDS2RequestFields | null" }, { "name": "threeDSAuthenticationOnly", "baseName": "threeDSAuthenticationOnly", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return DonationPaymentRequest.attributeTypeMap; } - - public constructor() { - } } export namespace DonationPaymentRequest { diff --git a/src/typings/checkout/donationPaymentRequestPaymentMethod.ts b/src/typings/checkout/donationPaymentRequestPaymentMethod.ts deleted file mode 100644 index 221f75156..000000000 --- a/src/typings/checkout/donationPaymentRequestPaymentMethod.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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 { ApplePayDonations } from "./applePayDonations"; -import { CardDonations } from "./cardDonations"; -import { GooglePayDonations } from "./googlePayDonations"; -import { IdealDonations } from "./idealDonations"; -import { PayWithGoogleDonations } from "./payWithGoogleDonations"; - -/** -* The type and required details of a payment method to use. -*/ - - -/** - * @type DonationPaymentRequestPaymentMethod - * Type - * @export - */ -export type DonationPaymentRequestPaymentMethod = ApplePayDonations | CardDonations | GooglePayDonations | IdealDonations | PayWithGoogleDonations; - -/** -* @type DonationPaymentRequestPaymentMethodClass - * The type and required details of a payment method to use. -* @export -*/ -export class DonationPaymentRequestPaymentMethodClass { - - static readonly discriminator: string = "type"; - - static readonly mapping: {[index: string]: string} | undefined = undefined; -} diff --git a/src/typings/checkout/donationPaymentResponse.ts b/src/typings/checkout/donationPaymentResponse.ts index f4d9b69d5..84281bb59 100644 --- a/src/typings/checkout/donationPaymentResponse.ts +++ b/src/typings/checkout/donationPaymentResponse.ts @@ -7,88 +7,75 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { PaymentResponse } from "./paymentResponse"; - +import { Amount } from './amount'; +import { PaymentResponse } from './paymentResponse'; export class DonationPaymentResponse { - "amount"?: Amount | null; + 'amount'?: Amount | null; /** * The Adyen account name of your charity. We will provide you with this account name once your chosen charity has been [onboarded](https://docs.adyen.com/online-payments/donations#onboarding). */ - "donationAccount"?: string; + 'donationAccount'?: string; /** * Your unique resource identifier. */ - "id"?: string; + 'id'?: string; /** * The merchant account identifier, with which you want to process the transaction. */ - "merchantAccount"?: string; - "payment"?: PaymentResponse | null; + 'merchantAccount'?: string; + 'payment'?: PaymentResponse | null; /** * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ - "reference"?: string; + 'reference'?: string; /** * The status of the donation transaction. Possible values: * **completed** * **pending** * **refused** */ - "status"?: DonationPaymentResponse.StatusEnum; - - static readonly discriminator: string | undefined = undefined; + 'status'?: DonationPaymentResponse.StatusEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "donationAccount", "baseName": "donationAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "payment", "baseName": "payment", - "type": "PaymentResponse | null", - "format": "" + "type": "PaymentResponse | null" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "DonationPaymentResponse.StatusEnum", - "format": "" + "type": "DonationPaymentResponse.StatusEnum" } ]; static getAttributeTypeMap() { return DonationPaymentResponse.attributeTypeMap; } - - public constructor() { - } } export namespace DonationPaymentResponse { diff --git a/src/typings/checkout/dragonpayDetails.ts b/src/typings/checkout/dragonpayDetails.ts index 3c9f62d5a..f8212c4e4 100644 --- a/src/typings/checkout/dragonpayDetails.ts +++ b/src/typings/checkout/dragonpayDetails.ts @@ -12,63 +12,54 @@ export class DragonpayDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The Dragonpay issuer value of the shopper\'s selected bank. Set this to an **id** of a Dragonpay issuer to preselect it. */ - "issuer": string; + 'issuer': string; /** * The shopper’s email address. */ - "shopperEmail"?: string; + 'shopperEmail'?: string; /** * **dragonpay** */ - "type": DragonpayDetails.TypeEnum; + 'type': DragonpayDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuer", "baseName": "issuer", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperEmail", "baseName": "shopperEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "DragonpayDetails.TypeEnum", - "format": "" + "type": "DragonpayDetails.TypeEnum" } ]; static getAttributeTypeMap() { return DragonpayDetails.attributeTypeMap; } - - public constructor() { - } } export namespace DragonpayDetails { export enum TypeEnum { - DragonpayEbanking = 'dragonpay_ebanking', - DragonpayOtcBanking = 'dragonpay_otc_banking', - DragonpayOtcNonBanking = 'dragonpay_otc_non_banking', - DragonpayOtcPhilippines = 'dragonpay_otc_philippines' + Ebanking = 'dragonpay_ebanking', + OtcBanking = 'dragonpay_otc_banking', + OtcNonBanking = 'dragonpay_otc_non_banking', + OtcPhilippines = 'dragonpay_otc_philippines' } } diff --git a/src/typings/checkout/eBankingFinlandDetails.ts b/src/typings/checkout/eBankingFinlandDetails.ts index db64145ae..7d6108fd5 100644 --- a/src/typings/checkout/eBankingFinlandDetails.ts +++ b/src/typings/checkout/eBankingFinlandDetails.ts @@ -12,46 +12,38 @@ export class EBankingFinlandDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The Ebanking Finland issuer value of the shopper\'s selected bank. */ - "issuer"?: string; + 'issuer'?: string; /** * **ebanking_FI** */ - "type": EBankingFinlandDetails.TypeEnum; + 'type': EBankingFinlandDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuer", "baseName": "issuer", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "EBankingFinlandDetails.TypeEnum", - "format": "" + "type": "EBankingFinlandDetails.TypeEnum" } ]; static getAttributeTypeMap() { return EBankingFinlandDetails.attributeTypeMap; } - - public constructor() { - } } export namespace EBankingFinlandDetails { diff --git a/src/typings/checkout/econtextVoucherDetails.ts b/src/typings/checkout/econtextVoucherDetails.ts index ba082c1d8..46ddd81f7 100644 --- a/src/typings/checkout/econtextVoucherDetails.ts +++ b/src/typings/checkout/econtextVoucherDetails.ts @@ -12,76 +12,65 @@ export class EcontextVoucherDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The shopper\'s first name. */ - "firstName": string; + 'firstName': string; /** * The shopper\'s last name. */ - "lastName": string; + 'lastName': string; /** * The shopper\'s email. */ - "shopperEmail": string; + 'shopperEmail': string; /** * The shopper\'s contact number. It must have an international number format, for example **+31 20 779 1846**. Formats like **+31 (0)20 779 1846** or **0031 20 779 1846** are not accepted. */ - "telephoneNumber": string; + 'telephoneNumber': string; /** * **econtextvoucher** */ - "type": EcontextVoucherDetails.TypeEnum; + 'type': EcontextVoucherDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "firstName", "baseName": "firstName", - "type": "string", - "format": "" + "type": "string" }, { "name": "lastName", "baseName": "lastName", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperEmail", "baseName": "shopperEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "telephoneNumber", "baseName": "telephoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "EcontextVoucherDetails.TypeEnum", - "format": "" + "type": "EcontextVoucherDetails.TypeEnum" } ]; static getAttributeTypeMap() { return EcontextVoucherDetails.attributeTypeMap; } - - public constructor() { - } } export namespace EcontextVoucherDetails { diff --git a/src/typings/checkout/eftDetails.ts b/src/typings/checkout/eftDetails.ts index 6a66c03b7..30399a40c 100644 --- a/src/typings/checkout/eftDetails.ts +++ b/src/typings/checkout/eftDetails.ts @@ -12,99 +12,86 @@ export class EftDetails { /** * The bank account number (without separators). */ - "bankAccountNumber"?: string; + 'bankAccountNumber'?: string; /** * The financial institution code. */ - "bankCode"?: string; + 'bankCode'?: string; /** * The bank routing number of the account. */ - "bankLocationId"?: string; + 'bankLocationId'?: string; /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don\'t accept \'ø\'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don\'t match the required format, the response returns the error message: 203 \'Invalid bank account holder name\'. */ - "ownerName"?: string; + 'ownerName'?: 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; + 'recurringDetailReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * **eft** */ - "type"?: EftDetails.TypeEnum; + 'type'?: EftDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "bankAccountNumber", "baseName": "bankAccountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankCode", "baseName": "bankCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankLocationId", "baseName": "bankLocationId", - "type": "string", - "format": "" + "type": "string" }, { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "ownerName", "baseName": "ownerName", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "EftDetails.TypeEnum", - "format": "" + "type": "EftDetails.TypeEnum" } ]; static getAttributeTypeMap() { return EftDetails.attributeTypeMap; } - - public constructor() { - } } export namespace EftDetails { diff --git a/src/typings/checkout/encryptedOrderData.ts b/src/typings/checkout/encryptedOrderData.ts index 8565baded..c37b81bdc 100644 --- a/src/typings/checkout/encryptedOrderData.ts +++ b/src/typings/checkout/encryptedOrderData.ts @@ -12,35 +12,28 @@ export class EncryptedOrderData { /** * The encrypted order data. */ - "orderData": string; + 'orderData': string; /** * The `pspReference` that belongs to the order. */ - "pspReference": string; + 'pspReference': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "orderData", "baseName": "orderData", - "type": "string", - "format": "" + "type": "string" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return EncryptedOrderData.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/enhancedSchemeData.ts b/src/typings/checkout/enhancedSchemeData.ts index 200cac611..132b501db 100644 --- a/src/typings/checkout/enhancedSchemeData.ts +++ b/src/typings/checkout/enhancedSchemeData.ts @@ -7,29 +7,22 @@ * Do not edit this class manually. */ -import { Airline } from "./airline"; - +import { Airline } from './airline'; export class EnhancedSchemeData { - "airline"?: Airline | null; - - static readonly discriminator: string | undefined = undefined; + 'airline'?: Airline | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "airline", "baseName": "airline", - "type": "Airline | null", - "format": "" + "type": "Airline | null" } ]; static getAttributeTypeMap() { return EnhancedSchemeData.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/externalPlatform.ts b/src/typings/checkout/externalPlatform.ts index 39b0322e3..95572a8b2 100644 --- a/src/typings/checkout/externalPlatform.ts +++ b/src/typings/checkout/externalPlatform.ts @@ -12,45 +12,37 @@ export class ExternalPlatform { /** * External platform integrator. */ - "integrator"?: string; + 'integrator'?: string; /** * Name of the field. For example, Name of External Platform. */ - "name"?: string; + 'name'?: string; /** * Version of the field. For example, Version of External Platform. */ - "version"?: string; + 'version'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "integrator", "baseName": "integrator", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "version", "baseName": "version", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ExternalPlatform.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/fastlaneDetails.ts b/src/typings/checkout/fastlaneDetails.ts index 6cdcfd11e..bf733e80f 100644 --- a/src/typings/checkout/fastlaneDetails.ts +++ b/src/typings/checkout/fastlaneDetails.ts @@ -12,69 +12,59 @@ export class FastlaneDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The encoded fastlane data blob */ - "fastlaneData": string; + 'fastlaneData': 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; + 'recurringDetailReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * **fastlane** */ - "type": FastlaneDetails.TypeEnum; + 'type': FastlaneDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "fastlaneData", "baseName": "fastlaneData", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "FastlaneDetails.TypeEnum", - "format": "" + "type": "FastlaneDetails.TypeEnum" } ]; static getAttributeTypeMap() { return FastlaneDetails.attributeTypeMap; } - - public constructor() { - } } export namespace FastlaneDetails { diff --git a/src/typings/checkout/forexQuote.ts b/src/typings/checkout/forexQuote.ts index 7038fe6c3..9b4ccfcda 100644 --- a/src/typings/checkout/forexQuote.ts +++ b/src/typings/checkout/forexQuote.ts @@ -7,130 +7,112 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class ForexQuote { /** * The account name. */ - "account"?: string; + 'account'?: string; /** * The account type. */ - "accountType"?: string; - "baseAmount"?: Amount | null; + 'accountType'?: string; + 'baseAmount'?: Amount | null; /** * The base points. */ - "basePoints": number; - "buy"?: Amount | null; - "interbank"?: Amount | null; + 'basePoints': number; + 'buy'?: Amount | null; + 'interbank'?: Amount | null; /** * The reference assigned to the forex quote request. */ - "reference"?: string; - "sell"?: Amount | null; + 'reference'?: string; + 'sell'?: Amount | null; /** * The signature to validate the integrity. */ - "signature"?: string; + 'signature'?: string; /** * The source of the forex quote. */ - "source"?: string; + 'source'?: string; /** * The type of forex. */ - "type"?: string; + 'type'?: string; /** * The date until which the forex quote is valid. */ - "validTill": Date; - - static readonly discriminator: string | undefined = undefined; + 'validTill': Date; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "account", "baseName": "account", - "type": "string", - "format": "" + "type": "string" }, { "name": "accountType", "baseName": "accountType", - "type": "string", - "format": "" + "type": "string" }, { "name": "baseAmount", "baseName": "baseAmount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "basePoints", "baseName": "basePoints", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "buy", "baseName": "buy", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "interbank", "baseName": "interbank", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "sell", "baseName": "sell", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "signature", "baseName": "signature", - "type": "string", - "format": "" + "type": "string" }, { "name": "source", "baseName": "source", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" }, { "name": "validTill", "baseName": "validTill", - "type": "Date", - "format": "date-time" + "type": "Date" } ]; static getAttributeTypeMap() { return ForexQuote.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/fraudCheckResult.ts b/src/typings/checkout/fraudCheckResult.ts index 83ad502f7..1724f27f1 100644 --- a/src/typings/checkout/fraudCheckResult.ts +++ b/src/typings/checkout/fraudCheckResult.ts @@ -12,45 +12,37 @@ export class FraudCheckResult { /** * The fraud score generated by the risk check. */ - "accountScore": number; + 'accountScore': number; /** * The ID of the risk check. */ - "checkId": number; + 'checkId': number; /** * The name of the risk check. */ - "name": string; + 'name': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountScore", "baseName": "accountScore", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "checkId", "baseName": "checkId", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return FraudCheckResult.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/fraudResult.ts b/src/typings/checkout/fraudResult.ts index 76e7d1563..133ec42bc 100644 --- a/src/typings/checkout/fraudResult.ts +++ b/src/typings/checkout/fraudResult.ts @@ -7,42 +7,34 @@ * Do not edit this class manually. */ -import { FraudCheckResult } from "./fraudCheckResult"; - +import { FraudCheckResult } from './fraudCheckResult'; export class FraudResult { /** * The total fraud score generated by the risk checks. */ - "accountScore": number; + 'accountScore': number; /** * The result of the individual risk checks. */ - "results"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'results'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountScore", "baseName": "accountScore", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "results", "baseName": "results", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return FraudResult.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/fundOrigin.ts b/src/typings/checkout/fundOrigin.ts index 5eac06e20..b0854ca4c 100644 --- a/src/typings/checkout/fundOrigin.ts +++ b/src/typings/checkout/fundOrigin.ts @@ -7,67 +7,56 @@ * Do not edit this class manually. */ -import { Address } from "./address"; -import { Name } from "./name"; - +import { Address } from './address'; +import { Name } from './name'; export class FundOrigin { - "billingAddress"?: Address | null; + 'billingAddress'?: Address | null; /** * The email address of the person funding the money. */ - "shopperEmail"?: string; - "shopperName"?: Name | null; + 'shopperEmail'?: string; + 'shopperName'?: Name | null; /** * The phone number of the person funding the money. */ - "telephoneNumber"?: string; + 'telephoneNumber'?: string; /** * The unique identifier of the wallet where the funds are coming from. */ - "walletIdentifier"?: string; - - static readonly discriminator: string | undefined = undefined; + 'walletIdentifier'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "billingAddress", "baseName": "billingAddress", - "type": "Address | null", - "format": "" + "type": "Address | null" }, { "name": "shopperEmail", "baseName": "shopperEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperName", "baseName": "shopperName", - "type": "Name | null", - "format": "" + "type": "Name | null" }, { "name": "telephoneNumber", "baseName": "telephoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "walletIdentifier", "baseName": "walletIdentifier", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return FundOrigin.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/fundRecipient.ts b/src/typings/checkout/fundRecipient.ts index 762b16855..b5eb4df3e 100644 --- a/src/typings/checkout/fundRecipient.ts +++ b/src/typings/checkout/fundRecipient.ts @@ -7,134 +7,116 @@ * Do not edit this class manually. */ -import { Address } from "./address"; -import { CardDetails } from "./cardDetails"; -import { Name } from "./name"; -import { SubMerchant } from "./subMerchant"; - +import { Address } from './address'; +import { CardDetails } from './cardDetails'; +import { Name } from './name'; +import { SubMerchant } from './subMerchant'; export class FundRecipient { /** * The IBAN of the bank account where the funds are being transferred to. */ - "IBAN"?: string; - "billingAddress"?: Address | null; - "paymentMethod"?: CardDetails | null; + 'IBAN'?: string; + 'billingAddress'?: Address | null; + 'paymentMethod'?: CardDetails | null; /** * The email address of the shopper. */ - "shopperEmail"?: string; - "shopperName"?: Name | null; + 'shopperEmail'?: string; + 'shopperName'?: Name | null; /** * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ - "shopperReference"?: string; + 'shopperReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; - "subMerchant"?: SubMerchant | null; + 'storedPaymentMethodId'?: string; + 'subMerchant'?: SubMerchant | null; /** * The telephone number of the shopper. */ - "telephoneNumber"?: string; + 'telephoneNumber'?: string; /** * The unique identifier for the wallet the funds are being transferred to. You can use the shopper reference or any other identifier. */ - "walletIdentifier"?: string; + 'walletIdentifier'?: string; /** * The tax identifier of the person receiving the funds. */ - "walletOwnerTaxId"?: string; + 'walletOwnerTaxId'?: string; /** * The purpose of a digital wallet transaction. */ - "walletPurpose"?: FundRecipient.WalletPurposeEnum; - - static readonly discriminator: string | undefined = undefined; + 'walletPurpose'?: FundRecipient.WalletPurposeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "IBAN", "baseName": "IBAN", - "type": "string", - "format": "" + "type": "string" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "Address | null", - "format": "" + "type": "Address | null" }, { "name": "paymentMethod", "baseName": "paymentMethod", - "type": "CardDetails | null", - "format": "" + "type": "CardDetails | null" }, { "name": "shopperEmail", "baseName": "shopperEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperName", "baseName": "shopperName", - "type": "Name | null", - "format": "" + "type": "Name | null" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchant", "baseName": "subMerchant", - "type": "SubMerchant | null", - "format": "" + "type": "SubMerchant | null" }, { "name": "telephoneNumber", "baseName": "telephoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "walletIdentifier", "baseName": "walletIdentifier", - "type": "string", - "format": "" + "type": "string" }, { "name": "walletOwnerTaxId", "baseName": "walletOwnerTaxId", - "type": "string", - "format": "" + "type": "string" }, { "name": "walletPurpose", "baseName": "walletPurpose", - "type": "FundRecipient.WalletPurposeEnum", - "format": "" + "type": "FundRecipient.WalletPurposeEnum" } ]; static getAttributeTypeMap() { return FundRecipient.attributeTypeMap; } - - public constructor() { - } } export namespace FundRecipient { diff --git a/src/typings/checkout/genericIssuerPaymentMethodDetails.ts b/src/typings/checkout/genericIssuerPaymentMethodDetails.ts index 9f93f389f..9d1278680 100644 --- a/src/typings/checkout/genericIssuerPaymentMethodDetails.ts +++ b/src/typings/checkout/genericIssuerPaymentMethodDetails.ts @@ -12,69 +12,59 @@ export class GenericIssuerPaymentMethodDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The issuer id of the shopper\'s selected bank. */ - "issuer": string; + 'issuer': 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; + 'recurringDetailReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * **genericissuer** */ - "type": GenericIssuerPaymentMethodDetails.TypeEnum; + 'type': GenericIssuerPaymentMethodDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuer", "baseName": "issuer", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "GenericIssuerPaymentMethodDetails.TypeEnum", - "format": "" + "type": "GenericIssuerPaymentMethodDetails.TypeEnum" } ]; static getAttributeTypeMap() { return GenericIssuerPaymentMethodDetails.attributeTypeMap; } - - public constructor() { - } } export namespace GenericIssuerPaymentMethodDetails { diff --git a/src/typings/checkout/googlePayDetails.ts b/src/typings/checkout/googlePayDetails.ts index 91d6a6458..d58dc100f 100644 --- a/src/typings/checkout/googlePayDetails.ts +++ b/src/typings/checkout/googlePayDetails.ts @@ -12,99 +12,86 @@ export class GooglePayDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ - "fundingSource"?: GooglePayDetails.FundingSourceEnum; + 'fundingSource'?: GooglePayDetails.FundingSourceEnum; /** * The selected payment card network. */ - "googlePayCardNetwork"?: string; + 'googlePayCardNetwork'?: string; /** * The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. */ - "googlePayToken": string; + 'googlePayToken': 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; + 'recurringDetailReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. */ - "threeDS2SdkVersion"?: string; + 'threeDS2SdkVersion'?: string; /** * **googlepay**, **paywithgoogle** */ - "type"?: GooglePayDetails.TypeEnum; + 'type'?: GooglePayDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "fundingSource", "baseName": "fundingSource", - "type": "GooglePayDetails.FundingSourceEnum", - "format": "" + "type": "GooglePayDetails.FundingSourceEnum" }, { "name": "googlePayCardNetwork", "baseName": "googlePayCardNetwork", - "type": "string", - "format": "" + "type": "string" }, { "name": "googlePayToken", "baseName": "googlePayToken", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDS2SdkVersion", "baseName": "threeDS2SdkVersion", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "GooglePayDetails.TypeEnum", - "format": "" + "type": "GooglePayDetails.TypeEnum" } ]; static getAttributeTypeMap() { return GooglePayDetails.attributeTypeMap; } - - public constructor() { - } } export namespace GooglePayDetails { diff --git a/src/typings/checkout/googlePayDonations.ts b/src/typings/checkout/googlePayDonations.ts index c2a1c4ff4..8a47f3259 100644 --- a/src/typings/checkout/googlePayDonations.ts +++ b/src/typings/checkout/googlePayDonations.ts @@ -12,99 +12,86 @@ export class GooglePayDonations { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ - "fundingSource"?: GooglePayDonations.FundingSourceEnum; + 'fundingSource'?: GooglePayDonations.FundingSourceEnum; /** * The selected payment card network. */ - "googlePayCardNetwork"?: string; + 'googlePayCardNetwork'?: string; /** * The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. */ - "googlePayToken": string; + 'googlePayToken': 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; + 'recurringDetailReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. */ - "threeDS2SdkVersion"?: string; + 'threeDS2SdkVersion'?: string; /** * **googlepay**, **paywithgoogle** */ - "type"?: GooglePayDonations.TypeEnum; + 'type'?: GooglePayDonations.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "fundingSource", "baseName": "fundingSource", - "type": "GooglePayDonations.FundingSourceEnum", - "format": "" + "type": "GooglePayDonations.FundingSourceEnum" }, { "name": "googlePayCardNetwork", "baseName": "googlePayCardNetwork", - "type": "string", - "format": "" + "type": "string" }, { "name": "googlePayToken", "baseName": "googlePayToken", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDS2SdkVersion", "baseName": "threeDS2SdkVersion", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "GooglePayDonations.TypeEnum", - "format": "" + "type": "GooglePayDonations.TypeEnum" } ]; static getAttributeTypeMap() { return GooglePayDonations.attributeTypeMap; } - - public constructor() { - } } export namespace GooglePayDonations { diff --git a/src/typings/checkout/idealDetails.ts b/src/typings/checkout/idealDetails.ts index aa6fe29a6..5d7190dd3 100644 --- a/src/typings/checkout/idealDetails.ts +++ b/src/typings/checkout/idealDetails.ts @@ -12,69 +12,59 @@ export class IdealDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The iDEAL issuer value of the shopper\'s selected bank. Set this to an **id** of an iDEAL issuer to preselect it. */ - "issuer"?: string; + 'issuer'?: 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; + 'recurringDetailReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * **ideal** */ - "type"?: IdealDetails.TypeEnum; + 'type'?: IdealDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuer", "baseName": "issuer", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "IdealDetails.TypeEnum", - "format": "" + "type": "IdealDetails.TypeEnum" } ]; static getAttributeTypeMap() { return IdealDetails.attributeTypeMap; } - - public constructor() { - } } export namespace IdealDetails { diff --git a/src/typings/checkout/idealDonations.ts b/src/typings/checkout/idealDonations.ts index 233c340c3..fb8f13554 100644 --- a/src/typings/checkout/idealDonations.ts +++ b/src/typings/checkout/idealDonations.ts @@ -12,69 +12,59 @@ export class IdealDonations { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The iDEAL issuer value of the shopper\'s selected bank. Set this to an **id** of an iDEAL issuer to preselect it. */ - "issuer"?: string; + 'issuer'?: 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; + 'recurringDetailReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * **ideal** */ - "type"?: IdealDonations.TypeEnum; + 'type'?: IdealDonations.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuer", "baseName": "issuer", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "IdealDonations.TypeEnum", - "format": "" + "type": "IdealDonations.TypeEnum" } ]; static getAttributeTypeMap() { return IdealDonations.attributeTypeMap; } - - public constructor() { - } } export namespace IdealDonations { diff --git a/src/typings/checkout/inputDetail.ts b/src/typings/checkout/inputDetail.ts index ec4b5b68a..39e220324 100644 --- a/src/typings/checkout/inputDetail.ts +++ b/src/typings/checkout/inputDetail.ts @@ -7,115 +7,100 @@ * Do not edit this class manually. */ -import { Item } from "./item"; -import { SubInputDetail } from "./subInputDetail"; - +import { Item } from './item'; +import { SubInputDetail } from './subInputDetail'; export class InputDetail { /** * Configuration parameters for the required input. */ - "configuration"?: { [key: string]: string; }; + 'configuration'?: { [key: string]: string; }; /** * Input details can also be provided recursively. */ - "details"?: Array; + 'details'?: Array; /** * Input details can also be provided recursively (deprecated). * * @deprecated */ - "inputDetails"?: Array; + 'inputDetails'?: Array; /** * In case of a select, the URL from which to query the items. */ - "itemSearchUrl"?: string; + 'itemSearchUrl'?: string; /** * In case of a select, the items to choose from. */ - "items"?: Array; + 'items'?: Array; /** * The value to provide in the result. */ - "key"?: string; + 'key'?: string; /** * True if this input value is optional. */ - "optional"?: boolean; + 'optional'?: boolean; /** * The type of the required input. */ - "type"?: string; + 'type'?: string; /** * The value can be pre-filled, if available. */ - "value"?: string; - - static readonly discriminator: string | undefined = undefined; + 'value'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "configuration", "baseName": "configuration", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "details", "baseName": "details", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "inputDetails", "baseName": "inputDetails", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "itemSearchUrl", "baseName": "itemSearchUrl", - "type": "string", - "format": "" + "type": "string" }, { "name": "items", "baseName": "items", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "key", "baseName": "key", - "type": "string", - "format": "" + "type": "string" }, { "name": "optional", "baseName": "optional", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return InputDetail.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/installmentOption.ts b/src/typings/checkout/installmentOption.ts index e3fbac85d..17bc28e0e 100644 --- a/src/typings/checkout/installmentOption.ts +++ b/src/typings/checkout/installmentOption.ts @@ -12,56 +12,47 @@ export class InstallmentOption { /** * The maximum number of installments offered for this payment method. */ - "maxValue"?: number; + 'maxValue'?: number; /** * Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving** */ - "plans"?: Array; + 'plans'?: Array; /** * Preselected number of installments offered for this payment method. */ - "preselectedValue"?: number; + 'preselectedValue'?: number; /** * An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. */ - "values"?: Array; + 'values'?: Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "maxValue", "baseName": "maxValue", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "plans", "baseName": "plans", - "type": "InstallmentOption.PlansEnum", - "format": "" + "type": "Array" }, { "name": "preselectedValue", "baseName": "preselectedValue", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "values", "baseName": "values", - "type": "Array", - "format": "int32" + "type": "Array" } ]; static getAttributeTypeMap() { return InstallmentOption.attributeTypeMap; } - - public constructor() { - } } export namespace InstallmentOption { diff --git a/src/typings/checkout/installments.ts b/src/typings/checkout/installments.ts index 8ebd7909b..424ce11fb 100644 --- a/src/typings/checkout/installments.ts +++ b/src/typings/checkout/installments.ts @@ -12,46 +12,38 @@ export class Installments { /** * Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. Used for [card installments in Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) */ - "extra"?: number; + 'extra'?: number; /** * The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. */ - "plan"?: Installments.PlanEnum; + 'plan'?: Installments.PlanEnum; /** * Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico. */ - "value": number; + 'value': number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "extra", "baseName": "extra", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "plan", "baseName": "plan", - "type": "Installments.PlanEnum", - "format": "" + "type": "Installments.PlanEnum" }, { "name": "value", "baseName": "value", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return Installments.attributeTypeMap; } - - public constructor() { - } } export namespace Installments { diff --git a/src/typings/checkout/item.ts b/src/typings/checkout/item.ts index ccdc1eb90..47443226c 100644 --- a/src/typings/checkout/item.ts +++ b/src/typings/checkout/item.ts @@ -12,35 +12,28 @@ export class Item { /** * The value to provide in the result. */ - "id"?: string; + 'id'?: string; /** * The display name. */ - "name"?: string; + 'name'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Item.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/klarnaDetails.ts b/src/typings/checkout/klarnaDetails.ts index 86837ab1b..7f02bcd5e 100644 --- a/src/typings/checkout/klarnaDetails.ts +++ b/src/typings/checkout/klarnaDetails.ts @@ -12,99 +12,86 @@ export class KlarnaDetails { /** * The address where to send the invoice. */ - "billingAddress"?: string; + 'billingAddress'?: string; /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The address where the goods should be delivered. */ - "deliveryAddress"?: string; + 'deliveryAddress'?: string; /** * Shopper name, date of birth, phone number, and email address. */ - "personalDetails"?: string; + 'personalDetails'?: 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; + 'recurringDetailReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * The type of flow to initiate. */ - "subtype"?: string; + 'subtype'?: string; /** * **klarna** */ - "type": KlarnaDetails.TypeEnum; + 'type': KlarnaDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "billingAddress", "baseName": "billingAddress", - "type": "string", - "format": "" + "type": "string" }, { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "deliveryAddress", "baseName": "deliveryAddress", - "type": "string", - "format": "" + "type": "string" }, { "name": "personalDetails", "baseName": "personalDetails", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "subtype", "baseName": "subtype", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "KlarnaDetails.TypeEnum", - "format": "" + "type": "KlarnaDetails.TypeEnum" } ]; static getAttributeTypeMap() { return KlarnaDetails.attributeTypeMap; } - - public constructor() { - } } export namespace KlarnaDetails { diff --git a/src/typings/checkout/leg.ts b/src/typings/checkout/leg.ts index 6952f1d6a..9a143a6be 100644 --- a/src/typings/checkout/leg.ts +++ b/src/typings/checkout/leg.ts @@ -12,105 +12,91 @@ export class Leg { /** * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ - "carrierCode"?: string; + 'carrierCode'?: string; /** * A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not start with a space or be all spaces. * Must not be all zeros. */ - "classOfTravel"?: string; + 'classOfTravel'?: string; /** * Date and time of travel in format `yyyy-MM-ddTHH:mm`. * Use local time of departure airport. * minLength: 16 characters * maxLength: 16 characters */ - "dateOfTravel"?: Date; + 'dateOfTravel'?: Date; /** * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ - "departureAirportCode"?: string; + 'departureAirportCode'?: string; /** * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 11 * Must not be all zeros. */ - "departureTax"?: number; + 'departureTax'?: number; /** * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ - "destinationAirportCode"?: string; + 'destinationAirportCode'?: string; /** * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 6 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ - "fareBasisCode"?: string; + 'fareBasisCode'?: string; /** * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ - "flightNumber"?: string; + 'flightNumber'?: string; /** * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character */ - "stopOverCode"?: string; + 'stopOverCode'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "carrierCode", "baseName": "carrierCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "classOfTravel", "baseName": "classOfTravel", - "type": "string", - "format": "" + "type": "string" }, { "name": "dateOfTravel", "baseName": "dateOfTravel", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "departureAirportCode", "baseName": "departureAirportCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "departureTax", "baseName": "departureTax", - "type": "number", - "format": "int64" + "type": "number" }, { "name": "destinationAirportCode", "baseName": "destinationAirportCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "fareBasisCode", "baseName": "fareBasisCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "flightNumber", "baseName": "flightNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "stopOverCode", "baseName": "stopOverCode", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Leg.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/lineItem.ts b/src/typings/checkout/lineItem.ts index 75a51afb0..b13ef4ee3 100644 --- a/src/typings/checkout/lineItem.ts +++ b/src/typings/checkout/lineItem.ts @@ -12,195 +12,172 @@ export class LineItem { /** * Item amount excluding the tax, in minor units. */ - "amountExcludingTax"?: number; + 'amountExcludingTax'?: number; /** * Item amount including the tax, in minor units. */ - "amountIncludingTax"?: number; + 'amountIncludingTax'?: number; /** * Brand of the item. */ - "brand"?: string; + 'brand'?: string; /** * Color of the item. */ - "color"?: string; + 'color'?: string; /** * Description of the line item. */ - "description"?: string; + 'description'?: string; /** * ID of the line item. */ - "id"?: string; + 'id'?: string; /** * Link to the picture of the purchased item. */ - "imageUrl"?: string; + 'imageUrl'?: string; /** * Item category, used by the payment methods PayPal and Ratepay. */ - "itemCategory"?: string; + 'itemCategory'?: string; /** * Manufacturer of the item. */ - "manufacturer"?: string; + 'manufacturer'?: string; /** * Marketplace seller id. */ - "marketplaceSellerId"?: string; + 'marketplaceSellerId'?: string; /** * Link to the purchased item. */ - "productUrl"?: string; + 'productUrl'?: string; /** * Number of items. */ - "quantity"?: number; + 'quantity'?: number; /** * Email associated with the given product in the basket (usually in electronic gift cards). */ - "receiverEmail"?: string; + 'receiverEmail'?: string; /** * Size of the item. */ - "size"?: string; + 'size'?: string; /** * Stock keeping unit. */ - "sku"?: string; + 'sku'?: string; /** * Tax amount, in minor units. */ - "taxAmount"?: number; + 'taxAmount'?: number; /** * Tax percentage, in minor units. */ - "taxPercentage"?: number; + 'taxPercentage'?: number; /** * Universal Product Code. */ - "upc"?: string; + 'upc'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amountExcludingTax", "baseName": "amountExcludingTax", - "type": "number", - "format": "int64" + "type": "number" }, { "name": "amountIncludingTax", "baseName": "amountIncludingTax", - "type": "number", - "format": "int64" + "type": "number" }, { "name": "brand", "baseName": "brand", - "type": "string", - "format": "" + "type": "string" }, { "name": "color", "baseName": "color", - "type": "string", - "format": "" + "type": "string" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "imageUrl", "baseName": "imageUrl", - "type": "string", - "format": "" + "type": "string" }, { "name": "itemCategory", "baseName": "itemCategory", - "type": "string", - "format": "" + "type": "string" }, { "name": "manufacturer", "baseName": "manufacturer", - "type": "string", - "format": "" + "type": "string" }, { "name": "marketplaceSellerId", "baseName": "marketplaceSellerId", - "type": "string", - "format": "" + "type": "string" }, { "name": "productUrl", "baseName": "productUrl", - "type": "string", - "format": "" + "type": "string" }, { "name": "quantity", "baseName": "quantity", - "type": "number", - "format": "int64" + "type": "number" }, { "name": "receiverEmail", "baseName": "receiverEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "size", "baseName": "size", - "type": "string", - "format": "" + "type": "string" }, { "name": "sku", "baseName": "sku", - "type": "string", - "format": "" + "type": "string" }, { "name": "taxAmount", "baseName": "taxAmount", - "type": "number", - "format": "int64" + "type": "number" }, { "name": "taxPercentage", "baseName": "taxPercentage", - "type": "number", - "format": "int64" + "type": "number" }, { "name": "upc", "baseName": "upc", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return LineItem.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/listStoredPaymentMethodsResponse.ts b/src/typings/checkout/listStoredPaymentMethodsResponse.ts index c9bb8d92e..2d6ebd695 100644 --- a/src/typings/checkout/listStoredPaymentMethodsResponse.ts +++ b/src/typings/checkout/listStoredPaymentMethodsResponse.ts @@ -7,52 +7,43 @@ * Do not edit this class manually. */ -import { StoredPaymentMethodResource } from "./storedPaymentMethodResource"; - +import { StoredPaymentMethodResource } from './storedPaymentMethodResource'; export class ListStoredPaymentMethodsResponse { /** * Your merchant account. */ - "merchantAccount"?: string; + 'merchantAccount'?: string; /** * Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. */ - "shopperReference"?: string; + 'shopperReference'?: string; /** * List of all stored payment methods. */ - "storedPaymentMethods"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'storedPaymentMethods'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethods", "baseName": "storedPaymentMethods", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return ListStoredPaymentMethodsResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/mandate.ts b/src/typings/checkout/mandate.ts index 3a326f3b4..82887eff6 100644 --- a/src/typings/checkout/mandate.ts +++ b/src/typings/checkout/mandate.ts @@ -12,106 +12,92 @@ export class Mandate { /** * The billing amount (in minor units) of the recurring transactions. */ - "amount": string; + '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"?: Mandate.AmountRuleEnum; + 'amountRule'?: Mandate.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"?: Mandate.BillingAttemptsRuleEnum; + 'billingAttemptsRule'?: Mandate.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; + 'billingDay'?: string; /** * The number of transactions that can be performed within the given frequency. */ - "count"?: string; + 'count'?: string; /** * End date of the billing plan, in YYYY-MM-DD format. */ - "endsAt": string; + 'endsAt': string; /** * The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. */ - "frequency": Mandate.FrequencyEnum; + 'frequency': Mandate.FrequencyEnum; /** * The message shown by UPI to the shopper on the approval screen. */ - "remarks"?: string; + 'remarks'?: string; /** * Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. */ - "startsAt"?: string; + 'startsAt'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "string", - "format": "" + "type": "string" }, { "name": "amountRule", "baseName": "amountRule", - "type": "Mandate.AmountRuleEnum", - "format": "" + "type": "Mandate.AmountRuleEnum" }, { "name": "billingAttemptsRule", "baseName": "billingAttemptsRule", - "type": "Mandate.BillingAttemptsRuleEnum", - "format": "" + "type": "Mandate.BillingAttemptsRuleEnum" }, { "name": "billingDay", "baseName": "billingDay", - "type": "string", - "format": "" + "type": "string" }, { "name": "count", "baseName": "count", - "type": "string", - "format": "" + "type": "string" }, { "name": "endsAt", "baseName": "endsAt", - "type": "string", - "format": "" + "type": "string" }, { "name": "frequency", "baseName": "frequency", - "type": "Mandate.FrequencyEnum", - "format": "" + "type": "Mandate.FrequencyEnum" }, { "name": "remarks", "baseName": "remarks", - "type": "string", - "format": "" + "type": "string" }, { "name": "startsAt", "baseName": "startsAt", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Mandate.attributeTypeMap; } - - public constructor() { - } } export namespace Mandate { diff --git a/src/typings/checkout/masterpassDetails.ts b/src/typings/checkout/masterpassDetails.ts index 76484c46f..916ca134a 100644 --- a/src/typings/checkout/masterpassDetails.ts +++ b/src/typings/checkout/masterpassDetails.ts @@ -12,56 +12,47 @@ export class MasterpassDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ - "fundingSource"?: MasterpassDetails.FundingSourceEnum; + 'fundingSource'?: MasterpassDetails.FundingSourceEnum; /** * The Masterpass transaction ID. */ - "masterpassTransactionId": string; + 'masterpassTransactionId': string; /** * **masterpass** */ - "type"?: MasterpassDetails.TypeEnum; + 'type'?: MasterpassDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "fundingSource", "baseName": "fundingSource", - "type": "MasterpassDetails.FundingSourceEnum", - "format": "" + "type": "MasterpassDetails.FundingSourceEnum" }, { "name": "masterpassTransactionId", "baseName": "masterpassTransactionId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "MasterpassDetails.TypeEnum", - "format": "" + "type": "MasterpassDetails.TypeEnum" } ]; static getAttributeTypeMap() { return MasterpassDetails.attributeTypeMap; } - - public constructor() { - } } export namespace MasterpassDetails { diff --git a/src/typings/checkout/mbwayDetails.ts b/src/typings/checkout/mbwayDetails.ts index 17b6cf95b..79141f4c9 100644 --- a/src/typings/checkout/mbwayDetails.ts +++ b/src/typings/checkout/mbwayDetails.ts @@ -12,56 +12,41 @@ export class MbwayDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; - /** - * - */ - "shopperEmail": string; - /** - * - */ - "telephoneNumber": string; + 'checkoutAttemptId'?: string; + 'shopperEmail': string; + 'telephoneNumber': string; /** * **mbway** */ - "type"?: MbwayDetails.TypeEnum; + 'type'?: MbwayDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperEmail", "baseName": "shopperEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "telephoneNumber", "baseName": "telephoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "MbwayDetails.TypeEnum", - "format": "" + "type": "MbwayDetails.TypeEnum" } ]; static getAttributeTypeMap() { return MbwayDetails.attributeTypeMap; } - - public constructor() { - } } export namespace MbwayDetails { diff --git a/src/typings/checkout/merchantDevice.ts b/src/typings/checkout/merchantDevice.ts index 1dc616190..a66847403 100644 --- a/src/typings/checkout/merchantDevice.ts +++ b/src/typings/checkout/merchantDevice.ts @@ -12,45 +12,37 @@ export class MerchantDevice { /** * Operating system running on the merchant device. */ - "os"?: string; + 'os'?: string; /** * Version of the operating system on the merchant device. */ - "osVersion"?: string; + 'osVersion'?: string; /** * Merchant device reference. */ - "reference"?: string; + 'reference'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "os", "baseName": "os", - "type": "string", - "format": "" + "type": "string" }, { "name": "osVersion", "baseName": "osVersion", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return MerchantDevice.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/merchantRiskIndicator.ts b/src/typings/checkout/merchantRiskIndicator.ts index 9d1554ccc..2d698d520 100644 --- a/src/typings/checkout/merchantRiskIndicator.ts +++ b/src/typings/checkout/merchantRiskIndicator.ts @@ -7,163 +7,143 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class MerchantRiskIndicator { /** * Whether the chosen delivery address is identical to the billing address. */ - "addressMatch"?: boolean; + 'addressMatch'?: boolean; /** * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` */ - "deliveryAddressIndicator"?: MerchantRiskIndicator.DeliveryAddressIndicatorEnum; + 'deliveryAddressIndicator'?: MerchantRiskIndicator.DeliveryAddressIndicatorEnum; /** * The delivery email address (for digital goods). * * @deprecated since Adyen Checkout API v68 * Use `deliveryEmailAddress` instead. */ - "deliveryEmail"?: string; + 'deliveryEmail'?: string; /** * For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters. */ - "deliveryEmailAddress"?: string; + 'deliveryEmailAddress'?: string; /** * The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` */ - "deliveryTimeframe"?: MerchantRiskIndicator.DeliveryTimeframeEnum; - "giftCardAmount"?: Amount | null; + 'deliveryTimeframe'?: MerchantRiskIndicator.DeliveryTimeframeEnum; + 'giftCardAmount'?: Amount | null; /** * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. */ - "giftCardCount"?: number; + 'giftCardCount'?: number; /** * For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification. */ - "giftCardCurr"?: string; + 'giftCardCurr'?: string; /** * For pre-order purchases, the expected date this product will be available to the shopper. */ - "preOrderDate"?: Date; + 'preOrderDate'?: Date; /** * Indicator for whether this transaction is for pre-ordering a product. */ - "preOrderPurchase"?: boolean; + 'preOrderPurchase'?: boolean; /** * Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. */ - "preOrderPurchaseInd"?: string; + 'preOrderPurchaseInd'?: string; /** * Indicator for whether the shopper has already purchased the same items in the past. */ - "reorderItems"?: boolean; + 'reorderItems'?: boolean; /** * Indicates whether the cardholder is reordering previously purchased merchandise. */ - "reorderItemsInd"?: string; + 'reorderItemsInd'?: string; /** * Indicates shipping method chosen for the transaction. */ - "shipIndicator"?: string; - - static readonly discriminator: string | undefined = undefined; + 'shipIndicator'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "addressMatch", "baseName": "addressMatch", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "deliveryAddressIndicator", "baseName": "deliveryAddressIndicator", - "type": "MerchantRiskIndicator.DeliveryAddressIndicatorEnum", - "format": "" + "type": "MerchantRiskIndicator.DeliveryAddressIndicatorEnum" }, { "name": "deliveryEmail", "baseName": "deliveryEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "deliveryEmailAddress", "baseName": "deliveryEmailAddress", - "type": "string", - "format": "" + "type": "string" }, { "name": "deliveryTimeframe", "baseName": "deliveryTimeframe", - "type": "MerchantRiskIndicator.DeliveryTimeframeEnum", - "format": "" + "type": "MerchantRiskIndicator.DeliveryTimeframeEnum" }, { "name": "giftCardAmount", "baseName": "giftCardAmount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "giftCardCount", "baseName": "giftCardCount", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "giftCardCurr", "baseName": "giftCardCurr", - "type": "string", - "format": "" + "type": "string" }, { "name": "preOrderDate", "baseName": "preOrderDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "preOrderPurchase", "baseName": "preOrderPurchase", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "preOrderPurchaseInd", "baseName": "preOrderPurchaseInd", - "type": "string", - "format": "" + "type": "string" }, { "name": "reorderItems", "baseName": "reorderItems", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "reorderItemsInd", "baseName": "reorderItemsInd", - "type": "string", - "format": "" + "type": "string" }, { "name": "shipIndicator", "baseName": "shipIndicator", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return MerchantRiskIndicator.attributeTypeMap; } - - public constructor() { - } } export namespace MerchantRiskIndicator { diff --git a/src/typings/checkout/mobilePayDetails.ts b/src/typings/checkout/mobilePayDetails.ts index cb322006e..f5d4fd566 100644 --- a/src/typings/checkout/mobilePayDetails.ts +++ b/src/typings/checkout/mobilePayDetails.ts @@ -12,36 +12,29 @@ export class MobilePayDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * **mobilepay** */ - "type"?: MobilePayDetails.TypeEnum; + 'type'?: MobilePayDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "MobilePayDetails.TypeEnum", - "format": "" + "type": "MobilePayDetails.TypeEnum" } ]; static getAttributeTypeMap() { return MobilePayDetails.attributeTypeMap; } - - public constructor() { - } } export namespace MobilePayDetails { diff --git a/src/typings/checkout/models.ts b/src/typings/checkout/models.ts index ee0d6f7e0..9e3584ac4 100644 --- a/src/typings/checkout/models.ts +++ b/src/typings/checkout/models.ts @@ -1,218 +1,977 @@ -export * from "./accountInfo" -export * from "./acctInfo" -export * from "./achDetails" -export * from "./additionalData3DSecure" -export * from "./additionalDataAirline" -export * from "./additionalDataCarRental" -export * from "./additionalDataCommon" -export * from "./additionalDataLevel23" -export * from "./additionalDataLodging" -export * from "./additionalDataOpenInvoice" -export * from "./additionalDataOpi" -export * from "./additionalDataRatepay" -export * from "./additionalDataRetry" -export * from "./additionalDataRisk" -export * from "./additionalDataRiskStandalone" -export * from "./additionalDataSubMerchant" -export * from "./additionalDataTemporaryServices" -export * from "./additionalDataWallets" -export * from "./address" -export * from "./affirmDetails" -export * from "./afterpayDetails" -export * from "./agency" -export * from "./airline" -export * from "./amazonPayDetails" -export * from "./amount" -export * from "./amounts" -export * from "./ancvDetails" -export * from "./androidPayDetails" -export * from "./applePayDetails" -export * from "./applePayDonations" -export * from "./applePaySessionRequest" -export * from "./applePaySessionResponse" -export * from "./applicationInfo" -export * from "./authenticationData" -export * from "./bacsDirectDebitDetails" -export * from "./balanceCheckRequest" -export * from "./balanceCheckResponse" -export * from "./billDeskDetails" -export * from "./billingAddress" -export * from "./blikDetails" -export * from "./browserInfo" -export * from "./cancelOrderRequest" -export * from "./cancelOrderResponse" -export * from "./cardBrandDetails" -export * from "./cardDetails" -export * from "./cardDetailsRequest" -export * from "./cardDetailsResponse" -export * from "./cardDonations" -export * from "./cashAppDetails" -export * from "./cellulantDetails" -export * from "./checkoutAwaitAction" -export * from "./checkoutBankAccount" -export * from "./checkoutBankTransferAction" -export * from "./checkoutDelegatedAuthenticationAction" -export * from "./checkoutNativeRedirectAction" -export * from "./checkoutOrderResponse" -export * from "./checkoutQrCodeAction" -export * from "./checkoutRedirectAction" -export * from "./checkoutSDKAction" -export * from "./checkoutSessionInstallmentOption" -export * from "./checkoutSessionThreeDS2RequestData" -export * from "./checkoutThreeDS2Action" -export * from "./checkoutVoucherAction" -export * from "./commonField" -export * from "./company" -export * from "./createCheckoutSessionRequest" -export * from "./createCheckoutSessionResponse" -export * from "./createOrderRequest" -export * from "./createOrderResponse" -export * from "./deliveryAddress" -export * from "./deliveryMethod" -export * from "./detailsRequestAuthenticationData" -export * from "./deviceRenderOptions" -export * from "./dokuDetails" -export * from "./donation" -export * from "./donationCampaign" -export * from "./donationCampaignsRequest" -export * from "./donationCampaignsResponse" -export * from "./donationPaymentRequest" -export * from "./donationPaymentRequestPaymentMethod" -export * from "./donationPaymentResponse" -export * from "./dragonpayDetails" -export * from "./eBankingFinlandDetails" -export * from "./econtextVoucherDetails" -export * from "./eftDetails" -export * from "./encryptedOrderData" -export * from "./enhancedSchemeData" -export * from "./externalPlatform" -export * from "./fastlaneDetails" -export * from "./forexQuote" -export * from "./fraudCheckResult" -export * from "./fraudResult" -export * from "./fundOrigin" -export * from "./fundRecipient" -export * from "./genericIssuerPaymentMethodDetails" -export * from "./googlePayDetails" -export * from "./googlePayDonations" -export * from "./idealDetails" -export * from "./idealDonations" -export * from "./inputDetail" -export * from "./installmentOption" -export * from "./installments" -export * from "./item" -export * from "./klarnaDetails" -export * from "./leg" -export * from "./lineItem" -export * from "./listStoredPaymentMethodsResponse" -export * from "./mandate" -export * from "./masterpassDetails" -export * from "./mbwayDetails" -export * from "./merchantDevice" -export * from "./merchantRiskIndicator" -export * from "./mobilePayDetails" -export * from "./molPayDetails" -export * from "./name" -export * from "./openInvoiceDetails" -export * from "./passenger" -export * from "./payByBankAISDirectDebitDetails" -export * from "./payByBankDetails" -export * from "./payPalDetails" -export * from "./payPayDetails" -export * from "./payToDetails" -export * from "./payUUpiDetails" -export * from "./payWithGoogleDetails" -export * from "./payWithGoogleDonations" -export * from "./payment" -export * from "./paymentAmountUpdateRequest" -export * from "./paymentAmountUpdateResponse" -export * from "./paymentCancelRequest" -export * from "./paymentCancelResponse" -export * from "./paymentCaptureRequest" -export * from "./paymentCaptureResponse" -export * from "./paymentCompletionDetails" -export * from "./paymentDetails" -export * from "./paymentDetailsRequest" -export * from "./paymentDetailsResponse" -export * from "./paymentLinkRequest" -export * from "./paymentLinkResponse" -export * from "./paymentMethod" -export * from "./paymentMethodGroup" -export * from "./paymentMethodIssuer" -export * from "./paymentMethodToStore" -export * from "./paymentMethodUPIApps" -export * from "./paymentMethodsRequest" -export * from "./paymentMethodsResponse" -export * from "./paymentRefundRequest" -export * from "./paymentRefundResponse" -export * from "./paymentRequest" -export * from "./paymentRequestPaymentMethod" -export * from "./paymentResponse" -export * from "./paymentResponseAction" -export * from "./paymentReversalRequest" -export * from "./paymentReversalResponse" -export * from "./paypalUpdateOrderRequest" -export * from "./paypalUpdateOrderResponse" -export * from "./phone" -export * from "./pixDetails" -export * from "./pixRecurring" -export * from "./platformChargebackLogic" -export * from "./pseDetails" -export * from "./rakutenPayDetails" -export * from "./ratepayDetails" -export * from "./recurring" -export * from "./responseAdditionalData3DSecure" -export * from "./responseAdditionalDataBillingAddress" -export * from "./responseAdditionalDataCard" -export * from "./responseAdditionalDataCommon" -export * from "./responseAdditionalDataDomesticError" -export * from "./responseAdditionalDataInstallments" -export * from "./responseAdditionalDataNetworkTokens" -export * from "./responseAdditionalDataOpi" -export * from "./responseAdditionalDataSepa" -export * from "./responsePaymentMethod" -export * from "./riskData" -export * from "./rivertyDetails" -export * from "./sDKEphemPubKey" -export * from "./samsungPayDetails" -export * from "./sepaDirectDebitDetails" -export * from "./serviceError" -export * from "./sessionResultResponse" -export * from "./shopperInteractionDevice" -export * from "./split" -export * from "./splitAmount" -export * from "./standalonePaymentCancelRequest" -export * from "./standalonePaymentCancelResponse" -export * from "./storedPaymentMethod" -export * from "./storedPaymentMethodDetails" -export * from "./storedPaymentMethodRequest" -export * from "./storedPaymentMethodResource" -export * from "./subInputDetail" -export * from "./subMerchant" -export * from "./subMerchantInfo" -export * from "./surcharge" -export * from "./taxTotal" -export * from "./threeDS2RequestData" -export * from "./threeDS2RequestFields" -export * from "./threeDS2ResponseData" -export * from "./threeDS2Result" -export * from "./threeDSRequestData" -export * from "./threeDSRequestorAuthenticationInfo" -export * from "./threeDSRequestorPriorAuthenticationInfo" -export * from "./threeDSecureData" -export * from "./ticket" -export * from "./travelAgency" -export * from "./twintDetails" -export * from "./updatePaymentLinkRequest" -export * from "./upiCollectDetails" -export * from "./upiIntentDetails" -export * from "./utilityRequest" -export * from "./utilityResponse" -export * from "./vippsDetails" -export * from "./visaCheckoutDetails" -export * from "./weChatPayDetails" -export * from "./weChatPayMiniProgramDetails" -export * from "./zipDetails" +/* + * 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. + */ -// serializing and deserializing typed objects -export * from "./objectSerializer" \ No newline at end of file + +export * from './accountInfo'; +export * from './acctInfo'; +export * from './achDetails'; +export * from './additionalData3DSecure'; +export * from './additionalDataAirline'; +export * from './additionalDataCarRental'; +export * from './additionalDataCommon'; +export * from './additionalDataLevel23'; +export * from './additionalDataLodging'; +export * from './additionalDataOpenInvoice'; +export * from './additionalDataOpi'; +export * from './additionalDataRatepay'; +export * from './additionalDataRetry'; +export * from './additionalDataRisk'; +export * from './additionalDataRiskStandalone'; +export * from './additionalDataSubMerchant'; +export * from './additionalDataTemporaryServices'; +export * from './additionalDataWallets'; +export * from './address'; +export * from './affirmDetails'; +export * from './afterpayDetails'; +export * from './agency'; +export * from './airline'; +export * from './amazonPayDetails'; +export * from './amount'; +export * from './amounts'; +export * from './ancvDetails'; +export * from './androidPayDetails'; +export * from './applePayDetails'; +export * from './applePayDonations'; +export * from './applePaySessionRequest'; +export * from './applePaySessionResponse'; +export * from './applicationInfo'; +export * from './authenticationData'; +export * from './bacsDirectDebitDetails'; +export * from './balanceCheckRequest'; +export * from './balanceCheckResponse'; +export * from './billDeskDetails'; +export * from './billingAddress'; +export * from './blikDetails'; +export * from './browserInfo'; +export * from './cancelOrderRequest'; +export * from './cancelOrderResponse'; +export * from './cardBrandDetails'; +export * from './cardDetails'; +export * from './cardDetailsRequest'; +export * from './cardDetailsResponse'; +export * from './cardDonations'; +export * from './cashAppDetails'; +export * from './cellulantDetails'; +export * from './checkoutAwaitAction'; +export * from './checkoutBankAccount'; +export * from './checkoutBankTransferAction'; +export * from './checkoutDelegatedAuthenticationAction'; +export * from './checkoutNativeRedirectAction'; +export * from './checkoutOrderResponse'; +export * from './checkoutQrCodeAction'; +export * from './checkoutRedirectAction'; +export * from './checkoutSDKAction'; +export * from './checkoutSessionInstallmentOption'; +export * from './checkoutSessionThreeDS2RequestData'; +export * from './checkoutThreeDS2Action'; +export * from './checkoutVoucherAction'; +export * from './commonField'; +export * from './company'; +export * from './createCheckoutSessionRequest'; +export * from './createCheckoutSessionResponse'; +export * from './createOrderRequest'; +export * from './createOrderResponse'; +export * from './deliveryAddress'; +export * from './deliveryMethod'; +export * from './detailsRequestAuthenticationData'; +export * from './deviceRenderOptions'; +export * from './dokuDetails'; +export * from './donation'; +export * from './donationCampaign'; +export * from './donationCampaignsRequest'; +export * from './donationCampaignsResponse'; +export * from './donationPaymentRequest'; +export * from './donationPaymentResponse'; +export * from './dragonpayDetails'; +export * from './eBankingFinlandDetails'; +export * from './econtextVoucherDetails'; +export * from './eftDetails'; +export * from './encryptedOrderData'; +export * from './enhancedSchemeData'; +export * from './externalPlatform'; +export * from './fastlaneDetails'; +export * from './forexQuote'; +export * from './fraudCheckResult'; +export * from './fraudResult'; +export * from './fundOrigin'; +export * from './fundRecipient'; +export * from './genericIssuerPaymentMethodDetails'; +export * from './googlePayDetails'; +export * from './googlePayDonations'; +export * from './idealDetails'; +export * from './idealDonations'; +export * from './inputDetail'; +export * from './installmentOption'; +export * from './installments'; +export * from './item'; +export * from './klarnaDetails'; +export * from './leg'; +export * from './lineItem'; +export * from './listStoredPaymentMethodsResponse'; +export * from './mandate'; +export * from './masterpassDetails'; +export * from './mbwayDetails'; +export * from './merchantDevice'; +export * from './merchantRiskIndicator'; +export * from './mobilePayDetails'; +export * from './molPayDetails'; +export * from './name'; +export * from './openInvoiceDetails'; +export * from './passenger'; +export * from './payByBankAISDirectDebitDetails'; +export * from './payByBankDetails'; +export * from './payPalDetails'; +export * from './payPayDetails'; +export * from './payToDetails'; +export * from './payUUpiDetails'; +export * from './payWithGoogleDetails'; +export * from './payWithGoogleDonations'; +export * from './payment'; +export * from './paymentAmountUpdateRequest'; +export * from './paymentAmountUpdateResponse'; +export * from './paymentCancelRequest'; +export * from './paymentCancelResponse'; +export * from './paymentCaptureRequest'; +export * from './paymentCaptureResponse'; +export * from './paymentCompletionDetails'; +export * from './paymentDetails'; +export * from './paymentDetailsRequest'; +export * from './paymentDetailsResponse'; +export * from './paymentLinkRequest'; +export * from './paymentLinkResponse'; +export * from './paymentMethod'; +export * from './paymentMethodGroup'; +export * from './paymentMethodIssuer'; +export * from './paymentMethodToStore'; +export * from './paymentMethodUPIApps'; +export * from './paymentMethodsRequest'; +export * from './paymentMethodsResponse'; +export * from './paymentRefundRequest'; +export * from './paymentRefundResponse'; +export * from './paymentRequest'; +export * from './paymentResponse'; +export * from './paymentReversalRequest'; +export * from './paymentReversalResponse'; +export * from './paypalUpdateOrderRequest'; +export * from './paypalUpdateOrderResponse'; +export * from './phone'; +export * from './pixDetails'; +export * from './pixRecurring'; +export * from './platformChargebackLogic'; +export * from './pseDetails'; +export * from './rakutenPayDetails'; +export * from './ratepayDetails'; +export * from './recurring'; +export * from './responseAdditionalData3DSecure'; +export * from './responseAdditionalDataBillingAddress'; +export * from './responseAdditionalDataCard'; +export * from './responseAdditionalDataCommon'; +export * from './responseAdditionalDataDomesticError'; +export * from './responseAdditionalDataInstallments'; +export * from './responseAdditionalDataNetworkTokens'; +export * from './responseAdditionalDataOpi'; +export * from './responseAdditionalDataSepa'; +export * from './responsePaymentMethod'; +export * from './riskData'; +export * from './rivertyDetails'; +export * from './sDKEphemPubKey'; +export * from './samsungPayDetails'; +export * from './sepaDirectDebitDetails'; +export * from './serviceError'; +export * from './sessionResultResponse'; +export * from './shopperInteractionDevice'; +export * from './split'; +export * from './splitAmount'; +export * from './standalonePaymentCancelRequest'; +export * from './standalonePaymentCancelResponse'; +export * from './storedPaymentMethod'; +export * from './storedPaymentMethodDetails'; +export * from './storedPaymentMethodRequest'; +export * from './storedPaymentMethodResource'; +export * from './subInputDetail'; +export * from './subMerchant'; +export * from './subMerchantInfo'; +export * from './surcharge'; +export * from './taxTotal'; +export * from './threeDS2RequestData'; +export * from './threeDS2RequestFields'; +export * from './threeDS2ResponseData'; +export * from './threeDS2Result'; +export * from './threeDSRequestData'; +export * from './threeDSRequestorAuthenticationInfo'; +export * from './threeDSRequestorPriorAuthenticationInfo'; +export * from './threeDSecureData'; +export * from './ticket'; +export * from './travelAgency'; +export * from './twintDetails'; +export * from './updatePaymentLinkRequest'; +export * from './upiCollectDetails'; +export * from './upiIntentDetails'; +export * from './utilityRequest'; +export * from './utilityResponse'; +export * from './vippsDetails'; +export * from './visaCheckoutDetails'; +export * from './weChatPayDetails'; +export * from './weChatPayMiniProgramDetails'; +export * from './zipDetails'; + + +import { AccountInfo } from './accountInfo'; +import { AcctInfo } from './acctInfo'; +import { AchDetails } from './achDetails'; +import { AdditionalData3DSecure } from './additionalData3DSecure'; +import { AdditionalDataAirline } from './additionalDataAirline'; +import { AdditionalDataCarRental } from './additionalDataCarRental'; +import { AdditionalDataCommon } from './additionalDataCommon'; +import { AdditionalDataLevel23 } from './additionalDataLevel23'; +import { AdditionalDataLodging } from './additionalDataLodging'; +import { AdditionalDataOpenInvoice } from './additionalDataOpenInvoice'; +import { AdditionalDataOpi } from './additionalDataOpi'; +import { AdditionalDataRatepay } from './additionalDataRatepay'; +import { AdditionalDataRetry } from './additionalDataRetry'; +import { AdditionalDataRisk } from './additionalDataRisk'; +import { AdditionalDataRiskStandalone } from './additionalDataRiskStandalone'; +import { AdditionalDataSubMerchant } from './additionalDataSubMerchant'; +import { AdditionalDataTemporaryServices } from './additionalDataTemporaryServices'; +import { AdditionalDataWallets } from './additionalDataWallets'; +import { Address } from './address'; +import { AffirmDetails } from './affirmDetails'; +import { AfterpayDetails } from './afterpayDetails'; +import { Agency } from './agency'; +import { Airline } from './airline'; +import { AmazonPayDetails } from './amazonPayDetails'; +import { Amount } from './amount'; +import { Amounts } from './amounts'; +import { AncvDetails } from './ancvDetails'; +import { AndroidPayDetails } from './androidPayDetails'; +import { ApplePayDetails } from './applePayDetails'; +import { ApplePayDonations } from './applePayDonations'; +import { ApplePaySessionRequest } from './applePaySessionRequest'; +import { ApplePaySessionResponse } from './applePaySessionResponse'; +import { ApplicationInfo } from './applicationInfo'; +import { AuthenticationData } from './authenticationData'; +import { BacsDirectDebitDetails } from './bacsDirectDebitDetails'; +import { BalanceCheckRequest } from './balanceCheckRequest'; +import { BalanceCheckResponse } from './balanceCheckResponse'; +import { BillDeskDetails } from './billDeskDetails'; +import { BillingAddress } from './billingAddress'; +import { BlikDetails } from './blikDetails'; +import { BrowserInfo } from './browserInfo'; +import { CancelOrderRequest } from './cancelOrderRequest'; +import { CancelOrderResponse } from './cancelOrderResponse'; +import { CardBrandDetails } from './cardBrandDetails'; +import { CardDetails } from './cardDetails'; +import { CardDetailsRequest } from './cardDetailsRequest'; +import { CardDetailsResponse } from './cardDetailsResponse'; +import { CardDonations } from './cardDonations'; +import { CashAppDetails } from './cashAppDetails'; +import { CellulantDetails } from './cellulantDetails'; +import { CheckoutAwaitAction } from './checkoutAwaitAction'; +import { CheckoutBankAccount } from './checkoutBankAccount'; +import { CheckoutBankTransferAction } from './checkoutBankTransferAction'; +import { CheckoutDelegatedAuthenticationAction } from './checkoutDelegatedAuthenticationAction'; +import { CheckoutNativeRedirectAction } from './checkoutNativeRedirectAction'; +import { CheckoutOrderResponse } from './checkoutOrderResponse'; +import { CheckoutQrCodeAction } from './checkoutQrCodeAction'; +import { CheckoutRedirectAction } from './checkoutRedirectAction'; +import { CheckoutSDKAction } from './checkoutSDKAction'; +import { CheckoutSessionInstallmentOption } from './checkoutSessionInstallmentOption'; +import { CheckoutSessionThreeDS2RequestData } from './checkoutSessionThreeDS2RequestData'; +import { CheckoutThreeDS2Action } from './checkoutThreeDS2Action'; +import { CheckoutVoucherAction } from './checkoutVoucherAction'; +import { CommonField } from './commonField'; +import { Company } from './company'; +import { CreateCheckoutSessionRequest } from './createCheckoutSessionRequest'; +import { CreateCheckoutSessionResponse } from './createCheckoutSessionResponse'; +import { CreateOrderRequest } from './createOrderRequest'; +import { CreateOrderResponse } from './createOrderResponse'; +import { DeliveryAddress } from './deliveryAddress'; +import { DeliveryMethod } from './deliveryMethod'; +import { DetailsRequestAuthenticationData } from './detailsRequestAuthenticationData'; +import { DeviceRenderOptions } from './deviceRenderOptions'; +import { DokuDetails } from './dokuDetails'; +import { Donation } from './donation'; +import { DonationCampaign } from './donationCampaign'; +import { DonationCampaignsRequest } from './donationCampaignsRequest'; +import { DonationCampaignsResponse } from './donationCampaignsResponse'; +import { DonationPaymentRequest } from './donationPaymentRequest'; +import { DonationPaymentResponse } from './donationPaymentResponse'; +import { DragonpayDetails } from './dragonpayDetails'; +import { EBankingFinlandDetails } from './eBankingFinlandDetails'; +import { EcontextVoucherDetails } from './econtextVoucherDetails'; +import { EftDetails } from './eftDetails'; +import { EncryptedOrderData } from './encryptedOrderData'; +import { EnhancedSchemeData } from './enhancedSchemeData'; +import { ExternalPlatform } from './externalPlatform'; +import { FastlaneDetails } from './fastlaneDetails'; +import { ForexQuote } from './forexQuote'; +import { FraudCheckResult } from './fraudCheckResult'; +import { FraudResult } from './fraudResult'; +import { FundOrigin } from './fundOrigin'; +import { FundRecipient } from './fundRecipient'; +import { GenericIssuerPaymentMethodDetails } from './genericIssuerPaymentMethodDetails'; +import { GooglePayDetails } from './googlePayDetails'; +import { GooglePayDonations } from './googlePayDonations'; +import { IdealDetails } from './idealDetails'; +import { IdealDonations } from './idealDonations'; +import { InputDetail } from './inputDetail'; +import { InstallmentOption } from './installmentOption'; +import { Installments } from './installments'; +import { Item } from './item'; +import { KlarnaDetails } from './klarnaDetails'; +import { Leg } from './leg'; +import { LineItem } from './lineItem'; +import { ListStoredPaymentMethodsResponse } from './listStoredPaymentMethodsResponse'; +import { Mandate } from './mandate'; +import { MasterpassDetails } from './masterpassDetails'; +import { MbwayDetails } from './mbwayDetails'; +import { MerchantDevice } from './merchantDevice'; +import { MerchantRiskIndicator } from './merchantRiskIndicator'; +import { MobilePayDetails } from './mobilePayDetails'; +import { MolPayDetails } from './molPayDetails'; +import { Name } from './name'; +import { OpenInvoiceDetails } from './openInvoiceDetails'; +import { Passenger } from './passenger'; +import { PayByBankAISDirectDebitDetails } from './payByBankAISDirectDebitDetails'; +import { PayByBankDetails } from './payByBankDetails'; +import { PayPalDetails } from './payPalDetails'; +import { PayPayDetails } from './payPayDetails'; +import { PayToDetails } from './payToDetails'; +import { PayUUpiDetails } from './payUUpiDetails'; +import { PayWithGoogleDetails } from './payWithGoogleDetails'; +import { PayWithGoogleDonations } from './payWithGoogleDonations'; +import { Payment } from './payment'; +import { PaymentAmountUpdateRequest } from './paymentAmountUpdateRequest'; +import { PaymentAmountUpdateResponse } from './paymentAmountUpdateResponse'; +import { PaymentCancelRequest } from './paymentCancelRequest'; +import { PaymentCancelResponse } from './paymentCancelResponse'; +import { PaymentCaptureRequest } from './paymentCaptureRequest'; +import { PaymentCaptureResponse } from './paymentCaptureResponse'; +import { PaymentCompletionDetails } from './paymentCompletionDetails'; +import { PaymentDetails } from './paymentDetails'; +import { PaymentDetailsRequest } from './paymentDetailsRequest'; +import { PaymentDetailsResponse } from './paymentDetailsResponse'; +import { PaymentLinkRequest } from './paymentLinkRequest'; +import { PaymentLinkResponse } from './paymentLinkResponse'; +import { PaymentMethod } from './paymentMethod'; +import { PaymentMethodGroup } from './paymentMethodGroup'; +import { PaymentMethodIssuer } from './paymentMethodIssuer'; +import { PaymentMethodToStore } from './paymentMethodToStore'; +import { PaymentMethodUPIApps } from './paymentMethodUPIApps'; +import { PaymentMethodsRequest } from './paymentMethodsRequest'; +import { PaymentMethodsResponse } from './paymentMethodsResponse'; +import { PaymentRefundRequest } from './paymentRefundRequest'; +import { PaymentRefundResponse } from './paymentRefundResponse'; +import { PaymentRequest } from './paymentRequest'; +import { PaymentResponse } from './paymentResponse'; +import { PaymentReversalRequest } from './paymentReversalRequest'; +import { PaymentReversalResponse } from './paymentReversalResponse'; +import { PaypalUpdateOrderRequest } from './paypalUpdateOrderRequest'; +import { PaypalUpdateOrderResponse } from './paypalUpdateOrderResponse'; +import { Phone } from './phone'; +import { PixDetails } from './pixDetails'; +import { PixRecurring } from './pixRecurring'; +import { PlatformChargebackLogic } from './platformChargebackLogic'; +import { PseDetails } from './pseDetails'; +import { RakutenPayDetails } from './rakutenPayDetails'; +import { RatepayDetails } from './ratepayDetails'; +import { Recurring } from './recurring'; +import { ResponseAdditionalData3DSecure } from './responseAdditionalData3DSecure'; +import { ResponseAdditionalDataBillingAddress } from './responseAdditionalDataBillingAddress'; +import { ResponseAdditionalDataCard } from './responseAdditionalDataCard'; +import { ResponseAdditionalDataCommon } from './responseAdditionalDataCommon'; +import { ResponseAdditionalDataDomesticError } from './responseAdditionalDataDomesticError'; +import { ResponseAdditionalDataInstallments } from './responseAdditionalDataInstallments'; +import { ResponseAdditionalDataNetworkTokens } from './responseAdditionalDataNetworkTokens'; +import { ResponseAdditionalDataOpi } from './responseAdditionalDataOpi'; +import { ResponseAdditionalDataSepa } from './responseAdditionalDataSepa'; +import { ResponsePaymentMethod } from './responsePaymentMethod'; +import { RiskData } from './riskData'; +import { RivertyDetails } from './rivertyDetails'; +import { SDKEphemPubKey } from './sDKEphemPubKey'; +import { SamsungPayDetails } from './samsungPayDetails'; +import { SepaDirectDebitDetails } from './sepaDirectDebitDetails'; +import { ServiceError } from './serviceError'; +import { SessionResultResponse } from './sessionResultResponse'; +import { ShopperInteractionDevice } from './shopperInteractionDevice'; +import { Split } from './split'; +import { SplitAmount } from './splitAmount'; +import { StandalonePaymentCancelRequest } from './standalonePaymentCancelRequest'; +import { StandalonePaymentCancelResponse } from './standalonePaymentCancelResponse'; +import { StoredPaymentMethod } from './storedPaymentMethod'; +import { StoredPaymentMethodDetails } from './storedPaymentMethodDetails'; +import { StoredPaymentMethodRequest } from './storedPaymentMethodRequest'; +import { StoredPaymentMethodResource } from './storedPaymentMethodResource'; +import { SubInputDetail } from './subInputDetail'; +import { SubMerchant } from './subMerchant'; +import { SubMerchantInfo } from './subMerchantInfo'; +import { Surcharge } from './surcharge'; +import { TaxTotal } from './taxTotal'; +import { ThreeDS2RequestData } from './threeDS2RequestData'; +import { ThreeDS2RequestFields } from './threeDS2RequestFields'; +import { ThreeDS2ResponseData } from './threeDS2ResponseData'; +import { ThreeDS2Result } from './threeDS2Result'; +import { ThreeDSRequestData } from './threeDSRequestData'; +import { ThreeDSRequestorAuthenticationInfo } from './threeDSRequestorAuthenticationInfo'; +import { ThreeDSRequestorPriorAuthenticationInfo } from './threeDSRequestorPriorAuthenticationInfo'; +import { ThreeDSecureData } from './threeDSecureData'; +import { Ticket } from './ticket'; +import { TravelAgency } from './travelAgency'; +import { TwintDetails } from './twintDetails'; +import { UpdatePaymentLinkRequest } from './updatePaymentLinkRequest'; +import { UpiCollectDetails } from './upiCollectDetails'; +import { UpiIntentDetails } from './upiIntentDetails'; +import { UtilityRequest } from './utilityRequest'; +import { UtilityResponse } from './utilityResponse'; +import { VippsDetails } from './vippsDetails'; +import { VisaCheckoutDetails } from './visaCheckoutDetails'; +import { WeChatPayDetails } from './weChatPayDetails'; +import { WeChatPayMiniProgramDetails } from './weChatPayMiniProgramDetails'; +import { ZipDetails } from './zipDetails'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "AccountInfo.AccountAgeIndicatorEnum": AccountInfo.AccountAgeIndicatorEnum, + "AccountInfo.AccountChangeIndicatorEnum": AccountInfo.AccountChangeIndicatorEnum, + "AccountInfo.AccountTypeEnum": AccountInfo.AccountTypeEnum, + "AccountInfo.DeliveryAddressUsageIndicatorEnum": AccountInfo.DeliveryAddressUsageIndicatorEnum, + "AccountInfo.PasswordChangeIndicatorEnum": AccountInfo.PasswordChangeIndicatorEnum, + "AccountInfo.PaymentAccountIndicatorEnum": AccountInfo.PaymentAccountIndicatorEnum, + "AcctInfo.ChAccAgeIndEnum": AcctInfo.ChAccAgeIndEnum, + "AcctInfo.ChAccChangeIndEnum": AcctInfo.ChAccChangeIndEnum, + "AcctInfo.ChAccPwChangeIndEnum": AcctInfo.ChAccPwChangeIndEnum, + "AcctInfo.PaymentAccIndEnum": AcctInfo.PaymentAccIndEnum, + "AcctInfo.ShipAddressUsageIndEnum": AcctInfo.ShipAddressUsageIndEnum, + "AcctInfo.ShipNameIndicatorEnum": AcctInfo.ShipNameIndicatorEnum, + "AcctInfo.SuspiciousAccActivityEnum": AcctInfo.SuspiciousAccActivityEnum, + "AchDetails.AccountHolderTypeEnum": AchDetails.AccountHolderTypeEnum, + "AchDetails.BankAccountTypeEnum": AchDetails.BankAccountTypeEnum, + "AchDetails.TypeEnum": AchDetails.TypeEnum, + "AdditionalData3DSecure.ChallengeWindowSizeEnum": AdditionalData3DSecure.ChallengeWindowSizeEnum, + "AdditionalDataCommon.IndustryUsageEnum": AdditionalDataCommon.IndustryUsageEnum, + "AffirmDetails.TypeEnum": AffirmDetails.TypeEnum, + "AfterpayDetails.TypeEnum": AfterpayDetails.TypeEnum, + "AmazonPayDetails.TypeEnum": AmazonPayDetails.TypeEnum, + "AncvDetails.TypeEnum": AncvDetails.TypeEnum, + "AndroidPayDetails.TypeEnum": AndroidPayDetails.TypeEnum, + "ApplePayDetails.FundingSourceEnum": ApplePayDetails.FundingSourceEnum, + "ApplePayDetails.TypeEnum": ApplePayDetails.TypeEnum, + "ApplePayDonations.FundingSourceEnum": ApplePayDonations.FundingSourceEnum, + "ApplePayDonations.TypeEnum": ApplePayDonations.TypeEnum, + "AuthenticationData.AttemptAuthenticationEnum": AuthenticationData.AttemptAuthenticationEnum, + "BacsDirectDebitDetails.TypeEnum": BacsDirectDebitDetails.TypeEnum, + "BalanceCheckRequest.RecurringProcessingModelEnum": BalanceCheckRequest.RecurringProcessingModelEnum, + "BalanceCheckRequest.ShopperInteractionEnum": BalanceCheckRequest.ShopperInteractionEnum, + "BalanceCheckResponse.ResultCodeEnum": BalanceCheckResponse.ResultCodeEnum, + "BillDeskDetails.TypeEnum": BillDeskDetails.TypeEnum, + "BlikDetails.TypeEnum": BlikDetails.TypeEnum, + "CancelOrderResponse.ResultCodeEnum": CancelOrderResponse.ResultCodeEnum, + "CardDetails.FundingSourceEnum": CardDetails.FundingSourceEnum, + "CardDetails.TypeEnum": CardDetails.TypeEnum, + "CardDonations.FundingSourceEnum": CardDonations.FundingSourceEnum, + "CardDonations.TypeEnum": CardDonations.TypeEnum, + "CashAppDetails.TypeEnum": CashAppDetails.TypeEnum, + "CellulantDetails.TypeEnum": CellulantDetails.TypeEnum, + "CheckoutAwaitAction.TypeEnum": CheckoutAwaitAction.TypeEnum, + "CheckoutBankAccount.AccountTypeEnum": CheckoutBankAccount.AccountTypeEnum, + "CheckoutBankTransferAction.TypeEnum": CheckoutBankTransferAction.TypeEnum, + "CheckoutDelegatedAuthenticationAction.TypeEnum": CheckoutDelegatedAuthenticationAction.TypeEnum, + "CheckoutNativeRedirectAction.TypeEnum": CheckoutNativeRedirectAction.TypeEnum, + "CheckoutQrCodeAction.TypeEnum": CheckoutQrCodeAction.TypeEnum, + "CheckoutRedirectAction.TypeEnum": CheckoutRedirectAction.TypeEnum, + "CheckoutSDKAction.TypeEnum": CheckoutSDKAction.TypeEnum, + "CheckoutSessionInstallmentOption.PlansEnum": CheckoutSessionInstallmentOption.PlansEnum, + "CheckoutSessionThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum": CheckoutSessionThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum, + "CheckoutThreeDS2Action.TypeEnum": CheckoutThreeDS2Action.TypeEnum, + "CheckoutVoucherAction.TypeEnum": CheckoutVoucherAction.TypeEnum, + "CreateCheckoutSessionRequest.ChannelEnum": CreateCheckoutSessionRequest.ChannelEnum, + "CreateCheckoutSessionRequest.ModeEnum": CreateCheckoutSessionRequest.ModeEnum, + "CreateCheckoutSessionRequest.RecurringProcessingModelEnum": CreateCheckoutSessionRequest.RecurringProcessingModelEnum, + "CreateCheckoutSessionRequest.ShopperInteractionEnum": CreateCheckoutSessionRequest.ShopperInteractionEnum, + "CreateCheckoutSessionRequest.StoreFiltrationModeEnum": CreateCheckoutSessionRequest.StoreFiltrationModeEnum, + "CreateCheckoutSessionRequest.StorePaymentMethodModeEnum": CreateCheckoutSessionRequest.StorePaymentMethodModeEnum, + "CreateCheckoutSessionResponse.ChannelEnum": CreateCheckoutSessionResponse.ChannelEnum, + "CreateCheckoutSessionResponse.ModeEnum": CreateCheckoutSessionResponse.ModeEnum, + "CreateCheckoutSessionResponse.RecurringProcessingModelEnum": CreateCheckoutSessionResponse.RecurringProcessingModelEnum, + "CreateCheckoutSessionResponse.ShopperInteractionEnum": CreateCheckoutSessionResponse.ShopperInteractionEnum, + "CreateCheckoutSessionResponse.StoreFiltrationModeEnum": CreateCheckoutSessionResponse.StoreFiltrationModeEnum, + "CreateCheckoutSessionResponse.StorePaymentMethodModeEnum": CreateCheckoutSessionResponse.StorePaymentMethodModeEnum, + "CreateOrderResponse.ResultCodeEnum": CreateOrderResponse.ResultCodeEnum, + "DeliveryMethod.TypeEnum": DeliveryMethod.TypeEnum, + "DeviceRenderOptions.SdkInterfaceEnum": DeviceRenderOptions.SdkInterfaceEnum, + "DeviceRenderOptions.SdkUiTypeEnum": DeviceRenderOptions.SdkUiTypeEnum, + "DokuDetails.TypeEnum": DokuDetails.TypeEnum, + "DonationPaymentRequest.ChannelEnum": DonationPaymentRequest.ChannelEnum, + "DonationPaymentRequest.RecurringProcessingModelEnum": DonationPaymentRequest.RecurringProcessingModelEnum, + "DonationPaymentRequest.ShopperInteractionEnum": DonationPaymentRequest.ShopperInteractionEnum, + "DonationPaymentResponse.StatusEnum": DonationPaymentResponse.StatusEnum, + "DragonpayDetails.TypeEnum": DragonpayDetails.TypeEnum, + "EBankingFinlandDetails.TypeEnum": EBankingFinlandDetails.TypeEnum, + "EcontextVoucherDetails.TypeEnum": EcontextVoucherDetails.TypeEnum, + "EftDetails.TypeEnum": EftDetails.TypeEnum, + "FastlaneDetails.TypeEnum": FastlaneDetails.TypeEnum, + "FundRecipient.WalletPurposeEnum": FundRecipient.WalletPurposeEnum, + "GenericIssuerPaymentMethodDetails.TypeEnum": GenericIssuerPaymentMethodDetails.TypeEnum, + "GooglePayDetails.FundingSourceEnum": GooglePayDetails.FundingSourceEnum, + "GooglePayDetails.TypeEnum": GooglePayDetails.TypeEnum, + "GooglePayDonations.FundingSourceEnum": GooglePayDonations.FundingSourceEnum, + "GooglePayDonations.TypeEnum": GooglePayDonations.TypeEnum, + "IdealDetails.TypeEnum": IdealDetails.TypeEnum, + "IdealDonations.TypeEnum": IdealDonations.TypeEnum, + "InstallmentOption.PlansEnum": InstallmentOption.PlansEnum, + "Installments.PlanEnum": Installments.PlanEnum, + "KlarnaDetails.TypeEnum": KlarnaDetails.TypeEnum, + "Mandate.AmountRuleEnum": Mandate.AmountRuleEnum, + "Mandate.BillingAttemptsRuleEnum": Mandate.BillingAttemptsRuleEnum, + "Mandate.FrequencyEnum": Mandate.FrequencyEnum, + "MasterpassDetails.FundingSourceEnum": MasterpassDetails.FundingSourceEnum, + "MasterpassDetails.TypeEnum": MasterpassDetails.TypeEnum, + "MbwayDetails.TypeEnum": MbwayDetails.TypeEnum, + "MerchantRiskIndicator.DeliveryAddressIndicatorEnum": MerchantRiskIndicator.DeliveryAddressIndicatorEnum, + "MerchantRiskIndicator.DeliveryTimeframeEnum": MerchantRiskIndicator.DeliveryTimeframeEnum, + "MobilePayDetails.TypeEnum": MobilePayDetails.TypeEnum, + "MolPayDetails.TypeEnum": MolPayDetails.TypeEnum, + "OpenInvoiceDetails.TypeEnum": OpenInvoiceDetails.TypeEnum, + "PayByBankAISDirectDebitDetails.TypeEnum": PayByBankAISDirectDebitDetails.TypeEnum, + "PayByBankDetails.TypeEnum": PayByBankDetails.TypeEnum, + "PayPalDetails.SubtypeEnum": PayPalDetails.SubtypeEnum, + "PayPalDetails.TypeEnum": PayPalDetails.TypeEnum, + "PayPayDetails.TypeEnum": PayPayDetails.TypeEnum, + "PayToDetails.TypeEnum": PayToDetails.TypeEnum, + "PayUUpiDetails.TypeEnum": PayUUpiDetails.TypeEnum, + "PayWithGoogleDetails.FundingSourceEnum": PayWithGoogleDetails.FundingSourceEnum, + "PayWithGoogleDetails.TypeEnum": PayWithGoogleDetails.TypeEnum, + "PayWithGoogleDonations.FundingSourceEnum": PayWithGoogleDonations.FundingSourceEnum, + "PayWithGoogleDonations.TypeEnum": PayWithGoogleDonations.TypeEnum, + "Payment.ResultCodeEnum": Payment.ResultCodeEnum, + "PaymentAmountUpdateRequest.IndustryUsageEnum": PaymentAmountUpdateRequest.IndustryUsageEnum, + "PaymentAmountUpdateResponse.IndustryUsageEnum": PaymentAmountUpdateResponse.IndustryUsageEnum, + "PaymentAmountUpdateResponse.StatusEnum": PaymentAmountUpdateResponse.StatusEnum, + "PaymentCancelResponse.StatusEnum": PaymentCancelResponse.StatusEnum, + "PaymentCaptureResponse.StatusEnum": PaymentCaptureResponse.StatusEnum, + "PaymentDetails.TypeEnum": PaymentDetails.TypeEnum, + "PaymentDetailsResponse.ResultCodeEnum": PaymentDetailsResponse.ResultCodeEnum, + "PaymentLinkRequest.RecurringProcessingModelEnum": PaymentLinkRequest.RecurringProcessingModelEnum, + "PaymentLinkRequest.RequiredShopperFieldsEnum": PaymentLinkRequest.RequiredShopperFieldsEnum, + "PaymentLinkRequest.StorePaymentMethodModeEnum": PaymentLinkRequest.StorePaymentMethodModeEnum, + "PaymentLinkResponse.RecurringProcessingModelEnum": PaymentLinkResponse.RecurringProcessingModelEnum, + "PaymentLinkResponse.RequiredShopperFieldsEnum": PaymentLinkResponse.RequiredShopperFieldsEnum, + "PaymentLinkResponse.StatusEnum": PaymentLinkResponse.StatusEnum, + "PaymentLinkResponse.StorePaymentMethodModeEnum": PaymentLinkResponse.StorePaymentMethodModeEnum, + "PaymentMethod.FundingSourceEnum": PaymentMethod.FundingSourceEnum, + "PaymentMethodsRequest.ChannelEnum": PaymentMethodsRequest.ChannelEnum, + "PaymentMethodsRequest.StoreFiltrationModeEnum": PaymentMethodsRequest.StoreFiltrationModeEnum, + "PaymentRefundRequest.MerchantRefundReasonEnum": PaymentRefundRequest.MerchantRefundReasonEnum, + "PaymentRefundResponse.MerchantRefundReasonEnum": PaymentRefundResponse.MerchantRefundReasonEnum, + "PaymentRefundResponse.StatusEnum": PaymentRefundResponse.StatusEnum, + "PaymentRequest.ChannelEnum": PaymentRequest.ChannelEnum, + "PaymentRequest.EntityTypeEnum": PaymentRequest.EntityTypeEnum, + "PaymentRequest.IndustryUsageEnum": PaymentRequest.IndustryUsageEnum, + "PaymentRequest.RecurringProcessingModelEnum": PaymentRequest.RecurringProcessingModelEnum, + "PaymentRequest.ShopperInteractionEnum": PaymentRequest.ShopperInteractionEnum, + "PaymentResponse.ResultCodeEnum": PaymentResponse.ResultCodeEnum, + "PaymentReversalResponse.StatusEnum": PaymentReversalResponse.StatusEnum, + "PaypalUpdateOrderResponse.StatusEnum": PaypalUpdateOrderResponse.StatusEnum, + "PixDetails.TypeEnum": PixDetails.TypeEnum, + "PixRecurring.FrequencyEnum": PixRecurring.FrequencyEnum, + "PlatformChargebackLogic.BehaviorEnum": PlatformChargebackLogic.BehaviorEnum, + "PseDetails.TypeEnum": PseDetails.TypeEnum, + "RakutenPayDetails.TypeEnum": RakutenPayDetails.TypeEnum, + "RatepayDetails.TypeEnum": RatepayDetails.TypeEnum, + "Recurring.ContractEnum": Recurring.ContractEnum, + "Recurring.TokenServiceEnum": Recurring.TokenServiceEnum, + "ResponseAdditionalDataCard.CardProductIdEnum": ResponseAdditionalDataCard.CardProductIdEnum, + "ResponseAdditionalDataCommon.FraudResultTypeEnum": ResponseAdditionalDataCommon.FraudResultTypeEnum, + "ResponseAdditionalDataCommon.FraudRiskLevelEnum": ResponseAdditionalDataCommon.FraudRiskLevelEnum, + "ResponseAdditionalDataCommon.RecurringProcessingModelEnum": ResponseAdditionalDataCommon.RecurringProcessingModelEnum, + "ResponseAdditionalDataCommon.TokenizationStoreOperationTypeEnum": ResponseAdditionalDataCommon.TokenizationStoreOperationTypeEnum, + "RivertyDetails.TypeEnum": RivertyDetails.TypeEnum, + "SamsungPayDetails.FundingSourceEnum": SamsungPayDetails.FundingSourceEnum, + "SamsungPayDetails.TypeEnum": SamsungPayDetails.TypeEnum, + "SepaDirectDebitDetails.TypeEnum": SepaDirectDebitDetails.TypeEnum, + "SessionResultResponse.StatusEnum": SessionResultResponse.StatusEnum, + "Split.TypeEnum": Split.TypeEnum, + "StandalonePaymentCancelResponse.StatusEnum": StandalonePaymentCancelResponse.StatusEnum, + "StoredPaymentMethodDetails.TypeEnum": StoredPaymentMethodDetails.TypeEnum, + "StoredPaymentMethodRequest.RecurringProcessingModelEnum": StoredPaymentMethodRequest.RecurringProcessingModelEnum, + "ThreeDS2RequestData.AcctTypeEnum": ThreeDS2RequestData.AcctTypeEnum, + "ThreeDS2RequestData.AddrMatchEnum": ThreeDS2RequestData.AddrMatchEnum, + "ThreeDS2RequestData.ChallengeIndicatorEnum": ThreeDS2RequestData.ChallengeIndicatorEnum, + "ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum": ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum, + "ThreeDS2RequestData.TransTypeEnum": ThreeDS2RequestData.TransTypeEnum, + "ThreeDS2RequestData.TransactionTypeEnum": ThreeDS2RequestData.TransactionTypeEnum, + "ThreeDS2RequestFields.AcctTypeEnum": ThreeDS2RequestFields.AcctTypeEnum, + "ThreeDS2RequestFields.AddrMatchEnum": ThreeDS2RequestFields.AddrMatchEnum, + "ThreeDS2RequestFields.ChallengeIndicatorEnum": ThreeDS2RequestFields.ChallengeIndicatorEnum, + "ThreeDS2RequestFields.ThreeDSRequestorChallengeIndEnum": ThreeDS2RequestFields.ThreeDSRequestorChallengeIndEnum, + "ThreeDS2RequestFields.TransTypeEnum": ThreeDS2RequestFields.TransTypeEnum, + "ThreeDS2RequestFields.TransactionTypeEnum": ThreeDS2RequestFields.TransactionTypeEnum, + "ThreeDS2Result.ChallengeCancelEnum": ThreeDS2Result.ChallengeCancelEnum, + "ThreeDS2Result.ExemptionIndicatorEnum": ThreeDS2Result.ExemptionIndicatorEnum, + "ThreeDS2Result.ThreeDSRequestorChallengeIndEnum": ThreeDS2Result.ThreeDSRequestorChallengeIndEnum, + "ThreeDSRequestData.ChallengeWindowSizeEnum": ThreeDSRequestData.ChallengeWindowSizeEnum, + "ThreeDSRequestData.DataOnlyEnum": ThreeDSRequestData.DataOnlyEnum, + "ThreeDSRequestData.NativeThreeDSEnum": ThreeDSRequestData.NativeThreeDSEnum, + "ThreeDSRequestData.ThreeDSVersionEnum": ThreeDSRequestData.ThreeDSVersionEnum, + "ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum": ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum, + "ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum": ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum, + "ThreeDSecureData.AuthenticationResponseEnum": ThreeDSecureData.AuthenticationResponseEnum, + "ThreeDSecureData.ChallengeCancelEnum": ThreeDSecureData.ChallengeCancelEnum, + "ThreeDSecureData.DirectoryResponseEnum": ThreeDSecureData.DirectoryResponseEnum, + "TwintDetails.TypeEnum": TwintDetails.TypeEnum, + "UpdatePaymentLinkRequest.StatusEnum": UpdatePaymentLinkRequest.StatusEnum, + "UpiCollectDetails.TypeEnum": UpiCollectDetails.TypeEnum, + "UpiIntentDetails.TypeEnum": UpiIntentDetails.TypeEnum, + "VippsDetails.TypeEnum": VippsDetails.TypeEnum, + "VisaCheckoutDetails.FundingSourceEnum": VisaCheckoutDetails.FundingSourceEnum, + "VisaCheckoutDetails.TypeEnum": VisaCheckoutDetails.TypeEnum, + "WeChatPayDetails.TypeEnum": WeChatPayDetails.TypeEnum, + "WeChatPayMiniProgramDetails.TypeEnum": WeChatPayMiniProgramDetails.TypeEnum, + "ZipDetails.TypeEnum": ZipDetails.TypeEnum, +} + +let typeMap: {[index: string]: any} = { + "AccountInfo": AccountInfo, + "AcctInfo": AcctInfo, + "AchDetails": AchDetails, + "AdditionalData3DSecure": AdditionalData3DSecure, + "AdditionalDataAirline": AdditionalDataAirline, + "AdditionalDataCarRental": AdditionalDataCarRental, + "AdditionalDataCommon": AdditionalDataCommon, + "AdditionalDataLevel23": AdditionalDataLevel23, + "AdditionalDataLodging": AdditionalDataLodging, + "AdditionalDataOpenInvoice": AdditionalDataOpenInvoice, + "AdditionalDataOpi": AdditionalDataOpi, + "AdditionalDataRatepay": AdditionalDataRatepay, + "AdditionalDataRetry": AdditionalDataRetry, + "AdditionalDataRisk": AdditionalDataRisk, + "AdditionalDataRiskStandalone": AdditionalDataRiskStandalone, + "AdditionalDataSubMerchant": AdditionalDataSubMerchant, + "AdditionalDataTemporaryServices": AdditionalDataTemporaryServices, + "AdditionalDataWallets": AdditionalDataWallets, + "Address": Address, + "AffirmDetails": AffirmDetails, + "AfterpayDetails": AfterpayDetails, + "Agency": Agency, + "Airline": Airline, + "AmazonPayDetails": AmazonPayDetails, + "Amount": Amount, + "Amounts": Amounts, + "AncvDetails": AncvDetails, + "AndroidPayDetails": AndroidPayDetails, + "ApplePayDetails": ApplePayDetails, + "ApplePayDonations": ApplePayDonations, + "ApplePaySessionRequest": ApplePaySessionRequest, + "ApplePaySessionResponse": ApplePaySessionResponse, + "ApplicationInfo": ApplicationInfo, + "AuthenticationData": AuthenticationData, + "BacsDirectDebitDetails": BacsDirectDebitDetails, + "BalanceCheckRequest": BalanceCheckRequest, + "BalanceCheckResponse": BalanceCheckResponse, + "BillDeskDetails": BillDeskDetails, + "BillingAddress": BillingAddress, + "BlikDetails": BlikDetails, + "BrowserInfo": BrowserInfo, + "CancelOrderRequest": CancelOrderRequest, + "CancelOrderResponse": CancelOrderResponse, + "CardBrandDetails": CardBrandDetails, + "CardDetails": CardDetails, + "CardDetailsRequest": CardDetailsRequest, + "CardDetailsResponse": CardDetailsResponse, + "CardDonations": CardDonations, + "CashAppDetails": CashAppDetails, + "CellulantDetails": CellulantDetails, + "CheckoutAwaitAction": CheckoutAwaitAction, + "CheckoutBankAccount": CheckoutBankAccount, + "CheckoutBankTransferAction": CheckoutBankTransferAction, + "CheckoutDelegatedAuthenticationAction": CheckoutDelegatedAuthenticationAction, + "CheckoutNativeRedirectAction": CheckoutNativeRedirectAction, + "CheckoutOrderResponse": CheckoutOrderResponse, + "CheckoutQrCodeAction": CheckoutQrCodeAction, + "CheckoutRedirectAction": CheckoutRedirectAction, + "CheckoutSDKAction": CheckoutSDKAction, + "CheckoutSessionInstallmentOption": CheckoutSessionInstallmentOption, + "CheckoutSessionThreeDS2RequestData": CheckoutSessionThreeDS2RequestData, + "CheckoutThreeDS2Action": CheckoutThreeDS2Action, + "CheckoutVoucherAction": CheckoutVoucherAction, + "CommonField": CommonField, + "Company": Company, + "CreateCheckoutSessionRequest": CreateCheckoutSessionRequest, + "CreateCheckoutSessionResponse": CreateCheckoutSessionResponse, + "CreateOrderRequest": CreateOrderRequest, + "CreateOrderResponse": CreateOrderResponse, + "DeliveryAddress": DeliveryAddress, + "DeliveryMethod": DeliveryMethod, + "DetailsRequestAuthenticationData": DetailsRequestAuthenticationData, + "DeviceRenderOptions": DeviceRenderOptions, + "DokuDetails": DokuDetails, + "Donation": Donation, + "DonationCampaign": DonationCampaign, + "DonationCampaignsRequest": DonationCampaignsRequest, + "DonationCampaignsResponse": DonationCampaignsResponse, + "DonationPaymentRequest": DonationPaymentRequest, + "DonationPaymentResponse": DonationPaymentResponse, + "DragonpayDetails": DragonpayDetails, + "EBankingFinlandDetails": EBankingFinlandDetails, + "EcontextVoucherDetails": EcontextVoucherDetails, + "EftDetails": EftDetails, + "EncryptedOrderData": EncryptedOrderData, + "EnhancedSchemeData": EnhancedSchemeData, + "ExternalPlatform": ExternalPlatform, + "FastlaneDetails": FastlaneDetails, + "ForexQuote": ForexQuote, + "FraudCheckResult": FraudCheckResult, + "FraudResult": FraudResult, + "FundOrigin": FundOrigin, + "FundRecipient": FundRecipient, + "GenericIssuerPaymentMethodDetails": GenericIssuerPaymentMethodDetails, + "GooglePayDetails": GooglePayDetails, + "GooglePayDonations": GooglePayDonations, + "IdealDetails": IdealDetails, + "IdealDonations": IdealDonations, + "InputDetail": InputDetail, + "InstallmentOption": InstallmentOption, + "Installments": Installments, + "Item": Item, + "KlarnaDetails": KlarnaDetails, + "Leg": Leg, + "LineItem": LineItem, + "ListStoredPaymentMethodsResponse": ListStoredPaymentMethodsResponse, + "Mandate": Mandate, + "MasterpassDetails": MasterpassDetails, + "MbwayDetails": MbwayDetails, + "MerchantDevice": MerchantDevice, + "MerchantRiskIndicator": MerchantRiskIndicator, + "MobilePayDetails": MobilePayDetails, + "MolPayDetails": MolPayDetails, + "Name": Name, + "OpenInvoiceDetails": OpenInvoiceDetails, + "Passenger": Passenger, + "PayByBankAISDirectDebitDetails": PayByBankAISDirectDebitDetails, + "PayByBankDetails": PayByBankDetails, + "PayPalDetails": PayPalDetails, + "PayPayDetails": PayPayDetails, + "PayToDetails": PayToDetails, + "PayUUpiDetails": PayUUpiDetails, + "PayWithGoogleDetails": PayWithGoogleDetails, + "PayWithGoogleDonations": PayWithGoogleDonations, + "Payment": Payment, + "PaymentAmountUpdateRequest": PaymentAmountUpdateRequest, + "PaymentAmountUpdateResponse": PaymentAmountUpdateResponse, + "PaymentCancelRequest": PaymentCancelRequest, + "PaymentCancelResponse": PaymentCancelResponse, + "PaymentCaptureRequest": PaymentCaptureRequest, + "PaymentCaptureResponse": PaymentCaptureResponse, + "PaymentCompletionDetails": PaymentCompletionDetails, + "PaymentDetails": PaymentDetails, + "PaymentDetailsRequest": PaymentDetailsRequest, + "PaymentDetailsResponse": PaymentDetailsResponse, + "PaymentLinkRequest": PaymentLinkRequest, + "PaymentLinkResponse": PaymentLinkResponse, + "PaymentMethod": PaymentMethod, + "PaymentMethodGroup": PaymentMethodGroup, + "PaymentMethodIssuer": PaymentMethodIssuer, + "PaymentMethodToStore": PaymentMethodToStore, + "PaymentMethodUPIApps": PaymentMethodUPIApps, + "PaymentMethodsRequest": PaymentMethodsRequest, + "PaymentMethodsResponse": PaymentMethodsResponse, + "PaymentRefundRequest": PaymentRefundRequest, + "PaymentRefundResponse": PaymentRefundResponse, + "PaymentRequest": PaymentRequest, + "PaymentResponse": PaymentResponse, + "PaymentReversalRequest": PaymentReversalRequest, + "PaymentReversalResponse": PaymentReversalResponse, + "PaypalUpdateOrderRequest": PaypalUpdateOrderRequest, + "PaypalUpdateOrderResponse": PaypalUpdateOrderResponse, + "Phone": Phone, + "PixDetails": PixDetails, + "PixRecurring": PixRecurring, + "PlatformChargebackLogic": PlatformChargebackLogic, + "PseDetails": PseDetails, + "RakutenPayDetails": RakutenPayDetails, + "RatepayDetails": RatepayDetails, + "Recurring": Recurring, + "ResponseAdditionalData3DSecure": ResponseAdditionalData3DSecure, + "ResponseAdditionalDataBillingAddress": ResponseAdditionalDataBillingAddress, + "ResponseAdditionalDataCard": ResponseAdditionalDataCard, + "ResponseAdditionalDataCommon": ResponseAdditionalDataCommon, + "ResponseAdditionalDataDomesticError": ResponseAdditionalDataDomesticError, + "ResponseAdditionalDataInstallments": ResponseAdditionalDataInstallments, + "ResponseAdditionalDataNetworkTokens": ResponseAdditionalDataNetworkTokens, + "ResponseAdditionalDataOpi": ResponseAdditionalDataOpi, + "ResponseAdditionalDataSepa": ResponseAdditionalDataSepa, + "ResponsePaymentMethod": ResponsePaymentMethod, + "RiskData": RiskData, + "RivertyDetails": RivertyDetails, + "SDKEphemPubKey": SDKEphemPubKey, + "SamsungPayDetails": SamsungPayDetails, + "SepaDirectDebitDetails": SepaDirectDebitDetails, + "ServiceError": ServiceError, + "SessionResultResponse": SessionResultResponse, + "ShopperInteractionDevice": ShopperInteractionDevice, + "Split": Split, + "SplitAmount": SplitAmount, + "StandalonePaymentCancelRequest": StandalonePaymentCancelRequest, + "StandalonePaymentCancelResponse": StandalonePaymentCancelResponse, + "StoredPaymentMethod": StoredPaymentMethod, + "StoredPaymentMethodDetails": StoredPaymentMethodDetails, + "StoredPaymentMethodRequest": StoredPaymentMethodRequest, + "StoredPaymentMethodResource": StoredPaymentMethodResource, + "SubInputDetail": SubInputDetail, + "SubMerchant": SubMerchant, + "SubMerchantInfo": SubMerchantInfo, + "Surcharge": Surcharge, + "TaxTotal": TaxTotal, + "ThreeDS2RequestData": ThreeDS2RequestData, + "ThreeDS2RequestFields": ThreeDS2RequestFields, + "ThreeDS2ResponseData": ThreeDS2ResponseData, + "ThreeDS2Result": ThreeDS2Result, + "ThreeDSRequestData": ThreeDSRequestData, + "ThreeDSRequestorAuthenticationInfo": ThreeDSRequestorAuthenticationInfo, + "ThreeDSRequestorPriorAuthenticationInfo": ThreeDSRequestorPriorAuthenticationInfo, + "ThreeDSecureData": ThreeDSecureData, + "Ticket": Ticket, + "TravelAgency": TravelAgency, + "TwintDetails": TwintDetails, + "UpdatePaymentLinkRequest": UpdatePaymentLinkRequest, + "UpiCollectDetails": UpiCollectDetails, + "UpiIntentDetails": UpiIntentDetails, + "UtilityRequest": UtilityRequest, + "UtilityResponse": UtilityResponse, + "VippsDetails": VippsDetails, + "VisaCheckoutDetails": VisaCheckoutDetails, + "WeChatPayDetails": WeChatPayDetails, + "WeChatPayMiniProgramDetails": WeChatPayMiniProgramDetails, + "ZipDetails": ZipDetails, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/checkout/molPayDetails.ts b/src/typings/checkout/molPayDetails.ts index 97bc5e03d..5f76fce07 100644 --- a/src/typings/checkout/molPayDetails.ts +++ b/src/typings/checkout/molPayDetails.ts @@ -12,51 +12,43 @@ export class MolPayDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The shopper\'s bank. Specify this with the issuer value that corresponds to this bank. */ - "issuer": string; + 'issuer': string; /** * **molpay** */ - "type": MolPayDetails.TypeEnum; + 'type': MolPayDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuer", "baseName": "issuer", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "MolPayDetails.TypeEnum", - "format": "" + "type": "MolPayDetails.TypeEnum" } ]; static getAttributeTypeMap() { return MolPayDetails.attributeTypeMap; } - - public constructor() { - } } export namespace MolPayDetails { export enum TypeEnum { - MolpayEbankingFpxMy = 'molpay_ebanking_fpx_MY', - MolpayEbankingTh = 'molpay_ebanking_TH' + FpxMy = 'molpay_ebanking_fpx_MY', + Th = 'molpay_ebanking_TH' } } diff --git a/src/typings/checkout/name.ts b/src/typings/checkout/name.ts index 9ae5775ce..17f06c348 100644 --- a/src/typings/checkout/name.ts +++ b/src/typings/checkout/name.ts @@ -12,35 +12,28 @@ export class Name { /** * The first name. */ - "firstName": string; + 'firstName': string; /** * The last name. */ - "lastName": string; + 'lastName': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "firstName", "baseName": "firstName", - "type": "string", - "format": "" + "type": "string" }, { "name": "lastName", "baseName": "lastName", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Name.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/objectSerializer.ts b/src/typings/checkout/objectSerializer.ts deleted file mode 100644 index 7498e461f..000000000 --- a/src/typings/checkout/objectSerializer.ts +++ /dev/null @@ -1,977 +0,0 @@ -export * from "./models"; - -import { AccountInfo } from "./accountInfo"; -import { AcctInfo } from "./acctInfo"; -import { AchDetails } from "./achDetails"; -import { AdditionalData3DSecure } from "./additionalData3DSecure"; -import { AdditionalDataAirline } from "./additionalDataAirline"; -import { AdditionalDataCarRental } from "./additionalDataCarRental"; -import { AdditionalDataCommon } from "./additionalDataCommon"; -import { AdditionalDataLevel23 } from "./additionalDataLevel23"; -import { AdditionalDataLodging } from "./additionalDataLodging"; -import { AdditionalDataOpenInvoice } from "./additionalDataOpenInvoice"; -import { AdditionalDataOpi } from "./additionalDataOpi"; -import { AdditionalDataRatepay } from "./additionalDataRatepay"; -import { AdditionalDataRetry } from "./additionalDataRetry"; -import { AdditionalDataRisk } from "./additionalDataRisk"; -import { AdditionalDataRiskStandalone } from "./additionalDataRiskStandalone"; -import { AdditionalDataSubMerchant } from "./additionalDataSubMerchant"; -import { AdditionalDataTemporaryServices } from "./additionalDataTemporaryServices"; -import { AdditionalDataWallets } from "./additionalDataWallets"; -import { Address } from "./address"; -import { AffirmDetails } from "./affirmDetails"; -import { AfterpayDetails } from "./afterpayDetails"; -import { Agency } from "./agency"; -import { Airline } from "./airline"; -import { AmazonPayDetails } from "./amazonPayDetails"; -import { Amount } from "./amount"; -import { Amounts } from "./amounts"; -import { AncvDetails } from "./ancvDetails"; -import { AndroidPayDetails } from "./androidPayDetails"; -import { ApplePayDetails } from "./applePayDetails"; -import { ApplePayDonations } from "./applePayDonations"; -import { ApplePaySessionRequest } from "./applePaySessionRequest"; -import { ApplePaySessionResponse } from "./applePaySessionResponse"; -import { ApplicationInfo } from "./applicationInfo"; -import { AuthenticationData } from "./authenticationData"; -import { BacsDirectDebitDetails } from "./bacsDirectDebitDetails"; -import { BalanceCheckRequest } from "./balanceCheckRequest"; -import { BalanceCheckResponse } from "./balanceCheckResponse"; -import { BillDeskDetails } from "./billDeskDetails"; -import { BillingAddress } from "./billingAddress"; -import { BlikDetails } from "./blikDetails"; -import { BrowserInfo } from "./browserInfo"; -import { CancelOrderRequest } from "./cancelOrderRequest"; -import { CancelOrderResponse } from "./cancelOrderResponse"; -import { CardBrandDetails } from "./cardBrandDetails"; -import { CardDetails } from "./cardDetails"; -import { CardDetailsRequest } from "./cardDetailsRequest"; -import { CardDetailsResponse } from "./cardDetailsResponse"; -import { CardDonations } from "./cardDonations"; -import { CashAppDetails } from "./cashAppDetails"; -import { CellulantDetails } from "./cellulantDetails"; -import { CheckoutAwaitAction } from "./checkoutAwaitAction"; -import { CheckoutBankAccount } from "./checkoutBankAccount"; -import { CheckoutBankTransferAction } from "./checkoutBankTransferAction"; -import { CheckoutDelegatedAuthenticationAction } from "./checkoutDelegatedAuthenticationAction"; -import { CheckoutNativeRedirectAction } from "./checkoutNativeRedirectAction"; -import { CheckoutOrderResponse } from "./checkoutOrderResponse"; -import { CheckoutQrCodeAction } from "./checkoutQrCodeAction"; -import { CheckoutRedirectAction } from "./checkoutRedirectAction"; -import { CheckoutSDKAction } from "./checkoutSDKAction"; -import { CheckoutSessionInstallmentOption } from "./checkoutSessionInstallmentOption"; -import { CheckoutSessionThreeDS2RequestData } from "./checkoutSessionThreeDS2RequestData"; -import { CheckoutThreeDS2Action } from "./checkoutThreeDS2Action"; -import { CheckoutVoucherAction } from "./checkoutVoucherAction"; -import { CommonField } from "./commonField"; -import { Company } from "./company"; -import { CreateCheckoutSessionRequest } from "./createCheckoutSessionRequest"; -import { CreateCheckoutSessionResponse } from "./createCheckoutSessionResponse"; -import { CreateOrderRequest } from "./createOrderRequest"; -import { CreateOrderResponse } from "./createOrderResponse"; -import { DeliveryAddress } from "./deliveryAddress"; -import { DeliveryMethod } from "./deliveryMethod"; -import { DetailsRequestAuthenticationData } from "./detailsRequestAuthenticationData"; -import { DeviceRenderOptions } from "./deviceRenderOptions"; -import { DokuDetails } from "./dokuDetails"; -import { Donation } from "./donation"; -import { DonationCampaign } from "./donationCampaign"; -import { DonationCampaignsRequest } from "./donationCampaignsRequest"; -import { DonationCampaignsResponse } from "./donationCampaignsResponse"; -import { DonationPaymentRequest } from "./donationPaymentRequest"; -import { DonationPaymentRequestPaymentMethodClass } from "./donationPaymentRequestPaymentMethod"; -import { DonationPaymentResponse } from "./donationPaymentResponse"; -import { DragonpayDetails } from "./dragonpayDetails"; -import { EBankingFinlandDetails } from "./eBankingFinlandDetails"; -import { EcontextVoucherDetails } from "./econtextVoucherDetails"; -import { EftDetails } from "./eftDetails"; -import { EncryptedOrderData } from "./encryptedOrderData"; -import { EnhancedSchemeData } from "./enhancedSchemeData"; -import { ExternalPlatform } from "./externalPlatform"; -import { FastlaneDetails } from "./fastlaneDetails"; -import { ForexQuote } from "./forexQuote"; -import { FraudCheckResult } from "./fraudCheckResult"; -import { FraudResult } from "./fraudResult"; -import { FundOrigin } from "./fundOrigin"; -import { FundRecipient } from "./fundRecipient"; -import { GenericIssuerPaymentMethodDetails } from "./genericIssuerPaymentMethodDetails"; -import { GooglePayDetails } from "./googlePayDetails"; -import { GooglePayDonations } from "./googlePayDonations"; -import { IdealDetails } from "./idealDetails"; -import { IdealDonations } from "./idealDonations"; -import { InputDetail } from "./inputDetail"; -import { InstallmentOption } from "./installmentOption"; -import { Installments } from "./installments"; -import { Item } from "./item"; -import { KlarnaDetails } from "./klarnaDetails"; -import { Leg } from "./leg"; -import { LineItem } from "./lineItem"; -import { ListStoredPaymentMethodsResponse } from "./listStoredPaymentMethodsResponse"; -import { Mandate } from "./mandate"; -import { MasterpassDetails } from "./masterpassDetails"; -import { MbwayDetails } from "./mbwayDetails"; -import { MerchantDevice } from "./merchantDevice"; -import { MerchantRiskIndicator } from "./merchantRiskIndicator"; -import { MobilePayDetails } from "./mobilePayDetails"; -import { MolPayDetails } from "./molPayDetails"; -import { Name } from "./name"; -import { OpenInvoiceDetails } from "./openInvoiceDetails"; -import { Passenger } from "./passenger"; -import { PayByBankAISDirectDebitDetails } from "./payByBankAISDirectDebitDetails"; -import { PayByBankDetails } from "./payByBankDetails"; -import { PayPalDetails } from "./payPalDetails"; -import { PayPayDetails } from "./payPayDetails"; -import { PayToDetails } from "./payToDetails"; -import { PayUUpiDetails } from "./payUUpiDetails"; -import { PayWithGoogleDetails } from "./payWithGoogleDetails"; -import { PayWithGoogleDonations } from "./payWithGoogleDonations"; -import { Payment } from "./payment"; -import { PaymentAmountUpdateRequest } from "./paymentAmountUpdateRequest"; -import { PaymentAmountUpdateResponse } from "./paymentAmountUpdateResponse"; -import { PaymentCancelRequest } from "./paymentCancelRequest"; -import { PaymentCancelResponse } from "./paymentCancelResponse"; -import { PaymentCaptureRequest } from "./paymentCaptureRequest"; -import { PaymentCaptureResponse } from "./paymentCaptureResponse"; -import { PaymentCompletionDetails } from "./paymentCompletionDetails"; -import { PaymentDetails } from "./paymentDetails"; -import { PaymentDetailsRequest } from "./paymentDetailsRequest"; -import { PaymentDetailsResponse } from "./paymentDetailsResponse"; -import { PaymentLinkRequest } from "./paymentLinkRequest"; -import { PaymentLinkResponse } from "./paymentLinkResponse"; -import { PaymentMethod } from "./paymentMethod"; -import { PaymentMethodGroup } from "./paymentMethodGroup"; -import { PaymentMethodIssuer } from "./paymentMethodIssuer"; -import { PaymentMethodToStore } from "./paymentMethodToStore"; -import { PaymentMethodUPIApps } from "./paymentMethodUPIApps"; -import { PaymentMethodsRequest } from "./paymentMethodsRequest"; -import { PaymentMethodsResponse } from "./paymentMethodsResponse"; -import { PaymentRefundRequest } from "./paymentRefundRequest"; -import { PaymentRefundResponse } from "./paymentRefundResponse"; -import { PaymentRequest } from "./paymentRequest"; -import { PaymentRequestPaymentMethodClass } from "./paymentRequestPaymentMethod"; -import { PaymentResponse } from "./paymentResponse"; -import { PaymentResponseActionClass } from "./paymentResponseAction"; -import { PaymentReversalRequest } from "./paymentReversalRequest"; -import { PaymentReversalResponse } from "./paymentReversalResponse"; -import { PaypalUpdateOrderRequest } from "./paypalUpdateOrderRequest"; -import { PaypalUpdateOrderResponse } from "./paypalUpdateOrderResponse"; -import { Phone } from "./phone"; -import { PixDetails } from "./pixDetails"; -import { PixRecurring } from "./pixRecurring"; -import { PlatformChargebackLogic } from "./platformChargebackLogic"; -import { PseDetails } from "./pseDetails"; -import { RakutenPayDetails } from "./rakutenPayDetails"; -import { RatepayDetails } from "./ratepayDetails"; -import { Recurring } from "./recurring"; -import { ResponseAdditionalData3DSecure } from "./responseAdditionalData3DSecure"; -import { ResponseAdditionalDataBillingAddress } from "./responseAdditionalDataBillingAddress"; -import { ResponseAdditionalDataCard } from "./responseAdditionalDataCard"; -import { ResponseAdditionalDataCommon } from "./responseAdditionalDataCommon"; -import { ResponseAdditionalDataDomesticError } from "./responseAdditionalDataDomesticError"; -import { ResponseAdditionalDataInstallments } from "./responseAdditionalDataInstallments"; -import { ResponseAdditionalDataNetworkTokens } from "./responseAdditionalDataNetworkTokens"; -import { ResponseAdditionalDataOpi } from "./responseAdditionalDataOpi"; -import { ResponseAdditionalDataSepa } from "./responseAdditionalDataSepa"; -import { ResponsePaymentMethod } from "./responsePaymentMethod"; -import { RiskData } from "./riskData"; -import { RivertyDetails } from "./rivertyDetails"; -import { SDKEphemPubKey } from "./sDKEphemPubKey"; -import { SamsungPayDetails } from "./samsungPayDetails"; -import { SepaDirectDebitDetails } from "./sepaDirectDebitDetails"; -import { ServiceError } from "./serviceError"; -import { SessionResultResponse } from "./sessionResultResponse"; -import { ShopperInteractionDevice } from "./shopperInteractionDevice"; -import { Split } from "./split"; -import { SplitAmount } from "./splitAmount"; -import { StandalonePaymentCancelRequest } from "./standalonePaymentCancelRequest"; -import { StandalonePaymentCancelResponse } from "./standalonePaymentCancelResponse"; -import { StoredPaymentMethod } from "./storedPaymentMethod"; -import { StoredPaymentMethodDetails } from "./storedPaymentMethodDetails"; -import { StoredPaymentMethodRequest } from "./storedPaymentMethodRequest"; -import { StoredPaymentMethodResource } from "./storedPaymentMethodResource"; -import { SubInputDetail } from "./subInputDetail"; -import { SubMerchant } from "./subMerchant"; -import { SubMerchantInfo } from "./subMerchantInfo"; -import { Surcharge } from "./surcharge"; -import { TaxTotal } from "./taxTotal"; -import { ThreeDS2RequestData } from "./threeDS2RequestData"; -import { ThreeDS2RequestFields } from "./threeDS2RequestFields"; -import { ThreeDS2ResponseData } from "./threeDS2ResponseData"; -import { ThreeDS2Result } from "./threeDS2Result"; -import { ThreeDSRequestData } from "./threeDSRequestData"; -import { ThreeDSRequestorAuthenticationInfo } from "./threeDSRequestorAuthenticationInfo"; -import { ThreeDSRequestorPriorAuthenticationInfo } from "./threeDSRequestorPriorAuthenticationInfo"; -import { ThreeDSecureData } from "./threeDSecureData"; -import { Ticket } from "./ticket"; -import { TravelAgency } from "./travelAgency"; -import { TwintDetails } from "./twintDetails"; -import { UpdatePaymentLinkRequest } from "./updatePaymentLinkRequest"; -import { UpiCollectDetails } from "./upiCollectDetails"; -import { UpiIntentDetails } from "./upiIntentDetails"; -import { UtilityRequest } from "./utilityRequest"; -import { UtilityResponse } from "./utilityResponse"; -import { VippsDetails } from "./vippsDetails"; -import { VisaCheckoutDetails } from "./visaCheckoutDetails"; -import { WeChatPayDetails } from "./weChatPayDetails"; -import { WeChatPayMiniProgramDetails } from "./weChatPayMiniProgramDetails"; -import { ZipDetails } from "./zipDetails"; - -/* tslint:disable:no-unused-variable */ -let primitives = [ - "string", - "boolean", - "double", - "integer", - "long", - "float", - "number", - "any" - ]; - -let enumsMap: Set = new Set([ - "AccountInfo.AccountAgeIndicatorEnum", - "AccountInfo.AccountChangeIndicatorEnum", - "AccountInfo.AccountTypeEnum", - "AccountInfo.DeliveryAddressUsageIndicatorEnum", - "AccountInfo.PasswordChangeIndicatorEnum", - "AccountInfo.PaymentAccountIndicatorEnum", - "AcctInfo.ChAccAgeIndEnum", - "AcctInfo.ChAccChangeIndEnum", - "AcctInfo.ChAccPwChangeIndEnum", - "AcctInfo.PaymentAccIndEnum", - "AcctInfo.ShipAddressUsageIndEnum", - "AcctInfo.ShipNameIndicatorEnum", - "AcctInfo.SuspiciousAccActivityEnum", - "AchDetails.AccountHolderTypeEnum", - "AchDetails.BankAccountTypeEnum", - "AchDetails.TypeEnum", - "AdditionalData3DSecure.ChallengeWindowSizeEnum", - "AdditionalDataCommon.IndustryUsageEnum", - "AffirmDetails.TypeEnum", - "AfterpayDetails.TypeEnum", - "AmazonPayDetails.TypeEnum", - "AncvDetails.TypeEnum", - "AndroidPayDetails.TypeEnum", - "ApplePayDetails.FundingSourceEnum", - "ApplePayDetails.TypeEnum", - "ApplePayDonations.FundingSourceEnum", - "ApplePayDonations.TypeEnum", - "AuthenticationData.AttemptAuthenticationEnum", - "BacsDirectDebitDetails.TypeEnum", - "BalanceCheckRequest.RecurringProcessingModelEnum", - "BalanceCheckRequest.ShopperInteractionEnum", - "BalanceCheckResponse.ResultCodeEnum", - "BillDeskDetails.TypeEnum", - "BlikDetails.TypeEnum", - "CancelOrderResponse.ResultCodeEnum", - "CardDetails.FundingSourceEnum", - "CardDetails.TypeEnum", - "CardDonations.FundingSourceEnum", - "CardDonations.TypeEnum", - "CashAppDetails.TypeEnum", - "CellulantDetails.TypeEnum", - "CheckoutAwaitAction.TypeEnum", - "CheckoutBankAccount.AccountTypeEnum", - "CheckoutBankTransferAction.TypeEnum", - "CheckoutDelegatedAuthenticationAction.TypeEnum", - "CheckoutNativeRedirectAction.TypeEnum", - "CheckoutQrCodeAction.TypeEnum", - "CheckoutRedirectAction.TypeEnum", - "CheckoutSDKAction.TypeEnum", - "CheckoutSessionInstallmentOption.PlansEnum", - "CheckoutSessionThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum", - "CheckoutThreeDS2Action.TypeEnum", - "CheckoutVoucherAction.TypeEnum", - "CreateCheckoutSessionRequest.ChannelEnum", - "CreateCheckoutSessionRequest.ModeEnum", - "CreateCheckoutSessionRequest.RecurringProcessingModelEnum", - "CreateCheckoutSessionRequest.ShopperInteractionEnum", - "CreateCheckoutSessionRequest.StoreFiltrationModeEnum", - "CreateCheckoutSessionRequest.StorePaymentMethodModeEnum", - "CreateCheckoutSessionResponse.ChannelEnum", - "CreateCheckoutSessionResponse.ModeEnum", - "CreateCheckoutSessionResponse.RecurringProcessingModelEnum", - "CreateCheckoutSessionResponse.ShopperInteractionEnum", - "CreateCheckoutSessionResponse.StoreFiltrationModeEnum", - "CreateCheckoutSessionResponse.StorePaymentMethodModeEnum", - "CreateOrderResponse.ResultCodeEnum", - "DeliveryMethod.TypeEnum", - "DeviceRenderOptions.SdkInterfaceEnum", - "DeviceRenderOptions.SdkUiTypeEnum", - "DokuDetails.TypeEnum", - "DonationPaymentRequest.ChannelEnum", - "DonationPaymentRequest.RecurringProcessingModelEnum", - "DonationPaymentRequest.ShopperInteractionEnum", - "DonationPaymentRequestPaymentMethod.FundingSourceEnum", - "DonationPaymentRequestPaymentMethod.TypeEnum", - "DonationPaymentResponse.StatusEnum", - "DragonpayDetails.TypeEnum", - "EBankingFinlandDetails.TypeEnum", - "EcontextVoucherDetails.TypeEnum", - "EftDetails.TypeEnum", - "FastlaneDetails.TypeEnum", - "FundRecipient.WalletPurposeEnum", - "GenericIssuerPaymentMethodDetails.TypeEnum", - "GooglePayDetails.FundingSourceEnum", - "GooglePayDetails.TypeEnum", - "GooglePayDonations.FundingSourceEnum", - "GooglePayDonations.TypeEnum", - "IdealDetails.TypeEnum", - "IdealDonations.TypeEnum", - "InstallmentOption.PlansEnum", - "Installments.PlanEnum", - "KlarnaDetails.TypeEnum", - "Mandate.AmountRuleEnum", - "Mandate.BillingAttemptsRuleEnum", - "Mandate.FrequencyEnum", - "MasterpassDetails.FundingSourceEnum", - "MasterpassDetails.TypeEnum", - "MbwayDetails.TypeEnum", - "MerchantRiskIndicator.DeliveryAddressIndicatorEnum", - "MerchantRiskIndicator.DeliveryTimeframeEnum", - "MobilePayDetails.TypeEnum", - "MolPayDetails.TypeEnum", - "OpenInvoiceDetails.TypeEnum", - "PayByBankAISDirectDebitDetails.TypeEnum", - "PayByBankDetails.TypeEnum", - "PayPalDetails.SubtypeEnum", - "PayPalDetails.TypeEnum", - "PayPayDetails.TypeEnum", - "PayToDetails.TypeEnum", - "PayUUpiDetails.TypeEnum", - "PayWithGoogleDetails.FundingSourceEnum", - "PayWithGoogleDetails.TypeEnum", - "PayWithGoogleDonations.FundingSourceEnum", - "PayWithGoogleDonations.TypeEnum", - "Payment.ResultCodeEnum", - "PaymentAmountUpdateRequest.IndustryUsageEnum", - "PaymentAmountUpdateResponse.IndustryUsageEnum", - "PaymentAmountUpdateResponse.StatusEnum", - "PaymentCancelResponse.StatusEnum", - "PaymentCaptureResponse.StatusEnum", - "PaymentDetails.TypeEnum", - "PaymentDetailsResponse.ResultCodeEnum", - "PaymentLinkRequest.RecurringProcessingModelEnum", - "PaymentLinkRequest.RequiredShopperFieldsEnum", - "PaymentLinkRequest.StorePaymentMethodModeEnum", - "PaymentLinkResponse.RecurringProcessingModelEnum", - "PaymentLinkResponse.RequiredShopperFieldsEnum", - "PaymentLinkResponse.StatusEnum", - "PaymentLinkResponse.StorePaymentMethodModeEnum", - "PaymentMethod.FundingSourceEnum", - "PaymentMethodsRequest.ChannelEnum", - "PaymentMethodsRequest.StoreFiltrationModeEnum", - "PaymentRefundRequest.MerchantRefundReasonEnum", - "PaymentRefundResponse.MerchantRefundReasonEnum", - "PaymentRefundResponse.StatusEnum", - "PaymentRequest.ChannelEnum", - "PaymentRequest.EntityTypeEnum", - "PaymentRequest.IndustryUsageEnum", - "PaymentRequest.RecurringProcessingModelEnum", - "PaymentRequest.ShopperInteractionEnum", - "PaymentRequestPaymentMethod.AccountHolderTypeEnum", - "PaymentRequestPaymentMethod.BankAccountTypeEnum", - "PaymentRequestPaymentMethod.TypeEnum", - "PaymentRequestPaymentMethod.FundingSourceEnum", - "PaymentResponse.ResultCodeEnum", - "PaymentResponseAction.TypeEnum", - "PaymentReversalResponse.StatusEnum", - "PaypalUpdateOrderResponse.StatusEnum", - "PixDetails.TypeEnum", - "PixRecurring.FrequencyEnum", - "PlatformChargebackLogic.BehaviorEnum", - "PseDetails.TypeEnum", - "RakutenPayDetails.TypeEnum", - "RatepayDetails.TypeEnum", - "Recurring.ContractEnum", - "Recurring.TokenServiceEnum", - "ResponseAdditionalDataCard.CardProductIdEnum", - "ResponseAdditionalDataCommon.FraudResultTypeEnum", - "ResponseAdditionalDataCommon.FraudRiskLevelEnum", - "ResponseAdditionalDataCommon.RecurringProcessingModelEnum", - "ResponseAdditionalDataCommon.TokenizationStoreOperationTypeEnum", - "RivertyDetails.TypeEnum", - "SamsungPayDetails.FundingSourceEnum", - "SamsungPayDetails.TypeEnum", - "SepaDirectDebitDetails.TypeEnum", - "SessionResultResponse.StatusEnum", - "Split.TypeEnum", - "StandalonePaymentCancelResponse.StatusEnum", - "StoredPaymentMethodDetails.TypeEnum", - "StoredPaymentMethodRequest.RecurringProcessingModelEnum", - "ThreeDS2RequestData.AcctTypeEnum", - "ThreeDS2RequestData.AddrMatchEnum", - "ThreeDS2RequestData.ChallengeIndicatorEnum", - "ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum", - "ThreeDS2RequestData.TransTypeEnum", - "ThreeDS2RequestData.TransactionTypeEnum", - "ThreeDS2RequestFields.AcctTypeEnum", - "ThreeDS2RequestFields.AddrMatchEnum", - "ThreeDS2RequestFields.ChallengeIndicatorEnum", - "ThreeDS2RequestFields.ThreeDSRequestorChallengeIndEnum", - "ThreeDS2RequestFields.TransTypeEnum", - "ThreeDS2RequestFields.TransactionTypeEnum", - "ThreeDS2Result.ChallengeCancelEnum", - "ThreeDS2Result.ExemptionIndicatorEnum", - "ThreeDS2Result.ThreeDSRequestorChallengeIndEnum", - "ThreeDSRequestData.ChallengeWindowSizeEnum", - "ThreeDSRequestData.DataOnlyEnum", - "ThreeDSRequestData.NativeThreeDSEnum", - "ThreeDSRequestData.ThreeDSVersionEnum", - "ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum", - "ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum", - "ThreeDSecureData.AuthenticationResponseEnum", - "ThreeDSecureData.ChallengeCancelEnum", - "ThreeDSecureData.DirectoryResponseEnum", - "TwintDetails.TypeEnum", - "UpdatePaymentLinkRequest.StatusEnum", - "UpiCollectDetails.TypeEnum", - "UpiIntentDetails.TypeEnum", - "VippsDetails.TypeEnum", - "VisaCheckoutDetails.FundingSourceEnum", - "VisaCheckoutDetails.TypeEnum", - "WeChatPayDetails.TypeEnum", - "WeChatPayMiniProgramDetails.TypeEnum", - "ZipDetails.TypeEnum", -]); - -let typeMap: {[index: string]: any} = { - "AccountInfo": AccountInfo, - "AcctInfo": AcctInfo, - "AchDetails": AchDetails, - "AdditionalData3DSecure": AdditionalData3DSecure, - "AdditionalDataAirline": AdditionalDataAirline, - "AdditionalDataCarRental": AdditionalDataCarRental, - "AdditionalDataCommon": AdditionalDataCommon, - "AdditionalDataLevel23": AdditionalDataLevel23, - "AdditionalDataLodging": AdditionalDataLodging, - "AdditionalDataOpenInvoice": AdditionalDataOpenInvoice, - "AdditionalDataOpi": AdditionalDataOpi, - "AdditionalDataRatepay": AdditionalDataRatepay, - "AdditionalDataRetry": AdditionalDataRetry, - "AdditionalDataRisk": AdditionalDataRisk, - "AdditionalDataRiskStandalone": AdditionalDataRiskStandalone, - "AdditionalDataSubMerchant": AdditionalDataSubMerchant, - "AdditionalDataTemporaryServices": AdditionalDataTemporaryServices, - "AdditionalDataWallets": AdditionalDataWallets, - "Address": Address, - "AffirmDetails": AffirmDetails, - "AfterpayDetails": AfterpayDetails, - "Agency": Agency, - "Airline": Airline, - "AmazonPayDetails": AmazonPayDetails, - "Amount": Amount, - "Amounts": Amounts, - "AncvDetails": AncvDetails, - "AndroidPayDetails": AndroidPayDetails, - "ApplePayDetails": ApplePayDetails, - "ApplePayDonations": ApplePayDonations, - "ApplePaySessionRequest": ApplePaySessionRequest, - "ApplePaySessionResponse": ApplePaySessionResponse, - "ApplicationInfo": ApplicationInfo, - "AuthenticationData": AuthenticationData, - "BacsDirectDebitDetails": BacsDirectDebitDetails, - "BalanceCheckRequest": BalanceCheckRequest, - "BalanceCheckResponse": BalanceCheckResponse, - "BillDeskDetails": BillDeskDetails, - "BillingAddress": BillingAddress, - "BlikDetails": BlikDetails, - "BrowserInfo": BrowserInfo, - "CancelOrderRequest": CancelOrderRequest, - "CancelOrderResponse": CancelOrderResponse, - "CardBrandDetails": CardBrandDetails, - "CardDetails": CardDetails, - "CardDetailsRequest": CardDetailsRequest, - "CardDetailsResponse": CardDetailsResponse, - "CardDonations": CardDonations, - "CashAppDetails": CashAppDetails, - "CellulantDetails": CellulantDetails, - "CheckoutAwaitAction": CheckoutAwaitAction, - "CheckoutBankAccount": CheckoutBankAccount, - "CheckoutBankTransferAction": CheckoutBankTransferAction, - "CheckoutDelegatedAuthenticationAction": CheckoutDelegatedAuthenticationAction, - "CheckoutNativeRedirectAction": CheckoutNativeRedirectAction, - "CheckoutOrderResponse": CheckoutOrderResponse, - "CheckoutQrCodeAction": CheckoutQrCodeAction, - "CheckoutRedirectAction": CheckoutRedirectAction, - "CheckoutSDKAction": CheckoutSDKAction, - "CheckoutSessionInstallmentOption": CheckoutSessionInstallmentOption, - "CheckoutSessionThreeDS2RequestData": CheckoutSessionThreeDS2RequestData, - "CheckoutThreeDS2Action": CheckoutThreeDS2Action, - "CheckoutVoucherAction": CheckoutVoucherAction, - "CommonField": CommonField, - "Company": Company, - "CreateCheckoutSessionRequest": CreateCheckoutSessionRequest, - "CreateCheckoutSessionResponse": CreateCheckoutSessionResponse, - "CreateOrderRequest": CreateOrderRequest, - "CreateOrderResponse": CreateOrderResponse, - "DeliveryAddress": DeliveryAddress, - "DeliveryMethod": DeliveryMethod, - "DetailsRequestAuthenticationData": DetailsRequestAuthenticationData, - "DeviceRenderOptions": DeviceRenderOptions, - "DokuDetails": DokuDetails, - "Donation": Donation, - "DonationCampaign": DonationCampaign, - "DonationCampaignsRequest": DonationCampaignsRequest, - "DonationCampaignsResponse": DonationCampaignsResponse, - "DonationPaymentRequest": DonationPaymentRequest, - "DonationPaymentRequestPaymentMethod": DonationPaymentRequestPaymentMethodClass, - "DonationPaymentResponse": DonationPaymentResponse, - "DragonpayDetails": DragonpayDetails, - "EBankingFinlandDetails": EBankingFinlandDetails, - "EcontextVoucherDetails": EcontextVoucherDetails, - "EftDetails": EftDetails, - "EncryptedOrderData": EncryptedOrderData, - "EnhancedSchemeData": EnhancedSchemeData, - "ExternalPlatform": ExternalPlatform, - "FastlaneDetails": FastlaneDetails, - "ForexQuote": ForexQuote, - "FraudCheckResult": FraudCheckResult, - "FraudResult": FraudResult, - "FundOrigin": FundOrigin, - "FundRecipient": FundRecipient, - "GenericIssuerPaymentMethodDetails": GenericIssuerPaymentMethodDetails, - "GooglePayDetails": GooglePayDetails, - "GooglePayDonations": GooglePayDonations, - "IdealDetails": IdealDetails, - "IdealDonations": IdealDonations, - "InputDetail": InputDetail, - "InstallmentOption": InstallmentOption, - "Installments": Installments, - "Item": Item, - "KlarnaDetails": KlarnaDetails, - "Leg": Leg, - "LineItem": LineItem, - "ListStoredPaymentMethodsResponse": ListStoredPaymentMethodsResponse, - "Mandate": Mandate, - "MasterpassDetails": MasterpassDetails, - "MbwayDetails": MbwayDetails, - "MerchantDevice": MerchantDevice, - "MerchantRiskIndicator": MerchantRiskIndicator, - "MobilePayDetails": MobilePayDetails, - "MolPayDetails": MolPayDetails, - "Name": Name, - "OpenInvoiceDetails": OpenInvoiceDetails, - "Passenger": Passenger, - "PayByBankAISDirectDebitDetails": PayByBankAISDirectDebitDetails, - "PayByBankDetails": PayByBankDetails, - "PayPalDetails": PayPalDetails, - "PayPayDetails": PayPayDetails, - "PayToDetails": PayToDetails, - "PayUUpiDetails": PayUUpiDetails, - "PayWithGoogleDetails": PayWithGoogleDetails, - "PayWithGoogleDonations": PayWithGoogleDonations, - "Payment": Payment, - "PaymentAmountUpdateRequest": PaymentAmountUpdateRequest, - "PaymentAmountUpdateResponse": PaymentAmountUpdateResponse, - "PaymentCancelRequest": PaymentCancelRequest, - "PaymentCancelResponse": PaymentCancelResponse, - "PaymentCaptureRequest": PaymentCaptureRequest, - "PaymentCaptureResponse": PaymentCaptureResponse, - "PaymentCompletionDetails": PaymentCompletionDetails, - "PaymentDetails": PaymentDetails, - "PaymentDetailsRequest": PaymentDetailsRequest, - "PaymentDetailsResponse": PaymentDetailsResponse, - "PaymentLinkRequest": PaymentLinkRequest, - "PaymentLinkResponse": PaymentLinkResponse, - "PaymentMethod": PaymentMethod, - "PaymentMethodGroup": PaymentMethodGroup, - "PaymentMethodIssuer": PaymentMethodIssuer, - "PaymentMethodToStore": PaymentMethodToStore, - "PaymentMethodUPIApps": PaymentMethodUPIApps, - "PaymentMethodsRequest": PaymentMethodsRequest, - "PaymentMethodsResponse": PaymentMethodsResponse, - "PaymentRefundRequest": PaymentRefundRequest, - "PaymentRefundResponse": PaymentRefundResponse, - "PaymentRequest": PaymentRequest, - "PaymentRequestPaymentMethod": PaymentRequestPaymentMethodClass, - "PaymentResponse": PaymentResponse, - "PaymentResponseAction": PaymentResponseActionClass, - "PaymentReversalRequest": PaymentReversalRequest, - "PaymentReversalResponse": PaymentReversalResponse, - "PaypalUpdateOrderRequest": PaypalUpdateOrderRequest, - "PaypalUpdateOrderResponse": PaypalUpdateOrderResponse, - "Phone": Phone, - "PixDetails": PixDetails, - "PixRecurring": PixRecurring, - "PlatformChargebackLogic": PlatformChargebackLogic, - "PseDetails": PseDetails, - "RakutenPayDetails": RakutenPayDetails, - "RatepayDetails": RatepayDetails, - "Recurring": Recurring, - "ResponseAdditionalData3DSecure": ResponseAdditionalData3DSecure, - "ResponseAdditionalDataBillingAddress": ResponseAdditionalDataBillingAddress, - "ResponseAdditionalDataCard": ResponseAdditionalDataCard, - "ResponseAdditionalDataCommon": ResponseAdditionalDataCommon, - "ResponseAdditionalDataDomesticError": ResponseAdditionalDataDomesticError, - "ResponseAdditionalDataInstallments": ResponseAdditionalDataInstallments, - "ResponseAdditionalDataNetworkTokens": ResponseAdditionalDataNetworkTokens, - "ResponseAdditionalDataOpi": ResponseAdditionalDataOpi, - "ResponseAdditionalDataSepa": ResponseAdditionalDataSepa, - "ResponsePaymentMethod": ResponsePaymentMethod, - "RiskData": RiskData, - "RivertyDetails": RivertyDetails, - "SDKEphemPubKey": SDKEphemPubKey, - "SamsungPayDetails": SamsungPayDetails, - "SepaDirectDebitDetails": SepaDirectDebitDetails, - "ServiceError": ServiceError, - "SessionResultResponse": SessionResultResponse, - "ShopperInteractionDevice": ShopperInteractionDevice, - "Split": Split, - "SplitAmount": SplitAmount, - "StandalonePaymentCancelRequest": StandalonePaymentCancelRequest, - "StandalonePaymentCancelResponse": StandalonePaymentCancelResponse, - "StoredPaymentMethod": StoredPaymentMethod, - "StoredPaymentMethodDetails": StoredPaymentMethodDetails, - "StoredPaymentMethodRequest": StoredPaymentMethodRequest, - "StoredPaymentMethodResource": StoredPaymentMethodResource, - "SubInputDetail": SubInputDetail, - "SubMerchant": SubMerchant, - "SubMerchantInfo": SubMerchantInfo, - "Surcharge": Surcharge, - "TaxTotal": TaxTotal, - "ThreeDS2RequestData": ThreeDS2RequestData, - "ThreeDS2RequestFields": ThreeDS2RequestFields, - "ThreeDS2ResponseData": ThreeDS2ResponseData, - "ThreeDS2Result": ThreeDS2Result, - "ThreeDSRequestData": ThreeDSRequestData, - "ThreeDSRequestorAuthenticationInfo": ThreeDSRequestorAuthenticationInfo, - "ThreeDSRequestorPriorAuthenticationInfo": ThreeDSRequestorPriorAuthenticationInfo, - "ThreeDSecureData": ThreeDSecureData, - "Ticket": Ticket, - "TravelAgency": TravelAgency, - "TwintDetails": TwintDetails, - "UpdatePaymentLinkRequest": UpdatePaymentLinkRequest, - "UpiCollectDetails": UpiCollectDetails, - "UpiIntentDetails": UpiIntentDetails, - "UtilityRequest": UtilityRequest, - "UtilityResponse": UtilityResponse, - "VippsDetails": VippsDetails, - "VisaCheckoutDetails": VisaCheckoutDetails, - "WeChatPayDetails": WeChatPayDetails, - "WeChatPayMiniProgramDetails": WeChatPayMiniProgramDetails, - "ZipDetails": ZipDetails, -} - -type MimeTypeDescriptor = { - type: string; - subtype: string; - subtypeTokens: string[]; -}; - -/** - * Every mime-type consists of a type, subtype, and optional parameters. - * The subtype can be composite, including information about the content format. - * For example: `application/json-patch+json`, `application/merge-patch+json`. - * - * This helper transforms a string mime-type into an internal representation. - * This simplifies the implementation of predicates that in turn define common rules for parsing or stringifying - * the payload. - */ -const parseMimeType = (mimeType: string): MimeTypeDescriptor => { - const [type = '', subtype = ''] = mimeType.split('/'); - return { - type, - subtype, - subtypeTokens: subtype.split('+'), - }; -}; - -type MimeTypePredicate = (mimeType: string) => boolean; - -// This factory creates a predicate function that checks a string mime-type against defined rules. -const mimeTypePredicateFactory = (predicate: (descriptor: MimeTypeDescriptor) => boolean): MimeTypePredicate => (mimeType) => predicate(parseMimeType(mimeType)); - -// Use this factory when you need to define a simple predicate based only on type and, if applicable, subtype. -const mimeTypeSimplePredicateFactory = (type: string, subtype?: string): MimeTypePredicate => mimeTypePredicateFactory((descriptor) => { - if (descriptor.type !== type) return false; - if (subtype != null && descriptor.subtype !== subtype) return false; - return true; -}); - -// Creating a set of named predicates that will help us determine how to handle different mime-types -const isTextLikeMimeType = mimeTypeSimplePredicateFactory('text'); -const isJsonMimeType = mimeTypeSimplePredicateFactory('application', 'json'); -const isJsonLikeMimeType = mimeTypePredicateFactory((descriptor) => descriptor.type === 'application' && descriptor.subtypeTokens.some((item) => item === 'json')); -const isOctetStreamMimeType = mimeTypeSimplePredicateFactory('application', 'octet-stream'); -const isFormUrlencodedMimeType = mimeTypeSimplePredicateFactory('application', 'x-www-form-urlencoded'); - -// Defining a list of mime-types in the order of prioritization for handling. -const supportedMimeTypePredicatesWithPriority: MimeTypePredicate[] = [ - isJsonMimeType, - isJsonLikeMimeType, - isTextLikeMimeType, - isOctetStreamMimeType, - isFormUrlencodedMimeType, -]; - -const nullableSuffix = " | null"; -const optionalSuffix = " | undefined"; -const arrayPrefix = "Array<"; -const arraySuffix = ">"; -const mapPrefix = "{ [key: string]: "; -const mapSuffix = "; }"; - -export class ObjectSerializer { - public static findCorrectType(data: any, expectedType: string) { - if (data == undefined) { - return expectedType; - } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { - return expectedType; - } else if (expectedType === "Date") { - return expectedType; - } else { - if (enumsMap.has(expectedType)) { - return expectedType; - } - - if (!typeMap[expectedType]) { - return expectedType; // w/e we don't know the type - } - - // Check the discriminator - let discriminatorProperty = typeMap[expectedType].discriminator; - if (discriminatorProperty == null) { - return expectedType; // the type does not have a discriminator. use it. - } else { - if (data[discriminatorProperty]) { - var discriminatorType = data[discriminatorProperty]; - let mapping = typeMap[expectedType].mapping; - if (mapping != undefined && mapping[discriminatorType]) { - return mapping[discriminatorType]; // use the type given in the discriminator - } else if(typeMap[discriminatorType]) { - return discriminatorType; - } else { - return expectedType; // discriminator did not map to a type - } - } else { - return expectedType; // discriminator was not present (or an empty string) - } - } - } - } - - /** - * Serializes a value into a plain JSON-compatible object based on its type. - * - * Supports primitives, arrays, maps, dates, enums, and classes defined in `typeMap`. - * Falls back to raw data if type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The value to serialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A JSON-compatible representation of `data`. - */ - public static serialize(data: any, type: string, format: string = ""): any { - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.serialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.serialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - if (format == "date") { - let month = data.getMonth()+1 - month = month < 10 ? "0" + month.toString() : month.toString() - let day = data.getDate(); - day = day < 10 ? "0" + day.toString() : day.toString(); - - return data.getFullYear() + "-" + month + "-" + day; - } else { - return data.toISOString(); - } - } else { - if (enumsMap.has(type)) { - return data; - } - if (!typeMap[type]) { // in case we dont know the type - return data; - } - - // Get the actual type of this object - type = this.findCorrectType(data, type); - - const clazz = typeMap[type]; - - // Safe check for getAttributeTypeMap - if (typeof clazz.getAttributeTypeMap !== "function") { - return { ...data }; // fallback: shallow copy - } - - // get the map for the correct type. - let attributeTypes = typeMap[type].getAttributeTypeMap(); - let instance: {[index: string]: any} = {}; - for (let attributeType of attributeTypes) { - instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format); - } - return instance; - } - } - - /** - * Deserializes a plain JSON-compatible object into a typed instance. - * - * Handles primitives, arrays, maps, dates, enums, and known classes from `typeMap`. - * Uses discriminators when available to resolve polymorphic types. - * Falls back to raw data if the type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The raw input to deserialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A deserialized instance or value of `data`. - */ - public static deserialize(data: any, type: string, format: string = ""): any { - // polymorphism may change the actual type. - type = ObjectSerializer.findCorrectType(data, type); - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.deserialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.deserialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - return new Date(data); - } else { - if (enumsMap.has(type)) {// is Enum - return data; - } - - if (!typeMap[type]) { // dont know the type - return data; - } - let instance = new typeMap[type](); - - // Safe check for getAttributeTypeMap - if (typeof typeMap[type].getAttributeTypeMap !== "function") { - Object.assign(instance, data); // fallback: shallow copy - return instance; - } - - let attributeTypes = typeMap[type].getAttributeTypeMap(); - for (let attributeType of attributeTypes) { - let value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format); - if (value !== undefined) { - instance[attributeType.name] = value; - } - } - return instance; - } - } - - - /** - * Normalize media type - * - * We currently do not handle any media types attributes, i.e. anything - * after a semicolon. All content is assumed to be UTF-8 compatible. - */ - public static normalizeMediaType(mediaType: string | undefined): string | undefined { - if (mediaType === undefined) { - return undefined; - } - return (mediaType.split(";")[0] ?? '').trim().toLowerCase(); - } - - /** - * From a list of possible media types, choose the one we can handle best. - * - * The order of the given media types does not have any impact on the choice - * made. - */ - public static getPreferredMediaType(mediaTypes: Array): string { - /** According to OAS 3 we should default to json */ - if (mediaTypes.length === 0) { - return "application/json"; - } - - const normalMediaTypes = mediaTypes.map(ObjectSerializer.normalizeMediaType); - - for (const predicate of supportedMimeTypePredicatesWithPriority) { - for (const mediaType of normalMediaTypes) { - if (mediaType != null && predicate(mediaType)) { - return mediaType; - } - } - } - - throw new Error("None of the given media types are supported: " + mediaTypes.join(", ")); - } - - /** - * Convert data to a string according the given media type - */ - public static stringify(data: any, mediaType: string): string { - if (isTextLikeMimeType(mediaType)) { - return String(data); - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.stringify(data); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify."); - } - - /** - * Parse data from a string according to the given media type - */ - public static parse(rawData: string, mediaType: string | undefined) { - if (mediaType === undefined) { - throw new Error("Cannot parse content. No Content-Type defined."); - } - - if (isTextLikeMimeType(mediaType)) { - return rawData; - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.parse(rawData); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse."); - } -} diff --git a/src/typings/checkout/openInvoiceDetails.ts b/src/typings/checkout/openInvoiceDetails.ts index fdabd716b..e13d78e3e 100644 --- a/src/typings/checkout/openInvoiceDetails.ts +++ b/src/typings/checkout/openInvoiceDetails.ts @@ -12,89 +12,77 @@ export class OpenInvoiceDetails { /** * The address where to send the invoice. */ - "billingAddress"?: string; + 'billingAddress'?: string; /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The address where the goods should be delivered. */ - "deliveryAddress"?: string; + 'deliveryAddress'?: string; /** * Shopper name, date of birth, phone number, and email address. */ - "personalDetails"?: string; + 'personalDetails'?: 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; + 'recurringDetailReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * **openinvoice** */ - "type"?: OpenInvoiceDetails.TypeEnum; + 'type'?: OpenInvoiceDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "billingAddress", "baseName": "billingAddress", - "type": "string", - "format": "" + "type": "string" }, { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "deliveryAddress", "baseName": "deliveryAddress", - "type": "string", - "format": "" + "type": "string" }, { "name": "personalDetails", "baseName": "personalDetails", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "OpenInvoiceDetails.TypeEnum", - "format": "" + "type": "OpenInvoiceDetails.TypeEnum" } ]; static getAttributeTypeMap() { return OpenInvoiceDetails.attributeTypeMap; } - - public constructor() { - } } export namespace OpenInvoiceDetails { diff --git a/src/typings/checkout/passenger.ts b/src/typings/checkout/passenger.ts index 2e591ecaa..95be693b7 100644 --- a/src/typings/checkout/passenger.ts +++ b/src/typings/checkout/passenger.ts @@ -12,65 +12,55 @@ export class Passenger { /** * The passenger\'s date of birth. * Format `yyyy-MM-dd` * minLength: 10 * maxLength: 10 */ - "dateOfBirth"?: string; + 'dateOfBirth'?: string; /** * The passenger\'s first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII */ - "firstName"?: string; + 'firstName'?: string; /** * The passenger\'s last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII */ - "lastName"?: string; + 'lastName'?: string; /** * The passenger\'s phone number, including country code. This is an alphanumeric field that can include the \'+\' and \'-\' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters */ - "phoneNumber"?: string; + 'phoneNumber'?: string; /** * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters */ - "travellerType"?: string; + 'travellerType'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "dateOfBirth", "baseName": "dateOfBirth", - "type": "string", - "format": "date" + "type": "string" }, { "name": "firstName", "baseName": "firstName", - "type": "string", - "format": "" + "type": "string" }, { "name": "lastName", "baseName": "lastName", - "type": "string", - "format": "" + "type": "string" }, { "name": "phoneNumber", "baseName": "phoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "travellerType", "baseName": "travellerType", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Passenger.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/payByBankAISDirectDebitDetails.ts b/src/typings/checkout/payByBankAISDirectDebitDetails.ts index 6640452bc..9d3664f6d 100644 --- a/src/typings/checkout/payByBankAISDirectDebitDetails.ts +++ b/src/typings/checkout/payByBankAISDirectDebitDetails.ts @@ -12,59 +12,50 @@ export class PayByBankAISDirectDebitDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: 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; + 'recurringDetailReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * **paybybank_AIS_DD** */ - "type": PayByBankAISDirectDebitDetails.TypeEnum; + 'type': PayByBankAISDirectDebitDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "PayByBankAISDirectDebitDetails.TypeEnum", - "format": "" + "type": "PayByBankAISDirectDebitDetails.TypeEnum" } ]; static getAttributeTypeMap() { return PayByBankAISDirectDebitDetails.attributeTypeMap; } - - public constructor() { - } } export namespace PayByBankAISDirectDebitDetails { diff --git a/src/typings/checkout/payByBankDetails.ts b/src/typings/checkout/payByBankDetails.ts index 015f25838..1a7b01133 100644 --- a/src/typings/checkout/payByBankDetails.ts +++ b/src/typings/checkout/payByBankDetails.ts @@ -12,46 +12,38 @@ export class PayByBankDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The PayByBank issuer value of the shopper\'s selected bank. */ - "issuer"?: string; + 'issuer'?: string; /** * **paybybank** */ - "type": PayByBankDetails.TypeEnum; + 'type': PayByBankDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuer", "baseName": "issuer", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "PayByBankDetails.TypeEnum", - "format": "" + "type": "PayByBankDetails.TypeEnum" } ]; static getAttributeTypeMap() { return PayByBankDetails.attributeTypeMap; } - - public constructor() { - } } export namespace PayByBankDetails { diff --git a/src/typings/checkout/payPalDetails.ts b/src/typings/checkout/payPalDetails.ts index 1e874c8c7..4cab58140 100644 --- a/src/typings/checkout/payPalDetails.ts +++ b/src/typings/checkout/payPalDetails.ts @@ -12,109 +12,95 @@ export class PayPalDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The unique ID associated with the order. */ - "orderID"?: string; + 'orderID'?: string; /** * IMMEDIATE_PAYMENT_REQUIRED or UNRESTRICTED */ - "payeePreferred"?: string; + 'payeePreferred'?: string; /** * The unique ID associated with the payer. */ - "payerID"?: string; + 'payerID'?: string; /** * PAYPAL or PAYPAL_CREDIT */ - "payerSelected"?: string; + 'payerSelected'?: 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; + 'recurringDetailReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * The type of flow to initiate. */ - "subtype"?: PayPalDetails.SubtypeEnum; + 'subtype'?: PayPalDetails.SubtypeEnum; /** * **paypal** */ - "type": PayPalDetails.TypeEnum; + 'type': PayPalDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "orderID", "baseName": "orderID", - "type": "string", - "format": "" + "type": "string" }, { "name": "payeePreferred", "baseName": "payeePreferred", - "type": "string", - "format": "" + "type": "string" }, { "name": "payerID", "baseName": "payerID", - "type": "string", - "format": "" + "type": "string" }, { "name": "payerSelected", "baseName": "payerSelected", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "subtype", "baseName": "subtype", - "type": "PayPalDetails.SubtypeEnum", - "format": "" + "type": "PayPalDetails.SubtypeEnum" }, { "name": "type", "baseName": "type", - "type": "PayPalDetails.TypeEnum", - "format": "" + "type": "PayPalDetails.TypeEnum" } ]; static getAttributeTypeMap() { return PayPalDetails.attributeTypeMap; } - - public constructor() { - } } export namespace PayPalDetails { diff --git a/src/typings/checkout/payPayDetails.ts b/src/typings/checkout/payPayDetails.ts index 57b724041..22b2c0bee 100644 --- a/src/typings/checkout/payPayDetails.ts +++ b/src/typings/checkout/payPayDetails.ts @@ -12,59 +12,50 @@ export class PayPayDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: 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; + 'recurringDetailReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * **paypay** */ - "type"?: PayPayDetails.TypeEnum; + 'type'?: PayPayDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "PayPayDetails.TypeEnum", - "format": "" + "type": "PayPayDetails.TypeEnum" } ]; static getAttributeTypeMap() { return PayPayDetails.attributeTypeMap; } - - public constructor() { - } } export namespace PayPayDetails { diff --git a/src/typings/checkout/payToDetails.ts b/src/typings/checkout/payToDetails.ts index b3da9c995..5e8220961 100644 --- a/src/typings/checkout/payToDetails.ts +++ b/src/typings/checkout/payToDetails.ts @@ -12,69 +12,59 @@ export class PayToDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: 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; + 'recurringDetailReference'?: string; /** * The shopper\'s banking details or payId reference, used to complete payment. */ - "shopperAccountIdentifier"?: string; + 'shopperAccountIdentifier'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * **payto** */ - "type"?: PayToDetails.TypeEnum; + 'type'?: PayToDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperAccountIdentifier", "baseName": "shopperAccountIdentifier", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "PayToDetails.TypeEnum", - "format": "" + "type": "PayToDetails.TypeEnum" } ]; static getAttributeTypeMap() { return PayToDetails.attributeTypeMap; } - - public constructor() { - } } export namespace PayToDetails { diff --git a/src/typings/checkout/payUUpiDetails.ts b/src/typings/checkout/payUUpiDetails.ts index f0a46fcf5..755118179 100644 --- a/src/typings/checkout/payUUpiDetails.ts +++ b/src/typings/checkout/payUUpiDetails.ts @@ -12,79 +12,68 @@ export class PayUUpiDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: 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; + 'recurringDetailReference'?: string; /** * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. */ - "shopperNotificationReference"?: string; + 'shopperNotificationReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * **payu_IN_upi** */ - "type": PayUUpiDetails.TypeEnum; + 'type': PayUUpiDetails.TypeEnum; /** * The virtual payment address for UPI. */ - "virtualPaymentAddress"?: string; + 'virtualPaymentAddress'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperNotificationReference", "baseName": "shopperNotificationReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "PayUUpiDetails.TypeEnum", - "format": "" + "type": "PayUUpiDetails.TypeEnum" }, { "name": "virtualPaymentAddress", "baseName": "virtualPaymentAddress", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PayUUpiDetails.attributeTypeMap; } - - public constructor() { - } } export namespace PayUUpiDetails { diff --git a/src/typings/checkout/payWithGoogleDetails.ts b/src/typings/checkout/payWithGoogleDetails.ts index ba59b386a..371f61884 100644 --- a/src/typings/checkout/payWithGoogleDetails.ts +++ b/src/typings/checkout/payWithGoogleDetails.ts @@ -12,89 +12,77 @@ export class PayWithGoogleDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ - "fundingSource"?: PayWithGoogleDetails.FundingSourceEnum; + 'fundingSource'?: PayWithGoogleDetails.FundingSourceEnum; /** * The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. */ - "googlePayToken": string; + 'googlePayToken': 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; + 'recurringDetailReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. */ - "threeDS2SdkVersion"?: string; + 'threeDS2SdkVersion'?: string; /** * **paywithgoogle** */ - "type"?: PayWithGoogleDetails.TypeEnum; + 'type'?: PayWithGoogleDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "fundingSource", "baseName": "fundingSource", - "type": "PayWithGoogleDetails.FundingSourceEnum", - "format": "" + "type": "PayWithGoogleDetails.FundingSourceEnum" }, { "name": "googlePayToken", "baseName": "googlePayToken", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDS2SdkVersion", "baseName": "threeDS2SdkVersion", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "PayWithGoogleDetails.TypeEnum", - "format": "" + "type": "PayWithGoogleDetails.TypeEnum" } ]; static getAttributeTypeMap() { return PayWithGoogleDetails.attributeTypeMap; } - - public constructor() { - } } export namespace PayWithGoogleDetails { diff --git a/src/typings/checkout/payWithGoogleDonations.ts b/src/typings/checkout/payWithGoogleDonations.ts index 9517ed7ab..63a8d699e 100644 --- a/src/typings/checkout/payWithGoogleDonations.ts +++ b/src/typings/checkout/payWithGoogleDonations.ts @@ -12,89 +12,77 @@ export class PayWithGoogleDonations { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ - "fundingSource"?: PayWithGoogleDonations.FundingSourceEnum; + 'fundingSource'?: PayWithGoogleDonations.FundingSourceEnum; /** * The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response. */ - "googlePayToken": string; + 'googlePayToken': 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; + 'recurringDetailReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * Required for mobile integrations. Version of the 3D Secure 2 mobile SDK. */ - "threeDS2SdkVersion"?: string; + 'threeDS2SdkVersion'?: string; /** * **paywithgoogle** */ - "type"?: PayWithGoogleDonations.TypeEnum; + 'type'?: PayWithGoogleDonations.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "fundingSource", "baseName": "fundingSource", - "type": "PayWithGoogleDonations.FundingSourceEnum", - "format": "" + "type": "PayWithGoogleDonations.FundingSourceEnum" }, { "name": "googlePayToken", "baseName": "googlePayToken", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDS2SdkVersion", "baseName": "threeDS2SdkVersion", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "PayWithGoogleDonations.TypeEnum", - "format": "" + "type": "PayWithGoogleDonations.TypeEnum" } ]; static getAttributeTypeMap() { return PayWithGoogleDonations.attributeTypeMap; } - - public constructor() { - } } export namespace PayWithGoogleDonations { diff --git a/src/typings/checkout/payment.ts b/src/typings/checkout/payment.ts index 81759584b..1ff0d1b69 100644 --- a/src/typings/checkout/payment.ts +++ b/src/typings/checkout/payment.ts @@ -7,58 +7,48 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { ResponsePaymentMethod } from "./responsePaymentMethod"; - +import { Amount } from './amount'; +import { ResponsePaymentMethod } from './responsePaymentMethod'; export class Payment { - "amount"?: Amount | null; - "paymentMethod"?: ResponsePaymentMethod | null; + 'amount'?: Amount | null; + 'paymentMethod'?: ResponsePaymentMethod | null; /** * Adyen\'s 16-character reference associated with the transaction/request. This value is globally unique. Use this reference when you communicate with us about this request. */ - "pspReference"?: string; + 'pspReference'?: string; /** * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. */ - "resultCode"?: Payment.ResultCodeEnum; - - static readonly discriminator: string | undefined = undefined; + 'resultCode'?: Payment.ResultCodeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "paymentMethod", "baseName": "paymentMethod", - "type": "ResponsePaymentMethod | null", - "format": "" + "type": "ResponsePaymentMethod | null" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "resultCode", "baseName": "resultCode", - "type": "Payment.ResultCodeEnum", - "format": "" + "type": "Payment.ResultCodeEnum" } ]; static getAttributeTypeMap() { return Payment.attributeTypeMap; } - - public constructor() { - } } export namespace Payment { diff --git a/src/typings/checkout/paymentAmountUpdateRequest.ts b/src/typings/checkout/paymentAmountUpdateRequest.ts index 5a1bbf4b7..41cca2313 100644 --- a/src/typings/checkout/paymentAmountUpdateRequest.ts +++ b/src/typings/checkout/paymentAmountUpdateRequest.ts @@ -7,90 +7,77 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { ApplicationInfo } from "./applicationInfo"; -import { LineItem } from "./lineItem"; -import { Split } from "./split"; - +import { Amount } from './amount'; +import { ApplicationInfo } from './applicationInfo'; +import { LineItem } from './lineItem'; +import { Split } from './split'; export class PaymentAmountUpdateRequest { - "amount": Amount; - "applicationInfo"?: ApplicationInfo | null; + 'amount': Amount; + 'applicationInfo'?: ApplicationInfo | null; /** * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** */ - "industryUsage"?: PaymentAmountUpdateRequest.IndustryUsageEnum; + 'industryUsage'?: PaymentAmountUpdateRequest.IndustryUsageEnum; /** * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. */ - "lineItems"?: Array; + 'lineItems'?: Array; /** * The merchant account that is used to process the payment. */ - "merchantAccount": string; + 'merchantAccount': string; /** * Your reference for the amount update request. Maximum length: 80 characters. */ - "reference"?: string; + 'reference'?: string; /** * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or [platforms](https://docs.adyen.com/platforms/process-payments). */ - "splits"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'splits'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo | null", - "format": "" + "type": "ApplicationInfo | null" }, { "name": "industryUsage", "baseName": "industryUsage", - "type": "PaymentAmountUpdateRequest.IndustryUsageEnum", - "format": "" + "type": "PaymentAmountUpdateRequest.IndustryUsageEnum" }, { "name": "lineItems", "baseName": "lineItems", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "splits", "baseName": "splits", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return PaymentAmountUpdateRequest.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentAmountUpdateRequest { diff --git a/src/typings/checkout/paymentAmountUpdateResponse.ts b/src/typings/checkout/paymentAmountUpdateResponse.ts index 717b38192..471afc34f 100644 --- a/src/typings/checkout/paymentAmountUpdateResponse.ts +++ b/src/typings/checkout/paymentAmountUpdateResponse.ts @@ -7,112 +7,97 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { LineItem } from "./lineItem"; -import { Split } from "./split"; - +import { Amount } from './amount'; +import { LineItem } from './lineItem'; +import { Split } from './split'; export class PaymentAmountUpdateResponse { - "amount": Amount; + 'amount': Amount; /** * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** */ - "industryUsage"?: PaymentAmountUpdateResponse.IndustryUsageEnum; + 'industryUsage'?: PaymentAmountUpdateResponse.IndustryUsageEnum; /** * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. */ - "lineItems"?: Array; + 'lineItems'?: Array; /** * The merchant account that is used to process the payment. */ - "merchantAccount": string; + 'merchantAccount': string; /** * The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment to update. */ - "paymentPspReference": string; + 'paymentPspReference': string; /** * Adyen\'s 16-character reference associated with the amount update request. */ - "pspReference": string; + 'pspReference': string; /** * Your reference for the amount update request. Maximum length: 80 characters. */ - "reference": string; + 'reference': string; /** * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or [platforms](https://docs.adyen.com/platforms/process-payments). */ - "splits"?: Array; + 'splits'?: Array; /** * The status of your request. This will always have the value **received**. */ - "status": PaymentAmountUpdateResponse.StatusEnum; - - static readonly discriminator: string | undefined = undefined; + 'status': PaymentAmountUpdateResponse.StatusEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "industryUsage", "baseName": "industryUsage", - "type": "PaymentAmountUpdateResponse.IndustryUsageEnum", - "format": "" + "type": "PaymentAmountUpdateResponse.IndustryUsageEnum" }, { "name": "lineItems", "baseName": "lineItems", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentPspReference", "baseName": "paymentPspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "splits", "baseName": "splits", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "status", "baseName": "status", - "type": "PaymentAmountUpdateResponse.StatusEnum", - "format": "" + "type": "PaymentAmountUpdateResponse.StatusEnum" } ]; static getAttributeTypeMap() { return PaymentAmountUpdateResponse.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentAmountUpdateResponse { diff --git a/src/typings/checkout/paymentCancelRequest.ts b/src/typings/checkout/paymentCancelRequest.ts index 2c6f7e55d..cdb4f5ea3 100644 --- a/src/typings/checkout/paymentCancelRequest.ts +++ b/src/typings/checkout/paymentCancelRequest.ts @@ -7,49 +7,40 @@ * Do not edit this class manually. */ -import { ApplicationInfo } from "./applicationInfo"; - +import { ApplicationInfo } from './applicationInfo'; export class PaymentCancelRequest { - "applicationInfo"?: ApplicationInfo | null; + 'applicationInfo'?: ApplicationInfo | null; /** * The merchant account that is used to process the payment. */ - "merchantAccount": string; + 'merchantAccount': string; /** * Your reference for the cancel request. Maximum length: 80 characters. */ - "reference"?: string; - - static readonly discriminator: string | undefined = undefined; + 'reference'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo | null", - "format": "" + "type": "ApplicationInfo | null" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PaymentCancelRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/paymentCancelResponse.ts b/src/typings/checkout/paymentCancelResponse.ts index fd5686193..1eef74cbd 100644 --- a/src/typings/checkout/paymentCancelResponse.ts +++ b/src/typings/checkout/paymentCancelResponse.ts @@ -12,66 +12,56 @@ export class PaymentCancelResponse { /** * The merchant account that is used to process the payment. */ - "merchantAccount": string; + 'merchantAccount': string; /** * The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment to cancel. */ - "paymentPspReference": string; + 'paymentPspReference': string; /** * Adyen\'s 16-character reference associated with the cancel request. */ - "pspReference": string; + 'pspReference': string; /** * Your reference for the cancel request. */ - "reference"?: string; + 'reference'?: string; /** * The status of your request. This will always have the value **received**. */ - "status": PaymentCancelResponse.StatusEnum; + 'status': PaymentCancelResponse.StatusEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentPspReference", "baseName": "paymentPspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "PaymentCancelResponse.StatusEnum", - "format": "" + "type": "PaymentCancelResponse.StatusEnum" } ]; static getAttributeTypeMap() { return PaymentCancelResponse.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentCancelResponse { diff --git a/src/typings/checkout/paymentCaptureRequest.ts b/src/typings/checkout/paymentCaptureRequest.ts index 49d5b1210..e0b80408e 100644 --- a/src/typings/checkout/paymentCaptureRequest.ts +++ b/src/typings/checkout/paymentCaptureRequest.ts @@ -7,106 +7,91 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { ApplicationInfo } from "./applicationInfo"; -import { EnhancedSchemeData } from "./enhancedSchemeData"; -import { LineItem } from "./lineItem"; -import { PlatformChargebackLogic } from "./platformChargebackLogic"; -import { Split } from "./split"; -import { SubMerchantInfo } from "./subMerchantInfo"; - +import { Amount } from './amount'; +import { ApplicationInfo } from './applicationInfo'; +import { EnhancedSchemeData } from './enhancedSchemeData'; +import { LineItem } from './lineItem'; +import { PlatformChargebackLogic } from './platformChargebackLogic'; +import { Split } from './split'; +import { SubMerchantInfo } from './subMerchantInfo'; export class PaymentCaptureRequest { - "amount": Amount; - "applicationInfo"?: ApplicationInfo | null; - "enhancedSchemeData"?: EnhancedSchemeData | null; + 'amount': Amount; + 'applicationInfo'?: ApplicationInfo | null; + 'enhancedSchemeData'?: EnhancedSchemeData | null; /** * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. */ - "lineItems"?: Array; + 'lineItems'?: Array; /** * The merchant account that is used to process the payment. */ - "merchantAccount": string; - "platformChargebackLogic"?: PlatformChargebackLogic | null; + 'merchantAccount': string; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Your reference for the capture request. Maximum length: 80 characters. */ - "reference"?: string; + 'reference'?: string; /** * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). */ - "splits"?: Array; + 'splits'?: Array; /** * A List of sub-merchants. */ - "subMerchants"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'subMerchants'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo | null", - "format": "" + "type": "ApplicationInfo | null" }, { "name": "enhancedSchemeData", "baseName": "enhancedSchemeData", - "type": "EnhancedSchemeData | null", - "format": "" + "type": "EnhancedSchemeData | null" }, { "name": "lineItems", "baseName": "lineItems", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic | null", - "format": "" + "type": "PlatformChargebackLogic | null" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "splits", "baseName": "splits", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "subMerchants", "baseName": "subMerchants", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return PaymentCaptureRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/paymentCaptureResponse.ts b/src/typings/checkout/paymentCaptureResponse.ts index d99b4ccee..57600c036 100644 --- a/src/typings/checkout/paymentCaptureResponse.ts +++ b/src/typings/checkout/paymentCaptureResponse.ts @@ -7,121 +7,105 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { LineItem } from "./lineItem"; -import { PlatformChargebackLogic } from "./platformChargebackLogic"; -import { Split } from "./split"; -import { SubMerchantInfo } from "./subMerchantInfo"; - +import { Amount } from './amount'; +import { LineItem } from './lineItem'; +import { PlatformChargebackLogic } from './platformChargebackLogic'; +import { Split } from './split'; +import { SubMerchantInfo } from './subMerchantInfo'; export class PaymentCaptureResponse { - "amount": Amount; + 'amount': Amount; /** * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. */ - "lineItems"?: Array; + 'lineItems'?: Array; /** * The merchant account that is used to process the payment. */ - "merchantAccount": string; + 'merchantAccount': string; /** * The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment to capture. */ - "paymentPspReference": string; - "platformChargebackLogic"?: PlatformChargebackLogic | null; + 'paymentPspReference': string; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Adyen\'s 16-character reference associated with the capture request. */ - "pspReference": string; + 'pspReference': string; /** * Your reference for the capture request. */ - "reference"?: string; + 'reference'?: string; /** * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). */ - "splits"?: Array; + 'splits'?: Array; /** * The status of your request. This will always have the value **received**. */ - "status": PaymentCaptureResponse.StatusEnum; + 'status': PaymentCaptureResponse.StatusEnum; /** * List of sub-merchants. */ - "subMerchants"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'subMerchants'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "lineItems", "baseName": "lineItems", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentPspReference", "baseName": "paymentPspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic | null", - "format": "" + "type": "PlatformChargebackLogic | null" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "splits", "baseName": "splits", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "status", "baseName": "status", - "type": "PaymentCaptureResponse.StatusEnum", - "format": "" + "type": "PaymentCaptureResponse.StatusEnum" }, { "name": "subMerchants", "baseName": "subMerchants", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return PaymentCaptureResponse.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentCaptureResponse { diff --git a/src/typings/checkout/paymentCompletionDetails.ts b/src/typings/checkout/paymentCompletionDetails.ts index 798418821..a1d244ece 100644 --- a/src/typings/checkout/paymentCompletionDetails.ts +++ b/src/typings/checkout/paymentCompletionDetails.ts @@ -12,212 +12,187 @@ export class PaymentCompletionDetails { /** * A payment session identifier returned by the card issuer. */ - "MD"?: string; + 'MD'?: string; /** * (3D) Payment Authentication Request data for the card issuer. */ - "PaReq"?: string; + 'PaReq'?: string; /** * (3D) Payment Authentication Response data by the card issuer. */ - "PaRes"?: string; - "authorization_token"?: string; + 'PaRes'?: string; + 'authorization_token'?: string; /** * PayPal-generated token for recurring payments. */ - "billingToken"?: string; + 'billingToken'?: string; /** * The SMS verification code collected from the shopper. */ - "cupsecureplus_smscode"?: string; + 'cupsecureplus_smscode'?: string; /** * PayPal-generated third party access token. */ - "facilitatorAccessToken"?: string; + 'facilitatorAccessToken'?: string; /** * A random number sent to the mobile phone number of the shopper to verify the payment. */ - "oneTimePasscode"?: string; + 'oneTimePasscode'?: string; /** * PayPal-assigned ID for the order. */ - "orderID"?: string; + 'orderID'?: string; /** * PayPal-assigned ID for the payer (shopper). */ - "payerID"?: string; + 'payerID'?: string; /** * Payload appended to the `returnURL` as a result of the redirect. */ - "payload"?: string; + 'payload'?: string; /** * PayPal-generated ID for the payment. */ - "paymentID"?: string; + 'paymentID'?: string; /** * Value passed from the WeChat MiniProgram `wx.requestPayment` **complete** callback. Possible values: any value starting with `requestPayment:`. */ - "paymentStatus"?: string; + 'paymentStatus'?: string; /** * The result of the redirect as appended to the `returnURL`. */ - "redirectResult"?: string; + 'redirectResult'?: string; /** * Value you received from the WeChat Pay SDK. */ - "resultCode"?: string; + 'resultCode'?: string; /** * The query string as appended to the `returnURL` when using direct issuer links . */ - "returnUrlQueryString"?: string; + 'returnUrlQueryString'?: string; /** * Base64-encoded string returned by the Component after the challenge flow. It contains the following parameters: `transStatus`, `authorisationToken`. */ - "threeDSResult"?: string; + 'threeDSResult'?: string; /** * Base64-encoded string returned by the Component after the challenge flow. It contains the following parameter: `transStatus`. */ - "threeds2_challengeResult"?: string; + 'threeds2_challengeResult'?: string; /** * Base64-encoded string returned by the Component after the challenge flow. It contains the following parameter: `threeDSCompInd`. */ - "threeds2_fingerprint"?: string; + 'threeds2_fingerprint'?: string; /** * PayPalv2-generated token for recurring payments. */ - "vaultToken"?: string; + 'vaultToken'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "MD", "baseName": "MD", - "type": "string", - "format": "" + "type": "string" }, { "name": "PaReq", "baseName": "PaReq", - "type": "string", - "format": "" + "type": "string" }, { "name": "PaRes", "baseName": "PaRes", - "type": "string", - "format": "" + "type": "string" }, { "name": "authorization_token", "baseName": "authorization_token", - "type": "string", - "format": "" + "type": "string" }, { "name": "billingToken", "baseName": "billingToken", - "type": "string", - "format": "" + "type": "string" }, { "name": "cupsecureplus_smscode", "baseName": "cupsecureplus.smscode", - "type": "string", - "format": "" + "type": "string" }, { "name": "facilitatorAccessToken", "baseName": "facilitatorAccessToken", - "type": "string", - "format": "" + "type": "string" }, { "name": "oneTimePasscode", "baseName": "oneTimePasscode", - "type": "string", - "format": "" + "type": "string" }, { "name": "orderID", "baseName": "orderID", - "type": "string", - "format": "" + "type": "string" }, { "name": "payerID", "baseName": "payerID", - "type": "string", - "format": "" + "type": "string" }, { "name": "payload", "baseName": "payload", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentID", "baseName": "paymentID", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentStatus", "baseName": "paymentStatus", - "type": "string", - "format": "" + "type": "string" }, { "name": "redirectResult", "baseName": "redirectResult", - "type": "string", - "format": "" + "type": "string" }, { "name": "resultCode", "baseName": "resultCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "returnUrlQueryString", "baseName": "returnUrlQueryString", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSResult", "baseName": "threeDSResult", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeds2_challengeResult", "baseName": "threeds2.challengeResult", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeds2_fingerprint", "baseName": "threeds2.fingerprint", - "type": "string", - "format": "" + "type": "string" }, { "name": "vaultToken", "baseName": "vaultToken", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PaymentCompletionDetails.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/paymentDetails.ts b/src/typings/checkout/paymentDetails.ts index 79d773835..68c7b35ad 100644 --- a/src/typings/checkout/paymentDetails.ts +++ b/src/typings/checkout/paymentDetails.ts @@ -12,36 +12,29 @@ export class PaymentDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The payment method type. */ - "type"?: PaymentDetails.TypeEnum; + 'type'?: PaymentDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "PaymentDetails.TypeEnum", - "format": "" + "type": "PaymentDetails.TypeEnum" } ]; static getAttributeTypeMap() { return PaymentDetails.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentDetails { diff --git a/src/typings/checkout/paymentDetailsRequest.ts b/src/typings/checkout/paymentDetailsRequest.ts index 8311c490f..4478d4dd1 100644 --- a/src/typings/checkout/paymentDetailsRequest.ts +++ b/src/typings/checkout/paymentDetailsRequest.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { DetailsRequestAuthenticationData } from "./detailsRequestAuthenticationData"; -import { PaymentCompletionDetails } from "./paymentCompletionDetails"; - +import { DetailsRequestAuthenticationData } from './detailsRequestAuthenticationData'; +import { PaymentCompletionDetails } from './paymentCompletionDetails'; export class PaymentDetailsRequest { - "authenticationData"?: DetailsRequestAuthenticationData | null; - "details": PaymentCompletionDetails; + 'authenticationData'?: DetailsRequestAuthenticationData | null; + 'details': PaymentCompletionDetails; /** * Encoded payment data. For [authorizing a payment after using 3D Secure 2 Authentication-only](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only/#authorise-the-payment-with-adyen): If you received `resultCode`: **AuthenticationNotRequired** in the `/payments` response, use the `threeDSPaymentData` from the same response. If you received `resultCode`: **AuthenticationFinished** in the `/payments` response, use the `action.paymentData` from the same response. */ - "paymentData"?: string; + 'paymentData'?: string; /** * Change the `authenticationOnly` indicator originally set in the `/payments` request. Only needs to be set if you want to modify the value set previously. * * @deprecated since Adyen Checkout API v69 * Use `authenticationData.authenticationOnly` instead. */ - "threeDSAuthenticationOnly"?: boolean; - - static readonly discriminator: string | undefined = undefined; + 'threeDSAuthenticationOnly'?: boolean; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "authenticationData", "baseName": "authenticationData", - "type": "DetailsRequestAuthenticationData | null", - "format": "" + "type": "DetailsRequestAuthenticationData | null" }, { "name": "details", "baseName": "details", - "type": "PaymentCompletionDetails", - "format": "" + "type": "PaymentCompletionDetails" }, { "name": "paymentData", "baseName": "paymentData", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSAuthenticationOnly", "baseName": "threeDSAuthenticationOnly", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return PaymentDetailsRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/paymentDetailsResponse.ts b/src/typings/checkout/paymentDetailsResponse.ts index 51b776fb9..9b9431e84 100644 --- a/src/typings/checkout/paymentDetailsResponse.ts +++ b/src/typings/checkout/paymentDetailsResponse.ts @@ -7,160 +7,139 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { CheckoutOrderResponse } from "./checkoutOrderResponse"; -import { FraudResult } from "./fraudResult"; -import { ResponsePaymentMethod } from "./responsePaymentMethod"; -import { ThreeDS2ResponseData } from "./threeDS2ResponseData"; -import { ThreeDS2Result } from "./threeDS2Result"; - +import { Amount } from './amount'; +import { CheckoutOrderResponse } from './checkoutOrderResponse'; +import { FraudResult } from './fraudResult'; +import { ResponsePaymentMethod } from './responsePaymentMethod'; +import { ThreeDS2ResponseData } from './threeDS2ResponseData'; +import { ThreeDS2Result } from './threeDS2Result'; export class PaymentDetailsResponse { /** * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. */ - "additionalData"?: { [key: string]: string; }; - "amount"?: Amount | null; + 'additionalData'?: { [key: string]: string; }; + 'amount'?: Amount | null; /** * Donation Token containing payment details for Adyen Giving. */ - "donationToken"?: string; - "fraudResult"?: FraudResult | null; + 'donationToken'?: string; + 'fraudResult'?: FraudResult | null; /** * The reference used during the /payments request. */ - "merchantReference"?: string; - "order"?: CheckoutOrderResponse | null; - "paymentMethod"?: ResponsePaymentMethod | null; + 'merchantReference'?: string; + 'order'?: CheckoutOrderResponse | null; + 'paymentMethod'?: ResponsePaymentMethod | 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. */ - "pspReference"?: string; + 'pspReference'?: string; /** * If the payment\'s authorisation is refused or an error occurs during authorisation, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ - "refusalReason"?: string; + 'refusalReason'?: string; /** * Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ - "refusalReasonCode"?: string; + 'refusalReasonCode'?: string; /** * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper\'s device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. */ - "resultCode"?: PaymentDetailsResponse.ResultCodeEnum; + 'resultCode'?: PaymentDetailsResponse.ResultCodeEnum; /** * The shopperLocale. */ - "shopperLocale"?: string; - "threeDS2ResponseData"?: ThreeDS2ResponseData | null; - "threeDS2Result"?: ThreeDS2Result | null; + 'shopperLocale'?: string; + 'threeDS2ResponseData'?: ThreeDS2ResponseData | null; + 'threeDS2Result'?: ThreeDS2Result | null; /** * When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. */ - "threeDSPaymentData"?: string; - - static readonly discriminator: string | undefined = undefined; + 'threeDSPaymentData'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "amount", "baseName": "amount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "donationToken", "baseName": "donationToken", - "type": "string", - "format": "" + "type": "string" }, { "name": "fraudResult", "baseName": "fraudResult", - "type": "FraudResult | null", - "format": "" + "type": "FraudResult | null" }, { "name": "merchantReference", "baseName": "merchantReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "order", "baseName": "order", - "type": "CheckoutOrderResponse | null", - "format": "" + "type": "CheckoutOrderResponse | null" }, { "name": "paymentMethod", "baseName": "paymentMethod", - "type": "ResponsePaymentMethod | null", - "format": "" + "type": "ResponsePaymentMethod | null" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "refusalReason", "baseName": "refusalReason", - "type": "string", - "format": "" + "type": "string" }, { "name": "refusalReasonCode", "baseName": "refusalReasonCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "resultCode", "baseName": "resultCode", - "type": "PaymentDetailsResponse.ResultCodeEnum", - "format": "" + "type": "PaymentDetailsResponse.ResultCodeEnum" }, { "name": "shopperLocale", "baseName": "shopperLocale", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDS2ResponseData", "baseName": "threeDS2ResponseData", - "type": "ThreeDS2ResponseData | null", - "format": "" + "type": "ThreeDS2ResponseData | null" }, { "name": "threeDS2Result", "baseName": "threeDS2Result", - "type": "ThreeDS2Result | null", - "format": "" + "type": "ThreeDS2Result | null" }, { "name": "threeDSPaymentData", "baseName": "threeDSPaymentData", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PaymentDetailsResponse.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentDetailsResponse { diff --git a/src/typings/checkout/paymentLinkRequest.ts b/src/typings/checkout/paymentLinkRequest.ts index 19eb0a1da..79f916c6c 100644 --- a/src/typings/checkout/paymentLinkRequest.ts +++ b/src/typings/checkout/paymentLinkRequest.ts @@ -7,424 +7,376 @@ * Do not edit this class manually. */ -import { Address } from "./address"; -import { Amount } from "./amount"; -import { ApplicationInfo } from "./applicationInfo"; -import { CheckoutSessionThreeDS2RequestData } from "./checkoutSessionThreeDS2RequestData"; -import { FundOrigin } from "./fundOrigin"; -import { FundRecipient } from "./fundRecipient"; -import { InstallmentOption } from "./installmentOption"; -import { LineItem } from "./lineItem"; -import { Name } from "./name"; -import { PlatformChargebackLogic } from "./platformChargebackLogic"; -import { RiskData } from "./riskData"; -import { Split } from "./split"; - +import { Address } from './address'; +import { Amount } from './amount'; +import { ApplicationInfo } from './applicationInfo'; +import { CheckoutSessionThreeDS2RequestData } from './checkoutSessionThreeDS2RequestData'; +import { FundOrigin } from './fundOrigin'; +import { FundRecipient } from './fundRecipient'; +import { InstallmentOption } from './installmentOption'; +import { LineItem } from './lineItem'; +import { Name } from './name'; +import { PlatformChargebackLogic } from './platformChargebackLogic'; +import { RiskData } from './riskData'; +import { Split } from './split'; export class PaymentLinkRequest { /** * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` */ - "allowedPaymentMethods"?: Array; - "amount": Amount; - "applicationInfo"?: ApplicationInfo | null; - "billingAddress"?: Address | null; + 'allowedPaymentMethods'?: Array; + 'amount': Amount; + 'applicationInfo'?: ApplicationInfo | null; + 'billingAddress'?: Address | null; /** * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` */ - "blockedPaymentMethods"?: Array; + 'blockedPaymentMethods'?: Array; /** * The delay between the authorisation and scheduled auto-capture, specified in hours. */ - "captureDelayHours"?: number; + 'captureDelayHours'?: number; /** * The shopper\'s two-letter country code. */ - "countryCode"?: string; + 'countryCode'?: string; /** * The shopper\'s date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ - "dateOfBirth"?: string; + 'dateOfBirth'?: string; /** * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. */ - "deliverAt"?: Date; - "deliveryAddress"?: Address | null; + 'deliverAt'?: Date; + 'deliveryAddress'?: Address | null; /** * A short description visible on the payment page. Maximum length: 280 characters. */ - "description"?: string; + 'description'?: string; /** * The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. */ - "expiresAt"?: Date; - "fundOrigin"?: FundOrigin | null; - "fundRecipient"?: FundRecipient | null; + 'expiresAt'?: Date; + 'fundOrigin'?: FundOrigin | null; + 'fundRecipient'?: FundRecipient | null; /** * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. */ - "installmentOptions"?: { [key: string]: InstallmentOption; }; + 'installmentOptions'?: { [key: string]: InstallmentOption; }; /** * Price and product information about the purchased items, to be included on the invoice sent to the shopper. This parameter is required for open invoice (_buy now, pay later_) payment methods such Afterpay, Clearpay, Klarna, RatePay, Riverty, and Zip. */ - "lineItems"?: Array; + 'lineItems'?: Array; /** * Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture). */ - "manualCapture"?: boolean; + 'manualCapture'?: boolean; /** * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ - "mcc"?: string; + 'mcc'?: string; /** * The merchant account identifier for which the payment link is created. */ - "merchantAccount": string; + 'merchantAccount': string; /** * This reference allows linking multiple transactions to each other for reporting purposes (for example, order auth-rate). The reference should be unique per billing cycle. */ - "merchantOrderReference"?: string; + 'merchantOrderReference'?: string; /** * Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * A key cannot have the name `checkout.linkId`. Any value that you provide with this key is going to be replaced by the real payment link ID. */ - "metadata"?: { [key: string]: string; }; - "platformChargebackLogic"?: PlatformChargebackLogic | null; + 'metadata'?: { [key: string]: string; }; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible 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 has variable amounts. For example, automatic top-ups when a cardholder\'s balance drops below a certain amount. */ - "recurringProcessingModel"?: PaymentLinkRequest.RecurringProcessingModelEnum; + 'recurringProcessingModel'?: PaymentLinkRequest.RecurringProcessingModelEnum; /** * A reference that is used to uniquely identify the payment in future communications about the payment status. */ - "reference": string; + 'reference': string; /** * List of fields that the shopper has to provide on the payment page before completing the payment. For more information, refer to [Provide shopper information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). Possible values: * **billingAddress** – The address where to send the invoice. * **deliveryAddress** – The address where the purchased goods should be delivered. * **shopperEmail** – The shopper\'s email address. * **shopperName** – The shopper\'s full name. * **telephoneNumber** – The shopper\'s phone number. */ - "requiredShopperFields"?: Array; + 'requiredShopperFields'?: Array; /** * Website URL used for redirection after payment is completed. If provided, a **Continue** button will be shown on the payment page. If shoppers select the button, they are redirected to the specified URL. */ - "returnUrl"?: string; + 'returnUrl'?: string; /** * Indicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only. */ - "reusable"?: boolean; - "riskData"?: RiskData | null; + 'reusable'?: boolean; + 'riskData'?: RiskData | null; /** * The shopper\'s email address. */ - "shopperEmail"?: string; + 'shopperEmail'?: string; /** * The language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). */ - "shopperLocale"?: string; - "shopperName"?: Name | null; + 'shopperLocale'?: string; + 'shopperName'?: Name | null; /** * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ - "shopperReference"?: string; + 'shopperReference'?: string; /** * The text to be shown on the shopper\'s bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , \' _ - ? + * /_**. */ - "shopperStatement"?: string; + 'shopperStatement'?: string; /** * Set to **false** to hide the button that lets the shopper remove a stored payment method. */ - "showRemovePaymentMethodButton"?: boolean; + 'showRemovePaymentMethodButton'?: boolean; /** * The shopper\'s social security number. */ - "socialSecurityNumber"?: string; + 'socialSecurityNumber'?: string; /** * Boolean value indicating whether the card payment method should be split into separate debit and credit options. */ - "splitCardFundingSources"?: boolean; + 'splitCardFundingSources'?: boolean; /** * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). */ - "splits"?: Array; + 'splits'?: Array; /** * The physical store, for which this payment is processed. */ - "store"?: string; + 'store'?: string; /** * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter. */ - "storePaymentMethodMode"?: PaymentLinkRequest.StorePaymentMethodModeEnum; + 'storePaymentMethodMode'?: PaymentLinkRequest.StorePaymentMethodModeEnum; /** * The shopper\'s telephone number. */ - "telephoneNumber"?: string; + 'telephoneNumber'?: string; /** * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. */ - "themeId"?: string; - "threeDS2RequestData"?: CheckoutSessionThreeDS2RequestData | null; - - static readonly discriminator: string | undefined = undefined; + 'themeId'?: string; + 'threeDS2RequestData'?: CheckoutSessionThreeDS2RequestData | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "allowedPaymentMethods", "baseName": "allowedPaymentMethods", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo | null", - "format": "" + "type": "ApplicationInfo | null" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "Address | null", - "format": "" + "type": "Address | null" }, { "name": "blockedPaymentMethods", "baseName": "blockedPaymentMethods", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "captureDelayHours", "baseName": "captureDelayHours", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "countryCode", "baseName": "countryCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "dateOfBirth", "baseName": "dateOfBirth", - "type": "string", - "format": "date" + "type": "string" }, { "name": "deliverAt", "baseName": "deliverAt", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "deliveryAddress", "baseName": "deliveryAddress", - "type": "Address | null", - "format": "" + "type": "Address | null" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "expiresAt", "baseName": "expiresAt", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "fundOrigin", "baseName": "fundOrigin", - "type": "FundOrigin | null", - "format": "" + "type": "FundOrigin | null" }, { "name": "fundRecipient", "baseName": "fundRecipient", - "type": "FundRecipient | null", - "format": "" + "type": "FundRecipient | null" }, { "name": "installmentOptions", "baseName": "installmentOptions", - "type": "{ [key: string]: InstallmentOption; }", - "format": "" + "type": "{ [key: string]: InstallmentOption; }" }, { "name": "lineItems", "baseName": "lineItems", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "manualCapture", "baseName": "manualCapture", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "mcc", "baseName": "mcc", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantOrderReference", "baseName": "merchantOrderReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "metadata", "baseName": "metadata", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic | null", - "format": "" + "type": "PlatformChargebackLogic | null" }, { "name": "recurringProcessingModel", "baseName": "recurringProcessingModel", - "type": "PaymentLinkRequest.RecurringProcessingModelEnum", - "format": "" + "type": "PaymentLinkRequest.RecurringProcessingModelEnum" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "requiredShopperFields", "baseName": "requiredShopperFields", - "type": "PaymentLinkRequest.RequiredShopperFieldsEnum", - "format": "" + "type": "Array" }, { "name": "returnUrl", "baseName": "returnUrl", - "type": "string", - "format": "" + "type": "string" }, { "name": "reusable", "baseName": "reusable", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "riskData", "baseName": "riskData", - "type": "RiskData | null", - "format": "" + "type": "RiskData | null" }, { "name": "shopperEmail", "baseName": "shopperEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperLocale", "baseName": "shopperLocale", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperName", "baseName": "shopperName", - "type": "Name | null", - "format": "" + "type": "Name | null" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperStatement", "baseName": "shopperStatement", - "type": "string", - "format": "" + "type": "string" }, { "name": "showRemovePaymentMethodButton", "baseName": "showRemovePaymentMethodButton", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "socialSecurityNumber", "baseName": "socialSecurityNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "splitCardFundingSources", "baseName": "splitCardFundingSources", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "splits", "baseName": "splits", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "store", "baseName": "store", - "type": "string", - "format": "" + "type": "string" }, { "name": "storePaymentMethodMode", "baseName": "storePaymentMethodMode", - "type": "PaymentLinkRequest.StorePaymentMethodModeEnum", - "format": "" + "type": "PaymentLinkRequest.StorePaymentMethodModeEnum" }, { "name": "telephoneNumber", "baseName": "telephoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "themeId", "baseName": "themeId", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDS2RequestData", "baseName": "threeDS2RequestData", - "type": "CheckoutSessionThreeDS2RequestData | null", - "format": "" + "type": "CheckoutSessionThreeDS2RequestData | null" } ]; static getAttributeTypeMap() { return PaymentLinkRequest.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentLinkRequest { diff --git a/src/typings/checkout/paymentLinkResponse.ts b/src/typings/checkout/paymentLinkResponse.ts index dd16b0a4a..c640809c8 100644 --- a/src/typings/checkout/paymentLinkResponse.ts +++ b/src/typings/checkout/paymentLinkResponse.ts @@ -7,464 +7,412 @@ * Do not edit this class manually. */ -import { Address } from "./address"; -import { Amount } from "./amount"; -import { ApplicationInfo } from "./applicationInfo"; -import { CheckoutSessionThreeDS2RequestData } from "./checkoutSessionThreeDS2RequestData"; -import { FundOrigin } from "./fundOrigin"; -import { FundRecipient } from "./fundRecipient"; -import { InstallmentOption } from "./installmentOption"; -import { LineItem } from "./lineItem"; -import { Name } from "./name"; -import { PlatformChargebackLogic } from "./platformChargebackLogic"; -import { RiskData } from "./riskData"; -import { Split } from "./split"; - +import { Address } from './address'; +import { Amount } from './amount'; +import { ApplicationInfo } from './applicationInfo'; +import { CheckoutSessionThreeDS2RequestData } from './checkoutSessionThreeDS2RequestData'; +import { FundOrigin } from './fundOrigin'; +import { FundRecipient } from './fundRecipient'; +import { InstallmentOption } from './installmentOption'; +import { LineItem } from './lineItem'; +import { Name } from './name'; +import { PlatformChargebackLogic } from './platformChargebackLogic'; +import { RiskData } from './riskData'; +import { Split } from './split'; export class PaymentLinkResponse { /** * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` */ - "allowedPaymentMethods"?: Array; - "amount": Amount; - "applicationInfo"?: ApplicationInfo | null; - "billingAddress"?: Address | null; + 'allowedPaymentMethods'?: Array; + 'amount': Amount; + 'applicationInfo'?: ApplicationInfo | null; + 'billingAddress'?: Address | null; /** * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` */ - "blockedPaymentMethods"?: Array; + 'blockedPaymentMethods'?: Array; /** * The delay between the authorisation and scheduled auto-capture, specified in hours. */ - "captureDelayHours"?: number; + 'captureDelayHours'?: number; /** * The shopper\'s two-letter country code. */ - "countryCode"?: string; + 'countryCode'?: string; /** * The shopper\'s date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ - "dateOfBirth"?: string; + 'dateOfBirth'?: string; /** * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. */ - "deliverAt"?: Date; - "deliveryAddress"?: Address | null; + 'deliverAt'?: Date; + 'deliveryAddress'?: Address | null; /** * A short description visible on the payment page. Maximum length: 280 characters. */ - "description"?: string; + 'description'?: string; /** * The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. */ - "expiresAt"?: Date; - "fundOrigin"?: FundOrigin | null; - "fundRecipient"?: FundRecipient | null; + 'expiresAt'?: Date; + 'fundOrigin'?: FundOrigin | null; + 'fundRecipient'?: FundRecipient | null; /** * A unique identifier of the payment link. */ - "id": string; + 'id': string; /** * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. */ - "installmentOptions"?: { [key: string]: InstallmentOption; }; + 'installmentOptions'?: { [key: string]: InstallmentOption; }; /** * Price and product information about the purchased items, to be included on the invoice sent to the shopper. This parameter is required for open invoice (_buy now, pay later_) payment methods such Afterpay, Clearpay, Klarna, RatePay, Riverty, and Zip. */ - "lineItems"?: Array; + 'lineItems'?: Array; /** * Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture). */ - "manualCapture"?: boolean; + 'manualCapture'?: boolean; /** * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ - "mcc"?: string; + 'mcc'?: string; /** * The merchant account identifier for which the payment link is created. */ - "merchantAccount": string; + 'merchantAccount': string; /** * This reference allows linking multiple transactions to each other for reporting purposes (for example, order auth-rate). The reference should be unique per billing cycle. */ - "merchantOrderReference"?: string; + 'merchantOrderReference'?: string; /** * Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * A key cannot have the name `checkout.linkId`. Any value that you provide with this key is going to be replaced by the real payment link ID. */ - "metadata"?: { [key: string]: string; }; - "platformChargebackLogic"?: PlatformChargebackLogic | null; + 'metadata'?: { [key: string]: string; }; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible 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 has variable amounts. For example, automatic top-ups when a cardholder\'s balance drops below a certain amount. */ - "recurringProcessingModel"?: PaymentLinkResponse.RecurringProcessingModelEnum; + 'recurringProcessingModel'?: PaymentLinkResponse.RecurringProcessingModelEnum; /** * A reference that is used to uniquely identify the payment in future communications about the payment status. */ - "reference": string; + 'reference': string; /** * List of fields that the shopper has to provide on the payment page before completing the payment. For more information, refer to [Provide shopper information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). Possible values: * **billingAddress** – The address where to send the invoice. * **deliveryAddress** – The address where the purchased goods should be delivered. * **shopperEmail** – The shopper\'s email address. * **shopperName** – The shopper\'s full name. * **telephoneNumber** – The shopper\'s phone number. */ - "requiredShopperFields"?: Array; + 'requiredShopperFields'?: Array; /** * Website URL used for redirection after payment is completed. If provided, a **Continue** button will be shown on the payment page. If shoppers select the button, they are redirected to the specified URL. */ - "returnUrl"?: string; + 'returnUrl'?: string; /** * Indicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only. */ - "reusable"?: boolean; - "riskData"?: RiskData | null; + 'reusable'?: boolean; + 'riskData'?: RiskData | null; /** * The shopper\'s email address. */ - "shopperEmail"?: string; + 'shopperEmail'?: string; /** * The language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). */ - "shopperLocale"?: string; - "shopperName"?: Name | null; + 'shopperLocale'?: string; + 'shopperName'?: Name | null; /** * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ - "shopperReference"?: string; + 'shopperReference'?: string; /** * The text to be shown on the shopper\'s bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , \' _ - ? + * /_**. */ - "shopperStatement"?: string; + 'shopperStatement'?: string; /** * Set to **false** to hide the button that lets the shopper remove a stored payment method. */ - "showRemovePaymentMethodButton"?: boolean; + 'showRemovePaymentMethodButton'?: boolean; /** * The shopper\'s social security number. */ - "socialSecurityNumber"?: string; + 'socialSecurityNumber'?: string; /** * Boolean value indicating whether the card payment method should be split into separate debit and credit options. */ - "splitCardFundingSources"?: boolean; + 'splitCardFundingSources'?: boolean; /** * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). */ - "splits"?: Array; + 'splits'?: Array; /** * Status of the payment link. Possible values: * **active**: The link can be used to make payments. * **expired**: The expiry date for the payment link has passed. Shoppers can no longer use the link to make payments. * **completed**: The shopper completed the payment. * **paymentPending**: The shopper is in the process of making the payment. Applies to payment methods with an asynchronous flow. */ - "status": PaymentLinkResponse.StatusEnum; + 'status': PaymentLinkResponse.StatusEnum; /** * The physical store, for which this payment is processed. */ - "store"?: string; + 'store'?: string; /** * Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter. */ - "storePaymentMethodMode"?: PaymentLinkResponse.StorePaymentMethodModeEnum; + 'storePaymentMethodMode'?: PaymentLinkResponse.StorePaymentMethodModeEnum; /** * The shopper\'s telephone number. */ - "telephoneNumber"?: string; + 'telephoneNumber'?: string; /** * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. */ - "themeId"?: string; - "threeDS2RequestData"?: CheckoutSessionThreeDS2RequestData | null; + 'themeId'?: string; + 'threeDS2RequestData'?: CheckoutSessionThreeDS2RequestData | null; /** * The date when the payment link status was updated. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. */ - "updatedAt"?: Date; + 'updatedAt'?: Date; /** * The URL at which the shopper can complete the payment. */ - "url": string; - - static readonly discriminator: string | undefined = undefined; + 'url': string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "allowedPaymentMethods", "baseName": "allowedPaymentMethods", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo | null", - "format": "" + "type": "ApplicationInfo | null" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "Address | null", - "format": "" + "type": "Address | null" }, { "name": "blockedPaymentMethods", "baseName": "blockedPaymentMethods", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "captureDelayHours", "baseName": "captureDelayHours", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "countryCode", "baseName": "countryCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "dateOfBirth", "baseName": "dateOfBirth", - "type": "string", - "format": "date" + "type": "string" }, { "name": "deliverAt", "baseName": "deliverAt", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "deliveryAddress", "baseName": "deliveryAddress", - "type": "Address | null", - "format": "" + "type": "Address | null" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "expiresAt", "baseName": "expiresAt", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "fundOrigin", "baseName": "fundOrigin", - "type": "FundOrigin | null", - "format": "" + "type": "FundOrigin | null" }, { "name": "fundRecipient", "baseName": "fundRecipient", - "type": "FundRecipient | null", - "format": "" + "type": "FundRecipient | null" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentOptions", "baseName": "installmentOptions", - "type": "{ [key: string]: InstallmentOption; }", - "format": "" + "type": "{ [key: string]: InstallmentOption; }" }, { "name": "lineItems", "baseName": "lineItems", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "manualCapture", "baseName": "manualCapture", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "mcc", "baseName": "mcc", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantOrderReference", "baseName": "merchantOrderReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "metadata", "baseName": "metadata", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic | null", - "format": "" + "type": "PlatformChargebackLogic | null" }, { "name": "recurringProcessingModel", "baseName": "recurringProcessingModel", - "type": "PaymentLinkResponse.RecurringProcessingModelEnum", - "format": "" + "type": "PaymentLinkResponse.RecurringProcessingModelEnum" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "requiredShopperFields", "baseName": "requiredShopperFields", - "type": "PaymentLinkResponse.RequiredShopperFieldsEnum", - "format": "" + "type": "Array" }, { "name": "returnUrl", "baseName": "returnUrl", - "type": "string", - "format": "" + "type": "string" }, { "name": "reusable", "baseName": "reusable", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "riskData", "baseName": "riskData", - "type": "RiskData | null", - "format": "" + "type": "RiskData | null" }, { "name": "shopperEmail", "baseName": "shopperEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperLocale", "baseName": "shopperLocale", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperName", "baseName": "shopperName", - "type": "Name | null", - "format": "" + "type": "Name | null" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperStatement", "baseName": "shopperStatement", - "type": "string", - "format": "" + "type": "string" }, { "name": "showRemovePaymentMethodButton", "baseName": "showRemovePaymentMethodButton", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "socialSecurityNumber", "baseName": "socialSecurityNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "splitCardFundingSources", "baseName": "splitCardFundingSources", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "splits", "baseName": "splits", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "status", "baseName": "status", - "type": "PaymentLinkResponse.StatusEnum", - "format": "" + "type": "PaymentLinkResponse.StatusEnum" }, { "name": "store", "baseName": "store", - "type": "string", - "format": "" + "type": "string" }, { "name": "storePaymentMethodMode", "baseName": "storePaymentMethodMode", - "type": "PaymentLinkResponse.StorePaymentMethodModeEnum", - "format": "" + "type": "PaymentLinkResponse.StorePaymentMethodModeEnum" }, { "name": "telephoneNumber", "baseName": "telephoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "themeId", "baseName": "themeId", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDS2RequestData", "baseName": "threeDS2RequestData", - "type": "CheckoutSessionThreeDS2RequestData | null", - "format": "" + "type": "CheckoutSessionThreeDS2RequestData | null" }, { "name": "updatedAt", "baseName": "updatedAt", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "url", "baseName": "url", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PaymentLinkResponse.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentLinkResponse { diff --git a/src/typings/checkout/paymentMethod.ts b/src/typings/checkout/paymentMethod.ts index 24d311b80..ab77b0d76 100644 --- a/src/typings/checkout/paymentMethod.ts +++ b/src/typings/checkout/paymentMethod.ts @@ -7,125 +7,109 @@ * Do not edit this class manually. */ -import { InputDetail } from "./inputDetail"; -import { PaymentMethodGroup } from "./paymentMethodGroup"; -import { PaymentMethodIssuer } from "./paymentMethodIssuer"; -import { PaymentMethodUPIApps } from "./paymentMethodUPIApps"; - +import { InputDetail } from './inputDetail'; +import { PaymentMethodGroup } from './paymentMethodGroup'; +import { PaymentMethodIssuer } from './paymentMethodIssuer'; +import { PaymentMethodUPIApps } from './paymentMethodUPIApps'; export class PaymentMethod { /** * A list of apps for this payment method. */ - "apps"?: Array; + 'apps'?: Array; /** * Brand for the selected gift card. For example: plastix, hmclub. */ - "brand"?: string; + 'brand'?: string; /** * List of possible brands. For example: visa, mc. */ - "brands"?: Array; + 'brands'?: Array; /** * The configuration of the payment method. */ - "configuration"?: { [key: string]: string; }; + 'configuration'?: { [key: string]: string; }; /** * The funding source of the payment method. */ - "fundingSource"?: PaymentMethod.FundingSourceEnum; - "group"?: PaymentMethodGroup | null; + 'fundingSource'?: PaymentMethod.FundingSourceEnum; + 'group'?: PaymentMethodGroup | null; /** * All input details to be provided to complete the payment with this payment method. * * @deprecated */ - "inputDetails"?: Array; + 'inputDetails'?: Array; /** * A list of issuers for this payment method. */ - "issuers"?: Array; + 'issuers'?: Array; /** * The displayable name of this payment method. */ - "name"?: string; + 'name'?: string; /** * The unique payment method code. */ - "type"?: string; - - static readonly discriminator: string | undefined = undefined; + 'type'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "apps", "baseName": "apps", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "brand", "baseName": "brand", - "type": "string", - "format": "" + "type": "string" }, { "name": "brands", "baseName": "brands", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "configuration", "baseName": "configuration", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "fundingSource", "baseName": "fundingSource", - "type": "PaymentMethod.FundingSourceEnum", - "format": "" + "type": "PaymentMethod.FundingSourceEnum" }, { "name": "group", "baseName": "group", - "type": "PaymentMethodGroup | null", - "format": "" + "type": "PaymentMethodGroup | null" }, { "name": "inputDetails", "baseName": "inputDetails", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "issuers", "baseName": "issuers", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PaymentMethod.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentMethod { diff --git a/src/typings/checkout/paymentMethodGroup.ts b/src/typings/checkout/paymentMethodGroup.ts index 296eefffb..30af6d20f 100644 --- a/src/typings/checkout/paymentMethodGroup.ts +++ b/src/typings/checkout/paymentMethodGroup.ts @@ -12,45 +12,37 @@ export class PaymentMethodGroup { /** * The name of the group. */ - "name"?: string; + 'name'?: string; /** * Echo data to be used if the payment method is displayed as part of this group. */ - "paymentMethodData"?: string; + 'paymentMethodData'?: string; /** * The unique code of the group. */ - "type"?: string; + 'type'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMethodData", "baseName": "paymentMethodData", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PaymentMethodGroup.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/paymentMethodIssuer.ts b/src/typings/checkout/paymentMethodIssuer.ts index 5f83dbd1a..4b2bed58e 100644 --- a/src/typings/checkout/paymentMethodIssuer.ts +++ b/src/typings/checkout/paymentMethodIssuer.ts @@ -12,45 +12,37 @@ export class PaymentMethodIssuer { /** * A boolean value indicating whether this issuer is unavailable. Can be `true` whenever the issuer is offline. */ - "disabled"?: boolean; + 'disabled'?: boolean; /** * The unique identifier of this issuer, to submit in requests to /payments. */ - "id": string; + 'id': string; /** * A localized name of the issuer. */ - "name": string; + 'name': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "disabled", "baseName": "disabled", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PaymentMethodIssuer.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/paymentMethodToStore.ts b/src/typings/checkout/paymentMethodToStore.ts index b4d1147c1..cc51e656c 100644 --- a/src/typings/checkout/paymentMethodToStore.ts +++ b/src/typings/checkout/paymentMethodToStore.ts @@ -12,135 +12,118 @@ export class PaymentMethodToStore { /** * Secondary brand of the card. For example: **plastix**, **hmclub**. */ - "brand"?: string; + 'brand'?: string; /** * The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ - "cvc"?: string; + 'cvc'?: string; /** * The encrypted card. */ - "encryptedCard"?: string; + 'encryptedCard'?: string; /** * The encrypted card number. */ - "encryptedCardNumber"?: string; + 'encryptedCardNumber'?: string; /** * The encrypted card expiry month. */ - "encryptedExpiryMonth"?: string; + 'encryptedExpiryMonth'?: string; /** * The encrypted card expiry year. */ - "encryptedExpiryYear"?: string; + 'encryptedExpiryYear'?: string; /** * The encrypted card verification code. */ - "encryptedSecurityCode"?: string; + 'encryptedSecurityCode'?: string; /** * The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ - "expiryMonth"?: string; + 'expiryMonth'?: string; /** * The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ - "expiryYear"?: string; + 'expiryYear'?: string; /** * The name of the card holder. */ - "holderName"?: string; + 'holderName'?: string; /** * The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide). */ - "number"?: string; + 'number'?: string; /** * Set to **scheme**. */ - "type"?: string; + 'type'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "brand", "baseName": "brand", - "type": "string", - "format": "" + "type": "string" }, { "name": "cvc", "baseName": "cvc", - "type": "string", - "format": "" + "type": "string" }, { "name": "encryptedCard", "baseName": "encryptedCard", - "type": "string", - "format": "" + "type": "string" }, { "name": "encryptedCardNumber", "baseName": "encryptedCardNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "encryptedExpiryMonth", "baseName": "encryptedExpiryMonth", - "type": "string", - "format": "" + "type": "string" }, { "name": "encryptedExpiryYear", "baseName": "encryptedExpiryYear", - "type": "string", - "format": "" + "type": "string" }, { "name": "encryptedSecurityCode", "baseName": "encryptedSecurityCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "expiryMonth", "baseName": "expiryMonth", - "type": "string", - "format": "" + "type": "string" }, { "name": "expiryYear", "baseName": "expiryYear", - "type": "string", - "format": "" + "type": "string" }, { "name": "holderName", "baseName": "holderName", - "type": "string", - "format": "" + "type": "string" }, { "name": "number", "baseName": "number", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PaymentMethodToStore.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/paymentMethodUPIApps.ts b/src/typings/checkout/paymentMethodUPIApps.ts index fca6b3961..9361cc761 100644 --- a/src/typings/checkout/paymentMethodUPIApps.ts +++ b/src/typings/checkout/paymentMethodUPIApps.ts @@ -12,35 +12,28 @@ export class PaymentMethodUPIApps { /** * The unique identifier of this app, to submit in requests to /payments. */ - "id": string; + 'id': string; /** * A localized name of the app. */ - "name": string; + 'name': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PaymentMethodUPIApps.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/paymentMethodsRequest.ts b/src/typings/checkout/paymentMethodsRequest.ts index 14c982371..cea1460bf 100644 --- a/src/typings/checkout/paymentMethodsRequest.ts +++ b/src/typings/checkout/paymentMethodsRequest.ts @@ -7,196 +7,172 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { BrowserInfo } from "./browserInfo"; -import { EncryptedOrderData } from "./encryptedOrderData"; - +import { Amount } from './amount'; +import { BrowserInfo } from './browserInfo'; +import { EncryptedOrderData } from './encryptedOrderData'; export class PaymentMethodsRequest { /** * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ - "additionalData"?: { [key: string]: string; }; + 'additionalData'?: { [key: string]: string; }; /** * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]` */ - "allowedPaymentMethods"?: Array; - "amount"?: Amount | null; + 'allowedPaymentMethods'?: Array; + 'amount'?: Amount | null; /** * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]` */ - "blockedPaymentMethods"?: Array; - "browserInfo"?: BrowserInfo | null; + 'blockedPaymentMethods'?: Array; + 'browserInfo'?: BrowserInfo | null; /** * The platform where a payment transaction takes place. This field can be used for filtering out payment methods that are only available on specific platforms. Possible values: * iOS * Android * Web */ - "channel"?: PaymentMethodsRequest.ChannelEnum; + 'channel'?: PaymentMethodsRequest.ChannelEnum; /** * The shopper\'s country code. */ - "countryCode"?: string; + 'countryCode'?: string; /** * The merchant account identifier, with which you want to process the transaction. */ - "merchantAccount": string; - "order"?: EncryptedOrderData | null; + 'merchantAccount': string; + 'order'?: EncryptedOrderData | null; /** * A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates. */ - "shopperConversionId"?: string; + 'shopperConversionId'?: string; /** * The shopper\'s email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require `shopperEmail` for all browser-based and mobile implementations. */ - "shopperEmail"?: string; + 'shopperEmail'?: string; /** * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ - "shopperIP"?: string; + 'shopperIP'?: string; /** * The combination of a language code and a country code to specify the language to be used in the payment. */ - "shopperLocale"?: string; + 'shopperLocale'?: string; /** * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ - "shopperReference"?: string; + 'shopperReference'?: string; /** * Boolean value indicating whether the card payment method should be split into separate debit and credit options. */ - "splitCardFundingSources"?: boolean; + 'splitCardFundingSources'?: boolean; /** * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. */ - "store"?: string; + 'store'?: string; /** * Specifies how payment methods should be filtered based on the \'store\' parameter: - \'exclusive\': Only payment methods belonging to the specified \'store\' are returned. - \'inclusive\': Payment methods from the \'store\' and those not associated with any other store are returned. */ - "storeFiltrationMode"?: PaymentMethodsRequest.StoreFiltrationModeEnum; + 'storeFiltrationMode'?: PaymentMethodsRequest.StoreFiltrationModeEnum; /** * The shopper\'s telephone number. */ - "telephoneNumber"?: string; - - static readonly discriminator: string | undefined = undefined; + 'telephoneNumber'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "allowedPaymentMethods", "baseName": "allowedPaymentMethods", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "amount", "baseName": "amount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "blockedPaymentMethods", "baseName": "blockedPaymentMethods", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "browserInfo", "baseName": "browserInfo", - "type": "BrowserInfo | null", - "format": "" + "type": "BrowserInfo | null" }, { "name": "channel", "baseName": "channel", - "type": "PaymentMethodsRequest.ChannelEnum", - "format": "" + "type": "PaymentMethodsRequest.ChannelEnum" }, { "name": "countryCode", "baseName": "countryCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "order", "baseName": "order", - "type": "EncryptedOrderData | null", - "format": "" + "type": "EncryptedOrderData | null" }, { "name": "shopperConversionId", "baseName": "shopperConversionId", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperEmail", "baseName": "shopperEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperIP", "baseName": "shopperIP", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperLocale", "baseName": "shopperLocale", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "splitCardFundingSources", "baseName": "splitCardFundingSources", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "store", "baseName": "store", - "type": "string", - "format": "" + "type": "string" }, { "name": "storeFiltrationMode", "baseName": "storeFiltrationMode", - "type": "PaymentMethodsRequest.StoreFiltrationModeEnum", - "format": "" + "type": "PaymentMethodsRequest.StoreFiltrationModeEnum" }, { "name": "telephoneNumber", "baseName": "telephoneNumber", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PaymentMethodsRequest.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentMethodsRequest { diff --git a/src/typings/checkout/paymentMethodsResponse.ts b/src/typings/checkout/paymentMethodsResponse.ts index af7491c71..3ae3b9a7f 100644 --- a/src/typings/checkout/paymentMethodsResponse.ts +++ b/src/typings/checkout/paymentMethodsResponse.ts @@ -7,43 +7,35 @@ * Do not edit this class manually. */ -import { PaymentMethod } from "./paymentMethod"; -import { StoredPaymentMethod } from "./storedPaymentMethod"; - +import { PaymentMethod } from './paymentMethod'; +import { StoredPaymentMethod } from './storedPaymentMethod'; export class PaymentMethodsResponse { /** * Detailed list of payment methods required to generate payment forms. */ - "paymentMethods"?: Array; + 'paymentMethods'?: Array; /** * List of all stored payment methods. */ - "storedPaymentMethods"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'storedPaymentMethods'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "paymentMethods", "baseName": "paymentMethods", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "storedPaymentMethods", "baseName": "storedPaymentMethods", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return PaymentMethodsResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/paymentRefundRequest.ts b/src/typings/checkout/paymentRefundRequest.ts index 15b0d90ea..11db4f7de 100644 --- a/src/typings/checkout/paymentRefundRequest.ts +++ b/src/typings/checkout/paymentRefundRequest.ts @@ -7,110 +7,95 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { ApplicationInfo } from "./applicationInfo"; -import { LineItem } from "./lineItem"; -import { Split } from "./split"; - +import { Amount } from './amount'; +import { ApplicationInfo } from './applicationInfo'; +import { LineItem } from './lineItem'; +import { Split } from './split'; export class PaymentRefundRequest { - "amount": Amount; - "applicationInfo"?: ApplicationInfo | null; + 'amount': Amount; + 'applicationInfo'?: ApplicationInfo | null; /** * This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the specific capture to refund. */ - "capturePspReference"?: string; + 'capturePspReference'?: string; /** * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. */ - "lineItems"?: Array; + 'lineItems'?: Array; /** * The merchant account that is used to process the payment. */ - "merchantAccount": string; + 'merchantAccount': string; /** * The reason for the refund request. Possible values: * **FRAUD** * **CUSTOMER REQUEST** * **RETURN** * **DUPLICATE** * **OTHER** */ - "merchantRefundReason"?: PaymentRefundRequest.MerchantRefundReasonEnum | null; + 'merchantRefundReason'?: PaymentRefundRequest.MerchantRefundReasonEnum | null; /** * Your reference for the refund request. Maximum length: 80 characters. */ - "reference"?: string; + 'reference'?: string; /** * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). */ - "splits"?: Array; + 'splits'?: Array; /** * The online store or [physical store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) that is processing the refund. This must be the same as the store name configured in your Customer Area. Otherwise, you get an error and the refund fails. */ - "store"?: string; - - static readonly discriminator: string | undefined = undefined; + 'store'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo | null", - "format": "" + "type": "ApplicationInfo | null" }, { "name": "capturePspReference", "baseName": "capturePspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "lineItems", "baseName": "lineItems", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantRefundReason", "baseName": "merchantRefundReason", - "type": "PaymentRefundRequest.MerchantRefundReasonEnum | null", - "format": "" + "type": "PaymentRefundRequest.MerchantRefundReasonEnum | null" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "splits", "baseName": "splits", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "store", "baseName": "store", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PaymentRefundRequest.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentRefundRequest { diff --git a/src/typings/checkout/paymentRefundResponse.ts b/src/typings/checkout/paymentRefundResponse.ts index 8e3c4eb91..77c4bb9af 100644 --- a/src/typings/checkout/paymentRefundResponse.ts +++ b/src/typings/checkout/paymentRefundResponse.ts @@ -7,132 +7,115 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { LineItem } from "./lineItem"; -import { Split } from "./split"; - +import { Amount } from './amount'; +import { LineItem } from './lineItem'; +import { Split } from './split'; export class PaymentRefundResponse { - "amount": Amount; + 'amount': Amount; /** * This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the specific capture to refund. */ - "capturePspReference"?: string; + 'capturePspReference'?: string; /** * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. */ - "lineItems"?: Array; + 'lineItems'?: Array; /** * The merchant account that is used to process the payment. */ - "merchantAccount": string; + 'merchantAccount': string; /** * Your reason for the refund request. */ - "merchantRefundReason"?: PaymentRefundResponse.MerchantRefundReasonEnum | null; + 'merchantRefundReason'?: PaymentRefundResponse.MerchantRefundReasonEnum | null; /** * The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment to refund. */ - "paymentPspReference": string; + 'paymentPspReference': string; /** * Adyen\'s 16-character reference associated with the refund request. */ - "pspReference": string; + 'pspReference': string; /** * Your reference for the refund request. */ - "reference"?: string; + 'reference'?: string; /** * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/). */ - "splits"?: Array; + 'splits'?: Array; /** * The status of your request. This will always have the value **received**. */ - "status": PaymentRefundResponse.StatusEnum; + 'status': PaymentRefundResponse.StatusEnum; /** * The online store or [physical store](https://docs.adyen.com/point-of-sale/design-your-integration/determine-account-structure/#create-stores) that is processing the refund. This must be the same as the store name configured in your Customer Area. Otherwise, you get an error and the refund fails. */ - "store"?: string; - - static readonly discriminator: string | undefined = undefined; + 'store'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "capturePspReference", "baseName": "capturePspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "lineItems", "baseName": "lineItems", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantRefundReason", "baseName": "merchantRefundReason", - "type": "PaymentRefundResponse.MerchantRefundReasonEnum | null", - "format": "" + "type": "PaymentRefundResponse.MerchantRefundReasonEnum | null" }, { "name": "paymentPspReference", "baseName": "paymentPspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "splits", "baseName": "splits", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "status", "baseName": "status", - "type": "PaymentRefundResponse.StatusEnum", - "format": "" + "type": "PaymentRefundResponse.StatusEnum" }, { "name": "store", "baseName": "store", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PaymentRefundResponse.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentRefundResponse { diff --git a/src/typings/checkout/paymentRequest.ts b/src/typings/checkout/paymentRequest.ts index 605c256d8..360760bd8 100644 --- a/src/typings/checkout/paymentRequest.ts +++ b/src/typings/checkout/paymentRequest.ts @@ -7,703 +7,679 @@ * Do not edit this class manually. */ -import { AccountInfo } from "./accountInfo"; -import { Amount } from "./amount"; -import { ApplicationInfo } from "./applicationInfo"; -import { AuthenticationData } from "./authenticationData"; -import { BillingAddress } from "./billingAddress"; -import { BrowserInfo } from "./browserInfo"; -import { CheckoutBankAccount } from "./checkoutBankAccount"; -import { Company } from "./company"; -import { DeliveryAddress } from "./deliveryAddress"; -import { EncryptedOrderData } from "./encryptedOrderData"; -import { EnhancedSchemeData } from "./enhancedSchemeData"; -import { ForexQuote } from "./forexQuote"; -import { FundOrigin } from "./fundOrigin"; -import { FundRecipient } from "./fundRecipient"; -import { Installments } from "./installments"; -import { LineItem } from "./lineItem"; -import { Mandate } from "./mandate"; -import { MerchantRiskIndicator } from "./merchantRiskIndicator"; -import { Name } from "./name"; -import { PaymentRequestPaymentMethod } from "./paymentRequestPaymentMethod"; -import { PlatformChargebackLogic } from "./platformChargebackLogic"; -import { RiskData } from "./riskData"; -import { Split } from "./split"; -import { SubMerchantInfo } from "./subMerchantInfo"; -import { Surcharge } from "./surcharge"; -import { ThreeDS2RequestFields } from "./threeDS2RequestFields"; -import { ThreeDSecureData } from "./threeDSecureData"; - +import { AccountInfo } from './accountInfo'; +import { AchDetails } from './achDetails'; +import { AffirmDetails } from './affirmDetails'; +import { AfterpayDetails } from './afterpayDetails'; +import { AmazonPayDetails } from './amazonPayDetails'; +import { Amount } from './amount'; +import { AncvDetails } from './ancvDetails'; +import { AndroidPayDetails } from './androidPayDetails'; +import { ApplePayDetails } from './applePayDetails'; +import { ApplicationInfo } from './applicationInfo'; +import { AuthenticationData } from './authenticationData'; +import { BacsDirectDebitDetails } from './bacsDirectDebitDetails'; +import { BillDeskDetails } from './billDeskDetails'; +import { BillingAddress } from './billingAddress'; +import { BlikDetails } from './blikDetails'; +import { BrowserInfo } from './browserInfo'; +import { CardDetails } from './cardDetails'; +import { CashAppDetails } from './cashAppDetails'; +import { CellulantDetails } from './cellulantDetails'; +import { CheckoutBankAccount } from './checkoutBankAccount'; +import { Company } from './company'; +import { DeliveryAddress } from './deliveryAddress'; +import { DokuDetails } from './dokuDetails'; +import { DragonpayDetails } from './dragonpayDetails'; +import { EBankingFinlandDetails } from './eBankingFinlandDetails'; +import { EcontextVoucherDetails } from './econtextVoucherDetails'; +import { EftDetails } from './eftDetails'; +import { EncryptedOrderData } from './encryptedOrderData'; +import { EnhancedSchemeData } from './enhancedSchemeData'; +import { FastlaneDetails } from './fastlaneDetails'; +import { ForexQuote } from './forexQuote'; +import { FundOrigin } from './fundOrigin'; +import { FundRecipient } from './fundRecipient'; +import { GenericIssuerPaymentMethodDetails } from './genericIssuerPaymentMethodDetails'; +import { GooglePayDetails } from './googlePayDetails'; +import { IdealDetails } from './idealDetails'; +import { Installments } from './installments'; +import { KlarnaDetails } from './klarnaDetails'; +import { LineItem } from './lineItem'; +import { Mandate } from './mandate'; +import { MasterpassDetails } from './masterpassDetails'; +import { MbwayDetails } from './mbwayDetails'; +import { MerchantRiskIndicator } from './merchantRiskIndicator'; +import { MobilePayDetails } from './mobilePayDetails'; +import { MolPayDetails } from './molPayDetails'; +import { Name } from './name'; +import { OpenInvoiceDetails } from './openInvoiceDetails'; +import { PayByBankAISDirectDebitDetails } from './payByBankAISDirectDebitDetails'; +import { PayByBankDetails } from './payByBankDetails'; +import { PayPalDetails } from './payPalDetails'; +import { PayPayDetails } from './payPayDetails'; +import { PayToDetails } from './payToDetails'; +import { PayUUpiDetails } from './payUUpiDetails'; +import { PayWithGoogleDetails } from './payWithGoogleDetails'; +import { PaymentDetails } from './paymentDetails'; +import { PixDetails } from './pixDetails'; +import { PlatformChargebackLogic } from './platformChargebackLogic'; +import { PseDetails } from './pseDetails'; +import { RakutenPayDetails } from './rakutenPayDetails'; +import { RatepayDetails } from './ratepayDetails'; +import { RiskData } from './riskData'; +import { RivertyDetails } from './rivertyDetails'; +import { SamsungPayDetails } from './samsungPayDetails'; +import { SepaDirectDebitDetails } from './sepaDirectDebitDetails'; +import { Split } from './split'; +import { StoredPaymentMethodDetails } from './storedPaymentMethodDetails'; +import { SubMerchantInfo } from './subMerchantInfo'; +import { Surcharge } from './surcharge'; +import { ThreeDS2RequestFields } from './threeDS2RequestFields'; +import { ThreeDSecureData } from './threeDSecureData'; +import { TwintDetails } from './twintDetails'; +import { UpiCollectDetails } from './upiCollectDetails'; +import { UpiIntentDetails } from './upiIntentDetails'; +import { VippsDetails } from './vippsDetails'; +import { VisaCheckoutDetails } from './visaCheckoutDetails'; +import { WeChatPayDetails } from './weChatPayDetails'; +import { WeChatPayMiniProgramDetails } from './weChatPayMiniProgramDetails'; +import { ZipDetails } from './zipDetails'; export class PaymentRequest { - "accountInfo"?: AccountInfo | null; - "additionalAmount"?: Amount | null; + 'accountInfo'?: AccountInfo | null; + 'additionalAmount'?: Amount | null; /** * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ - "additionalData"?: { [key: string]: string; }; - "amount": Amount; - "applicationInfo"?: ApplicationInfo | null; - "authenticationData"?: AuthenticationData | null; - "bankAccount"?: CheckoutBankAccount | null; - "billingAddress"?: BillingAddress | null; - "browserInfo"?: BrowserInfo | null; + 'additionalData'?: { [key: string]: string; }; + 'amount': Amount; + 'applicationInfo'?: ApplicationInfo | null; + 'authenticationData'?: AuthenticationData | null; + 'bankAccount'?: CheckoutBankAccount | null; + 'billingAddress'?: BillingAddress | null; + 'browserInfo'?: BrowserInfo | null; /** * The delay between the authorisation and scheduled auto-capture, specified in hours. */ - "captureDelayHours"?: number; + 'captureDelayHours'?: number; /** * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web */ - "channel"?: PaymentRequest.ChannelEnum; + 'channel'?: PaymentRequest.ChannelEnum; /** * Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey. */ - "checkoutAttemptId"?: string; - "company"?: Company | null; + 'checkoutAttemptId'?: string; + 'company'?: Company | null; /** * Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. * * @deprecated since Adyen Checkout API v68 * Use `checkoutAttemptId` instead */ - "conversionId"?: string; + 'conversionId'?: string; /** * The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE */ - "countryCode"?: string; + 'countryCode'?: string; /** * The shopper\'s date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ - "dateOfBirth"?: Date; - "dccQuote"?: ForexQuote | null; + 'dateOfBirth'?: Date; + 'dccQuote'?: ForexQuote | null; /** * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 */ - "deliverAt"?: Date; - "deliveryAddress"?: DeliveryAddress | null; + 'deliverAt'?: Date; + 'deliveryAddress'?: DeliveryAddress | null; /** * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 * * @deprecated since Adyen Checkout API v70 * Use `deliverAt` instead. */ - "deliveryDate"?: Date; + 'deliveryDate'?: Date; /** * A string containing the shopper\'s device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ - "deviceFingerprint"?: string; + 'deviceFingerprint'?: string; /** * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). */ - "enableOneClick"?: boolean; + 'enableOneClick'?: boolean; /** * When true and `shopperReference` is provided, the payment details will be tokenized for payouts. */ - "enablePayOut"?: boolean; + 'enablePayOut'?: boolean; /** * When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. */ - "enableRecurring"?: boolean; - "enhancedSchemeData"?: EnhancedSchemeData | null; + 'enableRecurring'?: boolean; + 'enhancedSchemeData'?: EnhancedSchemeData | null; /** * The type of the entity the payment is processed for. */ - "entityType"?: PaymentRequest.EntityTypeEnum; + 'entityType'?: PaymentRequest.EntityTypeEnum; /** * An integer value that is added to the normal fraud score. The value can be either positive or negative. */ - "fraudOffset"?: number; - "fundOrigin"?: FundOrigin | null; - "fundRecipient"?: FundRecipient | null; + 'fraudOffset'?: number; + 'fundOrigin'?: FundOrigin | null; + 'fundRecipient'?: FundRecipient | null; /** * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** */ - "industryUsage"?: PaymentRequest.IndustryUsageEnum; - "installments"?: Installments | null; + 'industryUsage'?: PaymentRequest.IndustryUsageEnum; + 'installments'?: Installments | null; /** * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, Riverty, and Zip. */ - "lineItems"?: Array; + '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. */ - "localizedShopperStatement"?: { [key: string]: string; }; - "mandate"?: Mandate | null; + 'localizedShopperStatement'?: { [key: string]: string; }; + 'mandate'?: Mandate | null; /** * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ - "mcc"?: string; + 'mcc'?: string; /** * The merchant account identifier, with which you want to process the transaction. */ - "merchantAccount": string; + 'merchantAccount': string; /** * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. */ - "merchantOrderReference"?: string; - "merchantRiskIndicator"?: MerchantRiskIndicator | null; + 'merchantOrderReference'?: string; + 'merchantRiskIndicator'?: MerchantRiskIndicator | null; /** * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. */ - "metadata"?: { [key: string]: string; }; - "mpiData"?: ThreeDSecureData | null; - "order"?: EncryptedOrderData | null; + 'metadata'?: { [key: string]: string; }; + 'mpiData'?: ThreeDSecureData | null; + 'order'?: EncryptedOrderData | null; /** * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. */ - "orderReference"?: string; + 'orderReference'?: string; /** * Required for the 3D Secure 2 `channel` **Web** integration. Set this parameter to the origin URL of the page that you are loading the 3D Secure Component from. */ - "origin"?: string; - "paymentMethod": PaymentRequestPaymentMethod; - "platformChargebackLogic"?: PlatformChargebackLogic | null; + 'origin'?: string; + /** + * The type and required details of a payment method to use. + */ + 'paymentMethod': AchDetails | AffirmDetails | AfterpayDetails | AmazonPayDetails | AncvDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CashAppDetails | CellulantDetails | DokuDetails | DragonpayDetails | EBankingFinlandDetails | EcontextVoucherDetails | EftDetails | FastlaneDetails | GenericIssuerPaymentMethodDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayByBankAISDirectDebitDetails | PayByBankDetails | PayPalDetails | PayPayDetails | PayToDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | PixDetails | PseDetails | RakutenPayDetails | RatepayDetails | RivertyDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | TwintDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. */ - "recurringExpiry"?: string; + 'recurringExpiry'?: string; /** * Minimum number of days between authorisations. Only for 3D Secure 2. */ - "recurringFrequency"?: string; + 'recurringFrequency'?: string; /** * 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. */ - "recurringProcessingModel"?: PaymentRequest.RecurringProcessingModelEnum; + 'recurringProcessingModel'?: PaymentRequest.RecurringProcessingModelEnum; /** * Specifies the redirect method (GET or POST) when redirecting back from the issuer. */ - "redirectFromIssuerMethod"?: string; + 'redirectFromIssuerMethod'?: string; /** * Specifies the redirect method (GET or POST) when redirecting to the issuer. */ - "redirectToIssuerMethod"?: string; + 'redirectToIssuerMethod'?: string; /** * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ - "reference": string; + 'reference': string; /** * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. */ - "returnUrl": string; - "riskData"?: RiskData | null; + 'returnUrl': string; + 'riskData'?: RiskData | null; /** * The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 */ - "sessionValidity"?: string; + 'sessionValidity'?: string; /** * A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates. */ - "shopperConversionId"?: string; + 'shopperConversionId'?: string; /** * The shopper\'s email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require `shopperEmail` for all browser-based and mobile implementations. */ - "shopperEmail"?: string; + 'shopperEmail'?: string; /** * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ - "shopperIP"?: string; + 'shopperIP'?: string; /** * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ - "shopperInteraction"?: PaymentRequest.ShopperInteractionEnum; + 'shopperInteraction'?: PaymentRequest.ShopperInteractionEnum; /** * The combination of a language code and a country code to specify the language to be used in the payment. */ - "shopperLocale"?: string; - "shopperName"?: Name | null; + 'shopperLocale'?: string; + 'shopperName'?: Name | null; /** * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. */ - "shopperReference"?: string; + 'shopperReference'?: string; /** * The text to be shown on the shopper\'s bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , \' _ - ? + * /_**. */ - "shopperStatement"?: string; + 'shopperStatement'?: string; /** * The shopper\'s social security number. */ - "socialSecurityNumber"?: string; + 'socialSecurityNumber'?: string; /** * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). */ - "splits"?: Array; + 'splits'?: Array; /** * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. */ - "store"?: string; + 'store'?: string; /** * When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). */ - "storePaymentMethod"?: boolean; + 'storePaymentMethod'?: boolean; /** * This field contains additional information on the submerchant, who is onboarded to an acquirer through a payment facilitator or aggregator */ - "subMerchants"?: Array; - "surcharge"?: Surcharge | null; + 'subMerchants'?: Array; + 'surcharge'?: Surcharge | null; /** * The shopper\'s telephone number. */ - "telephoneNumber"?: string; - "threeDS2RequestData"?: ThreeDS2RequestFields | null; + 'telephoneNumber'?: string; + 'threeDS2RequestData'?: ThreeDS2RequestFields | null; /** * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. * * @deprecated since Adyen Checkout API v69 * Use `authenticationData.authenticationOnly` instead. */ - "threeDSAuthenticationOnly"?: boolean; + 'threeDSAuthenticationOnly'?: boolean; /** * Set to true if the payment should be routed to a trusted MID. */ - "trustedShopper"?: boolean; + 'trustedShopper'?: boolean; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountInfo", "baseName": "accountInfo", - "type": "AccountInfo | null", - "format": "" + "type": "AccountInfo | null" }, { "name": "additionalAmount", "baseName": "additionalAmount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo | null", - "format": "" + "type": "ApplicationInfo | null" }, { "name": "authenticationData", "baseName": "authenticationData", - "type": "AuthenticationData | null", - "format": "" + "type": "AuthenticationData | null" }, { "name": "bankAccount", "baseName": "bankAccount", - "type": "CheckoutBankAccount | null", - "format": "" + "type": "CheckoutBankAccount | null" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "BillingAddress | null", - "format": "" + "type": "BillingAddress | null" }, { "name": "browserInfo", "baseName": "browserInfo", - "type": "BrowserInfo | null", - "format": "" + "type": "BrowserInfo | null" }, { "name": "captureDelayHours", "baseName": "captureDelayHours", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "channel", "baseName": "channel", - "type": "PaymentRequest.ChannelEnum", - "format": "" + "type": "PaymentRequest.ChannelEnum" }, { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "company", "baseName": "company", - "type": "Company | null", - "format": "" + "type": "Company | null" }, { "name": "conversionId", "baseName": "conversionId", - "type": "string", - "format": "" + "type": "string" }, { "name": "countryCode", "baseName": "countryCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "dateOfBirth", "baseName": "dateOfBirth", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "dccQuote", "baseName": "dccQuote", - "type": "ForexQuote | null", - "format": "" + "type": "ForexQuote | null" }, { "name": "deliverAt", "baseName": "deliverAt", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "deliveryAddress", "baseName": "deliveryAddress", - "type": "DeliveryAddress | null", - "format": "" + "type": "DeliveryAddress | null" }, { "name": "deliveryDate", "baseName": "deliveryDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "deviceFingerprint", "baseName": "deviceFingerprint", - "type": "string", - "format": "" + "type": "string" }, { "name": "enableOneClick", "baseName": "enableOneClick", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "enablePayOut", "baseName": "enablePayOut", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "enableRecurring", "baseName": "enableRecurring", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "enhancedSchemeData", "baseName": "enhancedSchemeData", - "type": "EnhancedSchemeData | null", - "format": "" + "type": "EnhancedSchemeData | null" }, { "name": "entityType", "baseName": "entityType", - "type": "PaymentRequest.EntityTypeEnum", - "format": "" + "type": "PaymentRequest.EntityTypeEnum" }, { "name": "fraudOffset", "baseName": "fraudOffset", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "fundOrigin", "baseName": "fundOrigin", - "type": "FundOrigin | null", - "format": "" + "type": "FundOrigin | null" }, { "name": "fundRecipient", "baseName": "fundRecipient", - "type": "FundRecipient | null", - "format": "" + "type": "FundRecipient | null" }, { "name": "industryUsage", "baseName": "industryUsage", - "type": "PaymentRequest.IndustryUsageEnum", - "format": "" + "type": "PaymentRequest.IndustryUsageEnum" }, { "name": "installments", "baseName": "installments", - "type": "Installments | null", - "format": "" + "type": "Installments | null" }, { "name": "lineItems", "baseName": "lineItems", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "localizedShopperStatement", "baseName": "localizedShopperStatement", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "mandate", "baseName": "mandate", - "type": "Mandate | null", - "format": "" + "type": "Mandate | null" }, { "name": "mcc", "baseName": "mcc", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantOrderReference", "baseName": "merchantOrderReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantRiskIndicator", "baseName": "merchantRiskIndicator", - "type": "MerchantRiskIndicator | null", - "format": "" + "type": "MerchantRiskIndicator | null" }, { "name": "metadata", "baseName": "metadata", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "mpiData", "baseName": "mpiData", - "type": "ThreeDSecureData | null", - "format": "" + "type": "ThreeDSecureData | null" }, { "name": "order", "baseName": "order", - "type": "EncryptedOrderData | null", - "format": "" + "type": "EncryptedOrderData | null" }, { "name": "orderReference", "baseName": "orderReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "origin", "baseName": "origin", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMethod", "baseName": "paymentMethod", - "type": "PaymentRequestPaymentMethod", - "format": "" + "type": "AchDetails | AffirmDetails | AfterpayDetails | AmazonPayDetails | AncvDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CashAppDetails | CellulantDetails | DokuDetails | DragonpayDetails | EBankingFinlandDetails | EcontextVoucherDetails | EftDetails | FastlaneDetails | GenericIssuerPaymentMethodDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayByBankAISDirectDebitDetails | PayByBankDetails | PayPalDetails | PayPayDetails | PayToDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | PixDetails | PseDetails | RakutenPayDetails | RatepayDetails | RivertyDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | TwintDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails" }, { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic | null", - "format": "" + "type": "PlatformChargebackLogic | null" }, { "name": "recurringExpiry", "baseName": "recurringExpiry", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringFrequency", "baseName": "recurringFrequency", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringProcessingModel", "baseName": "recurringProcessingModel", - "type": "PaymentRequest.RecurringProcessingModelEnum", - "format": "" + "type": "PaymentRequest.RecurringProcessingModelEnum" }, { "name": "redirectFromIssuerMethod", "baseName": "redirectFromIssuerMethod", - "type": "string", - "format": "" + "type": "string" }, { "name": "redirectToIssuerMethod", "baseName": "redirectToIssuerMethod", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "returnUrl", "baseName": "returnUrl", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskData", "baseName": "riskData", - "type": "RiskData | null", - "format": "" + "type": "RiskData | null" }, { "name": "sessionValidity", "baseName": "sessionValidity", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperConversionId", "baseName": "shopperConversionId", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperEmail", "baseName": "shopperEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperIP", "baseName": "shopperIP", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperInteraction", "baseName": "shopperInteraction", - "type": "PaymentRequest.ShopperInteractionEnum", - "format": "" + "type": "PaymentRequest.ShopperInteractionEnum" }, { "name": "shopperLocale", "baseName": "shopperLocale", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperName", "baseName": "shopperName", - "type": "Name | null", - "format": "" + "type": "Name | null" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperStatement", "baseName": "shopperStatement", - "type": "string", - "format": "" + "type": "string" }, { "name": "socialSecurityNumber", "baseName": "socialSecurityNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "splits", "baseName": "splits", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "store", "baseName": "store", - "type": "string", - "format": "" + "type": "string" }, { "name": "storePaymentMethod", "baseName": "storePaymentMethod", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "subMerchants", "baseName": "subMerchants", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "surcharge", "baseName": "surcharge", - "type": "Surcharge | null", - "format": "" + "type": "Surcharge | null" }, { "name": "telephoneNumber", "baseName": "telephoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDS2RequestData", "baseName": "threeDS2RequestData", - "type": "ThreeDS2RequestFields | null", - "format": "" + "type": "ThreeDS2RequestFields | null" }, { "name": "threeDSAuthenticationOnly", "baseName": "threeDSAuthenticationOnly", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "trustedShopper", "baseName": "trustedShopper", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return PaymentRequest.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentRequest { diff --git a/src/typings/checkout/paymentRequestPaymentMethod.ts b/src/typings/checkout/paymentRequestPaymentMethod.ts deleted file mode 100644 index 848f95e28..000000000 --- a/src/typings/checkout/paymentRequestPaymentMethod.ts +++ /dev/null @@ -1,85 +0,0 @@ -/* - * 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 { AchDetails } from "./achDetails"; -import { AffirmDetails } from "./affirmDetails"; -import { AfterpayDetails } from "./afterpayDetails"; -import { AmazonPayDetails } from "./amazonPayDetails"; -import { AncvDetails } from "./ancvDetails"; -import { AndroidPayDetails } from "./androidPayDetails"; -import { ApplePayDetails } from "./applePayDetails"; -import { BacsDirectDebitDetails } from "./bacsDirectDebitDetails"; -import { BillDeskDetails } from "./billDeskDetails"; -import { BlikDetails } from "./blikDetails"; -import { CardDetails } from "./cardDetails"; -import { CashAppDetails } from "./cashAppDetails"; -import { CellulantDetails } from "./cellulantDetails"; -import { DokuDetails } from "./dokuDetails"; -import { DragonpayDetails } from "./dragonpayDetails"; -import { EBankingFinlandDetails } from "./eBankingFinlandDetails"; -import { EcontextVoucherDetails } from "./econtextVoucherDetails"; -import { EftDetails } from "./eftDetails"; -import { FastlaneDetails } from "./fastlaneDetails"; -import { GenericIssuerPaymentMethodDetails } from "./genericIssuerPaymentMethodDetails"; -import { GooglePayDetails } from "./googlePayDetails"; -import { IdealDetails } from "./idealDetails"; -import { KlarnaDetails } from "./klarnaDetails"; -import { MasterpassDetails } from "./masterpassDetails"; -import { MbwayDetails } from "./mbwayDetails"; -import { MobilePayDetails } from "./mobilePayDetails"; -import { MolPayDetails } from "./molPayDetails"; -import { OpenInvoiceDetails } from "./openInvoiceDetails"; -import { PayByBankAISDirectDebitDetails } from "./payByBankAISDirectDebitDetails"; -import { PayByBankDetails } from "./payByBankDetails"; -import { PayPalDetails } from "./payPalDetails"; -import { PayPayDetails } from "./payPayDetails"; -import { PayToDetails } from "./payToDetails"; -import { PayUUpiDetails } from "./payUUpiDetails"; -import { PayWithGoogleDetails } from "./payWithGoogleDetails"; -import { PaymentDetails } from "./paymentDetails"; -import { PixDetails } from "./pixDetails"; -import { PseDetails } from "./pseDetails"; -import { RakutenPayDetails } from "./rakutenPayDetails"; -import { RatepayDetails } from "./ratepayDetails"; -import { RivertyDetails } from "./rivertyDetails"; -import { SamsungPayDetails } from "./samsungPayDetails"; -import { SepaDirectDebitDetails } from "./sepaDirectDebitDetails"; -import { StoredPaymentMethodDetails } from "./storedPaymentMethodDetails"; -import { TwintDetails } from "./twintDetails"; -import { UpiCollectDetails } from "./upiCollectDetails"; -import { UpiIntentDetails } from "./upiIntentDetails"; -import { VippsDetails } from "./vippsDetails"; -import { VisaCheckoutDetails } from "./visaCheckoutDetails"; -import { WeChatPayDetails } from "./weChatPayDetails"; -import { WeChatPayMiniProgramDetails } from "./weChatPayMiniProgramDetails"; -import { ZipDetails } from "./zipDetails"; - -/** -* The type and required details of a payment method to use. -*/ - - -/** - * @type PaymentRequestPaymentMethod - * Type - * @export - */ -export type PaymentRequestPaymentMethod = AchDetails | AffirmDetails | AfterpayDetails | AmazonPayDetails | AncvDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CashAppDetails | CellulantDetails | DokuDetails | DragonpayDetails | EBankingFinlandDetails | EcontextVoucherDetails | EftDetails | FastlaneDetails | GenericIssuerPaymentMethodDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayByBankAISDirectDebitDetails | PayByBankDetails | PayPalDetails | PayPayDetails | PayToDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | PixDetails | PseDetails | RakutenPayDetails | RatepayDetails | RivertyDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | TwintDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails; - -/** -* @type PaymentRequestPaymentMethodClass - * The type and required details of a payment method to use. -* @export -*/ -export class PaymentRequestPaymentMethodClass { - - static readonly discriminator: string = "type"; - - static readonly mapping: {[index: string]: string} | undefined = undefined; -} diff --git a/src/typings/checkout/paymentResponse.ts b/src/typings/checkout/paymentResponse.ts index a5c8a1552..77d6eb839 100644 --- a/src/typings/checkout/paymentResponse.ts +++ b/src/typings/checkout/paymentResponse.ts @@ -7,158 +7,148 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { CheckoutOrderResponse } from "./checkoutOrderResponse"; -import { FraudResult } from "./fraudResult"; -import { PaymentResponseAction } from "./paymentResponseAction"; -import { ResponsePaymentMethod } from "./responsePaymentMethod"; -import { ThreeDS2ResponseData } from "./threeDS2ResponseData"; -import { ThreeDS2Result } from "./threeDS2Result"; - +import { Amount } from './amount'; +import { CheckoutAwaitAction } from './checkoutAwaitAction'; +import { CheckoutBankTransferAction } from './checkoutBankTransferAction'; +import { CheckoutDelegatedAuthenticationAction } from './checkoutDelegatedAuthenticationAction'; +import { CheckoutNativeRedirectAction } from './checkoutNativeRedirectAction'; +import { CheckoutOrderResponse } from './checkoutOrderResponse'; +import { CheckoutQrCodeAction } from './checkoutQrCodeAction'; +import { CheckoutRedirectAction } from './checkoutRedirectAction'; +import { CheckoutSDKAction } from './checkoutSDKAction'; +import { CheckoutThreeDS2Action } from './checkoutThreeDS2Action'; +import { CheckoutVoucherAction } from './checkoutVoucherAction'; +import { FraudResult } from './fraudResult'; +import { ResponsePaymentMethod } from './responsePaymentMethod'; +import { ThreeDS2ResponseData } from './threeDS2ResponseData'; +import { ThreeDS2Result } from './threeDS2Result'; export class PaymentResponse { - "action"?: PaymentResponseAction | null; + /** + * Action to be taken for completing the payment. + */ + 'action'?: CheckoutAwaitAction | CheckoutBankTransferAction | CheckoutDelegatedAuthenticationAction | CheckoutNativeRedirectAction | CheckoutQrCodeAction | CheckoutRedirectAction | CheckoutSDKAction | CheckoutThreeDS2Action | CheckoutVoucherAction | null; /** * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. */ - "additionalData"?: { [key: string]: string; }; - "amount"?: Amount | null; + 'additionalData'?: { [key: string]: string; }; + 'amount'?: Amount | null; /** * Donation Token containing payment details for Adyen Giving. */ - "donationToken"?: string; - "fraudResult"?: FraudResult | null; + 'donationToken'?: string; + 'fraudResult'?: FraudResult | null; /** * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ - "merchantReference"?: string; - "order"?: CheckoutOrderResponse | null; - "paymentMethod"?: ResponsePaymentMethod | null; + 'merchantReference'?: string; + 'order'?: CheckoutOrderResponse | null; + 'paymentMethod'?: ResponsePaymentMethod | 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. */ - "pspReference"?: string; + 'pspReference'?: string; /** * If the payment\'s authorisation is refused or an error occurs during authorisation, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ - "refusalReason"?: string; + 'refusalReason'?: string; /** * Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ - "refusalReasonCode"?: string; + 'refusalReasonCode'?: string; /** * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper\'s device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. */ - "resultCode"?: PaymentResponse.ResultCodeEnum; - "threeDS2ResponseData"?: ThreeDS2ResponseData | null; - "threeDS2Result"?: ThreeDS2Result | null; + 'resultCode'?: PaymentResponse.ResultCodeEnum; + 'threeDS2ResponseData'?: ThreeDS2ResponseData | null; + 'threeDS2Result'?: ThreeDS2Result | null; /** * When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. */ - "threeDSPaymentData"?: string; + 'threeDSPaymentData'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "action", "baseName": "action", - "type": "PaymentResponseAction | null", - "format": "" + "type": "CheckoutAwaitAction | CheckoutBankTransferAction | CheckoutDelegatedAuthenticationAction | CheckoutNativeRedirectAction | CheckoutQrCodeAction | CheckoutRedirectAction | CheckoutSDKAction | CheckoutThreeDS2Action | CheckoutVoucherAction | null" }, { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "amount", "baseName": "amount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "donationToken", "baseName": "donationToken", - "type": "string", - "format": "" + "type": "string" }, { "name": "fraudResult", "baseName": "fraudResult", - "type": "FraudResult | null", - "format": "" + "type": "FraudResult | null" }, { "name": "merchantReference", "baseName": "merchantReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "order", "baseName": "order", - "type": "CheckoutOrderResponse | null", - "format": "" + "type": "CheckoutOrderResponse | null" }, { "name": "paymentMethod", "baseName": "paymentMethod", - "type": "ResponsePaymentMethod | null", - "format": "" + "type": "ResponsePaymentMethod | null" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "refusalReason", "baseName": "refusalReason", - "type": "string", - "format": "" + "type": "string" }, { "name": "refusalReasonCode", "baseName": "refusalReasonCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "resultCode", "baseName": "resultCode", - "type": "PaymentResponse.ResultCodeEnum", - "format": "" + "type": "PaymentResponse.ResultCodeEnum" }, { "name": "threeDS2ResponseData", "baseName": "threeDS2ResponseData", - "type": "ThreeDS2ResponseData | null", - "format": "" + "type": "ThreeDS2ResponseData | null" }, { "name": "threeDS2Result", "baseName": "threeDS2Result", - "type": "ThreeDS2Result | null", - "format": "" + "type": "ThreeDS2Result | null" }, { "name": "threeDSPaymentData", "baseName": "threeDSPaymentData", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PaymentResponse.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentResponse { diff --git a/src/typings/checkout/paymentResponseAction.ts b/src/typings/checkout/paymentResponseAction.ts deleted file mode 100644 index 796a5f3b2..000000000 --- a/src/typings/checkout/paymentResponseAction.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 { CheckoutAwaitAction } from "./checkoutAwaitAction"; -import { CheckoutBankTransferAction } from "./checkoutBankTransferAction"; -import { CheckoutDelegatedAuthenticationAction } from "./checkoutDelegatedAuthenticationAction"; -import { CheckoutNativeRedirectAction } from "./checkoutNativeRedirectAction"; -import { CheckoutQrCodeAction } from "./checkoutQrCodeAction"; -import { CheckoutRedirectAction } from "./checkoutRedirectAction"; -import { CheckoutSDKAction } from "./checkoutSDKAction"; -import { CheckoutThreeDS2Action } from "./checkoutThreeDS2Action"; -import { CheckoutVoucherAction } from "./checkoutVoucherAction"; - -/** -* Action to be taken for completing the payment. -*/ - - -/** - * @type PaymentResponseAction - * Type - * @export - */ -export type PaymentResponseAction = CheckoutAwaitAction | CheckoutBankTransferAction | CheckoutDelegatedAuthenticationAction | CheckoutNativeRedirectAction | CheckoutQrCodeAction | CheckoutRedirectAction | CheckoutSDKAction | CheckoutThreeDS2Action | CheckoutVoucherAction; - -/** -* @type PaymentResponseActionClass - * Action to be taken for completing the payment. -* @export -*/ -export class PaymentResponseActionClass { - - static readonly discriminator: string = "type"; - - static readonly mapping: {[index: string]: string} | undefined = undefined; -} diff --git a/src/typings/checkout/paymentReversalRequest.ts b/src/typings/checkout/paymentReversalRequest.ts index 65e33f8ae..569a5c3d2 100644 --- a/src/typings/checkout/paymentReversalRequest.ts +++ b/src/typings/checkout/paymentReversalRequest.ts @@ -7,49 +7,40 @@ * Do not edit this class manually. */ -import { ApplicationInfo } from "./applicationInfo"; - +import { ApplicationInfo } from './applicationInfo'; export class PaymentReversalRequest { - "applicationInfo"?: ApplicationInfo | null; + 'applicationInfo'?: ApplicationInfo | null; /** * The merchant account that is used to process the payment. */ - "merchantAccount": string; + 'merchantAccount': string; /** * Your reference for the reversal request. Maximum length: 80 characters. */ - "reference"?: string; - - static readonly discriminator: string | undefined = undefined; + 'reference'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo | null", - "format": "" + "type": "ApplicationInfo | null" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PaymentReversalRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/paymentReversalResponse.ts b/src/typings/checkout/paymentReversalResponse.ts index 4b737ebb9..3534dc508 100644 --- a/src/typings/checkout/paymentReversalResponse.ts +++ b/src/typings/checkout/paymentReversalResponse.ts @@ -12,66 +12,56 @@ export class PaymentReversalResponse { /** * The merchant account that is used to process the payment. */ - "merchantAccount": string; + 'merchantAccount': string; /** * The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment to reverse. */ - "paymentPspReference": string; + 'paymentPspReference': string; /** * Adyen\'s 16-character reference associated with the reversal request. */ - "pspReference": string; + 'pspReference': string; /** * Your reference for the reversal request. */ - "reference"?: string; + 'reference'?: string; /** * The status of your request. This will always have the value **received**. */ - "status": PaymentReversalResponse.StatusEnum; + 'status': PaymentReversalResponse.StatusEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentPspReference", "baseName": "paymentPspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "PaymentReversalResponse.StatusEnum", - "format": "" + "type": "PaymentReversalResponse.StatusEnum" } ]; static getAttributeTypeMap() { return PaymentReversalResponse.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentReversalResponse { diff --git a/src/typings/checkout/paypalUpdateOrderRequest.ts b/src/typings/checkout/paypalUpdateOrderRequest.ts index 6990c8b46..494b1d908 100644 --- a/src/typings/checkout/paypalUpdateOrderRequest.ts +++ b/src/typings/checkout/paypalUpdateOrderRequest.ts @@ -7,78 +7,66 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { DeliveryMethod } from "./deliveryMethod"; -import { TaxTotal } from "./taxTotal"; - +import { Amount } from './amount'; +import { DeliveryMethod } from './deliveryMethod'; +import { TaxTotal } from './taxTotal'; export class PaypalUpdateOrderRequest { - "amount"?: Amount | null; + 'amount'?: Amount | null; /** * The list of new delivery methods and the cost of each. */ - "deliveryMethods"?: Array; + 'deliveryMethods'?: Array; /** * The `paymentData` from the client side. This value changes every time you make a `/paypal/updateOrder` request. */ - "paymentData"?: string; + 'paymentData'?: string; /** * The original `pspReference` from the `/payments` response. */ - "pspReference"?: string; + 'pspReference'?: string; /** * The original `sessionId` from the `/sessions` response. */ - "sessionId"?: string; - "taxTotal"?: TaxTotal | null; - - static readonly discriminator: string | undefined = undefined; + 'sessionId'?: string; + 'taxTotal'?: TaxTotal | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "deliveryMethods", "baseName": "deliveryMethods", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "paymentData", "baseName": "paymentData", - "type": "string", - "format": "" + "type": "string" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "sessionId", "baseName": "sessionId", - "type": "string", - "format": "" + "type": "string" }, { "name": "taxTotal", "baseName": "taxTotal", - "type": "TaxTotal | null", - "format": "" + "type": "TaxTotal | null" } ]; static getAttributeTypeMap() { return PaypalUpdateOrderRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/paypalUpdateOrderResponse.ts b/src/typings/checkout/paypalUpdateOrderResponse.ts index 046b14267..a4c7343ef 100644 --- a/src/typings/checkout/paypalUpdateOrderResponse.ts +++ b/src/typings/checkout/paypalUpdateOrderResponse.ts @@ -12,36 +12,29 @@ export class PaypalUpdateOrderResponse { /** * The updated paymentData. */ - "paymentData": string; + 'paymentData': string; /** * The status of the request. This indicates whether the order was successfully updated with PayPal. */ - "status": PaypalUpdateOrderResponse.StatusEnum; + 'status': PaypalUpdateOrderResponse.StatusEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "paymentData", "baseName": "paymentData", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "PaypalUpdateOrderResponse.StatusEnum", - "format": "" + "type": "PaypalUpdateOrderResponse.StatusEnum" } ]; static getAttributeTypeMap() { return PaypalUpdateOrderResponse.attributeTypeMap; } - - public constructor() { - } } export namespace PaypalUpdateOrderResponse { diff --git a/src/typings/checkout/phone.ts b/src/typings/checkout/phone.ts index 14dea2f8a..47476a911 100644 --- a/src/typings/checkout/phone.ts +++ b/src/typings/checkout/phone.ts @@ -12,35 +12,28 @@ export class Phone { /** * Country code. Length: 1–3 characters. */ - "cc"?: string; + 'cc'?: string; /** * Subscriber number. Maximum length: 15 characters. */ - "subscriber"?: string; + 'subscriber'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "cc", "baseName": "cc", - "type": "string", - "format": "" + "type": "string" }, { "name": "subscriber", "baseName": "subscriber", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Phone.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/pixDetails.ts b/src/typings/checkout/pixDetails.ts index 768981ae6..19e7a4fa7 100644 --- a/src/typings/checkout/pixDetails.ts +++ b/src/typings/checkout/pixDetails.ts @@ -7,73 +7,62 @@ * Do not edit this class manually. */ -import { PixRecurring } from "./pixRecurring"; - +import { PixRecurring } from './pixRecurring'; export class PixDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; - "pixRecurring"?: PixRecurring | null; + 'checkoutAttemptId'?: string; + 'pixRecurring'?: PixRecurring | null; /** * This is the `recurringDetailReference` returned in the response when you created the token. * * @deprecated since Adyen Checkout API v49 * Use `storedPaymentMethodId` instead. */ - "recurringDetailReference"?: string; + 'recurringDetailReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * The payment method type. */ - "type"?: PixDetails.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type'?: PixDetails.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "pixRecurring", "baseName": "pixRecurring", - "type": "PixRecurring | null", - "format": "" + "type": "PixRecurring | null" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "PixDetails.TypeEnum", - "format": "" + "type": "PixDetails.TypeEnum" } ]; static getAttributeTypeMap() { return PixDetails.attributeTypeMap; } - - public constructor() { - } } export namespace PixDetails { diff --git a/src/typings/checkout/pixRecurring.ts b/src/typings/checkout/pixRecurring.ts index 2a383885f..f4063aaf4 100644 --- a/src/typings/checkout/pixRecurring.ts +++ b/src/typings/checkout/pixRecurring.ts @@ -7,117 +7,101 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class PixRecurring { /** * The date on which the shopper\'s payment method will be charged, in YYYY-MM-DD format. */ - "billingDate"?: string; + 'billingDate'?: string; /** * Flag used to define whether liquidation can happen only on business days */ - "businessDayOnly"?: boolean; + 'businessDayOnly'?: boolean; /** * End date of the billing plan, in YYYY-MM-DD format. The end date must align with the frequency and the start date of the billing plan. If left blank, the subscription will continue indefinitely unless it is cancelled by the shopper. */ - "endsAt"?: string; + 'endsAt'?: string; /** * The frequency at which the shopper will be charged. */ - "frequency"?: PixRecurring.FrequencyEnum; - "minAmount"?: Amount | null; + 'frequency'?: PixRecurring.FrequencyEnum; + 'minAmount'?: Amount | null; /** * The pspReference for the failed recurring payment. Find this in AUTHORISATION webhook you received after the billing date. */ - "originalPspReference"?: string; - "recurringAmount"?: Amount | null; + 'originalPspReference'?: string; + 'recurringAmount'?: Amount | null; /** * The text that that will be shown on the shopper\'s bank statement for the recurring payments. We recommend to add a descriptive text about the subscription to let your shoppers recognize your recurring payments. Maximum length: 35 characters. */ - "recurringStatement"?: string; + 'recurringStatement'?: string; /** * When set to true, you can retry for failed recurring payments. The default value is true. */ - "retryPolicy"?: boolean; + 'retryPolicy'?: boolean; /** * Start date of the billing plan, in YYYY-MM-DD format. The default value is the transaction date. */ - "startsAt"?: string; - - static readonly discriminator: string | undefined = undefined; + 'startsAt'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "billingDate", "baseName": "billingDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "businessDayOnly", "baseName": "businessDayOnly", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "endsAt", "baseName": "endsAt", - "type": "string", - "format": "" + "type": "string" }, { "name": "frequency", "baseName": "frequency", - "type": "PixRecurring.FrequencyEnum", - "format": "" + "type": "PixRecurring.FrequencyEnum" }, { "name": "minAmount", "baseName": "minAmount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "originalPspReference", "baseName": "originalPspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringAmount", "baseName": "recurringAmount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "recurringStatement", "baseName": "recurringStatement", - "type": "string", - "format": "" + "type": "string" }, { "name": "retryPolicy", "baseName": "retryPolicy", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "startsAt", "baseName": "startsAt", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PixRecurring.attributeTypeMap; } - - public constructor() { - } } export namespace PixRecurring { diff --git a/src/typings/checkout/platformChargebackLogic.ts b/src/typings/checkout/platformChargebackLogic.ts index a6edef258..f05e34152 100644 --- a/src/typings/checkout/platformChargebackLogic.ts +++ b/src/typings/checkout/platformChargebackLogic.ts @@ -12,46 +12,38 @@ export class PlatformChargebackLogic { /** * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. */ - "behavior"?: PlatformChargebackLogic.BehaviorEnum; + 'behavior'?: PlatformChargebackLogic.BehaviorEnum; /** * The unique identifier of the balance account to which the chargeback fees are booked. By default, the chargeback fees are booked to your liable balance account. */ - "costAllocationAccount"?: string; + 'costAllocationAccount'?: string; /** * The unique identifier of the balance account against which the disputed amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. */ - "targetAccount"?: string; + 'targetAccount'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "behavior", "baseName": "behavior", - "type": "PlatformChargebackLogic.BehaviorEnum", - "format": "" + "type": "PlatformChargebackLogic.BehaviorEnum" }, { "name": "costAllocationAccount", "baseName": "costAllocationAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "targetAccount", "baseName": "targetAccount", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PlatformChargebackLogic.attributeTypeMap; } - - public constructor() { - } } export namespace PlatformChargebackLogic { diff --git a/src/typings/checkout/pseDetails.ts b/src/typings/checkout/pseDetails.ts index 7c066cd01..03378c965 100644 --- a/src/typings/checkout/pseDetails.ts +++ b/src/typings/checkout/pseDetails.ts @@ -12,76 +12,65 @@ export class PseDetails { /** * The shopper\'s bank. */ - "bank": string; + 'bank': string; /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The client type. */ - "clientType": string; + 'clientType': string; /** * The identification code. */ - "identification": string; + 'identification': string; /** * The identification type. */ - "identificationType": string; + 'identificationType': string; /** * The payment method type. */ - "type"?: PseDetails.TypeEnum; + 'type'?: PseDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "bank", "baseName": "bank", - "type": "string", - "format": "" + "type": "string" }, { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "clientType", "baseName": "clientType", - "type": "string", - "format": "" + "type": "string" }, { "name": "identification", "baseName": "identification", - "type": "string", - "format": "" + "type": "string" }, { "name": "identificationType", "baseName": "identificationType", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "PseDetails.TypeEnum", - "format": "" + "type": "PseDetails.TypeEnum" } ]; static getAttributeTypeMap() { return PseDetails.attributeTypeMap; } - - public constructor() { - } } export namespace PseDetails { diff --git a/src/typings/checkout/rakutenPayDetails.ts b/src/typings/checkout/rakutenPayDetails.ts index bfc8863c5..757937f39 100644 --- a/src/typings/checkout/rakutenPayDetails.ts +++ b/src/typings/checkout/rakutenPayDetails.ts @@ -12,59 +12,50 @@ export class RakutenPayDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: 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; + 'recurringDetailReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * **rakutenpay** */ - "type"?: RakutenPayDetails.TypeEnum; + 'type'?: RakutenPayDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "RakutenPayDetails.TypeEnum", - "format": "" + "type": "RakutenPayDetails.TypeEnum" } ]; static getAttributeTypeMap() { return RakutenPayDetails.attributeTypeMap; } - - public constructor() { - } } export namespace RakutenPayDetails { diff --git a/src/typings/checkout/ratepayDetails.ts b/src/typings/checkout/ratepayDetails.ts index 6c3c91575..18849bc0f 100644 --- a/src/typings/checkout/ratepayDetails.ts +++ b/src/typings/checkout/ratepayDetails.ts @@ -12,89 +12,77 @@ export class RatepayDetails { /** * The address where to send the invoice. */ - "billingAddress"?: string; + 'billingAddress'?: string; /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The address where the goods should be delivered. */ - "deliveryAddress"?: string; + 'deliveryAddress'?: string; /** * Shopper name, date of birth, phone number, and email address. */ - "personalDetails"?: string; + 'personalDetails'?: 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; + 'recurringDetailReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * **ratepay** */ - "type": RatepayDetails.TypeEnum; + 'type': RatepayDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "billingAddress", "baseName": "billingAddress", - "type": "string", - "format": "" + "type": "string" }, { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "deliveryAddress", "baseName": "deliveryAddress", - "type": "string", - "format": "" + "type": "string" }, { "name": "personalDetails", "baseName": "personalDetails", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "RatepayDetails.TypeEnum", - "format": "" + "type": "RatepayDetails.TypeEnum" } ]; static getAttributeTypeMap() { return RatepayDetails.attributeTypeMap; } - - public constructor() { - } } export namespace RatepayDetails { diff --git a/src/typings/checkout/recurring.ts b/src/typings/checkout/recurring.ts index 68b3f2227..a1eafd4f2 100644 --- a/src/typings/checkout/recurring.ts +++ b/src/typings/checkout/recurring.ts @@ -12,66 +12,56 @@ export class Recurring { /** * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). */ - "contract"?: Recurring.ContractEnum; + 'contract'?: Recurring.ContractEnum; /** * A descriptive name for this detail. */ - "recurringDetailName"?: string; + 'recurringDetailName'?: string; /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. */ - "recurringExpiry"?: Date; + 'recurringExpiry'?: Date; /** * Minimum number of days between authorisations. Only for 3D Secure 2. */ - "recurringFrequency"?: string; + 'recurringFrequency'?: string; /** * The name of the token service. */ - "tokenService"?: Recurring.TokenServiceEnum; + 'tokenService'?: Recurring.TokenServiceEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "contract", "baseName": "contract", - "type": "Recurring.ContractEnum", - "format": "" + "type": "Recurring.ContractEnum" }, { "name": "recurringDetailName", "baseName": "recurringDetailName", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringExpiry", "baseName": "recurringExpiry", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "recurringFrequency", "baseName": "recurringFrequency", - "type": "string", - "format": "" + "type": "string" }, { "name": "tokenService", "baseName": "tokenService", - "type": "Recurring.TokenServiceEnum", - "format": "" + "type": "Recurring.TokenServiceEnum" } ]; static getAttributeTypeMap() { return Recurring.attributeTypeMap; } - - public constructor() { - } } export namespace Recurring { diff --git a/src/typings/checkout/responseAdditionalData3DSecure.ts b/src/typings/checkout/responseAdditionalData3DSecure.ts index 677a8dcdc..49ed1611e 100644 --- a/src/typings/checkout/responseAdditionalData3DSecure.ts +++ b/src/typings/checkout/responseAdditionalData3DSecure.ts @@ -12,65 +12,55 @@ export class ResponseAdditionalData3DSecure { /** * Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. */ - "cardHolderInfo"?: string; + 'cardHolderInfo'?: string; /** * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. */ - "cavv"?: string; + 'cavv'?: string; /** * The CAVV algorithm used. */ - "cavvAlgorithm"?: string; + 'cavvAlgorithm'?: string; /** * Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** */ - "scaExemptionRequested"?: string; + 'scaExemptionRequested'?: string; /** * Indicates whether a card is enrolled for 3D Secure 2. */ - "threeds2_cardEnrolled"?: boolean; + 'threeds2_cardEnrolled'?: boolean; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "cardHolderInfo", "baseName": "cardHolderInfo", - "type": "string", - "format": "" + "type": "string" }, { "name": "cavv", "baseName": "cavv", - "type": "string", - "format": "" + "type": "string" }, { "name": "cavvAlgorithm", "baseName": "cavvAlgorithm", - "type": "string", - "format": "" + "type": "string" }, { "name": "scaExemptionRequested", "baseName": "scaExemptionRequested", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeds2_cardEnrolled", "baseName": "threeds2.cardEnrolled", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return ResponseAdditionalData3DSecure.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/responseAdditionalDataBillingAddress.ts b/src/typings/checkout/responseAdditionalDataBillingAddress.ts index 496cf8261..f9c473e13 100644 --- a/src/typings/checkout/responseAdditionalDataBillingAddress.ts +++ b/src/typings/checkout/responseAdditionalDataBillingAddress.ts @@ -12,75 +12,64 @@ export class ResponseAdditionalDataBillingAddress { /** * The billing address city passed in the payment request. */ - "billingAddress_city"?: string; + 'billingAddress_city'?: string; /** * The billing address country passed in the payment request. Example: NL */ - "billingAddress_country"?: string; + 'billingAddress_country'?: string; /** * The billing address house number or name passed in the payment request. */ - "billingAddress_houseNumberOrName"?: string; + 'billingAddress_houseNumberOrName'?: string; /** * The billing address postal code passed in the payment request. Example: 1011 DJ */ - "billingAddress_postalCode"?: string; + 'billingAddress_postalCode'?: string; /** * The billing address state or province passed in the payment request. Example: NH */ - "billingAddress_stateOrProvince"?: string; + 'billingAddress_stateOrProvince'?: string; /** * The billing address street passed in the payment request. */ - "billingAddress_street"?: string; + 'billingAddress_street'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "billingAddress_city", "baseName": "billingAddress.city", - "type": "string", - "format": "" + "type": "string" }, { "name": "billingAddress_country", "baseName": "billingAddress.country", - "type": "string", - "format": "" + "type": "string" }, { "name": "billingAddress_houseNumberOrName", "baseName": "billingAddress.houseNumberOrName", - "type": "string", - "format": "" + "type": "string" }, { "name": "billingAddress_postalCode", "baseName": "billingAddress.postalCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "billingAddress_stateOrProvince", "baseName": "billingAddress.stateOrProvince", - "type": "string", - "format": "" + "type": "string" }, { "name": "billingAddress_street", "baseName": "billingAddress.street", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ResponseAdditionalDataBillingAddress.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/responseAdditionalDataCard.ts b/src/typings/checkout/responseAdditionalDataCard.ts index cc15a1393..72c860d6b 100644 --- a/src/typings/checkout/responseAdditionalDataCard.ts +++ b/src/typings/checkout/responseAdditionalDataCard.ts @@ -12,106 +12,92 @@ export class ResponseAdditionalDataCard { /** * The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 */ - "cardBin"?: string; + 'cardBin'?: string; /** * The cardholder name passed in the payment request. */ - "cardHolderName"?: string; + 'cardHolderName'?: string; /** * The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. */ - "cardIssuingBank"?: string; + 'cardIssuingBank'?: string; /** * The country where the card was issued. Example: US */ - "cardIssuingCountry"?: string; + 'cardIssuingCountry'?: string; /** * The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD */ - "cardIssuingCurrency"?: string; + 'cardIssuingCurrency'?: string; /** * The card payment method used for the transaction. Example: amex */ - "cardPaymentMethod"?: string; + 'cardPaymentMethod'?: string; /** * The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit */ - "cardProductId"?: ResponseAdditionalDataCard.CardProductIdEnum; + 'cardProductId'?: ResponseAdditionalDataCard.CardProductIdEnum; /** * The last four digits of a card number. > Returned only in case of a card payment. */ - "cardSummary"?: string; + 'cardSummary'?: string; /** * The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 */ - "issuerBin"?: string; + 'issuerBin'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "cardBin", "baseName": "cardBin", - "type": "string", - "format": "" + "type": "string" }, { "name": "cardHolderName", "baseName": "cardHolderName", - "type": "string", - "format": "" + "type": "string" }, { "name": "cardIssuingBank", "baseName": "cardIssuingBank", - "type": "string", - "format": "" + "type": "string" }, { "name": "cardIssuingCountry", "baseName": "cardIssuingCountry", - "type": "string", - "format": "" + "type": "string" }, { "name": "cardIssuingCurrency", "baseName": "cardIssuingCurrency", - "type": "string", - "format": "" + "type": "string" }, { "name": "cardPaymentMethod", "baseName": "cardPaymentMethod", - "type": "string", - "format": "" + "type": "string" }, { "name": "cardProductId", "baseName": "cardProductId", - "type": "ResponseAdditionalDataCard.CardProductIdEnum", - "format": "" + "type": "ResponseAdditionalDataCard.CardProductIdEnum" }, { "name": "cardSummary", "baseName": "cardSummary", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuerBin", "baseName": "issuerBin", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ResponseAdditionalDataCard.attributeTypeMap; } - - public constructor() { - } } export namespace ResponseAdditionalDataCard { diff --git a/src/typings/checkout/responseAdditionalDataCommon.ts b/src/typings/checkout/responseAdditionalDataCommon.ts index fa2eb5e22..52279bd2c 100644 --- a/src/typings/checkout/responseAdditionalDataCommon.ts +++ b/src/typings/checkout/responseAdditionalDataCommon.ts @@ -12,652 +12,584 @@ export class ResponseAdditionalDataCommon { /** * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. */ - "acquirerAccountCode"?: string; + 'acquirerAccountCode'?: string; /** * The name of the acquirer processing the payment request. Example: TestPmmAcquirer */ - "acquirerCode"?: string; + 'acquirerCode'?: string; /** * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 */ - "acquirerReference"?: string; + 'acquirerReference'?: string; /** * The Adyen alias of the card. Example: H167852639363479 */ - "alias"?: string; + 'alias'?: string; /** * The type of the card alias. Example: Default */ - "aliasType"?: string; + 'aliasType'?: string; /** * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 */ - "authCode"?: string; + 'authCode'?: string; /** * Merchant ID known by the acquirer. */ - "authorisationMid"?: string; + 'authorisationMid'?: string; /** * The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ - "authorisedAmountCurrency"?: string; + 'authorisedAmountCurrency'?: string; /** * Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). */ - "authorisedAmountValue"?: string; + 'authorisedAmountValue'?: string; /** * The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). */ - "avsResult"?: string; + 'avsResult'?: string; /** * Raw AVS result received from the acquirer, where available. Example: D */ - "avsResultRaw"?: string; + 'avsResultRaw'?: string; /** * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. */ - "bic"?: string; + 'bic'?: string; /** * Includes the co-branded card information. */ - "coBrandedWith"?: string; + 'coBrandedWith'?: string; /** * The result of CVC verification. */ - "cvcResult"?: string; + 'cvcResult'?: string; /** * The raw result of CVC verification. */ - "cvcResultRaw"?: string; + 'cvcResultRaw'?: string; /** * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. */ - "dsTransID"?: string; + 'dsTransID'?: string; /** * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 */ - "eci"?: string; + 'eci'?: string; /** * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. */ - "expiryDate"?: string; + 'expiryDate'?: string; /** * The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR */ - "extraCostsCurrency"?: string; + 'extraCostsCurrency'?: string; /** * The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. */ - "extraCostsValue"?: string; + 'extraCostsValue'?: string; /** * The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. */ - "fraudCheck__itemNr__FraudCheckname"?: string; + 'fraudCheck__itemNr__FraudCheckname'?: string; /** * Indicates if the payment is sent to manual review. */ - "fraudManualReview"?: string; + 'fraudManualReview'?: string; /** * The fraud result properties of the payment. */ - "fraudResultType"?: ResponseAdditionalDataCommon.FraudResultTypeEnum; + 'fraudResultType'?: ResponseAdditionalDataCommon.FraudResultTypeEnum; /** * The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh */ - "fraudRiskLevel"?: ResponseAdditionalDataCommon.FraudRiskLevelEnum; + 'fraudRiskLevel'?: ResponseAdditionalDataCommon.FraudRiskLevelEnum; /** * Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen\'s end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. */ - "fundingSource"?: string; + 'fundingSource'?: string; /** * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". */ - "fundsAvailability"?: string; + 'fundsAvailability'?: string; /** * Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card */ - "inferredRefusalReason"?: string; + 'inferredRefusalReason'?: string; /** * Indicates if the card is used for business purposes only. */ - "isCardCommercial"?: string; + 'isCardCommercial'?: string; /** * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP */ - "issuerCountry"?: string; + 'issuerCountry'?: string; /** * A Boolean value indicating whether a liability shift was offered for this payment. */ - "liabilityShift"?: string; + 'liabilityShift'?: string; /** * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. */ - "mcBankNetReferenceNumber"?: string; + 'mcBankNetReferenceNumber'?: string; /** * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). */ - "merchantAdviceCode"?: string; + 'merchantAdviceCode'?: string; /** * The reference provided for the transaction. */ - "merchantReference"?: string; + 'merchantReference'?: string; /** * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. */ - "networkTxReference"?: string; + 'networkTxReference'?: string; /** * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. */ - "ownerName"?: string; + 'ownerName'?: string; /** * The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. */ - "paymentAccountReference"?: string; + 'paymentAccountReference'?: string; /** * The payment method used in the transaction. */ - "paymentMethod"?: string; + 'paymentMethod'?: string; /** * The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro */ - "paymentMethodVariant"?: string; + 'paymentMethodVariant'?: string; /** * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) */ - "payoutEligible"?: string; + 'payoutEligible'?: string; /** * The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder */ - "realtimeAccountUpdaterStatus"?: string; + 'realtimeAccountUpdaterStatus'?: string; /** * Message to be displayed on the terminal. */ - "receiptFreeText"?: string; + 'receiptFreeText'?: string; /** * The recurring contract types applicable to the transaction. */ - "recurring_contractTypes"?: string; + 'recurring_contractTypes'?: string; /** * The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen\'s end. To enable it, contact the Support Team. */ - "recurring_firstPspReference"?: string; + 'recurring_firstPspReference'?: string; /** * The reference that uniquely identifies the recurring transaction. * * @deprecated since Adyen Checkout API v68 * Use tokenization.storedPaymentMethodId instead. */ - "recurring_recurringDetailReference"?: string; + 'recurring_recurringDetailReference'?: string; /** * The provided reference of the shopper for a recurring transaction. * * @deprecated since Adyen Checkout API v68 * Use tokenization.shopperReference instead. */ - "recurring_shopperReference"?: string; + 'recurring_shopperReference'?: string; /** * The processing model used for the recurring transaction. */ - "recurringProcessingModel"?: ResponseAdditionalDataCommon.RecurringProcessingModelEnum; + 'recurringProcessingModel'?: ResponseAdditionalDataCommon.RecurringProcessingModelEnum; /** * If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true */ - "referred"?: string; + 'referred'?: string; /** * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED */ - "refusalReasonRaw"?: string; + 'refusalReasonRaw'?: string; /** * The amount of the payment request. */ - "requestAmount"?: string; + 'requestAmount'?: string; /** * The currency of the payment request. */ - "requestCurrencyCode"?: string; + 'requestCurrencyCode'?: string; /** * The shopper interaction type of the payment request. Example: Ecommerce */ - "shopperInteraction"?: string; + 'shopperInteraction'?: string; /** * The shopperReference passed in the payment request. Example: AdyenTestShopperXX */ - "shopperReference"?: string; + 'shopperReference'?: string; /** * The terminal ID used in a point-of-sale payment. Example: 06022622 */ - "terminalId"?: string; + 'terminalId'?: string; /** * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true */ - "threeDAuthenticated"?: string; + 'threeDAuthenticated'?: string; /** * The raw 3DS authentication result from the card issuer. Example: N */ - "threeDAuthenticatedResponse"?: string; + 'threeDAuthenticatedResponse'?: string; /** * A Boolean value indicating whether 3DS was offered for this payment. Example: true */ - "threeDOffered"?: string; + 'threeDOffered'?: string; /** * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y */ - "threeDOfferedResponse"?: string; + 'threeDOfferedResponse'?: string; /** * The 3D Secure 2 version. */ - "threeDSVersion"?: string; + 'threeDSVersion'?: string; /** * The reference for the shopper that you sent when tokenizing the payment details. */ - "tokenization_shopperReference"?: string; + 'tokenization_shopperReference'?: string; /** * The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. */ - "tokenization_store_operationType"?: ResponseAdditionalDataCommon.TokenizationStoreOperationTypeEnum; + 'tokenization_store_operationType'?: ResponseAdditionalDataCommon.TokenizationStoreOperationTypeEnum; /** * The reference that uniquely identifies tokenized payment details. */ - "tokenization_storedPaymentMethodId"?: string; + 'tokenization_storedPaymentMethodId'?: string; /** * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. */ - "visaTransactionId"?: string; + 'visaTransactionId'?: string; /** * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse \'N\' or \'Y\'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= */ - "xid"?: string; + 'xid'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "acquirerAccountCode", "baseName": "acquirerAccountCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "acquirerCode", "baseName": "acquirerCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "acquirerReference", "baseName": "acquirerReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "alias", "baseName": "alias", - "type": "string", - "format": "" + "type": "string" }, { "name": "aliasType", "baseName": "aliasType", - "type": "string", - "format": "" + "type": "string" }, { "name": "authCode", "baseName": "authCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "authorisationMid", "baseName": "authorisationMid", - "type": "string", - "format": "" + "type": "string" }, { "name": "authorisedAmountCurrency", "baseName": "authorisedAmountCurrency", - "type": "string", - "format": "" + "type": "string" }, { "name": "authorisedAmountValue", "baseName": "authorisedAmountValue", - "type": "string", - "format": "" + "type": "string" }, { "name": "avsResult", "baseName": "avsResult", - "type": "string", - "format": "" + "type": "string" }, { "name": "avsResultRaw", "baseName": "avsResultRaw", - "type": "string", - "format": "" + "type": "string" }, { "name": "bic", "baseName": "bic", - "type": "string", - "format": "" + "type": "string" }, { "name": "coBrandedWith", "baseName": "coBrandedWith", - "type": "string", - "format": "" + "type": "string" }, { "name": "cvcResult", "baseName": "cvcResult", - "type": "string", - "format": "" + "type": "string" }, { "name": "cvcResultRaw", "baseName": "cvcResultRaw", - "type": "string", - "format": "" + "type": "string" }, { "name": "dsTransID", "baseName": "dsTransID", - "type": "string", - "format": "" + "type": "string" }, { "name": "eci", "baseName": "eci", - "type": "string", - "format": "" + "type": "string" }, { "name": "expiryDate", "baseName": "expiryDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "extraCostsCurrency", "baseName": "extraCostsCurrency", - "type": "string", - "format": "" + "type": "string" }, { "name": "extraCostsValue", "baseName": "extraCostsValue", - "type": "string", - "format": "" + "type": "string" }, { "name": "fraudCheck__itemNr__FraudCheckname", "baseName": "fraudCheck-[itemNr]-[FraudCheckname]", - "type": "string", - "format": "" + "type": "string" }, { "name": "fraudManualReview", "baseName": "fraudManualReview", - "type": "string", - "format": "" + "type": "string" }, { "name": "fraudResultType", "baseName": "fraudResultType", - "type": "ResponseAdditionalDataCommon.FraudResultTypeEnum", - "format": "" + "type": "ResponseAdditionalDataCommon.FraudResultTypeEnum" }, { "name": "fraudRiskLevel", "baseName": "fraudRiskLevel", - "type": "ResponseAdditionalDataCommon.FraudRiskLevelEnum", - "format": "" + "type": "ResponseAdditionalDataCommon.FraudRiskLevelEnum" }, { "name": "fundingSource", "baseName": "fundingSource", - "type": "string", - "format": "" + "type": "string" }, { "name": "fundsAvailability", "baseName": "fundsAvailability", - "type": "string", - "format": "" + "type": "string" }, { "name": "inferredRefusalReason", "baseName": "inferredRefusalReason", - "type": "string", - "format": "" + "type": "string" }, { "name": "isCardCommercial", "baseName": "isCardCommercial", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuerCountry", "baseName": "issuerCountry", - "type": "string", - "format": "" + "type": "string" }, { "name": "liabilityShift", "baseName": "liabilityShift", - "type": "string", - "format": "" + "type": "string" }, { "name": "mcBankNetReferenceNumber", "baseName": "mcBankNetReferenceNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAdviceCode", "baseName": "merchantAdviceCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantReference", "baseName": "merchantReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "networkTxReference", "baseName": "networkTxReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "ownerName", "baseName": "ownerName", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentAccountReference", "baseName": "paymentAccountReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMethod", "baseName": "paymentMethod", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMethodVariant", "baseName": "paymentMethodVariant", - "type": "string", - "format": "" + "type": "string" }, { "name": "payoutEligible", "baseName": "payoutEligible", - "type": "string", - "format": "" + "type": "string" }, { "name": "realtimeAccountUpdaterStatus", "baseName": "realtimeAccountUpdaterStatus", - "type": "string", - "format": "" + "type": "string" }, { "name": "receiptFreeText", "baseName": "receiptFreeText", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurring_contractTypes", "baseName": "recurring.contractTypes", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurring_firstPspReference", "baseName": "recurring.firstPspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurring_recurringDetailReference", "baseName": "recurring.recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurring_shopperReference", "baseName": "recurring.shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringProcessingModel", "baseName": "recurringProcessingModel", - "type": "ResponseAdditionalDataCommon.RecurringProcessingModelEnum", - "format": "" + "type": "ResponseAdditionalDataCommon.RecurringProcessingModelEnum" }, { "name": "referred", "baseName": "referred", - "type": "string", - "format": "" + "type": "string" }, { "name": "refusalReasonRaw", "baseName": "refusalReasonRaw", - "type": "string", - "format": "" + "type": "string" }, { "name": "requestAmount", "baseName": "requestAmount", - "type": "string", - "format": "" + "type": "string" }, { "name": "requestCurrencyCode", "baseName": "requestCurrencyCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperInteraction", "baseName": "shopperInteraction", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "terminalId", "baseName": "terminalId", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDAuthenticated", "baseName": "threeDAuthenticated", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDAuthenticatedResponse", "baseName": "threeDAuthenticatedResponse", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDOffered", "baseName": "threeDOffered", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDOfferedResponse", "baseName": "threeDOfferedResponse", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSVersion", "baseName": "threeDSVersion", - "type": "string", - "format": "" + "type": "string" }, { "name": "tokenization_shopperReference", "baseName": "tokenization.shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "tokenization_store_operationType", "baseName": "tokenization.store.operationType", - "type": "ResponseAdditionalDataCommon.TokenizationStoreOperationTypeEnum", - "format": "" + "type": "ResponseAdditionalDataCommon.TokenizationStoreOperationTypeEnum" }, { "name": "tokenization_storedPaymentMethodId", "baseName": "tokenization.storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "visaTransactionId", "baseName": "visaTransactionId", - "type": "string", - "format": "" + "type": "string" }, { "name": "xid", "baseName": "xid", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ResponseAdditionalDataCommon.attributeTypeMap; } - - public constructor() { - } } export namespace ResponseAdditionalDataCommon { diff --git a/src/typings/checkout/responseAdditionalDataDomesticError.ts b/src/typings/checkout/responseAdditionalDataDomesticError.ts index 0b65dcfb3..a4d2680c9 100644 --- a/src/typings/checkout/responseAdditionalDataDomesticError.ts +++ b/src/typings/checkout/responseAdditionalDataDomesticError.ts @@ -12,35 +12,28 @@ export class ResponseAdditionalDataDomesticError { /** * The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. */ - "domesticRefusalReasonRaw"?: string; + 'domesticRefusalReasonRaw'?: string; /** * The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. */ - "domesticShopperAdvice"?: string; + 'domesticShopperAdvice'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "domesticRefusalReasonRaw", "baseName": "domesticRefusalReasonRaw", - "type": "string", - "format": "" + "type": "string" }, { "name": "domesticShopperAdvice", "baseName": "domesticShopperAdvice", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ResponseAdditionalDataDomesticError.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/responseAdditionalDataInstallments.ts b/src/typings/checkout/responseAdditionalDataInstallments.ts index 24f6da0e1..a96a675d5 100644 --- a/src/typings/checkout/responseAdditionalDataInstallments.ts +++ b/src/typings/checkout/responseAdditionalDataInstallments.ts @@ -12,135 +12,118 @@ export class ResponseAdditionalDataInstallments { /** * Type of installment. The value of `installmentType` should be **IssuerFinanced**. */ - "installmentPaymentData_installmentType"?: string; + 'installmentPaymentData_installmentType'?: string; /** * Annual interest rate. */ - "installmentPaymentData_option_itemNr_annualPercentageRate"?: string; + 'installmentPaymentData_option_itemNr_annualPercentageRate'?: string; /** * First Installment Amount in minor units. */ - "installmentPaymentData_option_itemNr_firstInstallmentAmount"?: string; + 'installmentPaymentData_option_itemNr_firstInstallmentAmount'?: string; /** * Installment fee amount in minor units. */ - "installmentPaymentData_option_itemNr_installmentFee"?: string; + 'installmentPaymentData_option_itemNr_installmentFee'?: string; /** * Interest rate for the installment period. */ - "installmentPaymentData_option_itemNr_interestRate"?: string; + 'installmentPaymentData_option_itemNr_interestRate'?: string; /** * Maximum number of installments possible for this payment. */ - "installmentPaymentData_option_itemNr_maximumNumberOfInstallments"?: string; + 'installmentPaymentData_option_itemNr_maximumNumberOfInstallments'?: string; /** * Minimum number of installments possible for this payment. */ - "installmentPaymentData_option_itemNr_minimumNumberOfInstallments"?: string; + 'installmentPaymentData_option_itemNr_minimumNumberOfInstallments'?: string; /** * Total number of installments possible for this payment. */ - "installmentPaymentData_option_itemNr_numberOfInstallments"?: string; + 'installmentPaymentData_option_itemNr_numberOfInstallments'?: string; /** * Subsequent Installment Amount in minor units. */ - "installmentPaymentData_option_itemNr_subsequentInstallmentAmount"?: string; + 'installmentPaymentData_option_itemNr_subsequentInstallmentAmount'?: string; /** * Total amount in minor units. */ - "installmentPaymentData_option_itemNr_totalAmountDue"?: string; + 'installmentPaymentData_option_itemNr_totalAmountDue'?: string; /** * Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments */ - "installmentPaymentData_paymentOptions"?: string; + 'installmentPaymentData_paymentOptions'?: string; /** * The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. */ - "installments_value"?: string; + 'installments_value'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "installmentPaymentData_installmentType", "baseName": "installmentPaymentData.installmentType", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentPaymentData_option_itemNr_annualPercentageRate", "baseName": "installmentPaymentData.option[itemNr].annualPercentageRate", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentPaymentData_option_itemNr_firstInstallmentAmount", "baseName": "installmentPaymentData.option[itemNr].firstInstallmentAmount", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentPaymentData_option_itemNr_installmentFee", "baseName": "installmentPaymentData.option[itemNr].installmentFee", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentPaymentData_option_itemNr_interestRate", "baseName": "installmentPaymentData.option[itemNr].interestRate", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentPaymentData_option_itemNr_maximumNumberOfInstallments", "baseName": "installmentPaymentData.option[itemNr].maximumNumberOfInstallments", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentPaymentData_option_itemNr_minimumNumberOfInstallments", "baseName": "installmentPaymentData.option[itemNr].minimumNumberOfInstallments", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentPaymentData_option_itemNr_numberOfInstallments", "baseName": "installmentPaymentData.option[itemNr].numberOfInstallments", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentPaymentData_option_itemNr_subsequentInstallmentAmount", "baseName": "installmentPaymentData.option[itemNr].subsequentInstallmentAmount", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentPaymentData_option_itemNr_totalAmountDue", "baseName": "installmentPaymentData.option[itemNr].totalAmountDue", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentPaymentData_paymentOptions", "baseName": "installmentPaymentData.paymentOptions", - "type": "string", - "format": "" + "type": "string" }, { "name": "installments_value", "baseName": "installments.value", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ResponseAdditionalDataInstallments.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/responseAdditionalDataNetworkTokens.ts b/src/typings/checkout/responseAdditionalDataNetworkTokens.ts index 87e26f939..444a1ee33 100644 --- a/src/typings/checkout/responseAdditionalDataNetworkTokens.ts +++ b/src/typings/checkout/responseAdditionalDataNetworkTokens.ts @@ -12,45 +12,37 @@ export class ResponseAdditionalDataNetworkTokens { /** * Indicates whether a network token is available for the specified card. */ - "networkToken_available"?: string; + 'networkToken_available'?: string; /** * The Bank Identification Number of a tokenized card, which is the first six digits of a card number. */ - "networkToken_bin"?: string; + 'networkToken_bin'?: string; /** * The last four digits of a network token. */ - "networkToken_tokenSummary"?: string; + 'networkToken_tokenSummary'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "networkToken_available", "baseName": "networkToken.available", - "type": "string", - "format": "" + "type": "string" }, { "name": "networkToken_bin", "baseName": "networkToken.bin", - "type": "string", - "format": "" + "type": "string" }, { "name": "networkToken_tokenSummary", "baseName": "networkToken.tokenSummary", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ResponseAdditionalDataNetworkTokens.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/responseAdditionalDataOpi.ts b/src/typings/checkout/responseAdditionalDataOpi.ts index 1d8443fec..344b6b602 100644 --- a/src/typings/checkout/responseAdditionalDataOpi.ts +++ b/src/typings/checkout/responseAdditionalDataOpi.ts @@ -12,25 +12,19 @@ export class ResponseAdditionalDataOpi { /** * Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). */ - "opi_transToken"?: string; + 'opi_transToken'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "opi_transToken", "baseName": "opi.transToken", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ResponseAdditionalDataOpi.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/responseAdditionalDataSepa.ts b/src/typings/checkout/responseAdditionalDataSepa.ts index 1707e01bf..923a4a02a 100644 --- a/src/typings/checkout/responseAdditionalDataSepa.ts +++ b/src/typings/checkout/responseAdditionalDataSepa.ts @@ -12,45 +12,37 @@ export class ResponseAdditionalDataSepa { /** * The transaction signature date. Format: yyyy-MM-dd */ - "sepadirectdebit_dateOfSignature"?: string; + 'sepadirectdebit_dateOfSignature'?: string; /** * Its value corresponds to the pspReference value of the transaction. */ - "sepadirectdebit_mandateId"?: string; + 'sepadirectdebit_mandateId'?: 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; + 'sepadirectdebit_sequenceType'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "sepadirectdebit_dateOfSignature", "baseName": "sepadirectdebit.dateOfSignature", - "type": "string", - "format": "" + "type": "string" }, { "name": "sepadirectdebit_mandateId", "baseName": "sepadirectdebit.mandateId", - "type": "string", - "format": "" + "type": "string" }, { "name": "sepadirectdebit_sequenceType", "baseName": "sepadirectdebit.sequenceType", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ResponseAdditionalDataSepa.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/responsePaymentMethod.ts b/src/typings/checkout/responsePaymentMethod.ts index 211aca5cf..f7a51f215 100644 --- a/src/typings/checkout/responsePaymentMethod.ts +++ b/src/typings/checkout/responsePaymentMethod.ts @@ -12,35 +12,28 @@ export class ResponsePaymentMethod { /** * The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is **scheme**. */ - "brand"?: string; + 'brand'?: string; /** * The `paymentMethod.type` value used in the request. */ - "type"?: string; + 'type'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "brand", "baseName": "brand", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ResponsePaymentMethod.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/riskData.ts b/src/typings/checkout/riskData.ts index 2afc00150..891d0abd6 100644 --- a/src/typings/checkout/riskData.ts +++ b/src/typings/checkout/riskData.ts @@ -12,55 +12,46 @@ export class RiskData { /** * Contains client-side data, like the device fingerprint, cookies, and specific browser settings. */ - "clientData"?: string; + 'clientData'?: string; /** * Any custom fields used as part of the input to configured risk rules. */ - "customFields"?: { [key: string]: string; }; + 'customFields'?: { [key: string]: string; }; /** * An integer value that is added to the normal fraud score. The value can be either positive or negative. */ - "fraudOffset"?: number; + 'fraudOffset'?: number; /** * The risk profile to assign to this payment. When left empty, the merchant-level account\'s default risk profile will be applied. */ - "profileReference"?: string; + 'profileReference'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "clientData", "baseName": "clientData", - "type": "string", - "format": "" + "type": "string" }, { "name": "customFields", "baseName": "customFields", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "fraudOffset", "baseName": "fraudOffset", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "profileReference", "baseName": "profileReference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return RiskData.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/rivertyDetails.ts b/src/typings/checkout/rivertyDetails.ts index a81de12a1..76df7df0b 100644 --- a/src/typings/checkout/rivertyDetails.ts +++ b/src/typings/checkout/rivertyDetails.ts @@ -12,109 +12,95 @@ export class RivertyDetails { /** * The address where to send the invoice. */ - "billingAddress"?: string; + 'billingAddress'?: string; /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The address where the goods should be delivered. */ - "deliveryAddress"?: string; + 'deliveryAddress'?: string; /** * A string containing the shopper\'s device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ - "deviceFingerprint"?: string; + 'deviceFingerprint'?: string; /** * The iban number of the customer */ - "iban"?: string; + 'iban'?: string; /** * Shopper name, date of birth, phone number, and email address. */ - "personalDetails"?: string; + 'personalDetails'?: 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; + 'recurringDetailReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * **riverty** */ - "type": RivertyDetails.TypeEnum; + 'type': RivertyDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "billingAddress", "baseName": "billingAddress", - "type": "string", - "format": "" + "type": "string" }, { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "deliveryAddress", "baseName": "deliveryAddress", - "type": "string", - "format": "" + "type": "string" }, { "name": "deviceFingerprint", "baseName": "deviceFingerprint", - "type": "string", - "format": "" + "type": "string" }, { "name": "iban", "baseName": "iban", - "type": "string", - "format": "" + "type": "string" }, { "name": "personalDetails", "baseName": "personalDetails", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "RivertyDetails.TypeEnum", - "format": "" + "type": "RivertyDetails.TypeEnum" } ]; static getAttributeTypeMap() { return RivertyDetails.attributeTypeMap; } - - public constructor() { - } } export namespace RivertyDetails { diff --git a/src/typings/checkout/sDKEphemPubKey.ts b/src/typings/checkout/sDKEphemPubKey.ts index c4251d1be..e74529dcb 100644 --- a/src/typings/checkout/sDKEphemPubKey.ts +++ b/src/typings/checkout/sDKEphemPubKey.ts @@ -12,55 +12,46 @@ export class SDKEphemPubKey { /** * The `crv` value as received from the 3D Secure 2 SDK. */ - "crv"?: string; + 'crv'?: string; /** * The `kty` value as received from the 3D Secure 2 SDK. */ - "kty"?: string; + 'kty'?: string; /** * The `x` value as received from the 3D Secure 2 SDK. */ - "x"?: string; + 'x'?: string; /** * The `y` value as received from the 3D Secure 2 SDK. */ - "y"?: string; + 'y'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "crv", "baseName": "crv", - "type": "string", - "format": "" + "type": "string" }, { "name": "kty", "baseName": "kty", - "type": "string", - "format": "" + "type": "string" }, { "name": "x", "baseName": "x", - "type": "string", - "format": "" + "type": "string" }, { "name": "y", "baseName": "y", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return SDKEphemPubKey.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/samsungPayDetails.ts b/src/typings/checkout/samsungPayDetails.ts index 02036a207..e91316c72 100644 --- a/src/typings/checkout/samsungPayDetails.ts +++ b/src/typings/checkout/samsungPayDetails.ts @@ -12,79 +12,68 @@ export class SamsungPayDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ - "fundingSource"?: SamsungPayDetails.FundingSourceEnum; + 'fundingSource'?: SamsungPayDetails.FundingSourceEnum; /** * This is the `recurringDetailReference` returned in the response when you created the token. * * @deprecated since Adyen Checkout API v49 * Use `storedPaymentMethodId` instead. */ - "recurringDetailReference"?: string; + 'recurringDetailReference'?: string; /** * The payload you received from the Samsung Pay SDK response. */ - "samsungPayToken": string; + 'samsungPayToken': string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * **samsungpay** */ - "type"?: SamsungPayDetails.TypeEnum; + 'type'?: SamsungPayDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "fundingSource", "baseName": "fundingSource", - "type": "SamsungPayDetails.FundingSourceEnum", - "format": "" + "type": "SamsungPayDetails.FundingSourceEnum" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "samsungPayToken", "baseName": "samsungPayToken", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "SamsungPayDetails.TypeEnum", - "format": "" + "type": "SamsungPayDetails.TypeEnum" } ]; static getAttributeTypeMap() { return SamsungPayDetails.attributeTypeMap; } - - public constructor() { - } } export namespace SamsungPayDetails { diff --git a/src/typings/checkout/sepaDirectDebitDetails.ts b/src/typings/checkout/sepaDirectDebitDetails.ts index 615f8fcc6..7ce316675 100644 --- a/src/typings/checkout/sepaDirectDebitDetails.ts +++ b/src/typings/checkout/sepaDirectDebitDetails.ts @@ -12,89 +12,77 @@ export class SepaDirectDebitDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The International Bank Account Number (IBAN). */ - "iban": string; + 'iban': string; /** * The name of the bank account holder. */ - "ownerName": string; + 'ownerName': 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; + 'recurringDetailReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * The unique identifier of your user\'s verified transfer instrument, which you can use to top up their balance accounts. */ - "transferInstrumentId"?: string; + 'transferInstrumentId'?: string; /** * **sepadirectdebit** */ - "type"?: SepaDirectDebitDetails.TypeEnum; + 'type'?: SepaDirectDebitDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "iban", "baseName": "iban", - "type": "string", - "format": "" + "type": "string" }, { "name": "ownerName", "baseName": "ownerName", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "transferInstrumentId", "baseName": "transferInstrumentId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "SepaDirectDebitDetails.TypeEnum", - "format": "" + "type": "SepaDirectDebitDetails.TypeEnum" } ]; static getAttributeTypeMap() { return SepaDirectDebitDetails.attributeTypeMap; } - - public constructor() { - } } export namespace SepaDirectDebitDetails { diff --git a/src/typings/checkout/serviceError.ts b/src/typings/checkout/serviceError.ts index 1b817c018..072523440 100644 --- a/src/typings/checkout/serviceError.ts +++ b/src/typings/checkout/serviceError.ts @@ -12,75 +12,64 @@ export class ServiceError { /** * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. */ - "additionalData"?: { [key: string]: string; }; + 'additionalData'?: { [key: string]: string; }; /** * The error code mapped to the error message. */ - "errorCode"?: string; + 'errorCode'?: string; /** * The category of the error. */ - "errorType"?: string; + 'errorType'?: string; /** * A short explanation of the issue. */ - "message"?: string; + 'message'?: string; /** * The PSP reference of the payment. */ - "pspReference"?: string; + 'pspReference'?: string; /** * The HTTP response status. */ - "status"?: number; + 'status'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "errorCode", "baseName": "errorCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "errorType", "baseName": "errorType", - "type": "string", - "format": "" + "type": "string" }, { "name": "message", "baseName": "message", - "type": "string", - "format": "" + "type": "string" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return ServiceError.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/sessionResultResponse.ts b/src/typings/checkout/sessionResultResponse.ts index ff3ac6838..b7740b5e3 100644 --- a/src/typings/checkout/sessionResultResponse.ts +++ b/src/typings/checkout/sessionResultResponse.ts @@ -7,73 +7,62 @@ * Do not edit this class manually. */ -import { Payment } from "./payment"; - +import { Payment } from './payment'; export class SessionResultResponse { /** * Contains additional information about the payment. Some fields are included only if you enable them. To enable these fields in your Customer Area, go to **Developers** > **Additional data**. */ - "additionalData"?: { [key: string]: string; }; + 'additionalData'?: { [key: string]: string; }; /** * A unique identifier of the session. */ - "id"?: string; + 'id'?: string; /** * A list of all authorised payments done for this session. */ - "payments"?: Array; + 'payments'?: Array; /** * The unique reference that you provided in the original `/sessions` request. This identifies the payment and is used in all communication with you about the payment status. */ - "reference"?: string; + 'reference'?: string; /** * The status of the session. The status included in the response doesn\'t get updated. Don\'t make the request again to check for payment status updates. Possible values: * **completed**: the shopper completed the payment, and the payment was authorized. * **paymentPending**: the shopper is in the process of making the payment. This applies to payment methods with an asynchronous flow, like voucher payments where the shopper completes the payment in a physical shop. * **refused**: the session has been refused, because of too many refused payment attempts. The shopper can no longer complete the payment with this session. * **canceled**: the shopper canceled the payment. * **expired**: the session expired. The shopper can no longer complete the payment with this session. By default, the session expires one hour after it is created. */ - "status"?: SessionResultResponse.StatusEnum; - - static readonly discriminator: string | undefined = undefined; + 'status'?: SessionResultResponse.StatusEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "payments", "baseName": "payments", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "SessionResultResponse.StatusEnum", - "format": "" + "type": "SessionResultResponse.StatusEnum" } ]; static getAttributeTypeMap() { return SessionResultResponse.attributeTypeMap; } - - public constructor() { - } } export namespace SessionResultResponse { diff --git a/src/typings/checkout/shopperInteractionDevice.ts b/src/typings/checkout/shopperInteractionDevice.ts index e671f0c22..7b722699b 100644 --- a/src/typings/checkout/shopperInteractionDevice.ts +++ b/src/typings/checkout/shopperInteractionDevice.ts @@ -12,45 +12,37 @@ export class ShopperInteractionDevice { /** * Locale on the shopper interaction device. */ - "locale"?: string; + 'locale'?: string; /** * Operating system running on the shopper interaction device. */ - "os"?: string; + 'os'?: string; /** * Version of the operating system on the shopper interaction device. */ - "osVersion"?: string; + 'osVersion'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "locale", "baseName": "locale", - "type": "string", - "format": "" + "type": "string" }, { "name": "os", "baseName": "os", - "type": "string", - "format": "" + "type": "string" }, { "name": "osVersion", "baseName": "osVersion", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ShopperInteractionDevice.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/split.ts b/src/typings/checkout/split.ts index ef4a17f33..c4f6ff4de 100644 --- a/src/typings/checkout/split.ts +++ b/src/typings/checkout/split.ts @@ -7,70 +7,59 @@ * Do not edit this class manually. */ -import { SplitAmount } from "./splitAmount"; - +import { SplitAmount } from './splitAmount'; export class Split { /** * The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked. */ - "account"?: string; - "amount"?: SplitAmount | null; + 'account'?: string; + 'amount'?: SplitAmount | null; /** * Your description for the split item. */ - "description"?: string; + 'description'?: string; /** * Your unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. */ - "reference"?: string; + 'reference'?: string; /** * The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen\'s commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform\'s commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform\'s commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. */ - "type": Split.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': Split.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "account", "baseName": "account", - "type": "string", - "format": "" + "type": "string" }, { "name": "amount", "baseName": "amount", - "type": "SplitAmount | null", - "format": "" + "type": "SplitAmount | null" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "Split.TypeEnum", - "format": "" + "type": "Split.TypeEnum" } ]; static getAttributeTypeMap() { return Split.attributeTypeMap; } - - public constructor() { - } } export namespace Split { diff --git a/src/typings/checkout/splitAmount.ts b/src/typings/checkout/splitAmount.ts index 4526ba728..2b5643183 100644 --- a/src/typings/checkout/splitAmount.ts +++ b/src/typings/checkout/splitAmount.ts @@ -12,35 +12,28 @@ export class SplitAmount { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the original payment currency. */ - "currency"?: string; + 'currency'?: string; /** * The value of the split amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ - "value": number; + 'value': number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "number", - "format": "int64" + "type": "number" } ]; static getAttributeTypeMap() { return SplitAmount.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/standalonePaymentCancelRequest.ts b/src/typings/checkout/standalonePaymentCancelRequest.ts index cadb60996..e27dd56c8 100644 --- a/src/typings/checkout/standalonePaymentCancelRequest.ts +++ b/src/typings/checkout/standalonePaymentCancelRequest.ts @@ -7,59 +7,49 @@ * Do not edit this class manually. */ -import { ApplicationInfo } from "./applicationInfo"; - +import { ApplicationInfo } from './applicationInfo'; export class StandalonePaymentCancelRequest { - "applicationInfo"?: ApplicationInfo | null; + 'applicationInfo'?: ApplicationInfo | null; /** * The merchant account that is used to process the payment. */ - "merchantAccount": string; + 'merchantAccount': string; /** * The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment that you want to cancel. */ - "paymentReference": string; + 'paymentReference': string; /** * Your reference for the cancel request. Maximum length: 80 characters. */ - "reference"?: string; - - static readonly discriminator: string | undefined = undefined; + 'reference'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo | null", - "format": "" + "type": "ApplicationInfo | null" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentReference", "baseName": "paymentReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return StandalonePaymentCancelRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/standalonePaymentCancelResponse.ts b/src/typings/checkout/standalonePaymentCancelResponse.ts index fa01869a2..7a11e57ca 100644 --- a/src/typings/checkout/standalonePaymentCancelResponse.ts +++ b/src/typings/checkout/standalonePaymentCancelResponse.ts @@ -12,66 +12,56 @@ export class StandalonePaymentCancelResponse { /** * The merchant account that is used to process the payment. */ - "merchantAccount": string; + 'merchantAccount': string; /** * The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment to cancel. */ - "paymentReference": string; + 'paymentReference': string; /** * Adyen\'s 16-character reference associated with the cancel request. */ - "pspReference": string; + 'pspReference': string; /** * Your reference for the cancel request. */ - "reference"?: string; + 'reference'?: string; /** * The status of your request. This will always have the value **received**. */ - "status": StandalonePaymentCancelResponse.StatusEnum; + 'status': StandalonePaymentCancelResponse.StatusEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentReference", "baseName": "paymentReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "StandalonePaymentCancelResponse.StatusEnum", - "format": "" + "type": "StandalonePaymentCancelResponse.StatusEnum" } ]; static getAttributeTypeMap() { return StandalonePaymentCancelResponse.attributeTypeMap; } - - public constructor() { - } } export namespace StandalonePaymentCancelResponse { diff --git a/src/typings/checkout/storedPaymentMethod.ts b/src/typings/checkout/storedPaymentMethod.ts index 981103ca6..2381f7200 100644 --- a/src/typings/checkout/storedPaymentMethod.ts +++ b/src/typings/checkout/storedPaymentMethod.ts @@ -12,185 +12,163 @@ export class StoredPaymentMethod { /** * The bank account number (without separators). */ - "bankAccountNumber"?: string; + 'bankAccountNumber'?: string; /** * The location id of the bank. The field value is `nil` in most cases. */ - "bankLocationId"?: string; + 'bankLocationId'?: string; /** * The brand of the card. */ - "brand"?: string; + 'brand'?: string; /** * The two-digit month when the card expires */ - "expiryMonth"?: string; + 'expiryMonth'?: string; /** * The last two digits of the year the card expires. For example, **22** for the year 2022. */ - "expiryYear"?: string; + 'expiryYear'?: string; /** * The unique payment method code. */ - "holderName"?: string; + 'holderName'?: string; /** * The IBAN of the bank account. */ - "iban"?: string; + 'iban'?: string; /** * A unique identifier of this stored payment method. */ - "id"?: string; + 'id'?: string; /** * The shopper’s issuer account label */ - "label"?: string; + 'label'?: string; /** * The last four digits of the PAN. */ - "lastFour"?: string; + 'lastFour'?: string; /** * The display name of the stored payment method. */ - "name"?: string; + 'name'?: string; /** * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. */ - "networkTxReference"?: string; + 'networkTxReference'?: string; /** * The name of the bank account holder. */ - "ownerName"?: string; + 'ownerName'?: string; /** * The shopper’s email address. */ - "shopperEmail"?: string; + 'shopperEmail'?: string; /** * The supported recurring processing models for this stored payment method. */ - "supportedRecurringProcessingModels"?: Array; + 'supportedRecurringProcessingModels'?: Array; /** * The supported shopper interactions for this stored payment method. */ - "supportedShopperInteractions"?: Array; + 'supportedShopperInteractions'?: Array; /** * The type of payment method. */ - "type"?: string; + 'type'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "bankAccountNumber", "baseName": "bankAccountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankLocationId", "baseName": "bankLocationId", - "type": "string", - "format": "" + "type": "string" }, { "name": "brand", "baseName": "brand", - "type": "string", - "format": "" + "type": "string" }, { "name": "expiryMonth", "baseName": "expiryMonth", - "type": "string", - "format": "" + "type": "string" }, { "name": "expiryYear", "baseName": "expiryYear", - "type": "string", - "format": "" + "type": "string" }, { "name": "holderName", "baseName": "holderName", - "type": "string", - "format": "" + "type": "string" }, { "name": "iban", "baseName": "iban", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "label", "baseName": "label", - "type": "string", - "format": "" + "type": "string" }, { "name": "lastFour", "baseName": "lastFour", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "networkTxReference", "baseName": "networkTxReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "ownerName", "baseName": "ownerName", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperEmail", "baseName": "shopperEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "supportedRecurringProcessingModels", "baseName": "supportedRecurringProcessingModels", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "supportedShopperInteractions", "baseName": "supportedShopperInteractions", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return StoredPaymentMethod.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/storedPaymentMethodDetails.ts b/src/typings/checkout/storedPaymentMethodDetails.ts index ba8463e0d..d70366a27 100644 --- a/src/typings/checkout/storedPaymentMethodDetails.ts +++ b/src/typings/checkout/storedPaymentMethodDetails.ts @@ -12,59 +12,50 @@ export class StoredPaymentMethodDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: 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; + 'recurringDetailReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * The payment method type. */ - "type"?: StoredPaymentMethodDetails.TypeEnum; + 'type'?: StoredPaymentMethodDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "StoredPaymentMethodDetails.TypeEnum", - "format": "" + "type": "StoredPaymentMethodDetails.TypeEnum" } ]; static getAttributeTypeMap() { return StoredPaymentMethodDetails.attributeTypeMap; } - - public constructor() { - } } export namespace StoredPaymentMethodDetails { diff --git a/src/typings/checkout/storedPaymentMethodRequest.ts b/src/typings/checkout/storedPaymentMethodRequest.ts index 2ca3f9b02..ff7ae69f3 100644 --- a/src/typings/checkout/storedPaymentMethodRequest.ts +++ b/src/typings/checkout/storedPaymentMethodRequest.ts @@ -7,80 +7,68 @@ * Do not edit this class manually. */ -import { PaymentMethodToStore } from "./paymentMethodToStore"; - +import { PaymentMethodToStore } from './paymentMethodToStore'; export class StoredPaymentMethodRequest { /** * The merchant account identifier, with which you want to process the transaction. */ - "merchantAccount": string; - "paymentMethod": PaymentMethodToStore; + 'merchantAccount': string; + 'paymentMethod': PaymentMethodToStore; /** * Defines a recurring payment type. Required when creating a token to store 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. */ - "recurringProcessingModel": StoredPaymentMethodRequest.RecurringProcessingModelEnum; + 'recurringProcessingModel': StoredPaymentMethodRequest.RecurringProcessingModelEnum; /** * The shopper\'s email address. We recommend that you provide this data, as it is used in velocity fraud checks. */ - "shopperEmail"?: string; + 'shopperEmail'?: string; /** * The IP address of a shopper. */ - "shopperIP"?: string; + 'shopperIP'?: string; /** * A unique identifier for the shopper (for example, user ID or account ID). */ - "shopperReference": string; - - static readonly discriminator: string | undefined = undefined; + 'shopperReference': string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMethod", "baseName": "paymentMethod", - "type": "PaymentMethodToStore", - "format": "" + "type": "PaymentMethodToStore" }, { "name": "recurringProcessingModel", "baseName": "recurringProcessingModel", - "type": "StoredPaymentMethodRequest.RecurringProcessingModelEnum", - "format": "" + "type": "StoredPaymentMethodRequest.RecurringProcessingModelEnum" }, { "name": "shopperEmail", "baseName": "shopperEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperIP", "baseName": "shopperIP", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return StoredPaymentMethodRequest.attributeTypeMap; } - - public constructor() { - } } export namespace StoredPaymentMethodRequest { diff --git a/src/typings/checkout/storedPaymentMethodResource.ts b/src/typings/checkout/storedPaymentMethodResource.ts index d4bdff68b..09067489b 100644 --- a/src/typings/checkout/storedPaymentMethodResource.ts +++ b/src/typings/checkout/storedPaymentMethodResource.ts @@ -12,185 +12,163 @@ export class StoredPaymentMethodResource { /** * The brand of the card. */ - "brand"?: string; + 'brand'?: string; /** * The month the card expires. */ - "expiryMonth"?: string; + 'expiryMonth'?: string; /** * The last two digits of the year the card expires. For example, **22** for the year 2022. */ - "expiryYear"?: string; + 'expiryYear'?: string; /** * The response code returned by an external system (for example after a provisioning operation). */ - "externalResponseCode"?: string; + 'externalResponseCode'?: string; /** * The token reference of a linked token in an external system (for example a network token reference). */ - "externalTokenReference"?: string; + 'externalTokenReference'?: string; /** * The unique payment method code. */ - "holderName"?: string; + 'holderName'?: string; /** * The IBAN of the bank account. */ - "iban"?: string; + 'iban'?: string; /** * A unique identifier of this stored payment method. */ - "id"?: string; + 'id'?: string; /** * The name of the issuer of token or card. */ - "issuerName"?: string; + 'issuerName'?: string; /** * The last four digits of the PAN. */ - "lastFour"?: string; + 'lastFour'?: string; /** * The display name of the stored payment method. */ - "name"?: string; + 'name'?: string; /** * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. */ - "networkTxReference"?: string; + 'networkTxReference'?: string; /** * The name of the bank account holder. */ - "ownerName"?: string; + 'ownerName'?: string; /** * The shopper’s email address. */ - "shopperEmail"?: string; + 'shopperEmail'?: string; /** * Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ - "shopperReference"?: string; + 'shopperReference'?: string; /** * Defines a recurring payment type. 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. */ - "supportedRecurringProcessingModels"?: Array; + 'supportedRecurringProcessingModels'?: Array; /** * The type of payment method. */ - "type"?: string; + 'type'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "brand", "baseName": "brand", - "type": "string", - "format": "" + "type": "string" }, { "name": "expiryMonth", "baseName": "expiryMonth", - "type": "string", - "format": "" + "type": "string" }, { "name": "expiryYear", "baseName": "expiryYear", - "type": "string", - "format": "" + "type": "string" }, { "name": "externalResponseCode", "baseName": "externalResponseCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "externalTokenReference", "baseName": "externalTokenReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "holderName", "baseName": "holderName", - "type": "string", - "format": "" + "type": "string" }, { "name": "iban", "baseName": "iban", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuerName", "baseName": "issuerName", - "type": "string", - "format": "" + "type": "string" }, { "name": "lastFour", "baseName": "lastFour", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "networkTxReference", "baseName": "networkTxReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "ownerName", "baseName": "ownerName", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperEmail", "baseName": "shopperEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "supportedRecurringProcessingModels", "baseName": "supportedRecurringProcessingModels", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return StoredPaymentMethodResource.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/subInputDetail.ts b/src/typings/checkout/subInputDetail.ts index db509c58f..9702641af 100644 --- a/src/typings/checkout/subInputDetail.ts +++ b/src/typings/checkout/subInputDetail.ts @@ -7,82 +7,70 @@ * Do not edit this class manually. */ -import { Item } from "./item"; - +import { Item } from './item'; export class SubInputDetail { /** * Configuration parameters for the required input. */ - "configuration"?: { [key: string]: string; }; + 'configuration'?: { [key: string]: string; }; /** * In case of a select, the items to choose from. */ - "items"?: Array; + 'items'?: Array; /** * The value to provide in the result. */ - "key"?: string; + 'key'?: string; /** * True if this input is optional to provide. */ - "optional"?: boolean; + 'optional'?: boolean; /** * The type of the required input. */ - "type"?: string; + 'type'?: string; /** * The value can be pre-filled, if available. */ - "value"?: string; - - static readonly discriminator: string | undefined = undefined; + 'value'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "configuration", "baseName": "configuration", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "items", "baseName": "items", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "key", "baseName": "key", - "type": "string", - "format": "" + "type": "string" }, { "name": "optional", "baseName": "optional", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return SubInputDetail.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/subMerchant.ts b/src/typings/checkout/subMerchant.ts index f9eb8eb21..efa2603cc 100644 --- a/src/typings/checkout/subMerchant.ts +++ b/src/typings/checkout/subMerchant.ts @@ -12,65 +12,55 @@ export class SubMerchant { /** * The city of the sub-merchant\'s address. * Format: Alphanumeric * Maximum length: 13 characters */ - "city"?: string; + 'city'?: string; /** * The three-letter country code of the sub-merchant\'s address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters */ - "country"?: string; + 'country'?: string; /** * The sub-merchant\'s 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits */ - "mcc"?: string; + 'mcc'?: string; /** * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters */ - "name"?: string; + 'name'?: string; /** * The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ */ - "taxId"?: string; + 'taxId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "city", "baseName": "city", - "type": "string", - "format": "" + "type": "string" }, { "name": "country", "baseName": "country", - "type": "string", - "format": "" + "type": "string" }, { "name": "mcc", "baseName": "mcc", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "taxId", "baseName": "taxId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return SubMerchant.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/subMerchantInfo.ts b/src/typings/checkout/subMerchantInfo.ts index 9c5e8e91d..83e23df79 100644 --- a/src/typings/checkout/subMerchantInfo.ts +++ b/src/typings/checkout/subMerchantInfo.ts @@ -7,114 +7,98 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { BillingAddress } from "./billingAddress"; - +import { Amount } from './amount'; +import { BillingAddress } from './billingAddress'; export class SubMerchantInfo { - "address"?: BillingAddress | null; - "amount"?: Amount | null; + 'address'?: BillingAddress | null; + 'amount'?: Amount | null; /** * Required for transactions performed by registered payment facilitators. The email associated with the sub-merchant\'s account. */ - "email"?: string; + 'email'?: string; /** * Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters */ - "id"?: string; + 'id'?: string; /** * Required for transactions performed by registered payment facilitators. The sub-merchant\'s 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits */ - "mcc"?: string; + 'mcc'?: string; /** * Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters */ - "name"?: string; + 'name'?: string; /** * Required for transactions performed by registered payment facilitators. The phone number associated with the sub-merchant\'s account. */ - "phoneNumber"?: string; - "registeredSince"?: string; + 'phoneNumber'?: string; + 'registeredSince'?: string; /** * Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ */ - "taxId"?: string; + 'taxId'?: string; /** * Required for transactions performed by registered payment facilitators. The sub-merchant\'s URL on the platform, i.e. the sub-merchant\'s shop. */ - "url"?: string; - - static readonly discriminator: string | undefined = undefined; + 'url'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "address", "baseName": "address", - "type": "BillingAddress | null", - "format": "" + "type": "BillingAddress | null" }, { "name": "amount", "baseName": "amount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "email", "baseName": "email", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "mcc", "baseName": "mcc", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "phoneNumber", "baseName": "phoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "registeredSince", "baseName": "registeredSince", - "type": "string", - "format": "" + "type": "string" }, { "name": "taxId", "baseName": "taxId", - "type": "string", - "format": "" + "type": "string" }, { "name": "url", "baseName": "url", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return SubMerchantInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/surcharge.ts b/src/typings/checkout/surcharge.ts index 262eab41d..dd96b6435 100644 --- a/src/typings/checkout/surcharge.ts +++ b/src/typings/checkout/surcharge.ts @@ -12,25 +12,19 @@ export class Surcharge { /** * The [surcharge](https://docs.adyen.com/online-payments/surcharge/) amount to apply to the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). When you apply surcharge, include the surcharge in the `amount.value` field. Review our [Surcharge compliance guide](https://docs.adyen.com/development-resources/surcharge-compliance/) to learn about how to comply with regulatory requirements when applying surcharge. */ - "value": number; + 'value': number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "value", "baseName": "value", - "type": "number", - "format": "int64" + "type": "number" } ]; static getAttributeTypeMap() { return Surcharge.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/taxTotal.ts b/src/typings/checkout/taxTotal.ts index 76fda347a..4c21fb737 100644 --- a/src/typings/checkout/taxTotal.ts +++ b/src/typings/checkout/taxTotal.ts @@ -7,29 +7,22 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class TaxTotal { - "amount"?: Amount | null; - - static readonly discriminator: string | undefined = undefined; + 'amount'?: Amount | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" } ]; static getAttributeTypeMap() { return TaxTotal.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/threeDS2RequestData.ts b/src/typings/checkout/threeDS2RequestData.ts index 045311dcd..7aea75458 100644 --- a/src/typings/checkout/threeDS2RequestData.ts +++ b/src/typings/checkout/threeDS2RequestData.ts @@ -7,400 +7,355 @@ * Do not edit this class manually. */ -import { AcctInfo } from "./acctInfo"; -import { DeviceRenderOptions } from "./deviceRenderOptions"; -import { Phone } from "./phone"; -import { SDKEphemPubKey } from "./sDKEphemPubKey"; -import { ThreeDSRequestorAuthenticationInfo } from "./threeDSRequestorAuthenticationInfo"; -import { ThreeDSRequestorPriorAuthenticationInfo } from "./threeDSRequestorPriorAuthenticationInfo"; - +import { AcctInfo } from './acctInfo'; +import { DeviceRenderOptions } from './deviceRenderOptions'; +import { Phone } from './phone'; +import { SDKEphemPubKey } from './sDKEphemPubKey'; +import { ThreeDSRequestorAuthenticationInfo } from './threeDSRequestorAuthenticationInfo'; +import { ThreeDSRequestorPriorAuthenticationInfo } from './threeDSRequestorPriorAuthenticationInfo'; export class ThreeDS2RequestData { - "acctInfo"?: AcctInfo | null; + 'acctInfo'?: AcctInfo | null; /** * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit */ - "acctType"?: ThreeDS2RequestData.AcctTypeEnum; + 'acctType'?: ThreeDS2RequestData.AcctTypeEnum; /** * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. */ - "acquirerBIN"?: string; + 'acquirerBIN'?: string; /** * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant\'s acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. */ - "acquirerMerchantID"?: string; + 'acquirerMerchantID'?: string; /** * Indicates whether the Cardholder Shipping Address and Cardholder Billing Address are the same. Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address does not match Billing Address. */ - "addrMatch"?: ThreeDS2RequestData.AddrMatchEnum; + 'addrMatch'?: ThreeDS2RequestData.AddrMatchEnum; /** * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. * * @deprecated since Adyen Checkout API v50 * Use `threeDSAuthenticationOnly` instead. */ - "authenticationOnly"?: boolean; + 'authenticationOnly'?: boolean; /** * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` * * @deprecated since Adyen Checkout API v68 * Use `threeDSRequestorChallengeInd` instead. */ - "challengeIndicator"?: ThreeDS2RequestData.ChallengeIndicatorEnum; + 'challengeIndicator'?: ThreeDS2RequestData.ChallengeIndicatorEnum; /** * The environment of the shopper. Allowed values: * `app` * `browser` */ - "deviceChannel": string; - "deviceRenderOptions"?: DeviceRenderOptions | null; - "homePhone"?: Phone | null; + 'deviceChannel': string; + 'deviceRenderOptions'?: DeviceRenderOptions | null; + 'homePhone'?: Phone | null; /** * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. */ - "mcc"?: string; + 'mcc'?: string; /** * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. */ - "merchantName"?: string; + 'merchantName'?: string; /** * The `messageVersion` value indicating the 3D Secure 2 protocol version. */ - "messageVersion"?: string; - "mobilePhone"?: Phone | null; + 'messageVersion'?: string; + 'mobilePhone'?: Phone | null; /** * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. */ - "notificationURL"?: string; + 'notificationURL'?: string; /** * Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. */ - "payTokenInd"?: boolean; + 'payTokenInd'?: boolean; /** * Indicates the type of payment for which an authentication is requested (message extension) */ - "paymentAuthenticationUseCase"?: string; + 'paymentAuthenticationUseCase'?: string; /** * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. */ - "purchaseInstalData"?: string; + 'purchaseInstalData'?: string; /** * Date after which no further authorisations shall be performed. Format: YYYYMMDD */ - "recurringExpiry"?: string; + 'recurringExpiry'?: string; /** * Indicates the minimum number of days between authorisations. Maximum length: 4 characters. */ - "recurringFrequency"?: string; + 'recurringFrequency'?: string; /** * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. */ - "sdkAppID"?: string; + 'sdkAppID'?: string; /** * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. */ - "sdkEncData"?: string; - "sdkEphemPubKey"?: SDKEphemPubKey | null; + 'sdkEncData'?: string; + 'sdkEphemPubKey'?: SDKEphemPubKey | null; /** * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. */ - "sdkMaxTimeout"?: number; + 'sdkMaxTimeout'?: number; /** * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. */ - "sdkReferenceNumber"?: string; + 'sdkReferenceNumber'?: string; /** * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. */ - "sdkTransID"?: string; + 'sdkTransID'?: string; /** * Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. */ - "sdkVersion"?: string; + 'sdkVersion'?: string; /** * Completion indicator for the device fingerprinting. */ - "threeDSCompInd"?: string; + 'threeDSCompInd'?: string; /** * Indicates the type of Authentication request. */ - "threeDSRequestorAuthenticationInd"?: string; - "threeDSRequestorAuthenticationInfo"?: ThreeDSRequestorAuthenticationInfo | null; + 'threeDSRequestorAuthenticationInd'?: string; + 'threeDSRequestorAuthenticationInfo'?: ThreeDSRequestorAuthenticationInfo | null; /** * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only */ - "threeDSRequestorChallengeInd"?: ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum; + 'threeDSRequestorChallengeInd'?: ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum; /** * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. */ - "threeDSRequestorID"?: string; + 'threeDSRequestorID'?: string; /** * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. */ - "threeDSRequestorName"?: string; - "threeDSRequestorPriorAuthenticationInfo"?: ThreeDSRequestorPriorAuthenticationInfo | null; + 'threeDSRequestorName'?: string; + 'threeDSRequestorPriorAuthenticationInfo'?: ThreeDSRequestorPriorAuthenticationInfo | null; /** * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. */ - "threeDSRequestorURL"?: string; + 'threeDSRequestorURL'?: string; /** * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load */ - "transType"?: ThreeDS2RequestData.TransTypeEnum; + 'transType'?: ThreeDS2RequestData.TransTypeEnum; /** * Identify the type of the transaction being authenticated. */ - "transactionType"?: ThreeDS2RequestData.TransactionTypeEnum; + 'transactionType'?: ThreeDS2RequestData.TransactionTypeEnum; /** * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. */ - "whiteListStatus"?: string; - "workPhone"?: Phone | null; - - static readonly discriminator: string | undefined = undefined; + 'whiteListStatus'?: string; + 'workPhone'?: Phone | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "acctInfo", "baseName": "acctInfo", - "type": "AcctInfo | null", - "format": "" + "type": "AcctInfo | null" }, { "name": "acctType", "baseName": "acctType", - "type": "ThreeDS2RequestData.AcctTypeEnum", - "format": "" + "type": "ThreeDS2RequestData.AcctTypeEnum" }, { "name": "acquirerBIN", "baseName": "acquirerBIN", - "type": "string", - "format": "" + "type": "string" }, { "name": "acquirerMerchantID", "baseName": "acquirerMerchantID", - "type": "string", - "format": "" + "type": "string" }, { "name": "addrMatch", "baseName": "addrMatch", - "type": "ThreeDS2RequestData.AddrMatchEnum", - "format": "" + "type": "ThreeDS2RequestData.AddrMatchEnum" }, { "name": "authenticationOnly", "baseName": "authenticationOnly", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "challengeIndicator", "baseName": "challengeIndicator", - "type": "ThreeDS2RequestData.ChallengeIndicatorEnum", - "format": "" + "type": "ThreeDS2RequestData.ChallengeIndicatorEnum" }, { "name": "deviceChannel", "baseName": "deviceChannel", - "type": "string", - "format": "" + "type": "string" }, { "name": "deviceRenderOptions", "baseName": "deviceRenderOptions", - "type": "DeviceRenderOptions | null", - "format": "" + "type": "DeviceRenderOptions | null" }, { "name": "homePhone", "baseName": "homePhone", - "type": "Phone | null", - "format": "" + "type": "Phone | null" }, { "name": "mcc", "baseName": "mcc", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantName", "baseName": "merchantName", - "type": "string", - "format": "" + "type": "string" }, { "name": "messageVersion", "baseName": "messageVersion", - "type": "string", - "format": "" + "type": "string" }, { "name": "mobilePhone", "baseName": "mobilePhone", - "type": "Phone | null", - "format": "" + "type": "Phone | null" }, { "name": "notificationURL", "baseName": "notificationURL", - "type": "string", - "format": "" + "type": "string" }, { "name": "payTokenInd", "baseName": "payTokenInd", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "paymentAuthenticationUseCase", "baseName": "paymentAuthenticationUseCase", - "type": "string", - "format": "" + "type": "string" }, { "name": "purchaseInstalData", "baseName": "purchaseInstalData", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringExpiry", "baseName": "recurringExpiry", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringFrequency", "baseName": "recurringFrequency", - "type": "string", - "format": "" + "type": "string" }, { "name": "sdkAppID", "baseName": "sdkAppID", - "type": "string", - "format": "" + "type": "string" }, { "name": "sdkEncData", "baseName": "sdkEncData", - "type": "string", - "format": "" + "type": "string" }, { "name": "sdkEphemPubKey", "baseName": "sdkEphemPubKey", - "type": "SDKEphemPubKey | null", - "format": "" + "type": "SDKEphemPubKey | null" }, { "name": "sdkMaxTimeout", "baseName": "sdkMaxTimeout", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "sdkReferenceNumber", "baseName": "sdkReferenceNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "sdkTransID", "baseName": "sdkTransID", - "type": "string", - "format": "" + "type": "string" }, { "name": "sdkVersion", "baseName": "sdkVersion", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSCompInd", "baseName": "threeDSCompInd", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSRequestorAuthenticationInd", "baseName": "threeDSRequestorAuthenticationInd", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSRequestorAuthenticationInfo", "baseName": "threeDSRequestorAuthenticationInfo", - "type": "ThreeDSRequestorAuthenticationInfo | null", - "format": "" + "type": "ThreeDSRequestorAuthenticationInfo | null" }, { "name": "threeDSRequestorChallengeInd", "baseName": "threeDSRequestorChallengeInd", - "type": "ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum", - "format": "" + "type": "ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum" }, { "name": "threeDSRequestorID", "baseName": "threeDSRequestorID", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSRequestorName", "baseName": "threeDSRequestorName", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSRequestorPriorAuthenticationInfo", "baseName": "threeDSRequestorPriorAuthenticationInfo", - "type": "ThreeDSRequestorPriorAuthenticationInfo | null", - "format": "" + "type": "ThreeDSRequestorPriorAuthenticationInfo | null" }, { "name": "threeDSRequestorURL", "baseName": "threeDSRequestorURL", - "type": "string", - "format": "" + "type": "string" }, { "name": "transType", "baseName": "transType", - "type": "ThreeDS2RequestData.TransTypeEnum", - "format": "" + "type": "ThreeDS2RequestData.TransTypeEnum" }, { "name": "transactionType", "baseName": "transactionType", - "type": "ThreeDS2RequestData.TransactionTypeEnum", - "format": "" + "type": "ThreeDS2RequestData.TransactionTypeEnum" }, { "name": "whiteListStatus", "baseName": "whiteListStatus", - "type": "string", - "format": "" + "type": "string" }, { "name": "workPhone", "baseName": "workPhone", - "type": "Phone | null", - "format": "" + "type": "Phone | null" } ]; static getAttributeTypeMap() { return ThreeDS2RequestData.attributeTypeMap; } - - public constructor() { - } } export namespace ThreeDS2RequestData { diff --git a/src/typings/checkout/threeDS2RequestFields.ts b/src/typings/checkout/threeDS2RequestFields.ts index ac71db304..7c9603dcc 100644 --- a/src/typings/checkout/threeDS2RequestFields.ts +++ b/src/typings/checkout/threeDS2RequestFields.ts @@ -7,370 +7,328 @@ * Do not edit this class manually. */ -import { AcctInfo } from "./acctInfo"; -import { DeviceRenderOptions } from "./deviceRenderOptions"; -import { Phone } from "./phone"; -import { SDKEphemPubKey } from "./sDKEphemPubKey"; -import { ThreeDSRequestorAuthenticationInfo } from "./threeDSRequestorAuthenticationInfo"; -import { ThreeDSRequestorPriorAuthenticationInfo } from "./threeDSRequestorPriorAuthenticationInfo"; - +import { AcctInfo } from './acctInfo'; +import { DeviceRenderOptions } from './deviceRenderOptions'; +import { Phone } from './phone'; +import { SDKEphemPubKey } from './sDKEphemPubKey'; +import { ThreeDSRequestorAuthenticationInfo } from './threeDSRequestorAuthenticationInfo'; +import { ThreeDSRequestorPriorAuthenticationInfo } from './threeDSRequestorPriorAuthenticationInfo'; export class ThreeDS2RequestFields { - "acctInfo"?: AcctInfo | null; + 'acctInfo'?: AcctInfo | null; /** * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit */ - "acctType"?: ThreeDS2RequestFields.AcctTypeEnum; + 'acctType'?: ThreeDS2RequestFields.AcctTypeEnum; /** * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. */ - "acquirerBIN"?: string; + 'acquirerBIN'?: string; /** * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant\'s acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. */ - "acquirerMerchantID"?: string; + 'acquirerMerchantID'?: string; /** * Indicates whether the Cardholder Shipping Address and Cardholder Billing Address are the same. Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address does not match Billing Address. */ - "addrMatch"?: ThreeDS2RequestFields.AddrMatchEnum; + 'addrMatch'?: ThreeDS2RequestFields.AddrMatchEnum; /** * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. * * @deprecated since Adyen Checkout API v50 * Use `threeDSAuthenticationOnly` instead. */ - "authenticationOnly"?: boolean; + 'authenticationOnly'?: boolean; /** * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` * * @deprecated since Adyen Checkout API v68 * Use `threeDSRequestorChallengeInd` instead. */ - "challengeIndicator"?: ThreeDS2RequestFields.ChallengeIndicatorEnum; - "deviceRenderOptions"?: DeviceRenderOptions | null; - "homePhone"?: Phone | null; + 'challengeIndicator'?: ThreeDS2RequestFields.ChallengeIndicatorEnum; + 'deviceRenderOptions'?: DeviceRenderOptions | null; + 'homePhone'?: Phone | null; /** * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. */ - "mcc"?: string; + 'mcc'?: string; /** * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. */ - "merchantName"?: string; + 'merchantName'?: string; /** * The `messageVersion` value indicating the 3D Secure 2 protocol version. */ - "messageVersion"?: string; - "mobilePhone"?: Phone | null; + 'messageVersion'?: string; + 'mobilePhone'?: Phone | null; /** * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. */ - "notificationURL"?: string; + 'notificationURL'?: string; /** * Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. */ - "payTokenInd"?: boolean; + 'payTokenInd'?: boolean; /** * Indicates the type of payment for which an authentication is requested (message extension) */ - "paymentAuthenticationUseCase"?: string; + 'paymentAuthenticationUseCase'?: string; /** * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. */ - "purchaseInstalData"?: string; + 'purchaseInstalData'?: string; /** * Date after which no further authorisations shall be performed. Format: YYYYMMDD */ - "recurringExpiry"?: string; + 'recurringExpiry'?: string; /** * Indicates the minimum number of days between authorisations. Maximum length: 4 characters. */ - "recurringFrequency"?: string; + 'recurringFrequency'?: string; /** * The `sdkAppID` value as received from the 3D Secure 2 SDK. */ - "sdkAppID"?: string; - "sdkEphemPubKey"?: SDKEphemPubKey | null; + 'sdkAppID'?: string; + 'sdkEphemPubKey'?: SDKEphemPubKey | null; /** * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. */ - "sdkMaxTimeout"?: number; + 'sdkMaxTimeout'?: number; /** * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. */ - "sdkReferenceNumber"?: string; + 'sdkReferenceNumber'?: string; /** * The `sdkTransID` value as received from the 3D Secure 2 SDK. */ - "sdkTransID"?: string; + 'sdkTransID'?: string; /** * Completion indicator for the device fingerprinting. */ - "threeDSCompInd"?: string; + 'threeDSCompInd'?: string; /** * Indicates the type of Authentication request. */ - "threeDSRequestorAuthenticationInd"?: string; - "threeDSRequestorAuthenticationInfo"?: ThreeDSRequestorAuthenticationInfo | null; + 'threeDSRequestorAuthenticationInd'?: string; + 'threeDSRequestorAuthenticationInfo'?: ThreeDSRequestorAuthenticationInfo | null; /** * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only */ - "threeDSRequestorChallengeInd"?: ThreeDS2RequestFields.ThreeDSRequestorChallengeIndEnum; + 'threeDSRequestorChallengeInd'?: ThreeDS2RequestFields.ThreeDSRequestorChallengeIndEnum; /** * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. */ - "threeDSRequestorID"?: string; + 'threeDSRequestorID'?: string; /** * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. */ - "threeDSRequestorName"?: string; - "threeDSRequestorPriorAuthenticationInfo"?: ThreeDSRequestorPriorAuthenticationInfo | null; + 'threeDSRequestorName'?: string; + 'threeDSRequestorPriorAuthenticationInfo'?: ThreeDSRequestorPriorAuthenticationInfo | null; /** * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. */ - "threeDSRequestorURL"?: string; + 'threeDSRequestorURL'?: string; /** * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load */ - "transType"?: ThreeDS2RequestFields.TransTypeEnum; + 'transType'?: ThreeDS2RequestFields.TransTypeEnum; /** * Identify the type of the transaction being authenticated. */ - "transactionType"?: ThreeDS2RequestFields.TransactionTypeEnum; + 'transactionType'?: ThreeDS2RequestFields.TransactionTypeEnum; /** * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. */ - "whiteListStatus"?: string; - "workPhone"?: Phone | null; - - static readonly discriminator: string | undefined = undefined; + 'whiteListStatus'?: string; + 'workPhone'?: Phone | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "acctInfo", "baseName": "acctInfo", - "type": "AcctInfo | null", - "format": "" + "type": "AcctInfo | null" }, { "name": "acctType", "baseName": "acctType", - "type": "ThreeDS2RequestFields.AcctTypeEnum", - "format": "" + "type": "ThreeDS2RequestFields.AcctTypeEnum" }, { "name": "acquirerBIN", "baseName": "acquirerBIN", - "type": "string", - "format": "" + "type": "string" }, { "name": "acquirerMerchantID", "baseName": "acquirerMerchantID", - "type": "string", - "format": "" + "type": "string" }, { "name": "addrMatch", "baseName": "addrMatch", - "type": "ThreeDS2RequestFields.AddrMatchEnum", - "format": "" + "type": "ThreeDS2RequestFields.AddrMatchEnum" }, { "name": "authenticationOnly", "baseName": "authenticationOnly", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "challengeIndicator", "baseName": "challengeIndicator", - "type": "ThreeDS2RequestFields.ChallengeIndicatorEnum", - "format": "" + "type": "ThreeDS2RequestFields.ChallengeIndicatorEnum" }, { "name": "deviceRenderOptions", "baseName": "deviceRenderOptions", - "type": "DeviceRenderOptions | null", - "format": "" + "type": "DeviceRenderOptions | null" }, { "name": "homePhone", "baseName": "homePhone", - "type": "Phone | null", - "format": "" + "type": "Phone | null" }, { "name": "mcc", "baseName": "mcc", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantName", "baseName": "merchantName", - "type": "string", - "format": "" + "type": "string" }, { "name": "messageVersion", "baseName": "messageVersion", - "type": "string", - "format": "" + "type": "string" }, { "name": "mobilePhone", "baseName": "mobilePhone", - "type": "Phone | null", - "format": "" + "type": "Phone | null" }, { "name": "notificationURL", "baseName": "notificationURL", - "type": "string", - "format": "" + "type": "string" }, { "name": "payTokenInd", "baseName": "payTokenInd", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "paymentAuthenticationUseCase", "baseName": "paymentAuthenticationUseCase", - "type": "string", - "format": "" + "type": "string" }, { "name": "purchaseInstalData", "baseName": "purchaseInstalData", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringExpiry", "baseName": "recurringExpiry", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringFrequency", "baseName": "recurringFrequency", - "type": "string", - "format": "" + "type": "string" }, { "name": "sdkAppID", "baseName": "sdkAppID", - "type": "string", - "format": "" + "type": "string" }, { "name": "sdkEphemPubKey", "baseName": "sdkEphemPubKey", - "type": "SDKEphemPubKey | null", - "format": "" + "type": "SDKEphemPubKey | null" }, { "name": "sdkMaxTimeout", "baseName": "sdkMaxTimeout", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "sdkReferenceNumber", "baseName": "sdkReferenceNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "sdkTransID", "baseName": "sdkTransID", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSCompInd", "baseName": "threeDSCompInd", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSRequestorAuthenticationInd", "baseName": "threeDSRequestorAuthenticationInd", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSRequestorAuthenticationInfo", "baseName": "threeDSRequestorAuthenticationInfo", - "type": "ThreeDSRequestorAuthenticationInfo | null", - "format": "" + "type": "ThreeDSRequestorAuthenticationInfo | null" }, { "name": "threeDSRequestorChallengeInd", "baseName": "threeDSRequestorChallengeInd", - "type": "ThreeDS2RequestFields.ThreeDSRequestorChallengeIndEnum", - "format": "" + "type": "ThreeDS2RequestFields.ThreeDSRequestorChallengeIndEnum" }, { "name": "threeDSRequestorID", "baseName": "threeDSRequestorID", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSRequestorName", "baseName": "threeDSRequestorName", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSRequestorPriorAuthenticationInfo", "baseName": "threeDSRequestorPriorAuthenticationInfo", - "type": "ThreeDSRequestorPriorAuthenticationInfo | null", - "format": "" + "type": "ThreeDSRequestorPriorAuthenticationInfo | null" }, { "name": "threeDSRequestorURL", "baseName": "threeDSRequestorURL", - "type": "string", - "format": "" + "type": "string" }, { "name": "transType", "baseName": "transType", - "type": "ThreeDS2RequestFields.TransTypeEnum", - "format": "" + "type": "ThreeDS2RequestFields.TransTypeEnum" }, { "name": "transactionType", "baseName": "transactionType", - "type": "ThreeDS2RequestFields.TransactionTypeEnum", - "format": "" + "type": "ThreeDS2RequestFields.TransactionTypeEnum" }, { "name": "whiteListStatus", "baseName": "whiteListStatus", - "type": "string", - "format": "" + "type": "string" }, { "name": "workPhone", "baseName": "workPhone", - "type": "Phone | null", - "format": "" + "type": "Phone | null" } ]; static getAttributeTypeMap() { return ThreeDS2RequestFields.attributeTypeMap; } - - public constructor() { - } } export namespace ThreeDS2RequestFields { diff --git a/src/typings/checkout/threeDS2ResponseData.ts b/src/typings/checkout/threeDS2ResponseData.ts index c3fdff76d..d4f1da24b 100644 --- a/src/typings/checkout/threeDS2ResponseData.ts +++ b/src/typings/checkout/threeDS2ResponseData.ts @@ -9,151 +9,127 @@ export class ThreeDS2ResponseData { - "acsChallengeMandated"?: string; - "acsOperatorID"?: string; - "acsReferenceNumber"?: string; - "acsSignedContent"?: string; - "acsTransID"?: string; - "acsURL"?: string; - "authenticationType"?: string; - "cardHolderInfo"?: string; - "cavvAlgorithm"?: string; - "challengeIndicator"?: string; - "dsReferenceNumber"?: string; - "dsTransID"?: string; - "exemptionIndicator"?: string; - "messageVersion"?: string; - "riskScore"?: string; - "sdkEphemPubKey"?: string; - "threeDSServerTransID"?: string; - "transStatus"?: string; - "transStatusReason"?: string; + 'acsChallengeMandated'?: string; + 'acsOperatorID'?: string; + 'acsReferenceNumber'?: string; + 'acsSignedContent'?: string; + 'acsTransID'?: string; + 'acsURL'?: string; + 'authenticationType'?: string; + 'cardHolderInfo'?: string; + 'cavvAlgorithm'?: string; + 'challengeIndicator'?: string; + 'dsReferenceNumber'?: string; + 'dsTransID'?: string; + 'exemptionIndicator'?: string; + 'messageVersion'?: string; + 'riskScore'?: string; + 'sdkEphemPubKey'?: string; + 'threeDSServerTransID'?: string; + 'transStatus'?: string; + 'transStatusReason'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "acsChallengeMandated", "baseName": "acsChallengeMandated", - "type": "string", - "format": "" + "type": "string" }, { "name": "acsOperatorID", "baseName": "acsOperatorID", - "type": "string", - "format": "" + "type": "string" }, { "name": "acsReferenceNumber", "baseName": "acsReferenceNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "acsSignedContent", "baseName": "acsSignedContent", - "type": "string", - "format": "" + "type": "string" }, { "name": "acsTransID", "baseName": "acsTransID", - "type": "string", - "format": "" + "type": "string" }, { "name": "acsURL", "baseName": "acsURL", - "type": "string", - "format": "" + "type": "string" }, { "name": "authenticationType", "baseName": "authenticationType", - "type": "string", - "format": "" + "type": "string" }, { "name": "cardHolderInfo", "baseName": "cardHolderInfo", - "type": "string", - "format": "" + "type": "string" }, { "name": "cavvAlgorithm", "baseName": "cavvAlgorithm", - "type": "string", - "format": "" + "type": "string" }, { "name": "challengeIndicator", "baseName": "challengeIndicator", - "type": "string", - "format": "" + "type": "string" }, { "name": "dsReferenceNumber", "baseName": "dsReferenceNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "dsTransID", "baseName": "dsTransID", - "type": "string", - "format": "" + "type": "string" }, { "name": "exemptionIndicator", "baseName": "exemptionIndicator", - "type": "string", - "format": "" + "type": "string" }, { "name": "messageVersion", "baseName": "messageVersion", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskScore", "baseName": "riskScore", - "type": "string", - "format": "" + "type": "string" }, { "name": "sdkEphemPubKey", "baseName": "sdkEphemPubKey", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSServerTransID", "baseName": "threeDSServerTransID", - "type": "string", - "format": "" + "type": "string" }, { "name": "transStatus", "baseName": "transStatus", - "type": "string", - "format": "" + "type": "string" }, { "name": "transStatusReason", "baseName": "transStatusReason", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ThreeDS2ResponseData.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/threeDS2Result.ts b/src/typings/checkout/threeDS2Result.ts index 36e8a93b2..340059b56 100644 --- a/src/typings/checkout/threeDS2Result.ts +++ b/src/typings/checkout/threeDS2Result.ts @@ -12,156 +12,137 @@ export class ThreeDS2Result { /** * The `authenticationValue` value as defined in the 3D Secure 2 specification. */ - "authenticationValue"?: string; + 'authenticationValue'?: string; /** * The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires integrations. */ - "cavvAlgorithm"?: string; + 'cavvAlgorithm'?: string; /** * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). */ - "challengeCancel"?: ThreeDS2Result.ChallengeCancelEnum; + 'challengeCancel'?: ThreeDS2Result.ChallengeCancelEnum; /** * The `dsTransID` value as defined in the 3D Secure 2 specification. */ - "dsTransID"?: string; + 'dsTransID'?: string; /** * The `eci` value as defined in the 3D Secure 2 specification. */ - "eci"?: string; + 'eci'?: string; /** * Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` */ - "exemptionIndicator"?: ThreeDS2Result.ExemptionIndicatorEnum; + 'exemptionIndicator'?: ThreeDS2Result.ExemptionIndicatorEnum; /** * The `messageVersion` value as defined in the 3D Secure 2 specification. */ - "messageVersion"?: string; + 'messageVersion'?: string; /** * Risk score calculated by Cartes Bancaires Directory Server (DS). */ - "riskScore"?: string; + 'riskScore'?: string; /** * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only */ - "threeDSRequestorChallengeInd"?: ThreeDS2Result.ThreeDSRequestorChallengeIndEnum; + 'threeDSRequestorChallengeInd'?: ThreeDS2Result.ThreeDSRequestorChallengeIndEnum; /** * The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. */ - "threeDSServerTransID"?: string; + 'threeDSServerTransID'?: string; /** * The `timestamp` value of the 3D Secure 2 authentication. */ - "timestamp"?: string; + 'timestamp'?: string; /** * The `transStatus` value as defined in the 3D Secure 2 specification. */ - "transStatus"?: string; + 'transStatus'?: string; /** * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). */ - "transStatusReason"?: string; + 'transStatusReason'?: string; /** * The `whiteListStatus` value as defined in the 3D Secure 2 specification. */ - "whiteListStatus"?: string; + 'whiteListStatus'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "authenticationValue", "baseName": "authenticationValue", - "type": "string", - "format": "" + "type": "string" }, { "name": "cavvAlgorithm", "baseName": "cavvAlgorithm", - "type": "string", - "format": "" + "type": "string" }, { "name": "challengeCancel", "baseName": "challengeCancel", - "type": "ThreeDS2Result.ChallengeCancelEnum", - "format": "" + "type": "ThreeDS2Result.ChallengeCancelEnum" }, { "name": "dsTransID", "baseName": "dsTransID", - "type": "string", - "format": "" + "type": "string" }, { "name": "eci", "baseName": "eci", - "type": "string", - "format": "" + "type": "string" }, { "name": "exemptionIndicator", "baseName": "exemptionIndicator", - "type": "ThreeDS2Result.ExemptionIndicatorEnum", - "format": "" + "type": "ThreeDS2Result.ExemptionIndicatorEnum" }, { "name": "messageVersion", "baseName": "messageVersion", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskScore", "baseName": "riskScore", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSRequestorChallengeInd", "baseName": "threeDSRequestorChallengeInd", - "type": "ThreeDS2Result.ThreeDSRequestorChallengeIndEnum", - "format": "" + "type": "ThreeDS2Result.ThreeDSRequestorChallengeIndEnum" }, { "name": "threeDSServerTransID", "baseName": "threeDSServerTransID", - "type": "string", - "format": "" + "type": "string" }, { "name": "timestamp", "baseName": "timestamp", - "type": "string", - "format": "" + "type": "string" }, { "name": "transStatus", "baseName": "transStatus", - "type": "string", - "format": "" + "type": "string" }, { "name": "transStatusReason", "baseName": "transStatusReason", - "type": "string", - "format": "" + "type": "string" }, { "name": "whiteListStatus", "baseName": "whiteListStatus", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ThreeDS2Result.attributeTypeMap; } - - public constructor() { - } } export namespace ThreeDS2Result { diff --git a/src/typings/checkout/threeDSRequestData.ts b/src/typings/checkout/threeDSRequestData.ts index 5970c9bfd..68ed8c193 100644 --- a/src/typings/checkout/threeDSRequestData.ts +++ b/src/typings/checkout/threeDSRequestData.ts @@ -12,56 +12,47 @@ export class ThreeDSRequestData { /** * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen */ - "challengeWindowSize"?: ThreeDSRequestData.ChallengeWindowSizeEnum; + 'challengeWindowSize'?: ThreeDSRequestData.ChallengeWindowSizeEnum; /** * Flag for data only flow. */ - "dataOnly"?: ThreeDSRequestData.DataOnlyEnum; + 'dataOnly'?: ThreeDSRequestData.DataOnlyEnum; /** * Indicates if [native 3D Secure authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be used when available. Possible values: * **preferred**: Use native 3D Secure authentication when available. * **disabled**: Only use the redirect 3D Secure authentication flow. */ - "nativeThreeDS"?: ThreeDSRequestData.NativeThreeDSEnum; + 'nativeThreeDS'?: ThreeDSRequestData.NativeThreeDSEnum; /** * The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0** */ - "threeDSVersion"?: ThreeDSRequestData.ThreeDSVersionEnum; + 'threeDSVersion'?: ThreeDSRequestData.ThreeDSVersionEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "challengeWindowSize", "baseName": "challengeWindowSize", - "type": "ThreeDSRequestData.ChallengeWindowSizeEnum", - "format": "" + "type": "ThreeDSRequestData.ChallengeWindowSizeEnum" }, { "name": "dataOnly", "baseName": "dataOnly", - "type": "ThreeDSRequestData.DataOnlyEnum", - "format": "" + "type": "ThreeDSRequestData.DataOnlyEnum" }, { "name": "nativeThreeDS", "baseName": "nativeThreeDS", - "type": "ThreeDSRequestData.NativeThreeDSEnum", - "format": "" + "type": "ThreeDSRequestData.NativeThreeDSEnum" }, { "name": "threeDSVersion", "baseName": "threeDSVersion", - "type": "ThreeDSRequestData.ThreeDSVersionEnum", - "format": "" + "type": "ThreeDSRequestData.ThreeDSVersionEnum" } ]; static getAttributeTypeMap() { return ThreeDSRequestData.attributeTypeMap; } - - public constructor() { - } } export namespace ThreeDSRequestData { @@ -81,7 +72,7 @@ export namespace ThreeDSRequestData { Disabled = 'disabled' } export enum ThreeDSVersionEnum { - _210 = '2.1.0', - _220 = '2.2.0' + _10 = '2.1.0', + _20 = '2.2.0' } } diff --git a/src/typings/checkout/threeDSRequestorAuthenticationInfo.ts b/src/typings/checkout/threeDSRequestorAuthenticationInfo.ts index a69b8f7e5..04153faf2 100644 --- a/src/typings/checkout/threeDSRequestorAuthenticationInfo.ts +++ b/src/typings/checkout/threeDSRequestorAuthenticationInfo.ts @@ -12,46 +12,38 @@ export class ThreeDSRequestorAuthenticationInfo { /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. */ - "threeDSReqAuthData"?: string; + 'threeDSReqAuthData'?: string; /** * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. */ - "threeDSReqAuthMethod"?: ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum; + 'threeDSReqAuthMethod'?: ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum; /** * Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM */ - "threeDSReqAuthTimestamp"?: string; + 'threeDSReqAuthTimestamp'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "threeDSReqAuthData", "baseName": "threeDSReqAuthData", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSReqAuthMethod", "baseName": "threeDSReqAuthMethod", - "type": "ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum", - "format": "" + "type": "ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum" }, { "name": "threeDSReqAuthTimestamp", "baseName": "threeDSReqAuthTimestamp", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ThreeDSRequestorAuthenticationInfo.attributeTypeMap; } - - public constructor() { - } } export namespace ThreeDSRequestorAuthenticationInfo { diff --git a/src/typings/checkout/threeDSRequestorPriorAuthenticationInfo.ts b/src/typings/checkout/threeDSRequestorPriorAuthenticationInfo.ts index 4ce6879e4..b91b3834b 100644 --- a/src/typings/checkout/threeDSRequestorPriorAuthenticationInfo.ts +++ b/src/typings/checkout/threeDSRequestorPriorAuthenticationInfo.ts @@ -12,56 +12,47 @@ export class ThreeDSRequestorPriorAuthenticationInfo { /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. */ - "threeDSReqPriorAuthData"?: string; + 'threeDSReqPriorAuthData'?: string; /** * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. */ - "threeDSReqPriorAuthMethod"?: ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum; + 'threeDSReqPriorAuthMethod'?: ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum; /** * Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM */ - "threeDSReqPriorAuthTimestamp"?: string; + 'threeDSReqPriorAuthTimestamp'?: string; /** * This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters. */ - "threeDSReqPriorRef"?: string; + 'threeDSReqPriorRef'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "threeDSReqPriorAuthData", "baseName": "threeDSReqPriorAuthData", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSReqPriorAuthMethod", "baseName": "threeDSReqPriorAuthMethod", - "type": "ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum", - "format": "" + "type": "ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum" }, { "name": "threeDSReqPriorAuthTimestamp", "baseName": "threeDSReqPriorAuthTimestamp", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSReqPriorRef", "baseName": "threeDSReqPriorRef", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ThreeDSRequestorPriorAuthenticationInfo.attributeTypeMap; } - - public constructor() { - } } export namespace ThreeDSRequestorPriorAuthenticationInfo { diff --git a/src/typings/checkout/threeDSecureData.ts b/src/typings/checkout/threeDSecureData.ts index a5c02a940..481c76549 100644 --- a/src/typings/checkout/threeDSecureData.ts +++ b/src/typings/checkout/threeDSecureData.ts @@ -12,136 +12,119 @@ export class ThreeDSecureData { /** * In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. */ - "authenticationResponse"?: ThreeDSecureData.AuthenticationResponseEnum; + 'authenticationResponse'?: ThreeDSecureData.AuthenticationResponseEnum; /** * The cardholder authentication value (base64 encoded, 20 bytes in a decoded form). */ - "cavv"?: string; + 'cavv'?: string; /** * The CAVV algorithm used. Include this only for 3D Secure 1. */ - "cavvAlgorithm"?: string; + 'cavvAlgorithm'?: string; /** * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). */ - "challengeCancel"?: ThreeDSecureData.ChallengeCancelEnum; + 'challengeCancel'?: ThreeDSecureData.ChallengeCancelEnum; /** * In 3D Secure 2, this is the `transStatus` from the `ARes`. */ - "directoryResponse"?: ThreeDSecureData.DirectoryResponseEnum; + 'directoryResponse'?: ThreeDSecureData.DirectoryResponseEnum; /** * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. */ - "dsTransID"?: string; + 'dsTransID'?: string; /** * The electronic commerce indicator. */ - "eci"?: string; + 'eci'?: string; /** * Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations. */ - "riskScore"?: string; + 'riskScore'?: string; /** * The version of the 3D Secure protocol. */ - "threeDSVersion"?: string; + 'threeDSVersion'?: string; /** * Network token authentication verification value (TAVV). The network token cryptogram. */ - "tokenAuthenticationVerificationValue"?: string; + 'tokenAuthenticationVerificationValue'?: string; /** * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). */ - "transStatusReason"?: string; + 'transStatusReason'?: string; /** * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). */ - "xid"?: string; + 'xid'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "authenticationResponse", "baseName": "authenticationResponse", - "type": "ThreeDSecureData.AuthenticationResponseEnum", - "format": "" + "type": "ThreeDSecureData.AuthenticationResponseEnum" }, { "name": "cavv", "baseName": "cavv", - "type": "string", - "format": "byte" + "type": "string" }, { "name": "cavvAlgorithm", "baseName": "cavvAlgorithm", - "type": "string", - "format": "" + "type": "string" }, { "name": "challengeCancel", "baseName": "challengeCancel", - "type": "ThreeDSecureData.ChallengeCancelEnum", - "format": "" + "type": "ThreeDSecureData.ChallengeCancelEnum" }, { "name": "directoryResponse", "baseName": "directoryResponse", - "type": "ThreeDSecureData.DirectoryResponseEnum", - "format": "" + "type": "ThreeDSecureData.DirectoryResponseEnum" }, { "name": "dsTransID", "baseName": "dsTransID", - "type": "string", - "format": "" + "type": "string" }, { "name": "eci", "baseName": "eci", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskScore", "baseName": "riskScore", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSVersion", "baseName": "threeDSVersion", - "type": "string", - "format": "" + "type": "string" }, { "name": "tokenAuthenticationVerificationValue", "baseName": "tokenAuthenticationVerificationValue", - "type": "string", - "format": "byte" + "type": "string" }, { "name": "transStatusReason", "baseName": "transStatusReason", - "type": "string", - "format": "" + "type": "string" }, { "name": "xid", "baseName": "xid", - "type": "string", - "format": "byte" + "type": "string" } ]; static getAttributeTypeMap() { return ThreeDSecureData.attributeTypeMap; } - - public constructor() { - } } export namespace ThreeDSecureData { diff --git a/src/typings/checkout/ticket.ts b/src/typings/checkout/ticket.ts index 5d1c4272a..9fffb19a6 100644 --- a/src/typings/checkout/ticket.ts +++ b/src/typings/checkout/ticket.ts @@ -12,45 +12,37 @@ export class Ticket { /** * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters */ - "issueAddress"?: string; + 'issueAddress'?: string; /** * The date that the ticket was issued to the passenger. * minLength: 10 characters * maxLength: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd */ - "issueDate"?: string; + 'issueDate'?: string; /** * The ticket\'s unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ - "number"?: string; + 'number'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "issueAddress", "baseName": "issueAddress", - "type": "string", - "format": "" + "type": "string" }, { "name": "issueDate", "baseName": "issueDate", - "type": "string", - "format": "date" + "type": "string" }, { "name": "number", "baseName": "number", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Ticket.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/travelAgency.ts b/src/typings/checkout/travelAgency.ts index 66ebb868f..bd2d6a043 100644 --- a/src/typings/checkout/travelAgency.ts +++ b/src/typings/checkout/travelAgency.ts @@ -12,35 +12,28 @@ export class TravelAgency { /** * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ - "code"?: string; + 'code'?: string; /** * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ - "name"?: string; + 'name'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "code", "baseName": "code", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TravelAgency.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/twintDetails.ts b/src/typings/checkout/twintDetails.ts index 25180ac79..090a1ebdc 100644 --- a/src/typings/checkout/twintDetails.ts +++ b/src/typings/checkout/twintDetails.ts @@ -12,69 +12,59 @@ export class TwintDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: 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; + 'recurringDetailReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * The type of flow to initiate. */ - "subtype"?: string; + 'subtype'?: string; /** * The payment method type. */ - "type"?: TwintDetails.TypeEnum; + 'type'?: TwintDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "subtype", "baseName": "subtype", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "TwintDetails.TypeEnum", - "format": "" + "type": "TwintDetails.TypeEnum" } ]; static getAttributeTypeMap() { return TwintDetails.attributeTypeMap; } - - public constructor() { - } } export namespace TwintDetails { diff --git a/src/typings/checkout/updatePaymentLinkRequest.ts b/src/typings/checkout/updatePaymentLinkRequest.ts index dc109a49b..ce71ba8d1 100644 --- a/src/typings/checkout/updatePaymentLinkRequest.ts +++ b/src/typings/checkout/updatePaymentLinkRequest.ts @@ -12,26 +12,20 @@ export class UpdatePaymentLinkRequest { /** * Status of the payment link. Possible values: * **expired** */ - "status": UpdatePaymentLinkRequest.StatusEnum; + 'status': UpdatePaymentLinkRequest.StatusEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "status", "baseName": "status", - "type": "UpdatePaymentLinkRequest.StatusEnum", - "format": "" + "type": "UpdatePaymentLinkRequest.StatusEnum" } ]; static getAttributeTypeMap() { return UpdatePaymentLinkRequest.attributeTypeMap; } - - public constructor() { - } } export namespace UpdatePaymentLinkRequest { diff --git a/src/typings/checkout/upiCollectDetails.ts b/src/typings/checkout/upiCollectDetails.ts index 0ebc2dcea..dc24c0627 100644 --- a/src/typings/checkout/upiCollectDetails.ts +++ b/src/typings/checkout/upiCollectDetails.ts @@ -12,89 +12,77 @@ export class UpiCollectDetails { /** * 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; + 'billingSequenceNumber': string; /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: 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; + 'recurringDetailReference'?: string; /** * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. */ - "shopperNotificationReference"?: string; + 'shopperNotificationReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * **upi_collect** */ - "type": UpiCollectDetails.TypeEnum; + 'type': UpiCollectDetails.TypeEnum; /** * The virtual payment address for UPI. */ - "virtualPaymentAddress"?: string; + 'virtualPaymentAddress'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "billingSequenceNumber", "baseName": "billingSequenceNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperNotificationReference", "baseName": "shopperNotificationReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "UpiCollectDetails.TypeEnum", - "format": "" + "type": "UpiCollectDetails.TypeEnum" }, { "name": "virtualPaymentAddress", "baseName": "virtualPaymentAddress", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return UpiCollectDetails.attributeTypeMap; } - - public constructor() { - } } export namespace UpiCollectDetails { diff --git a/src/typings/checkout/upiIntentDetails.ts b/src/typings/checkout/upiIntentDetails.ts index d84bb5eb7..f573aac0f 100644 --- a/src/typings/checkout/upiIntentDetails.ts +++ b/src/typings/checkout/upiIntentDetails.ts @@ -12,79 +12,68 @@ export class UpiIntentDetails { /** * TPAP (Third Party Application) Id that is being used to make the UPI payment */ - "appId"?: string; + 'appId'?: string; /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: 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; + 'recurringDetailReference'?: string; /** * The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. */ - "shopperNotificationReference"?: string; + 'shopperNotificationReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * **upi_intent** */ - "type": UpiIntentDetails.TypeEnum; + 'type': UpiIntentDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "appId", "baseName": "appId", - "type": "string", - "format": "" + "type": "string" }, { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperNotificationReference", "baseName": "shopperNotificationReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "UpiIntentDetails.TypeEnum", - "format": "" + "type": "UpiIntentDetails.TypeEnum" } ]; static getAttributeTypeMap() { return UpiIntentDetails.attributeTypeMap; } - - public constructor() { - } } export namespace UpiIntentDetails { diff --git a/src/typings/checkout/utilityRequest.ts b/src/typings/checkout/utilityRequest.ts index a8702c006..b591d8eac 100644 --- a/src/typings/checkout/utilityRequest.ts +++ b/src/typings/checkout/utilityRequest.ts @@ -12,25 +12,19 @@ export class UtilityRequest { /** * The list of origin domains, for which origin keys are requested. */ - "originDomains": Array; + 'originDomains': Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "originDomains", "baseName": "originDomains", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return UtilityRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/utilityResponse.ts b/src/typings/checkout/utilityResponse.ts index c460d25eb..27cc16b5b 100644 --- a/src/typings/checkout/utilityResponse.ts +++ b/src/typings/checkout/utilityResponse.ts @@ -12,25 +12,19 @@ export class UtilityResponse { /** * The list of origin keys for all requested domains. For each list item, the key is the domain and the value is the origin key. */ - "originKeys"?: { [key: string]: string; }; + 'originKeys'?: { [key: string]: string; }; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "originKeys", "baseName": "originKeys", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" } ]; static getAttributeTypeMap() { return UtilityResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/checkout/vippsDetails.ts b/src/typings/checkout/vippsDetails.ts index c75ffc21f..ff3a74998 100644 --- a/src/typings/checkout/vippsDetails.ts +++ b/src/typings/checkout/vippsDetails.ts @@ -12,69 +12,56 @@ export class VippsDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: 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; + 'recurringDetailReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; - /** - * - */ - "telephoneNumber": string; + 'storedPaymentMethodId'?: string; + 'telephoneNumber': string; /** * **vipps** */ - "type"?: VippsDetails.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type'?: VippsDetails.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "telephoneNumber", "baseName": "telephoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "VippsDetails.TypeEnum", - "format": "" + "type": "VippsDetails.TypeEnum" } ]; static getAttributeTypeMap() { return VippsDetails.attributeTypeMap; } - - public constructor() { - } } export namespace VippsDetails { diff --git a/src/typings/checkout/visaCheckoutDetails.ts b/src/typings/checkout/visaCheckoutDetails.ts index b4279b4f9..4879ad237 100644 --- a/src/typings/checkout/visaCheckoutDetails.ts +++ b/src/typings/checkout/visaCheckoutDetails.ts @@ -12,56 +12,47 @@ export class VisaCheckoutDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ - "fundingSource"?: VisaCheckoutDetails.FundingSourceEnum; + 'fundingSource'?: VisaCheckoutDetails.FundingSourceEnum; /** * **visacheckout** */ - "type"?: VisaCheckoutDetails.TypeEnum; + 'type'?: VisaCheckoutDetails.TypeEnum; /** * The Visa Click to Pay Call ID value. When your shopper selects a payment and/or a shipping address from Visa Click to Pay, you will receive a Visa Click to Pay Call ID. */ - "visaCheckoutCallId": string; + 'visaCheckoutCallId': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "fundingSource", "baseName": "fundingSource", - "type": "VisaCheckoutDetails.FundingSourceEnum", - "format": "" + "type": "VisaCheckoutDetails.FundingSourceEnum" }, { "name": "type", "baseName": "type", - "type": "VisaCheckoutDetails.TypeEnum", - "format": "" + "type": "VisaCheckoutDetails.TypeEnum" }, { "name": "visaCheckoutCallId", "baseName": "visaCheckoutCallId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return VisaCheckoutDetails.attributeTypeMap; } - - public constructor() { - } } export namespace VisaCheckoutDetails { diff --git a/src/typings/checkout/weChatPayDetails.ts b/src/typings/checkout/weChatPayDetails.ts index 0e574c9fc..c82d44fd9 100644 --- a/src/typings/checkout/weChatPayDetails.ts +++ b/src/typings/checkout/weChatPayDetails.ts @@ -12,36 +12,29 @@ export class WeChatPayDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * **wechatpay** */ - "type"?: WeChatPayDetails.TypeEnum; + 'type'?: WeChatPayDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "WeChatPayDetails.TypeEnum", - "format": "" + "type": "WeChatPayDetails.TypeEnum" } ]; static getAttributeTypeMap() { return WeChatPayDetails.attributeTypeMap; } - - public constructor() { - } } export namespace WeChatPayDetails { diff --git a/src/typings/checkout/weChatPayMiniProgramDetails.ts b/src/typings/checkout/weChatPayMiniProgramDetails.ts index 50c0c398a..14c1e29cf 100644 --- a/src/typings/checkout/weChatPayMiniProgramDetails.ts +++ b/src/typings/checkout/weChatPayMiniProgramDetails.ts @@ -9,53 +9,44 @@ export class WeChatPayMiniProgramDetails { - "appId"?: string; + 'appId'?: string; /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; - "openid"?: string; + 'checkoutAttemptId'?: string; + 'openid'?: string; /** * **wechatpayMiniProgram** */ - "type"?: WeChatPayMiniProgramDetails.TypeEnum; + 'type'?: WeChatPayMiniProgramDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "appId", "baseName": "appId", - "type": "string", - "format": "" + "type": "string" }, { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "openid", "baseName": "openid", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "WeChatPayMiniProgramDetails.TypeEnum", - "format": "" + "type": "WeChatPayMiniProgramDetails.TypeEnum" } ]; static getAttributeTypeMap() { return WeChatPayMiniProgramDetails.attributeTypeMap; } - - public constructor() { - } } export namespace WeChatPayMiniProgramDetails { diff --git a/src/typings/checkout/zipDetails.ts b/src/typings/checkout/zipDetails.ts index 86458bed1..71e523c7d 100644 --- a/src/typings/checkout/zipDetails.ts +++ b/src/typings/checkout/zipDetails.ts @@ -12,69 +12,59 @@ export class ZipDetails { /** * The checkout attempt identifier. */ - "checkoutAttemptId"?: string; + 'checkoutAttemptId'?: string; /** * Set this to **true** if the shopper would like to pick up and collect their order, instead of having the goods delivered to them. */ - "clickAndCollect"?: string; + 'clickAndCollect'?: 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; + 'recurringDetailReference'?: string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; /** * **zip** */ - "type"?: ZipDetails.TypeEnum; + 'type'?: ZipDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutAttemptId", "baseName": "checkoutAttemptId", - "type": "string", - "format": "" + "type": "string" }, { "name": "clickAndCollect", "baseName": "clickAndCollect", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "ZipDetails.TypeEnum", - "format": "" + "type": "ZipDetails.TypeEnum" } ]; static getAttributeTypeMap() { return ZipDetails.attributeTypeMap; } - - public constructor() { - } } export namespace ZipDetails { diff --git a/src/typings/configurationWebhooks/accountHolder.ts b/src/typings/configurationWebhooks/accountHolder.ts index 37920b19f..e9f475128 100644 --- a/src/typings/configurationWebhooks/accountHolder.ts +++ b/src/typings/configurationWebhooks/accountHolder.ts @@ -7,155 +7,136 @@ * Do not edit this class manually. */ -import { AccountHolderCapability } from "./accountHolderCapability"; -import { ContactDetails } from "./contactDetails"; -import { VerificationDeadline } from "./verificationDeadline"; - +import { AccountHolderCapability } from './accountHolderCapability'; +import { ContactDetails } from './contactDetails'; +import { VerificationDeadline } from './verificationDeadline'; export class AccountHolder { /** * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. */ - "balancePlatform"?: string; + 'balancePlatform'?: string; /** * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. */ - "capabilities"?: { [key: string]: AccountHolderCapability; }; + 'capabilities'?: { [key: string]: AccountHolderCapability; }; /** * @deprecated */ - "contactDetails"?: ContactDetails | null; + 'contactDetails'?: ContactDetails | null; /** * Your description for the account holder. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the account holder. */ - "id": string; + 'id': string; /** * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. */ - "legalEntityId": string; + 'legalEntityId': string; /** * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. */ - "metadata"?: { [key: string]: string; }; + 'metadata'?: { [key: string]: string; }; /** * The unique identifier of the migrated account holder in the classic integration. */ - "migratedAccountHolderCode"?: string; + 'migratedAccountHolderCode'?: string; /** * The ID of the account holder\'s primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. */ - "primaryBalanceAccount"?: string; + 'primaryBalanceAccount'?: string; /** * Your reference for the account holder. */ - "reference"?: string; + 'reference'?: string; /** * The status of the account holder. Possible values: * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. * **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed. */ - "status"?: AccountHolder.StatusEnum; + 'status'?: AccountHolder.StatusEnum; /** * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ - "timeZone"?: string; + 'timeZone'?: string; /** * List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. */ - "verificationDeadlines"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'verificationDeadlines'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balancePlatform", "baseName": "balancePlatform", - "type": "string", - "format": "" + "type": "string" }, { "name": "capabilities", "baseName": "capabilities", - "type": "{ [key: string]: AccountHolderCapability; }", - "format": "" + "type": "{ [key: string]: AccountHolderCapability; }" }, { "name": "contactDetails", "baseName": "contactDetails", - "type": "ContactDetails | null", - "format": "" + "type": "ContactDetails | null" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "legalEntityId", "baseName": "legalEntityId", - "type": "string", - "format": "" + "type": "string" }, { "name": "metadata", "baseName": "metadata", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "migratedAccountHolderCode", "baseName": "migratedAccountHolderCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "primaryBalanceAccount", "baseName": "primaryBalanceAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "AccountHolder.StatusEnum", - "format": "" + "type": "AccountHolder.StatusEnum" }, { "name": "timeZone", "baseName": "timeZone", - "type": "string", - "format": "" + "type": "string" }, { "name": "verificationDeadlines", "baseName": "verificationDeadlines", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return AccountHolder.attributeTypeMap; } - - public constructor() { - } } export namespace AccountHolder { diff --git a/src/typings/configurationWebhooks/accountHolderCapability.ts b/src/typings/configurationWebhooks/accountHolderCapability.ts index a2d63f306..eaccb94ae 100644 --- a/src/typings/configurationWebhooks/accountHolderCapability.ts +++ b/src/typings/configurationWebhooks/accountHolderCapability.ts @@ -7,119 +7,103 @@ * Do not edit this class manually. */ -import { AccountSupportingEntityCapability } from "./accountSupportingEntityCapability"; -import { CapabilityProblem } from "./capabilityProblem"; -import { CapabilitySettings } from "./capabilitySettings"; - +import { AccountSupportingEntityCapability } from './accountSupportingEntityCapability'; +import { CapabilityProblem } from './capabilityProblem'; +import { CapabilitySettings } from './capabilitySettings'; export class AccountHolderCapability { /** * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. */ - "allowed"?: boolean; + 'allowed'?: boolean; /** * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. */ - "allowedLevel"?: AccountHolderCapability.AllowedLevelEnum; - "allowedSettings"?: CapabilitySettings | null; + 'allowedLevel'?: AccountHolderCapability.AllowedLevelEnum; + 'allowedSettings'?: CapabilitySettings | null; /** * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. */ - "enabled"?: boolean; + 'enabled'?: boolean; /** * Contains verification errors and the actions that you can take to resolve them. */ - "problems"?: Array; + 'problems'?: Array; /** * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. */ - "requested"?: boolean; + 'requested'?: boolean; /** * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. */ - "requestedLevel"?: AccountHolderCapability.RequestedLevelEnum; - "requestedSettings"?: CapabilitySettings | null; + 'requestedLevel'?: AccountHolderCapability.RequestedLevelEnum; + 'requestedSettings'?: CapabilitySettings | null; /** * Contains the status of the transfer instruments associated with this capability. */ - "transferInstruments"?: Array; + 'transferInstruments'?: Array; /** * The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. */ - "verificationStatus"?: AccountHolderCapability.VerificationStatusEnum; - - static readonly discriminator: string | undefined = undefined; + 'verificationStatus'?: AccountHolderCapability.VerificationStatusEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "allowed", "baseName": "allowed", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "allowedLevel", "baseName": "allowedLevel", - "type": "AccountHolderCapability.AllowedLevelEnum", - "format": "" + "type": "AccountHolderCapability.AllowedLevelEnum" }, { "name": "allowedSettings", "baseName": "allowedSettings", - "type": "CapabilitySettings | null", - "format": "" + "type": "CapabilitySettings | null" }, { "name": "enabled", "baseName": "enabled", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "problems", "baseName": "problems", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "requested", "baseName": "requested", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "requestedLevel", "baseName": "requestedLevel", - "type": "AccountHolderCapability.RequestedLevelEnum", - "format": "" + "type": "AccountHolderCapability.RequestedLevelEnum" }, { "name": "requestedSettings", "baseName": "requestedSettings", - "type": "CapabilitySettings | null", - "format": "" + "type": "CapabilitySettings | null" }, { "name": "transferInstruments", "baseName": "transferInstruments", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "verificationStatus", "baseName": "verificationStatus", - "type": "AccountHolderCapability.VerificationStatusEnum", - "format": "" + "type": "AccountHolderCapability.VerificationStatusEnum" } ]; static getAttributeTypeMap() { return AccountHolderCapability.attributeTypeMap; } - - public constructor() { - } } export namespace AccountHolderCapability { diff --git a/src/typings/configurationWebhooks/accountHolderNotificationData.ts b/src/typings/configurationWebhooks/accountHolderNotificationData.ts index f208b2776..b2146fa35 100644 --- a/src/typings/configurationWebhooks/accountHolderNotificationData.ts +++ b/src/typings/configurationWebhooks/accountHolderNotificationData.ts @@ -7,39 +7,31 @@ * Do not edit this class manually. */ -import { AccountHolder } from "./accountHolder"; - +import { AccountHolder } from './accountHolder'; export class AccountHolderNotificationData { - "accountHolder"?: AccountHolder | null; + 'accountHolder'?: AccountHolder | null; /** * The unique identifier of the balance platform. */ - "balancePlatform"?: string; - - static readonly discriminator: string | undefined = undefined; + 'balancePlatform'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountHolder", "baseName": "accountHolder", - "type": "AccountHolder | null", - "format": "" + "type": "AccountHolder | null" }, { "name": "balancePlatform", "baseName": "balancePlatform", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AccountHolderNotificationData.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/configurationWebhooks/accountHolderNotificationRequest.ts b/src/typings/configurationWebhooks/accountHolderNotificationRequest.ts index c56cdfaeb..4982c72c0 100644 --- a/src/typings/configurationWebhooks/accountHolderNotificationRequest.ts +++ b/src/typings/configurationWebhooks/accountHolderNotificationRequest.ts @@ -7,65 +7,55 @@ * Do not edit this class manually. */ -import { AccountHolderNotificationData } from "./accountHolderNotificationData"; - +import { AccountHolderNotificationData } from './accountHolderNotificationData'; export class AccountHolderNotificationRequest { - "data": AccountHolderNotificationData; + 'data': AccountHolderNotificationData; /** * The environment from which the webhook originated. Possible values: **test**, **live**. */ - "environment": string; + 'environment': string; /** * When the event was queued. */ - "timestamp"?: Date; + 'timestamp'?: Date; /** * Type of webhook. */ - "type": AccountHolderNotificationRequest.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': AccountHolderNotificationRequest.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "AccountHolderNotificationData", - "format": "" + "type": "AccountHolderNotificationData" }, { "name": "environment", "baseName": "environment", - "type": "string", - "format": "" + "type": "string" }, { "name": "timestamp", "baseName": "timestamp", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "type", "baseName": "type", - "type": "AccountHolderNotificationRequest.TypeEnum", - "format": "" + "type": "AccountHolderNotificationRequest.TypeEnum" } ]; static getAttributeTypeMap() { return AccountHolderNotificationRequest.attributeTypeMap; } - - public constructor() { - } } export namespace AccountHolderNotificationRequest { export enum TypeEnum { - BalancePlatformAccountHolderUpdated = 'balancePlatform.accountHolder.updated', - BalancePlatformAccountHolderCreated = 'balancePlatform.accountHolder.created' + Updated = 'balancePlatform.accountHolder.updated', + Created = 'balancePlatform.accountHolder.created' } } diff --git a/src/typings/configurationWebhooks/accountSupportingEntityCapability.ts b/src/typings/configurationWebhooks/accountSupportingEntityCapability.ts index 7afcc904b..ce3dd89dc 100644 --- a/src/typings/configurationWebhooks/accountSupportingEntityCapability.ts +++ b/src/typings/configurationWebhooks/accountSupportingEntityCapability.ts @@ -12,86 +12,74 @@ export class AccountSupportingEntityCapability { /** * Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. */ - "allowed"?: boolean; + 'allowed'?: boolean; /** * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. */ - "allowedLevel"?: AccountSupportingEntityCapability.AllowedLevelEnum; + 'allowedLevel'?: AccountSupportingEntityCapability.AllowedLevelEnum; /** * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. */ - "enabled"?: boolean; + 'enabled'?: boolean; /** * The ID of the supporting entity. */ - "id"?: string; + 'id'?: string; /** * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. */ - "requested"?: boolean; + 'requested'?: boolean; /** * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. */ - "requestedLevel"?: AccountSupportingEntityCapability.RequestedLevelEnum; + 'requestedLevel'?: AccountSupportingEntityCapability.RequestedLevelEnum; /** * The status of the verification checks for the supporting entity capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. */ - "verificationStatus"?: AccountSupportingEntityCapability.VerificationStatusEnum; + 'verificationStatus'?: AccountSupportingEntityCapability.VerificationStatusEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "allowed", "baseName": "allowed", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "allowedLevel", "baseName": "allowedLevel", - "type": "AccountSupportingEntityCapability.AllowedLevelEnum", - "format": "" + "type": "AccountSupportingEntityCapability.AllowedLevelEnum" }, { "name": "enabled", "baseName": "enabled", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "requested", "baseName": "requested", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "requestedLevel", "baseName": "requestedLevel", - "type": "AccountSupportingEntityCapability.RequestedLevelEnum", - "format": "" + "type": "AccountSupportingEntityCapability.RequestedLevelEnum" }, { "name": "verificationStatus", "baseName": "verificationStatus", - "type": "AccountSupportingEntityCapability.VerificationStatusEnum", - "format": "" + "type": "AccountSupportingEntityCapability.VerificationStatusEnum" } ]; static getAttributeTypeMap() { return AccountSupportingEntityCapability.attributeTypeMap; } - - public constructor() { - } } export namespace AccountSupportingEntityCapability { diff --git a/src/typings/configurationWebhooks/address.ts b/src/typings/configurationWebhooks/address.ts index 5edd5d7e4..2adc43b43 100644 --- a/src/typings/configurationWebhooks/address.ts +++ b/src/typings/configurationWebhooks/address.ts @@ -12,75 +12,64 @@ export class Address { /** * The name of the city. Maximum length: 3000 characters. */ - "city": string; + 'city': string; /** * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don\'t know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ - "country": string; + 'country': string; /** * The number or name of the house. Maximum length: 3000 characters. */ - "houseNumberOrName": string; + 'houseNumberOrName': string; /** * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. */ - "postalCode": string; + 'postalCode': string; /** * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ - "stateOrProvince"?: string; + 'stateOrProvince'?: string; /** * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. */ - "street": string; + 'street': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "city", "baseName": "city", - "type": "string", - "format": "" + "type": "string" }, { "name": "country", "baseName": "country", - "type": "string", - "format": "" + "type": "string" }, { "name": "houseNumberOrName", "baseName": "houseNumberOrName", - "type": "string", - "format": "" + "type": "string" }, { "name": "postalCode", "baseName": "postalCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "stateOrProvince", "baseName": "stateOrProvince", - "type": "string", - "format": "" + "type": "string" }, { "name": "street", "baseName": "street", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Address.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/configurationWebhooks/amount.ts b/src/typings/configurationWebhooks/amount.ts index e35a6e195..78f5e618e 100644 --- a/src/typings/configurationWebhooks/amount.ts +++ b/src/typings/configurationWebhooks/amount.ts @@ -12,35 +12,28 @@ export class Amount { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ - "currency": string; + 'currency': string; /** * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ - "value": number; + 'value': number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "number", - "format": "int64" + "type": "number" } ]; static getAttributeTypeMap() { return Amount.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/configurationWebhooks/authentication.ts b/src/typings/configurationWebhooks/authentication.ts index 4697d3189..843cf933c 100644 --- a/src/typings/configurationWebhooks/authentication.ts +++ b/src/typings/configurationWebhooks/authentication.ts @@ -7,49 +7,40 @@ * Do not edit this class manually. */ -import { Phone } from "./phone"; - +import { Phone } from './phone'; export class Authentication { /** * The email address where the one-time password (OTP) is sent. */ - "email"?: string; + 'email'?: string; /** * The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#\'\",;:$&àùòâôûáúó** */ - "password"?: string; - "phone"?: Phone | null; - - static readonly discriminator: string | undefined = undefined; + 'password'?: string; + 'phone'?: Phone | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "email", "baseName": "email", - "type": "string", - "format": "" + "type": "string" }, { "name": "password", "baseName": "password", - "type": "string", - "format": "" + "type": "string" }, { "name": "phone", "baseName": "phone", - "type": "Phone | null", - "format": "" + "type": "Phone | null" } ]; static getAttributeTypeMap() { return Authentication.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/configurationWebhooks/balance.ts b/src/typings/configurationWebhooks/balance.ts index d4eb021cb..ecfe423d0 100644 --- a/src/typings/configurationWebhooks/balance.ts +++ b/src/typings/configurationWebhooks/balance.ts @@ -12,65 +12,55 @@ export class Balance { /** * The balance available for use. */ - "available": number; + 'available': number; /** * The sum of the transactions that have already been settled. */ - "balance": number; + 'balance': number; /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. */ - "currency": string; + 'currency': string; /** * The sum of the transactions that will be settled in the future. */ - "pending"?: number; + 'pending'?: number; /** * The balance currently held in reserve. */ - "reserved": number; + 'reserved': number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "available", "baseName": "available", - "type": "number", - "format": "int64" + "type": "number" }, { "name": "balance", "baseName": "balance", - "type": "number", - "format": "int64" + "type": "number" }, { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "pending", "baseName": "pending", - "type": "number", - "format": "int64" + "type": "number" }, { "name": "reserved", "baseName": "reserved", - "type": "number", - "format": "int64" + "type": "number" } ]; static getAttributeTypeMap() { return Balance.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/configurationWebhooks/balanceAccount.ts b/src/typings/configurationWebhooks/balanceAccount.ts index e03981ec4..3644c8359 100644 --- a/src/typings/configurationWebhooks/balanceAccount.ts +++ b/src/typings/configurationWebhooks/balanceAccount.ts @@ -7,131 +7,114 @@ * Do not edit this class manually. */ -import { Balance } from "./balance"; -import { PlatformPaymentConfiguration } from "./platformPaymentConfiguration"; - +import { Balance } from './balance'; +import { PlatformPaymentConfiguration } from './platformPaymentConfiguration'; export class BalanceAccount { /** * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) associated with the balance account. */ - "accountHolderId": string; + 'accountHolderId': string; /** * List of balances with the amount and currency. */ - "balances"?: Array; + 'balances'?: Array; /** * The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. */ - "defaultCurrencyCode"?: string; + 'defaultCurrencyCode'?: string; /** * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the balance account. */ - "id": string; + 'id': string; /** * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. */ - "metadata"?: { [key: string]: string; }; + 'metadata'?: { [key: string]: string; }; /** * The unique identifier of the account of the migrated account holder in the classic integration. */ - "migratedAccountCode"?: string; - "platformPaymentConfiguration"?: PlatformPaymentConfiguration | null; + 'migratedAccountCode'?: string; + 'platformPaymentConfiguration'?: PlatformPaymentConfiguration | null; /** * Your reference for the balance account, maximum 150 characters. */ - "reference"?: string; + 'reference'?: string; /** * The status of the balance account, set to **active** by default. */ - "status"?: BalanceAccount.StatusEnum; + 'status'?: BalanceAccount.StatusEnum; /** * The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). */ - "timeZone"?: string; - - static readonly discriminator: string | undefined = undefined; + 'timeZone'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountHolderId", "baseName": "accountHolderId", - "type": "string", - "format": "" + "type": "string" }, { "name": "balances", "baseName": "balances", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "defaultCurrencyCode", "baseName": "defaultCurrencyCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "metadata", "baseName": "metadata", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "migratedAccountCode", "baseName": "migratedAccountCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "platformPaymentConfiguration", "baseName": "platformPaymentConfiguration", - "type": "PlatformPaymentConfiguration | null", - "format": "" + "type": "PlatformPaymentConfiguration | null" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "BalanceAccount.StatusEnum", - "format": "" + "type": "BalanceAccount.StatusEnum" }, { "name": "timeZone", "baseName": "timeZone", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return BalanceAccount.attributeTypeMap; } - - public constructor() { - } } export namespace BalanceAccount { diff --git a/src/typings/configurationWebhooks/balanceAccountNotificationData.ts b/src/typings/configurationWebhooks/balanceAccountNotificationData.ts index 9e7705083..824ed6abb 100644 --- a/src/typings/configurationWebhooks/balanceAccountNotificationData.ts +++ b/src/typings/configurationWebhooks/balanceAccountNotificationData.ts @@ -7,39 +7,31 @@ * Do not edit this class manually. */ -import { BalanceAccount } from "./balanceAccount"; - +import { BalanceAccount } from './balanceAccount'; export class BalanceAccountNotificationData { - "balanceAccount"?: BalanceAccount | null; + 'balanceAccount'?: BalanceAccount | null; /** * The unique identifier of the balance platform. */ - "balancePlatform"?: string; - - static readonly discriminator: string | undefined = undefined; + 'balancePlatform'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balanceAccount", "baseName": "balanceAccount", - "type": "BalanceAccount | null", - "format": "" + "type": "BalanceAccount | null" }, { "name": "balancePlatform", "baseName": "balancePlatform", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return BalanceAccountNotificationData.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/configurationWebhooks/balanceAccountNotificationRequest.ts b/src/typings/configurationWebhooks/balanceAccountNotificationRequest.ts index afe5e1c76..5576df18b 100644 --- a/src/typings/configurationWebhooks/balanceAccountNotificationRequest.ts +++ b/src/typings/configurationWebhooks/balanceAccountNotificationRequest.ts @@ -7,65 +7,55 @@ * Do not edit this class manually. */ -import { BalanceAccountNotificationData } from "./balanceAccountNotificationData"; - +import { BalanceAccountNotificationData } from './balanceAccountNotificationData'; export class BalanceAccountNotificationRequest { - "data": BalanceAccountNotificationData; + 'data': BalanceAccountNotificationData; /** * The environment from which the webhook originated. Possible values: **test**, **live**. */ - "environment": string; + 'environment': string; /** * When the event was queued. */ - "timestamp"?: Date; + 'timestamp'?: Date; /** * Type of webhook. */ - "type": BalanceAccountNotificationRequest.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': BalanceAccountNotificationRequest.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "BalanceAccountNotificationData", - "format": "" + "type": "BalanceAccountNotificationData" }, { "name": "environment", "baseName": "environment", - "type": "string", - "format": "" + "type": "string" }, { "name": "timestamp", "baseName": "timestamp", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "type", "baseName": "type", - "type": "BalanceAccountNotificationRequest.TypeEnum", - "format": "" + "type": "BalanceAccountNotificationRequest.TypeEnum" } ]; static getAttributeTypeMap() { return BalanceAccountNotificationRequest.attributeTypeMap; } - - public constructor() { - } } export namespace BalanceAccountNotificationRequest { export enum TypeEnum { - BalancePlatformBalanceAccountUpdated = 'balancePlatform.balanceAccount.updated', - BalancePlatformBalanceAccountCreated = 'balancePlatform.balanceAccount.created' + Updated = 'balancePlatform.balanceAccount.updated', + Created = 'balancePlatform.balanceAccount.created' } } diff --git a/src/typings/configurationWebhooks/balancePlatformNotificationResponse.ts b/src/typings/configurationWebhooks/balancePlatformNotificationResponse.ts index 7f66baeac..2ee04f3bb 100644 --- a/src/typings/configurationWebhooks/balancePlatformNotificationResponse.ts +++ b/src/typings/configurationWebhooks/balancePlatformNotificationResponse.ts @@ -12,25 +12,19 @@ export class BalancePlatformNotificationResponse { /** * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). */ - "notificationResponse"?: string; + 'notificationResponse'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "notificationResponse", "baseName": "notificationResponse", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return BalancePlatformNotificationResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/configurationWebhooks/bankAccountDetails.ts b/src/typings/configurationWebhooks/bankAccountDetails.ts index 569863908..bbd62559b 100644 --- a/src/typings/configurationWebhooks/bankAccountDetails.ts +++ b/src/typings/configurationWebhooks/bankAccountDetails.ts @@ -12,95 +12,82 @@ export class BankAccountDetails { /** * The bank account number, without separators or whitespace. */ - "accountNumber"?: string; + 'accountNumber'?: string; /** * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ - "accountType"?: string; + 'accountType'?: string; /** * The bank account branch number, without separators or whitespace */ - "branchNumber"?: string; + 'branchNumber'?: string; /** * Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. */ - "formFactor"?: string; + 'formFactor'?: string; /** * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ - "iban"?: string; + 'iban'?: string; /** * The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. */ - "routingNumber"?: string; + 'routingNumber'?: string; /** * The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. */ - "sortCode"?: string; + 'sortCode'?: string; /** * **iban** or **usLocal** or **ukLocal** */ - "type": string; + 'type': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "accountType", "baseName": "accountType", - "type": "string", - "format": "" + "type": "string" }, { "name": "branchNumber", "baseName": "branchNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "formFactor", "baseName": "formFactor", - "type": "string", - "format": "" + "type": "string" }, { "name": "iban", "baseName": "iban", - "type": "string", - "format": "" + "type": "string" }, { "name": "routingNumber", "baseName": "routingNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "sortCode", "baseName": "sortCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return BankAccountDetails.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/configurationWebhooks/bulkAddress.ts b/src/typings/configurationWebhooks/bulkAddress.ts index 156396053..83e219d9d 100644 --- a/src/typings/configurationWebhooks/bulkAddress.ts +++ b/src/typings/configurationWebhooks/bulkAddress.ts @@ -12,105 +12,91 @@ export class BulkAddress { /** * The name of the city. */ - "city"?: string; + 'city'?: string; /** * The name of the company. */ - "company"?: string; + 'company'?: string; /** * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. */ - "country": string; + 'country': string; /** * The email address. */ - "email"?: string; + 'email'?: string; /** * The house number or name. */ - "houseNumberOrName"?: string; + 'houseNumberOrName'?: string; /** * The full telephone number. */ - "mobile"?: string; + 'mobile'?: string; /** * The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries. */ - "postalCode"?: string; + 'postalCode'?: string; /** * The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US. */ - "stateOrProvince"?: string; + 'stateOrProvince'?: string; /** * The streetname of the house. */ - "street"?: string; + 'street'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "city", "baseName": "city", - "type": "string", - "format": "" + "type": "string" }, { "name": "company", "baseName": "company", - "type": "string", - "format": "" + "type": "string" }, { "name": "country", "baseName": "country", - "type": "string", - "format": "" + "type": "string" }, { "name": "email", "baseName": "email", - "type": "string", - "format": "" + "type": "string" }, { "name": "houseNumberOrName", "baseName": "houseNumberOrName", - "type": "string", - "format": "" + "type": "string" }, { "name": "mobile", "baseName": "mobile", - "type": "string", - "format": "" + "type": "string" }, { "name": "postalCode", "baseName": "postalCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "stateOrProvince", "baseName": "stateOrProvince", - "type": "string", - "format": "" + "type": "string" }, { "name": "street", "baseName": "street", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return BulkAddress.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/configurationWebhooks/capabilityProblem.ts b/src/typings/configurationWebhooks/capabilityProblem.ts index 611edae10..41cd5fe6c 100644 --- a/src/typings/configurationWebhooks/capabilityProblem.ts +++ b/src/typings/configurationWebhooks/capabilityProblem.ts @@ -7,40 +7,32 @@ * Do not edit this class manually. */ -import { CapabilityProblemEntity } from "./capabilityProblemEntity"; -import { VerificationError } from "./verificationError"; - +import { CapabilityProblemEntity } from './capabilityProblemEntity'; +import { VerificationError } from './verificationError'; export class CapabilityProblem { - "entity"?: CapabilityProblemEntity | null; + 'entity'?: CapabilityProblemEntity | null; /** * Contains information about the verification error. */ - "verificationErrors"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'verificationErrors'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "entity", "baseName": "entity", - "type": "CapabilityProblemEntity | null", - "format": "" + "type": "CapabilityProblemEntity | null" }, { "name": "verificationErrors", "baseName": "verificationErrors", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return CapabilityProblem.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/configurationWebhooks/capabilityProblemEntity.ts b/src/typings/configurationWebhooks/capabilityProblemEntity.ts index 1da05f536..b022a757f 100644 --- a/src/typings/configurationWebhooks/capabilityProblemEntity.ts +++ b/src/typings/configurationWebhooks/capabilityProblemEntity.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { CapabilityProblemEntityRecursive } from "./capabilityProblemEntityRecursive"; - +import { CapabilityProblemEntityRecursive } from './capabilityProblemEntityRecursive'; export class CapabilityProblemEntity { /** * List of document IDs to which the verification errors related to the capabilities correspond to. */ - "documents"?: Array; + 'documents'?: Array; /** * The ID of the entity. */ - "id"?: string; - "owner"?: CapabilityProblemEntityRecursive | null; + 'id'?: string; + 'owner'?: CapabilityProblemEntityRecursive | null; /** * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. */ - "type"?: CapabilityProblemEntity.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type'?: CapabilityProblemEntity.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "documents", "baseName": "documents", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "owner", "baseName": "owner", - "type": "CapabilityProblemEntityRecursive | null", - "format": "" + "type": "CapabilityProblemEntityRecursive | null" }, { "name": "type", "baseName": "type", - "type": "CapabilityProblemEntity.TypeEnum", - "format": "" + "type": "CapabilityProblemEntity.TypeEnum" } ]; static getAttributeTypeMap() { return CapabilityProblemEntity.attributeTypeMap; } - - public constructor() { - } } export namespace CapabilityProblemEntity { diff --git a/src/typings/configurationWebhooks/capabilityProblemEntityRecursive.ts b/src/typings/configurationWebhooks/capabilityProblemEntityRecursive.ts index d197221e6..6280b7e7b 100644 --- a/src/typings/configurationWebhooks/capabilityProblemEntityRecursive.ts +++ b/src/typings/configurationWebhooks/capabilityProblemEntityRecursive.ts @@ -12,46 +12,38 @@ export class CapabilityProblemEntityRecursive { /** * List of document IDs to which the verification errors related to the capabilities correspond to. */ - "documents"?: Array; + 'documents'?: Array; /** * The ID of the entity. */ - "id"?: string; + 'id'?: string; /** * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. */ - "type"?: CapabilityProblemEntityRecursive.TypeEnum; + 'type'?: CapabilityProblemEntityRecursive.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "documents", "baseName": "documents", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "CapabilityProblemEntityRecursive.TypeEnum", - "format": "" + "type": "CapabilityProblemEntityRecursive.TypeEnum" } ]; static getAttributeTypeMap() { return CapabilityProblemEntityRecursive.attributeTypeMap; } - - public constructor() { - } } export namespace CapabilityProblemEntityRecursive { diff --git a/src/typings/configurationWebhooks/capabilitySettings.ts b/src/typings/configurationWebhooks/capabilitySettings.ts index 2ff9ac605..4a1bd904a 100644 --- a/src/typings/configurationWebhooks/capabilitySettings.ts +++ b/src/typings/configurationWebhooks/capabilitySettings.ts @@ -7,70 +7,47 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class CapabilitySettings { - /** - * - */ - "amountPerIndustry"?: { [key: string]: Amount; }; - /** - * - */ - "authorizedCardUsers"?: boolean; - /** - * - */ - "fundingSource"?: Array; - /** - * - */ - "interval"?: CapabilitySettings.IntervalEnum; - "maxAmount"?: Amount | null; - - static readonly discriminator: string | undefined = undefined; + 'amountPerIndustry'?: { [key: string]: Amount; }; + 'authorizedCardUsers'?: boolean; + 'fundingSource'?: Array; + 'interval'?: CapabilitySettings.IntervalEnum; + 'maxAmount'?: Amount | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amountPerIndustry", "baseName": "amountPerIndustry", - "type": "{ [key: string]: Amount; }", - "format": "" + "type": "{ [key: string]: Amount; }" }, { "name": "authorizedCardUsers", "baseName": "authorizedCardUsers", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "fundingSource", "baseName": "fundingSource", - "type": "CapabilitySettings.FundingSourceEnum", - "format": "" + "type": "Array" }, { "name": "interval", "baseName": "interval", - "type": "CapabilitySettings.IntervalEnum", - "format": "" + "type": "CapabilitySettings.IntervalEnum" }, { "name": "maxAmount", "baseName": "maxAmount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" } ]; static getAttributeTypeMap() { return CapabilitySettings.attributeTypeMap; } - - public constructor() { - } } export namespace CapabilitySettings { diff --git a/src/typings/configurationWebhooks/card.ts b/src/typings/configurationWebhooks/card.ts index 72745c879..2c5cb6cae 100644 --- a/src/typings/configurationWebhooks/card.ts +++ b/src/typings/configurationWebhooks/card.ts @@ -7,144 +7,125 @@ * Do not edit this class manually. */ -import { Authentication } from "./authentication"; -import { CardConfiguration } from "./cardConfiguration"; -import { DeliveryContact } from "./deliveryContact"; -import { Expiry } from "./expiry"; - +import { Authentication } from './authentication'; +import { CardConfiguration } from './cardConfiguration'; +import { DeliveryContact } from './deliveryContact'; +import { Expiry } from './expiry'; export class Card { - "authentication"?: Authentication | null; + 'authentication'?: Authentication | null; /** * The bank identification number (BIN) of the card number. */ - "bin"?: string; + 'bin'?: string; /** * The brand of the physical or the virtual card. Possible values: **visa**, **mc**. */ - "brand": string; + 'brand': string; /** * The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. */ - "brandVariant": string; + 'brandVariant': string; /** * The name of the cardholder. Maximum length: 26 characters. */ - "cardholderName": string; - "configuration"?: CardConfiguration | null; + 'cardholderName': string; + 'configuration'?: CardConfiguration | null; /** * The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards. */ - "cvc"?: string; - "deliveryContact"?: DeliveryContact | null; - "expiration"?: Expiry | null; + 'cvc'?: string; + 'deliveryContact'?: DeliveryContact | null; + 'expiration'?: Expiry | null; /** * The form factor of the card. Possible values: **virtual**, **physical**. */ - "formFactor": Card.FormFactorEnum; + 'formFactor': Card.FormFactorEnum; /** * Last last four digits of the card number. */ - "lastFour"?: string; + 'lastFour'?: string; /** * 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. */ - "threeDSecure"?: string; - - static readonly discriminator: string | undefined = undefined; + 'threeDSecure'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "authentication", "baseName": "authentication", - "type": "Authentication | null", - "format": "" + "type": "Authentication | null" }, { "name": "bin", "baseName": "bin", - "type": "string", - "format": "" + "type": "string" }, { "name": "brand", "baseName": "brand", - "type": "string", - "format": "" + "type": "string" }, { "name": "brandVariant", "baseName": "brandVariant", - "type": "string", - "format": "" + "type": "string" }, { "name": "cardholderName", "baseName": "cardholderName", - "type": "string", - "format": "" + "type": "string" }, { "name": "configuration", "baseName": "configuration", - "type": "CardConfiguration | null", - "format": "" + "type": "CardConfiguration | null" }, { "name": "cvc", "baseName": "cvc", - "type": "string", - "format": "" + "type": "string" }, { "name": "deliveryContact", "baseName": "deliveryContact", - "type": "DeliveryContact | null", - "format": "" + "type": "DeliveryContact | null" }, { "name": "expiration", "baseName": "expiration", - "type": "Expiry | null", - "format": "" + "type": "Expiry | null" }, { "name": "formFactor", "baseName": "formFactor", - "type": "Card.FormFactorEnum", - "format": "" + "type": "Card.FormFactorEnum" }, { "name": "lastFour", "baseName": "lastFour", - "type": "string", - "format": "" + "type": "string" }, { "name": "number", "baseName": "number", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSecure", "baseName": "threeDSecure", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Card.attributeTypeMap; } - - public constructor() { - } } export namespace Card { diff --git a/src/typings/configurationWebhooks/cardConfiguration.ts b/src/typings/configurationWebhooks/cardConfiguration.ts index 5d0757c1d..79d7502dd 100644 --- a/src/typings/configurationWebhooks/cardConfiguration.ts +++ b/src/typings/configurationWebhooks/cardConfiguration.ts @@ -7,159 +7,139 @@ * Do not edit this class manually. */ -import { BulkAddress } from "./bulkAddress"; - +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. */ - "activation"?: string; + 'activation'?: string; /** * Your app\'s URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. Maximum length: 255 characters. */ - "activationUrl"?: string; - "bulkAddress"?: BulkAddress | null; + '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. */ - "cardImageId"?: string; + 'cardImageId'?: string; /** * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. */ - "carrier"?: string; + 'carrier'?: string; /** * The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. */ - "carrierImageId"?: string; + '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. */ - "configurationProfileId": string; + 'configurationProfileId': string; /** * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. */ - "currency"?: string; + 'currency'?: string; /** * Overrides the envelope design ID defined in the `configurationProfileId`. */ - "envelope"?: string; + '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. */ - "insert"?: string; + 'insert'?: string; /** * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the card. For example, **en**. */ - "language"?: string; + '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. */ - "logoImageId"?: string; + 'logoImageId'?: string; /** * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. */ - "pinMailer"?: string; + 'pinMailer'?: string; /** * Overrides the logistics company defined in the `configurationProfileId`. */ - "shipmentMethod"?: string; - - static readonly discriminator: string | undefined = undefined; + 'shipmentMethod'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "activation", "baseName": "activation", - "type": "string", - "format": "" + "type": "string" }, { "name": "activationUrl", "baseName": "activationUrl", - "type": "string", - "format": "" + "type": "string" }, { "name": "bulkAddress", "baseName": "bulkAddress", - "type": "BulkAddress | null", - "format": "" + "type": "BulkAddress | null" }, { "name": "cardImageId", "baseName": "cardImageId", - "type": "string", - "format": "" + "type": "string" }, { "name": "carrier", "baseName": "carrier", - "type": "string", - "format": "" + "type": "string" }, { "name": "carrierImageId", "baseName": "carrierImageId", - "type": "string", - "format": "" + "type": "string" }, { "name": "configurationProfileId", "baseName": "configurationProfileId", - "type": "string", - "format": "" + "type": "string" }, { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "envelope", "baseName": "envelope", - "type": "string", - "format": "" + "type": "string" }, { "name": "insert", "baseName": "insert", - "type": "string", - "format": "" + "type": "string" }, { "name": "language", "baseName": "language", - "type": "string", - "format": "" + "type": "string" }, { "name": "logoImageId", "baseName": "logoImageId", - "type": "string", - "format": "" + "type": "string" }, { "name": "pinMailer", "baseName": "pinMailer", - "type": "string", - "format": "" + "type": "string" }, { "name": "shipmentMethod", "baseName": "shipmentMethod", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CardConfiguration.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/configurationWebhooks/cardOrderItem.ts b/src/typings/configurationWebhooks/cardOrderItem.ts index fe05bcce8..2d6cd1223 100644 --- a/src/typings/configurationWebhooks/cardOrderItem.ts +++ b/src/typings/configurationWebhooks/cardOrderItem.ts @@ -7,96 +7,82 @@ * Do not edit this class manually. */ -import { CardOrderItemDeliveryStatus } from "./cardOrderItemDeliveryStatus"; - +import { CardOrderItemDeliveryStatus } from './cardOrderItemDeliveryStatus'; export class CardOrderItem { /** * The unique identifier of the balance platform. */ - "balancePlatform"?: string; - "card"?: CardOrderItemDeliveryStatus | null; + 'balancePlatform'?: string; + 'card'?: CardOrderItemDeliveryStatus | null; /** * The unique identifier of the card order item. */ - "cardOrderItemId"?: string; + 'cardOrderItemId'?: string; /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. */ - "creationDate"?: Date; + 'creationDate'?: Date; /** * The ID of the resource. */ - "id"?: string; + 'id'?: string; /** * The unique identifier of the payment instrument related to the card order item. */ - "paymentInstrumentId"?: string; - "pin"?: CardOrderItemDeliveryStatus | null; + 'paymentInstrumentId'?: string; + 'pin'?: CardOrderItemDeliveryStatus | null; /** * The shipping method used to deliver the card or the PIN. */ - "shippingMethod"?: string; - - static readonly discriminator: string | undefined = undefined; + 'shippingMethod'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balancePlatform", "baseName": "balancePlatform", - "type": "string", - "format": "" + "type": "string" }, { "name": "card", "baseName": "card", - "type": "CardOrderItemDeliveryStatus | null", - "format": "" + "type": "CardOrderItemDeliveryStatus | null" }, { "name": "cardOrderItemId", "baseName": "cardOrderItemId", - "type": "string", - "format": "" + "type": "string" }, { "name": "creationDate", "baseName": "creationDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentInstrumentId", "baseName": "paymentInstrumentId", - "type": "string", - "format": "" + "type": "string" }, { "name": "pin", "baseName": "pin", - "type": "CardOrderItemDeliveryStatus | null", - "format": "" + "type": "CardOrderItemDeliveryStatus | null" }, { "name": "shippingMethod", "baseName": "shippingMethod", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CardOrderItem.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/configurationWebhooks/cardOrderItemDeliveryStatus.ts b/src/typings/configurationWebhooks/cardOrderItemDeliveryStatus.ts index acc7f1128..fe077645f 100644 --- a/src/typings/configurationWebhooks/cardOrderItemDeliveryStatus.ts +++ b/src/typings/configurationWebhooks/cardOrderItemDeliveryStatus.ts @@ -12,46 +12,38 @@ export class CardOrderItemDeliveryStatus { /** * An error message. */ - "errorMessage"?: string; + 'errorMessage'?: string; /** * The status of the PIN delivery. */ - "status"?: CardOrderItemDeliveryStatus.StatusEnum; + 'status'?: CardOrderItemDeliveryStatus.StatusEnum; /** * The tracking number of the PIN delivery. */ - "trackingNumber"?: string; + 'trackingNumber'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "errorMessage", "baseName": "errorMessage", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "CardOrderItemDeliveryStatus.StatusEnum", - "format": "" + "type": "CardOrderItemDeliveryStatus.StatusEnum" }, { "name": "trackingNumber", "baseName": "trackingNumber", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CardOrderItemDeliveryStatus.attributeTypeMap; } - - public constructor() { - } } export namespace CardOrderItemDeliveryStatus { diff --git a/src/typings/configurationWebhooks/cardOrderNotificationRequest.ts b/src/typings/configurationWebhooks/cardOrderNotificationRequest.ts index 731f9330e..b47aa3fb8 100644 --- a/src/typings/configurationWebhooks/cardOrderNotificationRequest.ts +++ b/src/typings/configurationWebhooks/cardOrderNotificationRequest.ts @@ -7,65 +7,55 @@ * Do not edit this class manually. */ -import { CardOrderItem } from "./cardOrderItem"; - +import { CardOrderItem } from './cardOrderItem'; export class CardOrderNotificationRequest { - "data": CardOrderItem; + 'data': CardOrderItem; /** * The environment from which the webhook originated. Possible values: **test**, **live**. */ - "environment": string; + 'environment': string; /** * When the event was queued. */ - "timestamp"?: Date; + 'timestamp'?: Date; /** * Type of webhook. */ - "type": CardOrderNotificationRequest.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': CardOrderNotificationRequest.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "CardOrderItem", - "format": "" + "type": "CardOrderItem" }, { "name": "environment", "baseName": "environment", - "type": "string", - "format": "" + "type": "string" }, { "name": "timestamp", "baseName": "timestamp", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "type", "baseName": "type", - "type": "CardOrderNotificationRequest.TypeEnum", - "format": "" + "type": "CardOrderNotificationRequest.TypeEnum" } ]; static getAttributeTypeMap() { return CardOrderNotificationRequest.attributeTypeMap; } - - public constructor() { - } } export namespace CardOrderNotificationRequest { export enum TypeEnum { - BalancePlatformCardorderCreated = 'balancePlatform.cardorder.created', - BalancePlatformCardorderUpdated = 'balancePlatform.cardorder.updated' + Created = 'balancePlatform.cardorder.created', + Updated = 'balancePlatform.cardorder.updated' } } diff --git a/src/typings/configurationWebhooks/configurationWebhooksHandler.ts b/src/typings/configurationWebhooks/configurationWebhooksHandler.ts deleted file mode 100644 index 292bc0110..000000000 --- a/src/typings/configurationWebhooks/configurationWebhooksHandler.ts +++ /dev/null @@ -1,129 +0,0 @@ -/* - * 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 { configurationWebhooks } from ".."; - -/** - * Union type for all supported webhook requests. - * Allows generic handling of configuration-related webhook events. - */ -export type GenericWebhook = - | configurationWebhooks.AccountHolderNotificationRequest - | configurationWebhooks.BalanceAccountNotificationRequest - | configurationWebhooks.CardOrderNotificationRequest - | configurationWebhooks.NetworkTokenNotificationRequest - | configurationWebhooks.PaymentNotificationRequest - | configurationWebhooks.SweepConfigurationNotificationRequest; - -/** - * Handler for processing ConfigurationWebhooks. - * - * This class provides functionality to deserialize the payload of ConfigurationWebhooks events. - */ -export class ConfigurationWebhooksHandler { - - private readonly payload: Record; - - public constructor(jsonPayload: string) { - this.payload = JSON.parse(jsonPayload); - } - - /** - * This method checks the type of the webhook payload and returns the appropriate deserialized object. - * - * @returns A deserialized object of type GenericWebhook. - * @throws Error if the type is not recognized. - */ - public getGenericWebhook(): GenericWebhook { - - const type = this.payload["type"]; - - if(Object.values(configurationWebhooks.AccountHolderNotificationRequest.TypeEnum).includes(type)) { - return this.getAccountHolderNotificationRequest(); - } - - if(Object.values(configurationWebhooks.BalanceAccountNotificationRequest.TypeEnum).includes(type)) { - return this.getBalanceAccountNotificationRequest(); - } - - if(Object.values(configurationWebhooks.CardOrderNotificationRequest.TypeEnum).includes(type)) { - return this.getCardOrderNotificationRequest(); - } - - if(Object.values(configurationWebhooks.NetworkTokenNotificationRequest.TypeEnum).includes(type)) { - return this.getNetworkTokenNotificationRequest(); - } - - if(Object.values(configurationWebhooks.PaymentNotificationRequest.TypeEnum).includes(type)) { - return this.getPaymentNotificationRequest(); - } - - if(Object.values(configurationWebhooks.SweepConfigurationNotificationRequest.TypeEnum).includes(type)) { - return this.getSweepConfigurationNotificationRequest(); - } - - throw new Error("Could not parse the json payload: " + this.payload); - - } - - /** - * Deserialize the webhook payload into a AccountHolderNotificationRequest - * - * @returns Deserialized AccountHolderNotificationRequest object. - */ - public getAccountHolderNotificationRequest(): configurationWebhooks.AccountHolderNotificationRequest { - return configurationWebhooks.ObjectSerializer.deserialize(this.payload, "AccountHolderNotificationRequest"); - } - - /** - * Deserialize the webhook payload into a BalanceAccountNotificationRequest - * - * @returns Deserialized BalanceAccountNotificationRequest object. - */ - public getBalanceAccountNotificationRequest(): configurationWebhooks.BalanceAccountNotificationRequest { - return configurationWebhooks.ObjectSerializer.deserialize(this.payload, "BalanceAccountNotificationRequest"); - } - - /** - * Deserialize the webhook payload into a CardOrderNotificationRequest - * - * @returns Deserialized CardOrderNotificationRequest object. - */ - public getCardOrderNotificationRequest(): configurationWebhooks.CardOrderNotificationRequest { - return configurationWebhooks.ObjectSerializer.deserialize(this.payload, "CardOrderNotificationRequest"); - } - - /** - * Deserialize the webhook payload into a NetworkTokenNotificationRequest - * - * @returns Deserialized NetworkTokenNotificationRequest object. - */ - public getNetworkTokenNotificationRequest(): configurationWebhooks.NetworkTokenNotificationRequest { - return configurationWebhooks.ObjectSerializer.deserialize(this.payload, "NetworkTokenNotificationRequest"); - } - - /** - * Deserialize the webhook payload into a PaymentNotificationRequest - * - * @returns Deserialized PaymentNotificationRequest object. - */ - public getPaymentNotificationRequest(): configurationWebhooks.PaymentNotificationRequest { - return configurationWebhooks.ObjectSerializer.deserialize(this.payload, "PaymentNotificationRequest"); - } - - /** - * Deserialize the webhook payload into a SweepConfigurationNotificationRequest - * - * @returns Deserialized SweepConfigurationNotificationRequest object. - */ - public getSweepConfigurationNotificationRequest(): configurationWebhooks.SweepConfigurationNotificationRequest { - return configurationWebhooks.ObjectSerializer.deserialize(this.payload, "SweepConfigurationNotificationRequest"); - } - -} \ No newline at end of file diff --git a/src/typings/configurationWebhooks/contactDetails.ts b/src/typings/configurationWebhooks/contactDetails.ts index 92a0652cf..a21154d32 100644 --- a/src/typings/configurationWebhooks/contactDetails.ts +++ b/src/typings/configurationWebhooks/contactDetails.ts @@ -7,57 +7,47 @@ * Do not edit this class manually. */ -import { Address } from "./address"; -import { Phone } from "./phone"; - +import { Address } from './address'; +import { Phone } from './phone'; export class ContactDetails { - "address": Address; + 'address': Address; /** * The email address of the account holder. */ - "email": string; - "phone": Phone; + 'email': string; + 'phone': Phone; /** * The URL of the account holder\'s website. */ - "webAddress"?: string; - - static readonly discriminator: string | undefined = undefined; + 'webAddress'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "address", "baseName": "address", - "type": "Address", - "format": "" + "type": "Address" }, { "name": "email", "baseName": "email", - "type": "string", - "format": "" + "type": "string" }, { "name": "phone", "baseName": "phone", - "type": "Phone", - "format": "" + "type": "Phone" }, { "name": "webAddress", "baseName": "webAddress", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ContactDetails.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/configurationWebhooks/deliveryAddress.ts b/src/typings/configurationWebhooks/deliveryAddress.ts index 19f293186..2e1bf880f 100644 --- a/src/typings/configurationWebhooks/deliveryAddress.ts +++ b/src/typings/configurationWebhooks/deliveryAddress.ts @@ -12,85 +12,73 @@ export class DeliveryAddress { /** * The name of the city. */ - "city"?: string; + 'city'?: string; /** * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don\'t know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ - "country": string; + 'country': string; /** * The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**. */ - "line1"?: string; + 'line1'?: string; /** * The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**. */ - "line2"?: string; + 'line2'?: string; /** * Additional information about the delivery address. */ - "line3"?: string; + 'line3'?: string; /** * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. */ - "postalCode"?: string; + 'postalCode'?: string; /** * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ - "stateOrProvince"?: string; + 'stateOrProvince'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "city", "baseName": "city", - "type": "string", - "format": "" + "type": "string" }, { "name": "country", "baseName": "country", - "type": "string", - "format": "" + "type": "string" }, { "name": "line1", "baseName": "line1", - "type": "string", - "format": "" + "type": "string" }, { "name": "line2", "baseName": "line2", - "type": "string", - "format": "" + "type": "string" }, { "name": "line3", "baseName": "line3", - "type": "string", - "format": "" + "type": "string" }, { "name": "postalCode", "baseName": "postalCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "stateOrProvince", "baseName": "stateOrProvince", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return DeliveryAddress.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/configurationWebhooks/deliveryContact.ts b/src/typings/configurationWebhooks/deliveryContact.ts index 1ecfb3d0c..f60009f14 100644 --- a/src/typings/configurationWebhooks/deliveryContact.ts +++ b/src/typings/configurationWebhooks/deliveryContact.ts @@ -7,85 +7,72 @@ * Do not edit this class manually. */ -import { DeliveryAddress } from "./deliveryAddress"; -import { Name } from "./name"; -import { PhoneNumber } from "./phoneNumber"; - +import { DeliveryAddress } from './deliveryAddress'; +import { Name } from './name'; +import { PhoneNumber } from './phoneNumber'; export class DeliveryContact { - "address": DeliveryAddress; + 'address': DeliveryAddress; /** * The company name of the contact. */ - "company"?: string; + 'company'?: string; /** * The email address of the contact. */ - "email"?: string; + 'email'?: string; /** * The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" */ - "fullPhoneNumber"?: string; - "name": Name; - "phoneNumber"?: PhoneNumber | null; + 'fullPhoneNumber'?: string; + 'name': Name; + 'phoneNumber'?: PhoneNumber | null; /** * The URL of the contact\'s website. */ - "webAddress"?: string; - - static readonly discriminator: string | undefined = undefined; + 'webAddress'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "address", "baseName": "address", - "type": "DeliveryAddress", - "format": "" + "type": "DeliveryAddress" }, { "name": "company", "baseName": "company", - "type": "string", - "format": "" + "type": "string" }, { "name": "email", "baseName": "email", - "type": "string", - "format": "" + "type": "string" }, { "name": "fullPhoneNumber", "baseName": "fullPhoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "Name", - "format": "" + "type": "Name" }, { "name": "phoneNumber", "baseName": "phoneNumber", - "type": "PhoneNumber | null", - "format": "" + "type": "PhoneNumber | null" }, { "name": "webAddress", "baseName": "webAddress", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return DeliveryContact.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/configurationWebhooks/device.ts b/src/typings/configurationWebhooks/device.ts index 1e96f4d4c..2498cbf25 100644 --- a/src/typings/configurationWebhooks/device.ts +++ b/src/typings/configurationWebhooks/device.ts @@ -12,35 +12,28 @@ export class Device { /** * The type of the device used for provisioning the network token. For example, **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc */ - "formFactor"?: string; + 'formFactor'?: string; /** * The operating system of the device used for provisioning the network token. */ - "osName"?: string; + 'osName'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "formFactor", "baseName": "formFactor", - "type": "string", - "format": "" + "type": "string" }, { "name": "osName", "baseName": "osName", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Device.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/configurationWebhooks/expiry.ts b/src/typings/configurationWebhooks/expiry.ts index 3fc719905..47087f1e0 100644 --- a/src/typings/configurationWebhooks/expiry.ts +++ b/src/typings/configurationWebhooks/expiry.ts @@ -12,35 +12,28 @@ export class Expiry { /** * The month in which the card will expire. */ - "month"?: string; + 'month'?: string; /** * The year in which the card will expire. */ - "year"?: string; + 'year'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "month", "baseName": "month", - "type": "string", - "format": "" + "type": "string" }, { "name": "year", "baseName": "year", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Expiry.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/configurationWebhooks/ibanAccountIdentification.ts b/src/typings/configurationWebhooks/ibanAccountIdentification.ts index 38868d983..583392194 100644 --- a/src/typings/configurationWebhooks/ibanAccountIdentification.ts +++ b/src/typings/configurationWebhooks/ibanAccountIdentification.ts @@ -12,36 +12,29 @@ export class IbanAccountIdentification { /** * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ - "iban": string; + 'iban': string; /** * **iban** */ - "type": IbanAccountIdentification.TypeEnum; + 'type': IbanAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "iban", "baseName": "iban", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "IbanAccountIdentification.TypeEnum", - "format": "" + "type": "IbanAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return IbanAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace IbanAccountIdentification { diff --git a/src/typings/configurationWebhooks/models.ts b/src/typings/configurationWebhooks/models.ts index c15ba2441..e3d2ce539 100644 --- a/src/typings/configurationWebhooks/models.ts +++ b/src/typings/configurationWebhooks/models.ts @@ -1,56 +1,342 @@ -export * from "./accountHolder" -export * from "./accountHolderCapability" -export * from "./accountHolderNotificationData" -export * from "./accountHolderNotificationRequest" -export * from "./accountSupportingEntityCapability" -export * from "./address" -export * from "./amount" -export * from "./authentication" -export * from "./balance" -export * from "./balanceAccount" -export * from "./balanceAccountNotificationData" -export * from "./balanceAccountNotificationRequest" -export * from "./balancePlatformNotificationResponse" -export * from "./bankAccountDetails" -export * from "./bulkAddress" -export * from "./capabilityProblem" -export * from "./capabilityProblemEntity" -export * from "./capabilityProblemEntityRecursive" -export * from "./capabilitySettings" -export * from "./card" -export * from "./cardConfiguration" -export * from "./cardOrderItem" -export * from "./cardOrderItemDeliveryStatus" -export * from "./cardOrderNotificationRequest" -export * from "./contactDetails" -export * from "./deliveryAddress" -export * from "./deliveryContact" -export * from "./device" -export * from "./expiry" -export * from "./ibanAccountIdentification" -export * from "./name" -export * from "./networkTokenNotificationDataV2" -export * from "./networkTokenNotificationRequest" -export * from "./paymentInstrument" -export * from "./paymentInstrumentAdditionalBankAccountIdentificationsInner" -export * from "./paymentInstrumentNotificationData" -export * from "./paymentNotificationRequest" -export * from "./phone" -export * from "./phoneNumber" -export * from "./platformPaymentConfiguration" -export * from "./remediatingAction" -export * from "./resource" -export * from "./sweepConfigurationNotificationData" -export * from "./sweepConfigurationNotificationRequest" -export * from "./sweepConfigurationV2" -export * from "./sweepCounterparty" -export * from "./sweepSchedule" -export * from "./tokenAuthentication" -export * from "./validationFacts" -export * from "./verificationDeadline" -export * from "./verificationError" -export * from "./verificationErrorRecursive" -export * from "./wallet" - -// serializing and deserializing typed objects -export * from "./objectSerializer" \ No newline at end of file +/* + * 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 * from './accountHolder'; +export * from './accountHolderCapability'; +export * from './accountHolderNotificationData'; +export * from './accountHolderNotificationRequest'; +export * from './accountSupportingEntityCapability'; +export * from './address'; +export * from './amount'; +export * from './authentication'; +export * from './balance'; +export * from './balanceAccount'; +export * from './balanceAccountNotificationData'; +export * from './balanceAccountNotificationRequest'; +export * from './balancePlatformNotificationResponse'; +export * from './bankAccountDetails'; +export * from './bulkAddress'; +export * from './capabilityProblem'; +export * from './capabilityProblemEntity'; +export * from './capabilityProblemEntityRecursive'; +export * from './capabilitySettings'; +export * from './card'; +export * from './cardConfiguration'; +export * from './cardOrderItem'; +export * from './cardOrderItemDeliveryStatus'; +export * from './cardOrderNotificationRequest'; +export * from './contactDetails'; +export * from './deliveryAddress'; +export * from './deliveryContact'; +export * from './device'; +export * from './expiry'; +export * from './ibanAccountIdentification'; +export * from './name'; +export * from './networkTokenNotificationDataV2'; +export * from './networkTokenNotificationRequest'; +export * from './networkTokenRequestor'; +export * from './paymentInstrument'; +export * from './paymentInstrumentNotificationData'; +export * from './paymentNotificationRequest'; +export * from './phone'; +export * from './phoneNumber'; +export * from './platformPaymentConfiguration'; +export * from './remediatingAction'; +export * from './resource'; +export * from './sweepConfigurationNotificationData'; +export * from './sweepConfigurationNotificationRequest'; +export * from './sweepConfigurationV2'; +export * from './sweepCounterparty'; +export * from './sweepSchedule'; +export * from './tokenAuthentication'; +export * from './validationFacts'; +export * from './verificationDeadline'; +export * from './verificationError'; +export * from './verificationErrorRecursive'; +export * from './wallet'; + + +import { AccountHolder } from './accountHolder'; +import { AccountHolderCapability } from './accountHolderCapability'; +import { AccountHolderNotificationData } from './accountHolderNotificationData'; +import { AccountHolderNotificationRequest } from './accountHolderNotificationRequest'; +import { AccountSupportingEntityCapability } from './accountSupportingEntityCapability'; +import { Address } from './address'; +import { Amount } from './amount'; +import { Authentication } from './authentication'; +import { Balance } from './balance'; +import { BalanceAccount } from './balanceAccount'; +import { BalanceAccountNotificationData } from './balanceAccountNotificationData'; +import { BalanceAccountNotificationRequest } from './balanceAccountNotificationRequest'; +import { BalancePlatformNotificationResponse } from './balancePlatformNotificationResponse'; +import { BankAccountDetails } from './bankAccountDetails'; +import { BulkAddress } from './bulkAddress'; +import { CapabilityProblem } from './capabilityProblem'; +import { CapabilityProblemEntity } from './capabilityProblemEntity'; +import { CapabilityProblemEntityRecursive } from './capabilityProblemEntityRecursive'; +import { CapabilitySettings } from './capabilitySettings'; +import { Card } from './card'; +import { CardConfiguration } from './cardConfiguration'; +import { CardOrderItem } from './cardOrderItem'; +import { CardOrderItemDeliveryStatus } from './cardOrderItemDeliveryStatus'; +import { CardOrderNotificationRequest } from './cardOrderNotificationRequest'; +import { ContactDetails } from './contactDetails'; +import { DeliveryAddress } from './deliveryAddress'; +import { DeliveryContact } from './deliveryContact'; +import { Device } from './device'; +import { Expiry } from './expiry'; +import { IbanAccountIdentification } from './ibanAccountIdentification'; +import { Name } from './name'; +import { NetworkTokenNotificationDataV2 } from './networkTokenNotificationDataV2'; +import { NetworkTokenNotificationRequest } from './networkTokenNotificationRequest'; +import { NetworkTokenRequestor } from './networkTokenRequestor'; +import { PaymentInstrument } from './paymentInstrument'; +import { PaymentInstrumentNotificationData } from './paymentInstrumentNotificationData'; +import { PaymentNotificationRequest } from './paymentNotificationRequest'; +import { Phone } from './phone'; +import { PhoneNumber } from './phoneNumber'; +import { PlatformPaymentConfiguration } from './platformPaymentConfiguration'; +import { RemediatingAction } from './remediatingAction'; +import { Resource } from './resource'; +import { SweepConfigurationNotificationData } from './sweepConfigurationNotificationData'; +import { SweepConfigurationNotificationRequest } from './sweepConfigurationNotificationRequest'; +import { SweepConfigurationV2 } from './sweepConfigurationV2'; +import { SweepCounterparty } from './sweepCounterparty'; +import { SweepSchedule } from './sweepSchedule'; +import { TokenAuthentication } from './tokenAuthentication'; +import { ValidationFacts } from './validationFacts'; +import { VerificationDeadline } from './verificationDeadline'; +import { VerificationError } from './verificationError'; +import { VerificationErrorRecursive } from './verificationErrorRecursive'; +import { Wallet } from './wallet'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "AccountHolder.StatusEnum": AccountHolder.StatusEnum, + "AccountHolderCapability.AllowedLevelEnum": AccountHolderCapability.AllowedLevelEnum, + "AccountHolderCapability.RequestedLevelEnum": AccountHolderCapability.RequestedLevelEnum, + "AccountHolderCapability.VerificationStatusEnum": AccountHolderCapability.VerificationStatusEnum, + "AccountHolderNotificationRequest.TypeEnum": AccountHolderNotificationRequest.TypeEnum, + "AccountSupportingEntityCapability.AllowedLevelEnum": AccountSupportingEntityCapability.AllowedLevelEnum, + "AccountSupportingEntityCapability.RequestedLevelEnum": AccountSupportingEntityCapability.RequestedLevelEnum, + "AccountSupportingEntityCapability.VerificationStatusEnum": AccountSupportingEntityCapability.VerificationStatusEnum, + "BalanceAccount.StatusEnum": BalanceAccount.StatusEnum, + "BalanceAccountNotificationRequest.TypeEnum": BalanceAccountNotificationRequest.TypeEnum, + "CapabilityProblemEntity.TypeEnum": CapabilityProblemEntity.TypeEnum, + "CapabilityProblemEntityRecursive.TypeEnum": CapabilityProblemEntityRecursive.TypeEnum, + "CapabilitySettings.FundingSourceEnum": CapabilitySettings.FundingSourceEnum, + "CapabilitySettings.IntervalEnum": CapabilitySettings.IntervalEnum, + "Card.FormFactorEnum": Card.FormFactorEnum, + "CardOrderItemDeliveryStatus.StatusEnum": CardOrderItemDeliveryStatus.StatusEnum, + "CardOrderNotificationRequest.TypeEnum": CardOrderNotificationRequest.TypeEnum, + "IbanAccountIdentification.TypeEnum": IbanAccountIdentification.TypeEnum, + "NetworkTokenNotificationRequest.TypeEnum": NetworkTokenNotificationRequest.TypeEnum, + "PaymentInstrument.StatusEnum": PaymentInstrument.StatusEnum, + "PaymentInstrument.StatusReasonEnum": PaymentInstrument.StatusReasonEnum, + "PaymentInstrument.TypeEnum": PaymentInstrument.TypeEnum, + "PaymentNotificationRequest.TypeEnum": PaymentNotificationRequest.TypeEnum, + "Phone.TypeEnum": Phone.TypeEnum, + "PhoneNumber.PhoneTypeEnum": PhoneNumber.PhoneTypeEnum, + "SweepConfigurationNotificationRequest.TypeEnum": SweepConfigurationNotificationRequest.TypeEnum, + "SweepConfigurationV2.CategoryEnum": SweepConfigurationV2.CategoryEnum, + "SweepConfigurationV2.PrioritiesEnum": SweepConfigurationV2.PrioritiesEnum, + "SweepConfigurationV2.ReasonEnum": SweepConfigurationV2.ReasonEnum, + "SweepConfigurationV2.StatusEnum": SweepConfigurationV2.StatusEnum, + "SweepConfigurationV2.TypeEnum": SweepConfigurationV2.TypeEnum, + "SweepSchedule.TypeEnum": SweepSchedule.TypeEnum, + "ValidationFacts.ResultEnum": ValidationFacts.ResultEnum, + "VerificationDeadline.CapabilitiesEnum": VerificationDeadline.CapabilitiesEnum, + "VerificationError.CapabilitiesEnum": VerificationError.CapabilitiesEnum, + "VerificationError.TypeEnum": VerificationError.TypeEnum, + "VerificationErrorRecursive.CapabilitiesEnum": VerificationErrorRecursive.CapabilitiesEnum, + "VerificationErrorRecursive.TypeEnum": VerificationErrorRecursive.TypeEnum, + "Wallet.RecommendationReasonsEnum": Wallet.RecommendationReasonsEnum, +} + +let typeMap: {[index: string]: any} = { + "AccountHolder": AccountHolder, + "AccountHolderCapability": AccountHolderCapability, + "AccountHolderNotificationData": AccountHolderNotificationData, + "AccountHolderNotificationRequest": AccountHolderNotificationRequest, + "AccountSupportingEntityCapability": AccountSupportingEntityCapability, + "Address": Address, + "Amount": Amount, + "Authentication": Authentication, + "Balance": Balance, + "BalanceAccount": BalanceAccount, + "BalanceAccountNotificationData": BalanceAccountNotificationData, + "BalanceAccountNotificationRequest": BalanceAccountNotificationRequest, + "BalancePlatformNotificationResponse": BalancePlatformNotificationResponse, + "BankAccountDetails": BankAccountDetails, + "BulkAddress": BulkAddress, + "CapabilityProblem": CapabilityProblem, + "CapabilityProblemEntity": CapabilityProblemEntity, + "CapabilityProblemEntityRecursive": CapabilityProblemEntityRecursive, + "CapabilitySettings": CapabilitySettings, + "Card": Card, + "CardConfiguration": CardConfiguration, + "CardOrderItem": CardOrderItem, + "CardOrderItemDeliveryStatus": CardOrderItemDeliveryStatus, + "CardOrderNotificationRequest": CardOrderNotificationRequest, + "ContactDetails": ContactDetails, + "DeliveryAddress": DeliveryAddress, + "DeliveryContact": DeliveryContact, + "Device": Device, + "Expiry": Expiry, + "IbanAccountIdentification": IbanAccountIdentification, + "Name": Name, + "NetworkTokenNotificationDataV2": NetworkTokenNotificationDataV2, + "NetworkTokenNotificationRequest": NetworkTokenNotificationRequest, + "NetworkTokenRequestor": NetworkTokenRequestor, + "PaymentInstrument": PaymentInstrument, + "PaymentInstrumentNotificationData": PaymentInstrumentNotificationData, + "PaymentNotificationRequest": PaymentNotificationRequest, + "Phone": Phone, + "PhoneNumber": PhoneNumber, + "PlatformPaymentConfiguration": PlatformPaymentConfiguration, + "RemediatingAction": RemediatingAction, + "Resource": Resource, + "SweepConfigurationNotificationData": SweepConfigurationNotificationData, + "SweepConfigurationNotificationRequest": SweepConfigurationNotificationRequest, + "SweepConfigurationV2": SweepConfigurationV2, + "SweepCounterparty": SweepCounterparty, + "SweepSchedule": SweepSchedule, + "TokenAuthentication": TokenAuthentication, + "ValidationFacts": ValidationFacts, + "VerificationDeadline": VerificationDeadline, + "VerificationError": VerificationError, + "VerificationErrorRecursive": VerificationErrorRecursive, + "Wallet": Wallet, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/configurationWebhooks/name.ts b/src/typings/configurationWebhooks/name.ts index fa2c333bd..9703dd067 100644 --- a/src/typings/configurationWebhooks/name.ts +++ b/src/typings/configurationWebhooks/name.ts @@ -12,35 +12,28 @@ export class Name { /** * The first name. */ - "firstName": string; + 'firstName': string; /** * The last name. */ - "lastName": string; + 'lastName': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "firstName", "baseName": "firstName", - "type": "string", - "format": "" + "type": "string" }, { "name": "lastName", "baseName": "lastName", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Name.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/configurationWebhooks/networkTokenNotificationDataV2.ts b/src/typings/configurationWebhooks/networkTokenNotificationDataV2.ts index 88a8327fc..62b6afa7b 100644 --- a/src/typings/configurationWebhooks/networkTokenNotificationDataV2.ts +++ b/src/typings/configurationWebhooks/networkTokenNotificationDataV2.ts @@ -7,128 +7,118 @@ * Do not edit this class manually. */ -import { TokenAuthentication } from "./tokenAuthentication"; -import { ValidationFacts } from "./validationFacts"; -import { Wallet } from "./wallet"; - +import { NetworkTokenRequestor } from './networkTokenRequestor'; +import { TokenAuthentication } from './tokenAuthentication'; +import { ValidationFacts } from './validationFacts'; +import { Wallet } from './wallet'; export class NetworkTokenNotificationDataV2 { - "authentication"?: TokenAuthentication | null; + 'authentication'?: TokenAuthentication | null; /** * Specifies whether the authentication process was triggered during token provisioning. */ - "authenticationApplied"?: boolean; + 'authenticationApplied'?: boolean; /** * The unique identifier of the balance platform. */ - "balancePlatform"?: string; + 'balancePlatform'?: string; /** * The decision about the network token provisioning. Possible values: **approved**, **declined**, **requiresAuthentication**. */ - "decision"?: string; + 'decision'?: string; /** * The unique identifier of the network token. */ - "id"?: string; + 'id'?: string; /** * The unique identifier of the payment instrument to which the network token is associated. */ - "paymentInstrumentId"?: string; + 'paymentInstrumentId'?: string; /** * The status of the network token. */ - "status"?: string; + 'status'?: string; /** * The last four digits of the network token. Use this value to help your user to identify their network token. */ - "tokenLastFour"?: string; + 'tokenLastFour'?: string; + 'tokenRequestor'?: NetworkTokenRequestor | null; /** * The type of network token. */ - "type"?: string; + 'type'?: string; /** * The rules used to validate the request for provisioning the network token. */ - "validationFacts"?: Array; - "wallet"?: Wallet | null; - - static readonly discriminator: string | undefined = undefined; + 'validationFacts'?: Array; + 'wallet'?: Wallet | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "authentication", "baseName": "authentication", - "type": "TokenAuthentication | null", - "format": "" + "type": "TokenAuthentication | null" }, { "name": "authenticationApplied", "baseName": "authenticationApplied", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "balancePlatform", "baseName": "balancePlatform", - "type": "string", - "format": "" + "type": "string" }, { "name": "decision", "baseName": "decision", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentInstrumentId", "baseName": "paymentInstrumentId", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "string", - "format": "" + "type": "string" }, { "name": "tokenLastFour", "baseName": "tokenLastFour", - "type": "string", - "format": "" + "type": "string" + }, + { + "name": "tokenRequestor", + "baseName": "tokenRequestor", + "type": "NetworkTokenRequestor | null" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" }, { "name": "validationFacts", "baseName": "validationFacts", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "wallet", "baseName": "wallet", - "type": "Wallet | null", - "format": "" + "type": "Wallet | null" } ]; static getAttributeTypeMap() { return NetworkTokenNotificationDataV2.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/configurationWebhooks/networkTokenNotificationRequest.ts b/src/typings/configurationWebhooks/networkTokenNotificationRequest.ts index f69dbd877..e35a900f8 100644 --- a/src/typings/configurationWebhooks/networkTokenNotificationRequest.ts +++ b/src/typings/configurationWebhooks/networkTokenNotificationRequest.ts @@ -7,65 +7,55 @@ * Do not edit this class manually. */ -import { NetworkTokenNotificationDataV2 } from "./networkTokenNotificationDataV2"; - +import { NetworkTokenNotificationDataV2 } from './networkTokenNotificationDataV2'; export class NetworkTokenNotificationRequest { - "data": NetworkTokenNotificationDataV2; + 'data': NetworkTokenNotificationDataV2; /** * The environment from which the webhook originated. Possible values: **test**, **live**. */ - "environment": string; + 'environment': string; /** * When the event was queued. */ - "timestamp"?: Date; + 'timestamp'?: Date; /** * The type of webhook. */ - "type": NetworkTokenNotificationRequest.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': NetworkTokenNotificationRequest.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "NetworkTokenNotificationDataV2", - "format": "" + "type": "NetworkTokenNotificationDataV2" }, { "name": "environment", "baseName": "environment", - "type": "string", - "format": "" + "type": "string" }, { "name": "timestamp", "baseName": "timestamp", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "type", "baseName": "type", - "type": "NetworkTokenNotificationRequest.TypeEnum", - "format": "" + "type": "NetworkTokenNotificationRequest.TypeEnum" } ]; static getAttributeTypeMap() { return NetworkTokenNotificationRequest.attributeTypeMap; } - - public constructor() { - } } export namespace NetworkTokenNotificationRequest { export enum TypeEnum { - BalancePlatformNetworkTokenCreated = 'balancePlatform.networkToken.created', - BalancePlatformNetworkTokenUpdated = 'balancePlatform.networkToken.updated' + Created = 'balancePlatform.networkToken.created', + Updated = 'balancePlatform.networkToken.updated' } } diff --git a/src/typings/configurationWebhooks/networkTokenRequestor.ts b/src/typings/configurationWebhooks/networkTokenRequestor.ts new file mode 100644 index 000000000..95e7a073b --- /dev/null +++ b/src/typings/configurationWebhooks/networkTokenRequestor.ts @@ -0,0 +1,39 @@ +/* + * 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 NetworkTokenRequestor { + /** + * The id of the network token requestor. + */ + 'id'?: string; + /** + * The name of the network token requestor. + */ + 'name'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return NetworkTokenRequestor.attributeTypeMap; + } +} + diff --git a/src/typings/configurationWebhooks/objectSerializer.ts b/src/typings/configurationWebhooks/objectSerializer.ts deleted file mode 100644 index 563605608..000000000 --- a/src/typings/configurationWebhooks/objectSerializer.ts +++ /dev/null @@ -1,489 +0,0 @@ -export * from "./models"; - -import { AccountHolder } from "./accountHolder"; -import { AccountHolderCapability } from "./accountHolderCapability"; -import { AccountHolderNotificationData } from "./accountHolderNotificationData"; -import { AccountHolderNotificationRequest } from "./accountHolderNotificationRequest"; -import { AccountSupportingEntityCapability } from "./accountSupportingEntityCapability"; -import { Address } from "./address"; -import { Amount } from "./amount"; -import { Authentication } from "./authentication"; -import { Balance } from "./balance"; -import { BalanceAccount } from "./balanceAccount"; -import { BalanceAccountNotificationData } from "./balanceAccountNotificationData"; -import { BalanceAccountNotificationRequest } from "./balanceAccountNotificationRequest"; -import { BalancePlatformNotificationResponse } from "./balancePlatformNotificationResponse"; -import { BankAccountDetails } from "./bankAccountDetails"; -import { BulkAddress } from "./bulkAddress"; -import { CapabilityProblem } from "./capabilityProblem"; -import { CapabilityProblemEntity } from "./capabilityProblemEntity"; -import { CapabilityProblemEntityRecursive } from "./capabilityProblemEntityRecursive"; -import { CapabilitySettings } from "./capabilitySettings"; -import { Card } from "./card"; -import { CardConfiguration } from "./cardConfiguration"; -import { CardOrderItem } from "./cardOrderItem"; -import { CardOrderItemDeliveryStatus } from "./cardOrderItemDeliveryStatus"; -import { CardOrderNotificationRequest } from "./cardOrderNotificationRequest"; -import { ContactDetails } from "./contactDetails"; -import { DeliveryAddress } from "./deliveryAddress"; -import { DeliveryContact } from "./deliveryContact"; -import { Device } from "./device"; -import { Expiry } from "./expiry"; -import { IbanAccountIdentification } from "./ibanAccountIdentification"; -import { Name } from "./name"; -import { NetworkTokenNotificationDataV2 } from "./networkTokenNotificationDataV2"; -import { NetworkTokenNotificationRequest } from "./networkTokenNotificationRequest"; -import { PaymentInstrument } from "./paymentInstrument"; -import { PaymentInstrumentAdditionalBankAccountIdentificationsInnerClass } from "./paymentInstrumentAdditionalBankAccountIdentificationsInner"; -import { PaymentInstrumentNotificationData } from "./paymentInstrumentNotificationData"; -import { PaymentNotificationRequest } from "./paymentNotificationRequest"; -import { Phone } from "./phone"; -import { PhoneNumber } from "./phoneNumber"; -import { PlatformPaymentConfiguration } from "./platformPaymentConfiguration"; -import { RemediatingAction } from "./remediatingAction"; -import { Resource } from "./resource"; -import { SweepConfigurationNotificationData } from "./sweepConfigurationNotificationData"; -import { SweepConfigurationNotificationRequest } from "./sweepConfigurationNotificationRequest"; -import { SweepConfigurationV2 } from "./sweepConfigurationV2"; -import { SweepCounterparty } from "./sweepCounterparty"; -import { SweepSchedule } from "./sweepSchedule"; -import { TokenAuthentication } from "./tokenAuthentication"; -import { ValidationFacts } from "./validationFacts"; -import { VerificationDeadline } from "./verificationDeadline"; -import { VerificationError } from "./verificationError"; -import { VerificationErrorRecursive } from "./verificationErrorRecursive"; -import { Wallet } from "./wallet"; - -/* tslint:disable:no-unused-variable */ -let primitives = [ - "string", - "boolean", - "double", - "integer", - "long", - "float", - "number", - "any" - ]; - -let enumsMap: Set = new Set([ - "AccountHolder.StatusEnum", - "AccountHolderCapability.AllowedLevelEnum", - "AccountHolderCapability.RequestedLevelEnum", - "AccountHolderCapability.VerificationStatusEnum", - "AccountHolderNotificationRequest.TypeEnum", - "AccountSupportingEntityCapability.AllowedLevelEnum", - "AccountSupportingEntityCapability.RequestedLevelEnum", - "AccountSupportingEntityCapability.VerificationStatusEnum", - "BalanceAccount.StatusEnum", - "BalanceAccountNotificationRequest.TypeEnum", - "CapabilityProblemEntity.TypeEnum", - "CapabilityProblemEntityRecursive.TypeEnum", - "CapabilitySettings.FundingSourceEnum", - "CapabilitySettings.IntervalEnum", - "Card.FormFactorEnum", - "CardOrderItemDeliveryStatus.StatusEnum", - "CardOrderNotificationRequest.TypeEnum", - "IbanAccountIdentification.TypeEnum", - "NetworkTokenNotificationRequest.TypeEnum", - "PaymentInstrument.StatusEnum", - "PaymentInstrument.StatusReasonEnum", - "PaymentInstrument.TypeEnum", - "PaymentInstrumentAdditionalBankAccountIdentificationsInner.TypeEnum", - "PaymentNotificationRequest.TypeEnum", - "Phone.TypeEnum", - "PhoneNumber.PhoneTypeEnum", - "SweepConfigurationNotificationRequest.TypeEnum", - "SweepConfigurationV2.CategoryEnum", - "SweepConfigurationV2.PrioritiesEnum", - "SweepConfigurationV2.ReasonEnum", - "SweepConfigurationV2.StatusEnum", - "SweepConfigurationV2.TypeEnum", - "SweepSchedule.TypeEnum", - "ValidationFacts.ResultEnum", - "VerificationDeadline.CapabilitiesEnum", - "VerificationError.CapabilitiesEnum", - "VerificationError.TypeEnum", - "VerificationErrorRecursive.CapabilitiesEnum", - "VerificationErrorRecursive.TypeEnum", - "Wallet.RecommendationReasonsEnum", -]); - -let typeMap: {[index: string]: any} = { - "AccountHolder": AccountHolder, - "AccountHolderCapability": AccountHolderCapability, - "AccountHolderNotificationData": AccountHolderNotificationData, - "AccountHolderNotificationRequest": AccountHolderNotificationRequest, - "AccountSupportingEntityCapability": AccountSupportingEntityCapability, - "Address": Address, - "Amount": Amount, - "Authentication": Authentication, - "Balance": Balance, - "BalanceAccount": BalanceAccount, - "BalanceAccountNotificationData": BalanceAccountNotificationData, - "BalanceAccountNotificationRequest": BalanceAccountNotificationRequest, - "BalancePlatformNotificationResponse": BalancePlatformNotificationResponse, - "BankAccountDetails": BankAccountDetails, - "BulkAddress": BulkAddress, - "CapabilityProblem": CapabilityProblem, - "CapabilityProblemEntity": CapabilityProblemEntity, - "CapabilityProblemEntityRecursive": CapabilityProblemEntityRecursive, - "CapabilitySettings": CapabilitySettings, - "Card": Card, - "CardConfiguration": CardConfiguration, - "CardOrderItem": CardOrderItem, - "CardOrderItemDeliveryStatus": CardOrderItemDeliveryStatus, - "CardOrderNotificationRequest": CardOrderNotificationRequest, - "ContactDetails": ContactDetails, - "DeliveryAddress": DeliveryAddress, - "DeliveryContact": DeliveryContact, - "Device": Device, - "Expiry": Expiry, - "IbanAccountIdentification": IbanAccountIdentification, - "Name": Name, - "NetworkTokenNotificationDataV2": NetworkTokenNotificationDataV2, - "NetworkTokenNotificationRequest": NetworkTokenNotificationRequest, - "PaymentInstrument": PaymentInstrument, - "PaymentInstrumentAdditionalBankAccountIdentificationsInner": PaymentInstrumentAdditionalBankAccountIdentificationsInnerClass, - "PaymentInstrumentNotificationData": PaymentInstrumentNotificationData, - "PaymentNotificationRequest": PaymentNotificationRequest, - "Phone": Phone, - "PhoneNumber": PhoneNumber, - "PlatformPaymentConfiguration": PlatformPaymentConfiguration, - "RemediatingAction": RemediatingAction, - "Resource": Resource, - "SweepConfigurationNotificationData": SweepConfigurationNotificationData, - "SweepConfigurationNotificationRequest": SweepConfigurationNotificationRequest, - "SweepConfigurationV2": SweepConfigurationV2, - "SweepCounterparty": SweepCounterparty, - "SweepSchedule": SweepSchedule, - "TokenAuthentication": TokenAuthentication, - "ValidationFacts": ValidationFacts, - "VerificationDeadline": VerificationDeadline, - "VerificationError": VerificationError, - "VerificationErrorRecursive": VerificationErrorRecursive, - "Wallet": Wallet, -} - -type MimeTypeDescriptor = { - type: string; - subtype: string; - subtypeTokens: string[]; -}; - -/** - * Every mime-type consists of a type, subtype, and optional parameters. - * The subtype can be composite, including information about the content format. - * For example: `application/json-patch+json`, `application/merge-patch+json`. - * - * This helper transforms a string mime-type into an internal representation. - * This simplifies the implementation of predicates that in turn define common rules for parsing or stringifying - * the payload. - */ -const parseMimeType = (mimeType: string): MimeTypeDescriptor => { - const [type = '', subtype = ''] = mimeType.split('/'); - return { - type, - subtype, - subtypeTokens: subtype.split('+'), - }; -}; - -type MimeTypePredicate = (mimeType: string) => boolean; - -// This factory creates a predicate function that checks a string mime-type against defined rules. -const mimeTypePredicateFactory = (predicate: (descriptor: MimeTypeDescriptor) => boolean): MimeTypePredicate => (mimeType) => predicate(parseMimeType(mimeType)); - -// Use this factory when you need to define a simple predicate based only on type and, if applicable, subtype. -const mimeTypeSimplePredicateFactory = (type: string, subtype?: string): MimeTypePredicate => mimeTypePredicateFactory((descriptor) => { - if (descriptor.type !== type) return false; - if (subtype != null && descriptor.subtype !== subtype) return false; - return true; -}); - -// Creating a set of named predicates that will help us determine how to handle different mime-types -const isTextLikeMimeType = mimeTypeSimplePredicateFactory('text'); -const isJsonMimeType = mimeTypeSimplePredicateFactory('application', 'json'); -const isJsonLikeMimeType = mimeTypePredicateFactory((descriptor) => descriptor.type === 'application' && descriptor.subtypeTokens.some((item) => item === 'json')); -const isOctetStreamMimeType = mimeTypeSimplePredicateFactory('application', 'octet-stream'); -const isFormUrlencodedMimeType = mimeTypeSimplePredicateFactory('application', 'x-www-form-urlencoded'); - -// Defining a list of mime-types in the order of prioritization for handling. -const supportedMimeTypePredicatesWithPriority: MimeTypePredicate[] = [ - isJsonMimeType, - isJsonLikeMimeType, - isTextLikeMimeType, - isOctetStreamMimeType, - isFormUrlencodedMimeType, -]; - -const nullableSuffix = " | null"; -const optionalSuffix = " | undefined"; -const arrayPrefix = "Array<"; -const arraySuffix = ">"; -const mapPrefix = "{ [key: string]: "; -const mapSuffix = "; }"; - -export class ObjectSerializer { - public static findCorrectType(data: any, expectedType: string) { - if (data == undefined) { - return expectedType; - } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { - return expectedType; - } else if (expectedType === "Date") { - return expectedType; - } else { - if (enumsMap.has(expectedType)) { - return expectedType; - } - - if (!typeMap[expectedType]) { - return expectedType; // w/e we don't know the type - } - - // Check the discriminator - let discriminatorProperty = typeMap[expectedType].discriminator; - if (discriminatorProperty == null) { - return expectedType; // the type does not have a discriminator. use it. - } else { - if (data[discriminatorProperty]) { - var discriminatorType = data[discriminatorProperty]; - let mapping = typeMap[expectedType].mapping; - if (mapping != undefined && mapping[discriminatorType]) { - return mapping[discriminatorType]; // use the type given in the discriminator - } else if(typeMap[discriminatorType]) { - return discriminatorType; - } else { - return expectedType; // discriminator did not map to a type - } - } else { - return expectedType; // discriminator was not present (or an empty string) - } - } - } - } - - /** - * Serializes a value into a plain JSON-compatible object based on its type. - * - * Supports primitives, arrays, maps, dates, enums, and classes defined in `typeMap`. - * Falls back to raw data if type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The value to serialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A JSON-compatible representation of `data`. - */ - public static serialize(data: any, type: string, format: string = ""): any { - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.serialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.serialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - if (format == "date") { - let month = data.getMonth()+1 - month = month < 10 ? "0" + month.toString() : month.toString() - let day = data.getDate(); - day = day < 10 ? "0" + day.toString() : day.toString(); - - return data.getFullYear() + "-" + month + "-" + day; - } else { - return data.toISOString(); - } - } else { - if (enumsMap.has(type)) { - return data; - } - if (!typeMap[type]) { // in case we dont know the type - return data; - } - - // Get the actual type of this object - type = this.findCorrectType(data, type); - - const clazz = typeMap[type]; - - // Safe check for getAttributeTypeMap - if (typeof clazz.getAttributeTypeMap !== "function") { - return { ...data }; // fallback: shallow copy - } - - // get the map for the correct type. - let attributeTypes = typeMap[type].getAttributeTypeMap(); - let instance: {[index: string]: any} = {}; - for (let attributeType of attributeTypes) { - instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format); - } - return instance; - } - } - - /** - * Deserializes a plain JSON-compatible object into a typed instance. - * - * Handles primitives, arrays, maps, dates, enums, and known classes from `typeMap`. - * Uses discriminators when available to resolve polymorphic types. - * Falls back to raw data if the type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The raw input to deserialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A deserialized instance or value of `data`. - */ - public static deserialize(data: any, type: string, format: string = ""): any { - // polymorphism may change the actual type. - type = ObjectSerializer.findCorrectType(data, type); - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.deserialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.deserialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - return new Date(data); - } else { - if (enumsMap.has(type)) {// is Enum - return data; - } - - if (!typeMap[type]) { // dont know the type - return data; - } - let instance = new typeMap[type](); - - // Safe check for getAttributeTypeMap - if (typeof typeMap[type].getAttributeTypeMap !== "function") { - Object.assign(instance, data); // fallback: shallow copy - return instance; - } - - let attributeTypes = typeMap[type].getAttributeTypeMap(); - for (let attributeType of attributeTypes) { - let value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format); - if (value !== undefined) { - instance[attributeType.name] = value; - } - } - return instance; - } - } - - - /** - * Normalize media type - * - * We currently do not handle any media types attributes, i.e. anything - * after a semicolon. All content is assumed to be UTF-8 compatible. - */ - public static normalizeMediaType(mediaType: string | undefined): string | undefined { - if (mediaType === undefined) { - return undefined; - } - return (mediaType.split(";")[0] ?? '').trim().toLowerCase(); - } - - /** - * From a list of possible media types, choose the one we can handle best. - * - * The order of the given media types does not have any impact on the choice - * made. - */ - public static getPreferredMediaType(mediaTypes: Array): string { - /** According to OAS 3 we should default to json */ - if (mediaTypes.length === 0) { - return "application/json"; - } - - const normalMediaTypes = mediaTypes.map(ObjectSerializer.normalizeMediaType); - - for (const predicate of supportedMimeTypePredicatesWithPriority) { - for (const mediaType of normalMediaTypes) { - if (mediaType != null && predicate(mediaType)) { - return mediaType; - } - } - } - - throw new Error("None of the given media types are supported: " + mediaTypes.join(", ")); - } - - /** - * Convert data to a string according the given media type - */ - public static stringify(data: any, mediaType: string): string { - if (isTextLikeMimeType(mediaType)) { - return String(data); - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.stringify(data); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify."); - } - - /** - * Parse data from a string according to the given media type - */ - public static parse(rawData: string, mediaType: string | undefined) { - if (mediaType === undefined) { - throw new Error("Cannot parse content. No Content-Type defined."); - } - - if (isTextLikeMimeType(mediaType)) { - return rawData; - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.parse(rawData); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse."); - } -} diff --git a/src/typings/configurationWebhooks/paymentInstrument.ts b/src/typings/configurationWebhooks/paymentInstrument.ts index f7415a93a..ca0a40ffc 100644 --- a/src/typings/configurationWebhooks/paymentInstrument.ts +++ b/src/typings/configurationWebhooks/paymentInstrument.ts @@ -7,10 +7,9 @@ * Do not edit this class manually. */ -import { BankAccountDetails } from "./bankAccountDetails"; -import { Card } from "./card"; -import { PaymentInstrumentAdditionalBankAccountIdentificationsInner } from "./paymentInstrumentAdditionalBankAccountIdentificationsInner"; - +import { BankAccountDetails } from './bankAccountDetails'; +import { Card } from './card'; +import { IbanAccountIdentification } from './ibanAccountIdentification'; export class PaymentInstrument { /** @@ -19,160 +18,140 @@ export class PaymentInstrument { * @deprecated since Configuration webhooks v2 * Please use `bankAccount` object instead */ - "additionalBankAccountIdentifications"?: Array; + 'additionalBankAccountIdentifications'?: Array; /** * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. */ - "balanceAccountId": string; - "bankAccount"?: BankAccountDetails | null; - "card"?: Card | null; + 'balanceAccountId': string; + 'bankAccount'?: BankAccountDetails | null; + 'card'?: Card | null; /** * Your description for the payment instrument, maximum 300 characters. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the payment instrument. */ - "id": string; + 'id': string; /** * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. */ - "issuingCountryCode": string; + 'issuingCountryCode': string; /** * The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. */ - "paymentInstrumentGroupId"?: string; + 'paymentInstrumentGroupId'?: string; /** * Your reference for the payment instrument, maximum 150 characters. */ - "reference"?: string; + 'reference'?: string; /** * The unique identifier of the payment instrument that replaced this payment instrument. */ - "replacedById"?: string; + 'replacedById'?: string; /** * The unique identifier of the payment instrument that is replaced by this payment instrument. */ - "replacementOfId"?: string; + 'replacementOfId'?: string; /** * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. */ - "status"?: PaymentInstrument.StatusEnum; + 'status'?: PaymentInstrument.StatusEnum; /** * The status comment provides additional information for the statusReason of the payment instrument. */ - "statusComment"?: string; + 'statusComment'?: string; /** * The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. */ - "statusReason"?: PaymentInstrument.StatusReasonEnum; + 'statusReason'?: PaymentInstrument.StatusReasonEnum; /** * The type of payment instrument. Possible values: **card**, **bankAccount**. */ - "type": PaymentInstrument.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': PaymentInstrument.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalBankAccountIdentifications", "baseName": "additionalBankAccountIdentifications", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "balanceAccountId", "baseName": "balanceAccountId", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankAccount", "baseName": "bankAccount", - "type": "BankAccountDetails | null", - "format": "" + "type": "BankAccountDetails | null" }, { "name": "card", "baseName": "card", - "type": "Card | null", - "format": "" + "type": "Card | null" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuingCountryCode", "baseName": "issuingCountryCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentInstrumentGroupId", "baseName": "paymentInstrumentGroupId", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "replacedById", "baseName": "replacedById", - "type": "string", - "format": "" + "type": "string" }, { "name": "replacementOfId", "baseName": "replacementOfId", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "PaymentInstrument.StatusEnum", - "format": "" + "type": "PaymentInstrument.StatusEnum" }, { "name": "statusComment", "baseName": "statusComment", - "type": "string", - "format": "" + "type": "string" }, { "name": "statusReason", "baseName": "statusReason", - "type": "PaymentInstrument.StatusReasonEnum", - "format": "" + "type": "PaymentInstrument.StatusReasonEnum" }, { "name": "type", "baseName": "type", - "type": "PaymentInstrument.TypeEnum", - "format": "" + "type": "PaymentInstrument.TypeEnum" } ]; static getAttributeTypeMap() { return PaymentInstrument.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentInstrument { diff --git a/src/typings/configurationWebhooks/paymentInstrumentAdditionalBankAccountIdentificationsInner.ts b/src/typings/configurationWebhooks/paymentInstrumentAdditionalBankAccountIdentificationsInner.ts deleted file mode 100644 index 43ff8faa0..000000000 --- a/src/typings/configurationWebhooks/paymentInstrumentAdditionalBankAccountIdentificationsInner.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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 { IbanAccountIdentification } from "./ibanAccountIdentification"; - - -/** - * @type PaymentInstrumentAdditionalBankAccountIdentificationsInner - * Type - * @export - */ -export type PaymentInstrumentAdditionalBankAccountIdentificationsInner = IbanAccountIdentification; - -/** -* @type PaymentInstrumentAdditionalBankAccountIdentificationsInnerClass -* @export -*/ -export class PaymentInstrumentAdditionalBankAccountIdentificationsInnerClass { - - static readonly discriminator: string = "type"; - - static readonly mapping: {[index: string]: string} | undefined = undefined; -} diff --git a/src/typings/configurationWebhooks/paymentInstrumentNotificationData.ts b/src/typings/configurationWebhooks/paymentInstrumentNotificationData.ts index 19bb7b93f..7f05d54e6 100644 --- a/src/typings/configurationWebhooks/paymentInstrumentNotificationData.ts +++ b/src/typings/configurationWebhooks/paymentInstrumentNotificationData.ts @@ -7,39 +7,31 @@ * Do not edit this class manually. */ -import { PaymentInstrument } from "./paymentInstrument"; - +import { PaymentInstrument } from './paymentInstrument'; export class PaymentInstrumentNotificationData { /** * The unique identifier of the balance platform. */ - "balancePlatform"?: string; - "paymentInstrument"?: PaymentInstrument | null; - - static readonly discriminator: string | undefined = undefined; + 'balancePlatform'?: string; + 'paymentInstrument'?: PaymentInstrument | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balancePlatform", "baseName": "balancePlatform", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentInstrument", "baseName": "paymentInstrument", - "type": "PaymentInstrument | null", - "format": "" + "type": "PaymentInstrument | null" } ]; static getAttributeTypeMap() { return PaymentInstrumentNotificationData.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/configurationWebhooks/paymentNotificationRequest.ts b/src/typings/configurationWebhooks/paymentNotificationRequest.ts index 5095f1ca4..ad49c3067 100644 --- a/src/typings/configurationWebhooks/paymentNotificationRequest.ts +++ b/src/typings/configurationWebhooks/paymentNotificationRequest.ts @@ -7,65 +7,55 @@ * Do not edit this class manually. */ -import { PaymentInstrumentNotificationData } from "./paymentInstrumentNotificationData"; - +import { PaymentInstrumentNotificationData } from './paymentInstrumentNotificationData'; export class PaymentNotificationRequest { - "data": PaymentInstrumentNotificationData; + 'data': PaymentInstrumentNotificationData; /** * The environment from which the webhook originated. Possible values: **test**, **live**. */ - "environment": string; + 'environment': string; /** * When the event was queued. */ - "timestamp"?: Date; + 'timestamp'?: Date; /** * Type of webhook. */ - "type": PaymentNotificationRequest.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': PaymentNotificationRequest.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "PaymentInstrumentNotificationData", - "format": "" + "type": "PaymentInstrumentNotificationData" }, { "name": "environment", "baseName": "environment", - "type": "string", - "format": "" + "type": "string" }, { "name": "timestamp", "baseName": "timestamp", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "type", "baseName": "type", - "type": "PaymentNotificationRequest.TypeEnum", - "format": "" + "type": "PaymentNotificationRequest.TypeEnum" } ]; static getAttributeTypeMap() { return PaymentNotificationRequest.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentNotificationRequest { export enum TypeEnum { - BalancePlatformPaymentInstrumentCreated = 'balancePlatform.paymentInstrument.created', - BalancePlatformPaymentInstrumentUpdated = 'balancePlatform.paymentInstrument.updated' + Created = 'balancePlatform.paymentInstrument.created', + Updated = 'balancePlatform.paymentInstrument.updated' } } diff --git a/src/typings/configurationWebhooks/phone.ts b/src/typings/configurationWebhooks/phone.ts index e5639d26d..7fb4c66b9 100644 --- a/src/typings/configurationWebhooks/phone.ts +++ b/src/typings/configurationWebhooks/phone.ts @@ -12,36 +12,29 @@ export class Phone { /** * The full phone number provided as a single string. For example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. */ - "number": string; + 'number': string; /** * Type of phone number. Possible values: **Landline**, **Mobile**. */ - "type": Phone.TypeEnum; + 'type': Phone.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "number", "baseName": "number", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "Phone.TypeEnum", - "format": "" + "type": "Phone.TypeEnum" } ]; static getAttributeTypeMap() { return Phone.attributeTypeMap; } - - public constructor() { - } } export namespace Phone { diff --git a/src/typings/configurationWebhooks/phoneNumber.ts b/src/typings/configurationWebhooks/phoneNumber.ts index 3e0b87c93..aa414d703 100644 --- a/src/typings/configurationWebhooks/phoneNumber.ts +++ b/src/typings/configurationWebhooks/phoneNumber.ts @@ -12,46 +12,38 @@ export class PhoneNumber { /** * The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or **NL**. */ - "phoneCountryCode"?: string; + 'phoneCountryCode'?: string; /** * The phone number. The inclusion of the phone number country code is not necessary. */ - "phoneNumber"?: string; + 'phoneNumber'?: string; /** * The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. */ - "phoneType"?: PhoneNumber.PhoneTypeEnum; + 'phoneType'?: PhoneNumber.PhoneTypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "phoneCountryCode", "baseName": "phoneCountryCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "phoneNumber", "baseName": "phoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "phoneType", "baseName": "phoneType", - "type": "PhoneNumber.PhoneTypeEnum", - "format": "" + "type": "PhoneNumber.PhoneTypeEnum" } ]; static getAttributeTypeMap() { return PhoneNumber.attributeTypeMap; } - - public constructor() { - } } export namespace PhoneNumber { diff --git a/src/typings/configurationWebhooks/platformPaymentConfiguration.ts b/src/typings/configurationWebhooks/platformPaymentConfiguration.ts index e0e8b6366..726ce025c 100644 --- a/src/typings/configurationWebhooks/platformPaymentConfiguration.ts +++ b/src/typings/configurationWebhooks/platformPaymentConfiguration.ts @@ -10,37 +10,30 @@ export class PlatformPaymentConfiguration { /** - * Specifies at what time a [sales day](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#sales-day) ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. + * Specifies at what time a sales day ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. */ - "salesDayClosingTime"?: string; + 'salesDayClosingTime'?: string; /** - * Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **1** to **20**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**. + * Specifies after how many business days the funds in a settlement batch are made available in this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. */ - "settlementDelayDays"?: number; + 'settlementDelayDays'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "salesDayClosingTime", "baseName": "salesDayClosingTime", - "type": "string", - "format": "time" + "type": "string" }, { "name": "settlementDelayDays", "baseName": "settlementDelayDays", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return PlatformPaymentConfiguration.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/configurationWebhooks/remediatingAction.ts b/src/typings/configurationWebhooks/remediatingAction.ts index 18c65df00..61360ba1d 100644 --- a/src/typings/configurationWebhooks/remediatingAction.ts +++ b/src/typings/configurationWebhooks/remediatingAction.ts @@ -12,35 +12,28 @@ export class RemediatingAction { /** * The remediating action code. */ - "code"?: string; + 'code'?: string; /** * A description of how you can resolve the verification error. */ - "message"?: string; + 'message'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "code", "baseName": "code", - "type": "string", - "format": "" + "type": "string" }, { "name": "message", "baseName": "message", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return RemediatingAction.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/configurationWebhooks/resource.ts b/src/typings/configurationWebhooks/resource.ts index c2649f92f..b1c7454d1 100644 --- a/src/typings/configurationWebhooks/resource.ts +++ b/src/typings/configurationWebhooks/resource.ts @@ -12,45 +12,37 @@ export class Resource { /** * The unique identifier of the balance platform. */ - "balancePlatform"?: string; + 'balancePlatform'?: string; /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. */ - "creationDate"?: Date; + 'creationDate'?: Date; /** * The ID of the resource. */ - "id"?: string; + 'id'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balancePlatform", "baseName": "balancePlatform", - "type": "string", - "format": "" + "type": "string" }, { "name": "creationDate", "baseName": "creationDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Resource.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/configurationWebhooks/sweepConfigurationNotificationData.ts b/src/typings/configurationWebhooks/sweepConfigurationNotificationData.ts index db3196ccb..32c6d0ceb 100644 --- a/src/typings/configurationWebhooks/sweepConfigurationNotificationData.ts +++ b/src/typings/configurationWebhooks/sweepConfigurationNotificationData.ts @@ -7,49 +7,40 @@ * Do not edit this class manually. */ -import { SweepConfigurationV2 } from "./sweepConfigurationV2"; - +import { SweepConfigurationV2 } from './sweepConfigurationV2'; export class SweepConfigurationNotificationData { /** * The unique identifier of the balance account for which the sweep was configured. */ - "accountId"?: string; + 'accountId'?: string; /** * The unique identifier of the balance platform. */ - "balancePlatform"?: string; - "sweep"?: SweepConfigurationV2 | null; - - static readonly discriminator: string | undefined = undefined; + 'balancePlatform'?: string; + 'sweep'?: SweepConfigurationV2 | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountId", "baseName": "accountId", - "type": "string", - "format": "" + "type": "string" }, { "name": "balancePlatform", "baseName": "balancePlatform", - "type": "string", - "format": "" + "type": "string" }, { "name": "sweep", "baseName": "sweep", - "type": "SweepConfigurationV2 | null", - "format": "" + "type": "SweepConfigurationV2 | null" } ]; static getAttributeTypeMap() { return SweepConfigurationNotificationData.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/configurationWebhooks/sweepConfigurationNotificationRequest.ts b/src/typings/configurationWebhooks/sweepConfigurationNotificationRequest.ts index 32058644c..b622d2e7e 100644 --- a/src/typings/configurationWebhooks/sweepConfigurationNotificationRequest.ts +++ b/src/typings/configurationWebhooks/sweepConfigurationNotificationRequest.ts @@ -7,66 +7,56 @@ * Do not edit this class manually. */ -import { SweepConfigurationNotificationData } from "./sweepConfigurationNotificationData"; - +import { SweepConfigurationNotificationData } from './sweepConfigurationNotificationData'; export class SweepConfigurationNotificationRequest { - "data": SweepConfigurationNotificationData; + 'data': SweepConfigurationNotificationData; /** * The environment from which the webhook originated. Possible values: **test**, **live**. */ - "environment": string; + 'environment': string; /** * When the event was queued. */ - "timestamp"?: Date; + 'timestamp'?: Date; /** * Type of webhook. */ - "type": SweepConfigurationNotificationRequest.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': SweepConfigurationNotificationRequest.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "SweepConfigurationNotificationData", - "format": "" + "type": "SweepConfigurationNotificationData" }, { "name": "environment", "baseName": "environment", - "type": "string", - "format": "" + "type": "string" }, { "name": "timestamp", "baseName": "timestamp", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "type", "baseName": "type", - "type": "SweepConfigurationNotificationRequest.TypeEnum", - "format": "" + "type": "SweepConfigurationNotificationRequest.TypeEnum" } ]; static getAttributeTypeMap() { return SweepConfigurationNotificationRequest.attributeTypeMap; } - - public constructor() { - } } export namespace SweepConfigurationNotificationRequest { export enum TypeEnum { - BalancePlatformBalanceAccountSweepCreated = 'balancePlatform.balanceAccountSweep.created', - BalancePlatformBalanceAccountSweepUpdated = 'balancePlatform.balanceAccountSweep.updated', - BalancePlatformBalanceAccountSweepDeleted = 'balancePlatform.balanceAccountSweep.deleted' + Created = 'balancePlatform.balanceAccountSweep.created', + Updated = 'balancePlatform.balanceAccountSweep.updated', + Deleted = 'balancePlatform.balanceAccountSweep.deleted' } } diff --git a/src/typings/configurationWebhooks/sweepConfigurationV2.ts b/src/typings/configurationWebhooks/sweepConfigurationV2.ts index 13176e4c8..29d198f2d 100644 --- a/src/typings/configurationWebhooks/sweepConfigurationV2.ts +++ b/src/typings/configurationWebhooks/sweepConfigurationV2.ts @@ -7,170 +7,148 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { SweepCounterparty } from "./sweepCounterparty"; -import { SweepSchedule } from "./sweepSchedule"; - +import { Amount } from './amount'; +import { SweepCounterparty } from './sweepCounterparty'; +import { SweepSchedule } from './sweepSchedule'; export class SweepConfigurationV2 { /** * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. */ - "category"?: SweepConfigurationV2.CategoryEnum; - "counterparty": SweepCounterparty; + 'category'?: SweepConfigurationV2.CategoryEnum; + 'counterparty': SweepCounterparty; /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). */ - "currency": string; + 'currency': string; /** * The message that will be used in the sweep transfer\'s description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the sweep. */ - "id": string; + '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 in [SEPA countries](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; + 'priorities'?: Array; /** * The reason for disabling the sweep. */ - "reason"?: SweepConfigurationV2.ReasonEnum; + 'reason'?: SweepConfigurationV2.ReasonEnum; /** * The human readable reason for disabling the sweep. */ - "reasonDetail"?: string; + 'reasonDetail'?: string; /** * Your reference for the sweep configuration. */ - "reference"?: string; + 'reference'?: string; /** * The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. */ - "referenceForBeneficiary"?: string; - "schedule": SweepSchedule; + 'referenceForBeneficiary'?: string; + 'schedule': SweepSchedule; /** * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. */ - "status"?: SweepConfigurationV2.StatusEnum; - "sweepAmount"?: Amount | null; - "targetAmount"?: Amount | null; - "triggerAmount"?: Amount | null; + 'status'?: SweepConfigurationV2.StatusEnum; + 'sweepAmount'?: Amount | null; + 'targetAmount'?: Amount | null; + 'triggerAmount'?: Amount | null; /** * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. */ - "type"?: SweepConfigurationV2.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type'?: SweepConfigurationV2.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "category", "baseName": "category", - "type": "SweepConfigurationV2.CategoryEnum", - "format": "" + "type": "SweepConfigurationV2.CategoryEnum" }, { "name": "counterparty", "baseName": "counterparty", - "type": "SweepCounterparty", - "format": "" + "type": "SweepCounterparty" }, { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "priorities", "baseName": "priorities", - "type": "SweepConfigurationV2.PrioritiesEnum", - "format": "" + "type": "Array" }, { "name": "reason", "baseName": "reason", - "type": "SweepConfigurationV2.ReasonEnum", - "format": "" + "type": "SweepConfigurationV2.ReasonEnum" }, { "name": "reasonDetail", "baseName": "reasonDetail", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "referenceForBeneficiary", "baseName": "referenceForBeneficiary", - "type": "string", - "format": "" + "type": "string" }, { "name": "schedule", "baseName": "schedule", - "type": "SweepSchedule", - "format": "" + "type": "SweepSchedule" }, { "name": "status", "baseName": "status", - "type": "SweepConfigurationV2.StatusEnum", - "format": "" + "type": "SweepConfigurationV2.StatusEnum" }, { "name": "sweepAmount", "baseName": "sweepAmount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "targetAmount", "baseName": "targetAmount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "triggerAmount", "baseName": "triggerAmount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "type", "baseName": "type", - "type": "SweepConfigurationV2.TypeEnum", - "format": "" + "type": "SweepConfigurationV2.TypeEnum" } ]; static getAttributeTypeMap() { return SweepConfigurationV2.attributeTypeMap; } - - public constructor() { - } } export namespace SweepConfigurationV2 { diff --git a/src/typings/configurationWebhooks/sweepCounterparty.ts b/src/typings/configurationWebhooks/sweepCounterparty.ts index 25e37179b..5d372627a 100644 --- a/src/typings/configurationWebhooks/sweepCounterparty.ts +++ b/src/typings/configurationWebhooks/sweepCounterparty.ts @@ -12,45 +12,37 @@ export class SweepCounterparty { /** * The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). > If you are updating the counterparty from a transfer instrument to a balance account, set `transferInstrumentId` to **null**. */ - "balanceAccountId"?: string; + 'balanceAccountId'?: string; /** * The merchant account that will be the source of funds. You can only use this parameter with sweeps of `type` **pull** and if you are processing payments with Adyen. */ - "merchantAccount"?: string; + 'merchantAccount'?: string; /** * The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.> If you are updating the counterparty from a balance account to a transfer instrument, set `balanceAccountId` to **null**. */ - "transferInstrumentId"?: string; + 'transferInstrumentId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balanceAccountId", "baseName": "balanceAccountId", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "transferInstrumentId", "baseName": "transferInstrumentId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return SweepCounterparty.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/configurationWebhooks/sweepSchedule.ts b/src/typings/configurationWebhooks/sweepSchedule.ts index bd488d9a8..3aa2fe3fd 100644 --- a/src/typings/configurationWebhooks/sweepSchedule.ts +++ b/src/typings/configurationWebhooks/sweepSchedule.ts @@ -12,36 +12,29 @@ export class SweepSchedule { /** * A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: *****, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. Required when `type` is **cron**. */ - "cronExpression"?: string; + 'cronExpression'?: string; /** * The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached. */ - "type": SweepSchedule.TypeEnum; + 'type': SweepSchedule.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "cronExpression", "baseName": "cronExpression", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "SweepSchedule.TypeEnum", - "format": "" + "type": "SweepSchedule.TypeEnum" } ]; static getAttributeTypeMap() { return SweepSchedule.attributeTypeMap; } - - public constructor() { - } } export namespace SweepSchedule { diff --git a/src/typings/configurationWebhooks/tokenAuthentication.ts b/src/typings/configurationWebhooks/tokenAuthentication.ts index 526fb90e4..0326df4e5 100644 --- a/src/typings/configurationWebhooks/tokenAuthentication.ts +++ b/src/typings/configurationWebhooks/tokenAuthentication.ts @@ -12,35 +12,28 @@ export class TokenAuthentication { /** * The method used to complete the authentication process. Possible values: **sms_OTP**, **email_OTP**. */ - "method"?: string; + 'method'?: string; /** * The result of the authentication process. */ - "result"?: string; + 'result'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "method", "baseName": "method", - "type": "string", - "format": "" + "type": "string" }, { "name": "result", "baseName": "result", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TokenAuthentication.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/configurationWebhooks/validationFacts.ts b/src/typings/configurationWebhooks/validationFacts.ts index de6801ae9..9dda04503 100644 --- a/src/typings/configurationWebhooks/validationFacts.ts +++ b/src/typings/configurationWebhooks/validationFacts.ts @@ -12,46 +12,38 @@ export class ValidationFacts { /** * The reason for the `result` of the validations. This field is only sent for `validationFacts.type` **walletValidation**, when `validationFacts.result` is **invalid**. */ - "reasons"?: Array; + 'reasons'?: Array; /** * The evaluation result of the validation facts. Possible values: **valid**, **invalid**, **notValidated**, **notApplicable**. */ - "result"?: ValidationFacts.ResultEnum; + 'result'?: ValidationFacts.ResultEnum; /** * The type of the validation fact. */ - "type"?: string; + 'type'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "reasons", "baseName": "reasons", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "result", "baseName": "result", - "type": "ValidationFacts.ResultEnum", - "format": "" + "type": "ValidationFacts.ResultEnum" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ValidationFacts.attributeTypeMap; } - - public constructor() { - } } export namespace ValidationFacts { diff --git a/src/typings/configurationWebhooks/verificationDeadline.ts b/src/typings/configurationWebhooks/verificationDeadline.ts index f3040c497..169e3f154 100644 --- a/src/typings/configurationWebhooks/verificationDeadline.ts +++ b/src/typings/configurationWebhooks/verificationDeadline.ts @@ -12,46 +12,38 @@ export class VerificationDeadline { /** * The names of the capabilities to be disallowed. */ - "capabilities": Array; + 'capabilities': Array; /** * The unique identifiers of the bank account(s) that the deadline applies to */ - "entityIds"?: Array; + 'entityIds'?: Array; /** * The date that verification is due by before capabilities are disallowed. */ - "expiresAt": Date; + 'expiresAt': Date; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "capabilities", "baseName": "capabilities", - "type": "VerificationDeadline.CapabilitiesEnum", - "format": "" + "type": "Array" }, { "name": "entityIds", "baseName": "entityIds", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "expiresAt", "baseName": "expiresAt", - "type": "Date", - "format": "date-time" + "type": "Date" } ]; static getAttributeTypeMap() { return VerificationDeadline.attributeTypeMap; } - - public constructor() { - } } export namespace VerificationDeadline { diff --git a/src/typings/configurationWebhooks/verificationError.ts b/src/typings/configurationWebhooks/verificationError.ts index 86dbd518c..6295a0e3e 100644 --- a/src/typings/configurationWebhooks/verificationError.ts +++ b/src/typings/configurationWebhooks/verificationError.ts @@ -7,84 +7,72 @@ * Do not edit this class manually. */ -import { RemediatingAction } from "./remediatingAction"; -import { VerificationErrorRecursive } from "./verificationErrorRecursive"; - +import { RemediatingAction } from './remediatingAction'; +import { VerificationErrorRecursive } from './verificationErrorRecursive'; export class VerificationError { /** * Contains the capabilities that the verification error applies to. */ - "capabilities"?: Array; + 'capabilities'?: Array; /** * The verification error code. */ - "code"?: string; + 'code'?: string; /** * A description of the error. */ - "message"?: string; + 'message'?: string; /** * Contains the actions that you can take to resolve the verification error. */ - "remediatingActions"?: Array; + 'remediatingActions'?: Array; /** * Contains more granular information about the verification error. */ - "subErrors"?: Array; + 'subErrors'?: Array; /** * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** */ - "type"?: VerificationError.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type'?: VerificationError.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "capabilities", "baseName": "capabilities", - "type": "VerificationError.CapabilitiesEnum", - "format": "" + "type": "Array" }, { "name": "code", "baseName": "code", - "type": "string", - "format": "" + "type": "string" }, { "name": "message", "baseName": "message", - "type": "string", - "format": "" + "type": "string" }, { "name": "remediatingActions", "baseName": "remediatingActions", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "subErrors", "baseName": "subErrors", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "type", "baseName": "type", - "type": "VerificationError.TypeEnum", - "format": "" + "type": "VerificationError.TypeEnum" } ]; static getAttributeTypeMap() { return VerificationError.attributeTypeMap; } - - public constructor() { - } } export namespace VerificationError { diff --git a/src/typings/configurationWebhooks/verificationErrorRecursive.ts b/src/typings/configurationWebhooks/verificationErrorRecursive.ts index 9fc1f4b97..79f870449 100644 --- a/src/typings/configurationWebhooks/verificationErrorRecursive.ts +++ b/src/typings/configurationWebhooks/verificationErrorRecursive.ts @@ -7,73 +7,62 @@ * Do not edit this class manually. */ -import { RemediatingAction } from "./remediatingAction"; - +import { RemediatingAction } from './remediatingAction'; export class VerificationErrorRecursive { /** * Contains the capabilities that the verification error applies to. */ - "capabilities"?: Array; + 'capabilities'?: Array; /** * The verification error code. */ - "code"?: string; + 'code'?: string; /** * A description of the error. */ - "message"?: string; + 'message'?: string; /** * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** */ - "type"?: VerificationErrorRecursive.TypeEnum; + 'type'?: VerificationErrorRecursive.TypeEnum; /** * Contains the actions that you can take to resolve the verification error. */ - "remediatingActions"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'remediatingActions'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "capabilities", "baseName": "capabilities", - "type": "VerificationErrorRecursive.CapabilitiesEnum", - "format": "" + "type": "Array" }, { "name": "code", "baseName": "code", - "type": "string", - "format": "" + "type": "string" }, { "name": "message", "baseName": "message", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "VerificationErrorRecursive.TypeEnum", - "format": "" + "type": "VerificationErrorRecursive.TypeEnum" }, { "name": "remediatingActions", "baseName": "remediatingActions", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return VerificationErrorRecursive.attributeTypeMap; } - - public constructor() { - } } export namespace VerificationErrorRecursive { diff --git a/src/typings/configurationWebhooks/wallet.ts b/src/typings/configurationWebhooks/wallet.ts index 1a36d90e4..b73c6236b 100644 --- a/src/typings/configurationWebhooks/wallet.ts +++ b/src/typings/configurationWebhooks/wallet.ts @@ -7,80 +7,71 @@ * Do not edit this class manually. */ -import { Device } from "./device"; - +import { Device } from './device'; export class Wallet { /** * The confidence score of the wallet account, calculated by the wallet provider. A high score means that account is considered trustworthy. A low score means that the account is considered suspicious. Possible values: **1** to **5**. */ - "accountScore"?: string; - "device"?: Device | null; + 'accountScore'?: string; + 'device'?: Device | null; /** * The confidence score of the device, calculated by the wallet provider. A high score means that device is considered trustworthy. A low score means that the device is considered suspicious. Possible values: **1** to **5**. */ - "deviceScore"?: string; + 'deviceScore'?: string; /** * The method used for provisioning the network token. Possible values: **push**, **manual**. */ - "provisioningMethod"?: string; + 'provisioningMethod'?: string; /** - * A list of risk indicators triggered at the time of provisioning the network token. Possible values: * **accountTooNewSinceLaunch** * **accountTooNew** * **accountCardTooNew** * **accountRecentlyChanged** * **suspiciousActivity** * **inactiveAccount** * **hasSuspendedTokens** * **deviceRecentlyLost** * **tooManyRecentAttempts** * **tooManyRecentTokens** * **tooManyDifferentCardholders** * **lowDeviceScore** * **lowAccountScore** * **outSideHomeTerritory** * **unableToAssess** * **accountHighRisk** * **lowPhoneNumberScore** * **unknown** + * A list of risk indicators triggered at the time of provisioning the network token. Some example values of risk indicators are: * **accountTooNewSinceLaunch** * **tooManyRecentAttempts** * **lowDeviceScore** * **lowAccountScore** */ - "recommendationReasons"?: Array; + 'recommendationReasons'?: Array; /** * The type of wallet that the network token is associated with. Possible values: **applePay**, **googlePay**, **garminPay**. + * + * @deprecated since Configuration webhooks v2 + * Use name of the `tokenRequestor` instead. */ - "type"?: string; - - static readonly discriminator: string | undefined = undefined; + 'type'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountScore", "baseName": "accountScore", - "type": "string", - "format": "" + "type": "string" }, { "name": "device", "baseName": "device", - "type": "Device | null", - "format": "" + "type": "Device | null" }, { "name": "deviceScore", "baseName": "deviceScore", - "type": "string", - "format": "" + "type": "string" }, { "name": "provisioningMethod", "baseName": "provisioningMethod", - "type": "string", - "format": "" + "type": "string" }, { "name": "recommendationReasons", "baseName": "recommendationReasons", - "type": "Wallet.RecommendationReasonsEnum", - "format": "" + "type": "Array" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Wallet.attributeTypeMap; } - - public constructor() { - } } export namespace Wallet { @@ -90,18 +81,41 @@ export namespace Wallet { AccountRecentlyChanged = 'accountRecentlyChanged', AccountTooNew = 'accountTooNew', AccountTooNewSinceLaunch = 'accountTooNewSinceLaunch', + CardholderPanAssociatedToAccountWithinThresholdDays = 'cardholderPanAssociatedToAccountWithinThresholdDays', + ChangesMadeToAccountDataWithinThresholdDays = 'changesMadeToAccountDataWithinThresholdDays', + DeviceProvisioningLocationOutsideOfCardholdersWalletAccountHomeCountry = 'deviceProvisioningLocationOutsideOfCardholdersWalletAccountHomeCountry', DeviceRecentlyLost = 'deviceRecentlyLost', + EncryptedPaymentInstrumentDataIsBeingPushedByTheIssuerToTheSameDeviceThatIssuerApplicationAuthenticatedButWithSuccessfulUpfrontAuthentication = 'encryptedPaymentInstrumentDataIsBeingPushedByTheIssuerToTheSameDeviceThatIssuerApplicationAuthenticatedButWithSuccessfulUpfrontAuthentication', + EncryptedPaymentInstrumentDataIsBeingPushedByTheIssuerToTheSameDeviceThatIssuerApplicationAuthenticatedButWithoutAnyUpfrontAuthentication = 'encryptedPaymentInstrumentDataIsBeingPushedByTheIssuerToTheSameDeviceThatIssuerApplicationAuthenticatedButWithoutAnyUpfrontAuthentication', + EncryptedPaymentInstrumentDataIsPushedToADifferentDeviceThanTheOneThatIssuerApplicationAuthenticated = 'encryptedPaymentInstrumentDataIsPushedToADifferentDeviceThanTheOneThatIssuerApplicationAuthenticated', + EncryptedPaymentInstrumentDataIsPushedToADifferentUserThanTheCardHolder = 'encryptedPaymentInstrumentDataIsPushedToADifferentUserThanTheCardHolder', HasSuspendedTokens = 'hasSuspendedTokens', InactiveAccount = 'inactiveAccount', + IssuerDeferredIdvDecision = 'issuerDeferredIDVDecision', + IssuerEncryptedPaymentInstrumentDataExpired = 'issuerEncryptedPaymentInstrumentDataExpired', LowAccountScore = 'lowAccountScore', LowDeviceScore = 'lowDeviceScore', LowPhoneNumberScore = 'lowPhoneNumberScore', + NumberOfActiveTokensGreaterThanThreshold = 'numberOfActiveTokensGreaterThanThreshold', + NumberOfActiveTokensOnAllDevicesIsGreaterThanThreshold = 'numberOfActiveTokensOnAllDevicesIsGreaterThanThreshold', + NumberOfDaysSinceDeviceWasLastReportedLostIsLessThanThresholdDays = 'numberOfDaysSinceDeviceWasLastReportedLostIsLessThanThresholdDays', + NumberOfDevicesWithSameUseridWithTokenIsGreaterThanThreshold = 'numberOfDevicesWithSameUseridWithTokenIsGreaterThanThreshold', + NumberOfTransactionsInLast12MonthsLessThanThresholdNumber = 'numberOfTransactionsInLast12MonthsLessThanThresholdNumber', OutSideHomeTerritory = 'outSideHomeTerritory', + SuspendedCardsInTheWalletAccountIsGreaterThanThreshold = 'suspendedCardsInTheWALLETAccountIsGreaterThanThreshold', SuspiciousActivity = 'suspiciousActivity', + TheNumberOfProvisioningAttemptsAcrossAllCardsOnThisDeviceInTheLast24HoursExceedsTheThreshold = 'theNumberOfProvisioningAttemptsAcrossAllCardsOnThisDeviceInTheLast24HoursExceedsTheThreshold', + TheWalletAccountIntoWhichTheCardIsBeingProvisionedContainDistinctNamesGreaterThanThreshold = 'theWALLETAccountIntoWhichTheCardIsBeingProvisionedContainDistinctNamesGreaterThanThreshold', + ThisAccountHasNotHadActivityWithinThresholdPeriod = 'thisAccountHasNotHadActivityWithinThresholdPeriod', TooManyDifferentCardholders = 'tooManyDifferentCardholders', TooManyRecentAttempts = 'tooManyRecentAttempts', TooManyRecentTokens = 'tooManyRecentTokens', UnableToAssess = 'unableToAssess', - Unknown = 'unknown' + Unknown = 'unknown', + UserAccountWasCreatedWithinThresholdDays = 'userAccountWasCreatedWithinThresholdDays', + UserDeviceReceivingEncryptedPaymentInstrumentDataIsDifferentThanTheOneThatIsProvisioningTheToken = 'userDeviceReceivingEncryptedPaymentInstrumentDataIsDifferentThanTheOneThatIsProvisioningTheToken', + UsersAccountOnDeviceLessThanThresholdDays = 'usersAccountOnDeviceLessThanThresholdDays', + WalletAccountCreatedWithinThresholdDays = 'walletAccountCreatedWithinThresholdDays', + WalletAccountHolderNameOnFileDoesNotMatchCardholderEnteredName = 'walletAccountHolderNameOnFileDoesNotMatchCardholderEnteredName' } } diff --git a/src/typings/dataProtection/models.ts b/src/typings/dataProtection/models.ts index 0f22a8d95..a7706f034 100644 --- a/src/typings/dataProtection/models.ts +++ b/src/typings/dataProtection/models.ts @@ -1,6 +1,154 @@ -export * from "./serviceError" -export * from "./subjectErasureByPspReferenceRequest" -export * from "./subjectErasureResponse" +/* + * The version of the OpenAPI document: v1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ -// serializing and deserializing typed objects -export * from "./objectSerializer" \ No newline at end of file + +export * from './serviceError'; +export * from './subjectErasureByPspReferenceRequest'; +export * from './subjectErasureResponse'; + + +import { ServiceError } from './serviceError'; +import { SubjectErasureByPspReferenceRequest } from './subjectErasureByPspReferenceRequest'; +import { SubjectErasureResponse } from './subjectErasureResponse'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "SubjectErasureResponse.ResultEnum": SubjectErasureResponse.ResultEnum, +} + +let typeMap: {[index: string]: any} = { + "ServiceError": ServiceError, + "SubjectErasureByPspReferenceRequest": SubjectErasureByPspReferenceRequest, + "SubjectErasureResponse": SubjectErasureResponse, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/dataProtection/objectSerializer.ts b/src/typings/dataProtection/objectSerializer.ts deleted file mode 100644 index 9e3f9a592..000000000 --- a/src/typings/dataProtection/objectSerializer.ts +++ /dev/null @@ -1,350 +0,0 @@ -export * from "./models"; - -import { ServiceError } from "./serviceError"; -import { SubjectErasureByPspReferenceRequest } from "./subjectErasureByPspReferenceRequest"; -import { SubjectErasureResponse } from "./subjectErasureResponse"; - -/* tslint:disable:no-unused-variable */ -let primitives = [ - "string", - "boolean", - "double", - "integer", - "long", - "float", - "number", - "any" - ]; - -let enumsMap: Set = new Set([ - "SubjectErasureResponse.ResultEnum", -]); - -let typeMap: {[index: string]: any} = { - "ServiceError": ServiceError, - "SubjectErasureByPspReferenceRequest": SubjectErasureByPspReferenceRequest, - "SubjectErasureResponse": SubjectErasureResponse, -} - -type MimeTypeDescriptor = { - type: string; - subtype: string; - subtypeTokens: string[]; -}; - -/** - * Every mime-type consists of a type, subtype, and optional parameters. - * The subtype can be composite, including information about the content format. - * For example: `application/json-patch+json`, `application/merge-patch+json`. - * - * This helper transforms a string mime-type into an internal representation. - * This simplifies the implementation of predicates that in turn define common rules for parsing or stringifying - * the payload. - */ -const parseMimeType = (mimeType: string): MimeTypeDescriptor => { - const [type = '', subtype = ''] = mimeType.split('/'); - return { - type, - subtype, - subtypeTokens: subtype.split('+'), - }; -}; - -type MimeTypePredicate = (mimeType: string) => boolean; - -// This factory creates a predicate function that checks a string mime-type against defined rules. -const mimeTypePredicateFactory = (predicate: (descriptor: MimeTypeDescriptor) => boolean): MimeTypePredicate => (mimeType) => predicate(parseMimeType(mimeType)); - -// Use this factory when you need to define a simple predicate based only on type and, if applicable, subtype. -const mimeTypeSimplePredicateFactory = (type: string, subtype?: string): MimeTypePredicate => mimeTypePredicateFactory((descriptor) => { - if (descriptor.type !== type) return false; - if (subtype != null && descriptor.subtype !== subtype) return false; - return true; -}); - -// Creating a set of named predicates that will help us determine how to handle different mime-types -const isTextLikeMimeType = mimeTypeSimplePredicateFactory('text'); -const isJsonMimeType = mimeTypeSimplePredicateFactory('application', 'json'); -const isJsonLikeMimeType = mimeTypePredicateFactory((descriptor) => descriptor.type === 'application' && descriptor.subtypeTokens.some((item) => item === 'json')); -const isOctetStreamMimeType = mimeTypeSimplePredicateFactory('application', 'octet-stream'); -const isFormUrlencodedMimeType = mimeTypeSimplePredicateFactory('application', 'x-www-form-urlencoded'); - -// Defining a list of mime-types in the order of prioritization for handling. -const supportedMimeTypePredicatesWithPriority: MimeTypePredicate[] = [ - isJsonMimeType, - isJsonLikeMimeType, - isTextLikeMimeType, - isOctetStreamMimeType, - isFormUrlencodedMimeType, -]; - -const nullableSuffix = " | null"; -const optionalSuffix = " | undefined"; -const arrayPrefix = "Array<"; -const arraySuffix = ">"; -const mapPrefix = "{ [key: string]: "; -const mapSuffix = "; }"; - -export class ObjectSerializer { - public static findCorrectType(data: any, expectedType: string) { - if (data == undefined) { - return expectedType; - } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { - return expectedType; - } else if (expectedType === "Date") { - return expectedType; - } else { - if (enumsMap.has(expectedType)) { - return expectedType; - } - - if (!typeMap[expectedType]) { - return expectedType; // w/e we don't know the type - } - - // Check the discriminator - let discriminatorProperty = typeMap[expectedType].discriminator; - if (discriminatorProperty == null) { - return expectedType; // the type does not have a discriminator. use it. - } else { - if (data[discriminatorProperty]) { - var discriminatorType = data[discriminatorProperty]; - let mapping = typeMap[expectedType].mapping; - if (mapping != undefined && mapping[discriminatorType]) { - return mapping[discriminatorType]; // use the type given in the discriminator - } else if(typeMap[discriminatorType]) { - return discriminatorType; - } else { - return expectedType; // discriminator did not map to a type - } - } else { - return expectedType; // discriminator was not present (or an empty string) - } - } - } - } - - /** - * Serializes a value into a plain JSON-compatible object based on its type. - * - * Supports primitives, arrays, maps, dates, enums, and classes defined in `typeMap`. - * Falls back to raw data if type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The value to serialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A JSON-compatible representation of `data`. - */ - public static serialize(data: any, type: string, format: string = ""): any { - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.serialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.serialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - if (format == "date") { - let month = data.getMonth()+1 - month = month < 10 ? "0" + month.toString() : month.toString() - let day = data.getDate(); - day = day < 10 ? "0" + day.toString() : day.toString(); - - return data.getFullYear() + "-" + month + "-" + day; - } else { - return data.toISOString(); - } - } else { - if (enumsMap.has(type)) { - return data; - } - if (!typeMap[type]) { // in case we dont know the type - return data; - } - - // Get the actual type of this object - type = this.findCorrectType(data, type); - - const clazz = typeMap[type]; - - // Safe check for getAttributeTypeMap - if (typeof clazz.getAttributeTypeMap !== "function") { - return { ...data }; // fallback: shallow copy - } - - // get the map for the correct type. - let attributeTypes = typeMap[type].getAttributeTypeMap(); - let instance: {[index: string]: any} = {}; - for (let attributeType of attributeTypes) { - instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format); - } - return instance; - } - } - - /** - * Deserializes a plain JSON-compatible object into a typed instance. - * - * Handles primitives, arrays, maps, dates, enums, and known classes from `typeMap`. - * Uses discriminators when available to resolve polymorphic types. - * Falls back to raw data if the type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The raw input to deserialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A deserialized instance or value of `data`. - */ - public static deserialize(data: any, type: string, format: string = ""): any { - // polymorphism may change the actual type. - type = ObjectSerializer.findCorrectType(data, type); - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.deserialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.deserialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - return new Date(data); - } else { - if (enumsMap.has(type)) {// is Enum - return data; - } - - if (!typeMap[type]) { // dont know the type - return data; - } - let instance = new typeMap[type](); - - // Safe check for getAttributeTypeMap - if (typeof typeMap[type].getAttributeTypeMap !== "function") { - Object.assign(instance, data); // fallback: shallow copy - return instance; - } - - let attributeTypes = typeMap[type].getAttributeTypeMap(); - for (let attributeType of attributeTypes) { - let value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format); - if (value !== undefined) { - instance[attributeType.name] = value; - } - } - return instance; - } - } - - - /** - * Normalize media type - * - * We currently do not handle any media types attributes, i.e. anything - * after a semicolon. All content is assumed to be UTF-8 compatible. - */ - public static normalizeMediaType(mediaType: string | undefined): string | undefined { - if (mediaType === undefined) { - return undefined; - } - return (mediaType.split(";")[0] ?? '').trim().toLowerCase(); - } - - /** - * From a list of possible media types, choose the one we can handle best. - * - * The order of the given media types does not have any impact on the choice - * made. - */ - public static getPreferredMediaType(mediaTypes: Array): string { - /** According to OAS 3 we should default to json */ - if (mediaTypes.length === 0) { - return "application/json"; - } - - const normalMediaTypes = mediaTypes.map(ObjectSerializer.normalizeMediaType); - - for (const predicate of supportedMimeTypePredicatesWithPriority) { - for (const mediaType of normalMediaTypes) { - if (mediaType != null && predicate(mediaType)) { - return mediaType; - } - } - } - - throw new Error("None of the given media types are supported: " + mediaTypes.join(", ")); - } - - /** - * Convert data to a string according the given media type - */ - public static stringify(data: any, mediaType: string): string { - if (isTextLikeMimeType(mediaType)) { - return String(data); - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.stringify(data); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify."); - } - - /** - * Parse data from a string according to the given media type - */ - public static parse(rawData: string, mediaType: string | undefined) { - if (mediaType === undefined) { - throw new Error("Cannot parse content. No Content-Type defined."); - } - - if (isTextLikeMimeType(mediaType)) { - return rawData; - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.parse(rawData); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse."); - } -} diff --git a/src/typings/dataProtection/serviceError.ts b/src/typings/dataProtection/serviceError.ts index 674eb5c4c..f372a4a4e 100644 --- a/src/typings/dataProtection/serviceError.ts +++ b/src/typings/dataProtection/serviceError.ts @@ -12,65 +12,55 @@ export class ServiceError { /** * The error code mapped to the error message. */ - "errorCode"?: string; + 'errorCode'?: string; /** * The category of the error. */ - "errorType"?: string; + 'errorType'?: string; /** * A short explanation of the issue. */ - "message"?: string; + 'message'?: string; /** * The PSP reference of the payment. */ - "pspReference"?: string; + 'pspReference'?: string; /** * The HTTP response status. */ - "status"?: number; + 'status'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "errorCode", "baseName": "errorCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "errorType", "baseName": "errorType", - "type": "string", - "format": "" + "type": "string" }, { "name": "message", "baseName": "message", - "type": "string", - "format": "" + "type": "string" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return ServiceError.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/dataProtection/subjectErasureByPspReferenceRequest.ts b/src/typings/dataProtection/subjectErasureByPspReferenceRequest.ts index f18c7fc3b..2632f9b4e 100644 --- a/src/typings/dataProtection/subjectErasureByPspReferenceRequest.ts +++ b/src/typings/dataProtection/subjectErasureByPspReferenceRequest.ts @@ -12,45 +12,37 @@ export class SubjectErasureByPspReferenceRequest { /** * Set this to **true** if you want to delete shopper-related data, even if the shopper has an existing recurring transaction. This only deletes the shopper-related data for the specific payment, but does not cancel the existing recurring transaction. */ - "forceErasure"?: boolean; + 'forceErasure'?: boolean; /** * Your merchant account */ - "merchantAccount"?: string; + 'merchantAccount'?: string; /** * The PSP reference of the payment. We will delete all shopper-related data for this payment. */ - "pspReference"?: string; + 'pspReference'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "forceErasure", "baseName": "forceErasure", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return SubjectErasureByPspReferenceRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/dataProtection/subjectErasureResponse.ts b/src/typings/dataProtection/subjectErasureResponse.ts index 10471ad4d..218c54038 100644 --- a/src/typings/dataProtection/subjectErasureResponse.ts +++ b/src/typings/dataProtection/subjectErasureResponse.ts @@ -12,26 +12,20 @@ export class SubjectErasureResponse { /** * The result of this operation. */ - "result"?: SubjectErasureResponse.ResultEnum; + 'result'?: SubjectErasureResponse.ResultEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "result", "baseName": "result", - "type": "SubjectErasureResponse.ResultEnum", - "format": "" + "type": "SubjectErasureResponse.ResultEnum" } ]; static getAttributeTypeMap() { return SubjectErasureResponse.attributeTypeMap; } - - public constructor() { - } } export namespace SubjectErasureResponse { diff --git a/src/typings/disputeWebhooks/amount.ts b/src/typings/disputeWebhooks/amount.ts index 4e1aea8a5..a52ca2bdb 100644 --- a/src/typings/disputeWebhooks/amount.ts +++ b/src/typings/disputeWebhooks/amount.ts @@ -12,35 +12,28 @@ export class Amount { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ - "currency": string; + 'currency': string; /** * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ - "value": number; + 'value': number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "number", - "format": "int64" + "type": "number" } ]; static getAttributeTypeMap() { return Amount.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/disputeWebhooks/balancePlatformNotificationResponse.ts b/src/typings/disputeWebhooks/balancePlatformNotificationResponse.ts index 18122d640..74120e5ab 100644 --- a/src/typings/disputeWebhooks/balancePlatformNotificationResponse.ts +++ b/src/typings/disputeWebhooks/balancePlatformNotificationResponse.ts @@ -12,25 +12,19 @@ export class BalancePlatformNotificationResponse { /** * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). */ - "notificationResponse"?: string; + 'notificationResponse'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "notificationResponse", "baseName": "notificationResponse", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return BalancePlatformNotificationResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/disputeWebhooks/disputeEventNotification.ts b/src/typings/disputeWebhooks/disputeEventNotification.ts index a0c18ecd6..15d6d93eb 100644 --- a/src/typings/disputeWebhooks/disputeEventNotification.ts +++ b/src/typings/disputeWebhooks/disputeEventNotification.ts @@ -7,120 +7,104 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class DisputeEventNotification { /** * The unique Acquirer Reference Number (arn) generated by the card scheme for each capture. You can use the arn to trace the transaction through its lifecycle. */ - "arn"?: string; + 'arn'?: string; /** * The unique identifier of the balance platform. */ - "balancePlatform"?: string; + 'balancePlatform'?: string; /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. */ - "creationDate"?: Date; + 'creationDate'?: Date; /** * Contains information about the dispute. */ - "description"?: string; - "disputedAmount"?: Amount | null; + 'description'?: string; + 'disputedAmount'?: Amount | null; /** * The ID of the resource. */ - "id"?: string; + 'id'?: string; /** * The current status of the dispute. */ - "status"?: string; + 'status'?: string; /** * Additional information about the status of the dispute, when available. */ - "statusDetail"?: string; + 'statusDetail'?: string; /** * The unique reference of the transaction for which the dispute is requested. */ - "transactionId"?: string; + 'transactionId'?: string; /** * The type of dispute raised for the transaction. */ - "type"?: DisputeEventNotification.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type'?: DisputeEventNotification.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "arn", "baseName": "arn", - "type": "string", - "format": "" + "type": "string" }, { "name": "balancePlatform", "baseName": "balancePlatform", - "type": "string", - "format": "" + "type": "string" }, { "name": "creationDate", "baseName": "creationDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "disputedAmount", "baseName": "disputedAmount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "string", - "format": "" + "type": "string" }, { "name": "statusDetail", "baseName": "statusDetail", - "type": "string", - "format": "" + "type": "string" }, { "name": "transactionId", "baseName": "transactionId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "DisputeEventNotification.TypeEnum", - "format": "" + "type": "DisputeEventNotification.TypeEnum" } ]; static getAttributeTypeMap() { return DisputeEventNotification.attributeTypeMap; } - - public constructor() { - } } export namespace DisputeEventNotification { diff --git a/src/typings/disputeWebhooks/disputeNotificationRequest.ts b/src/typings/disputeWebhooks/disputeNotificationRequest.ts index 0238c05d5..a39c7ec70 100644 --- a/src/typings/disputeWebhooks/disputeNotificationRequest.ts +++ b/src/typings/disputeWebhooks/disputeNotificationRequest.ts @@ -7,45 +7,37 @@ * Do not edit this class manually. */ -import { DisputeEventNotification } from "./disputeEventNotification"; - +import { DisputeEventNotification } from './disputeEventNotification'; export class DisputeNotificationRequest { - "data": DisputeEventNotification; + 'data': DisputeEventNotification; /** * Type of webhook. */ - "type": DisputeNotificationRequest.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': DisputeNotificationRequest.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "DisputeEventNotification", - "format": "" + "type": "DisputeEventNotification" }, { "name": "type", "baseName": "type", - "type": "DisputeNotificationRequest.TypeEnum", - "format": "" + "type": "DisputeNotificationRequest.TypeEnum" } ]; static getAttributeTypeMap() { return DisputeNotificationRequest.attributeTypeMap; } - - public constructor() { - } } export namespace DisputeNotificationRequest { export enum TypeEnum { - BalancePlatformDisputeCreated = 'balancePlatform.dispute.created', - BalancePlatformDisputeUpdated = 'balancePlatform.dispute.updated' + Created = 'balancePlatform.dispute.created', + Updated = 'balancePlatform.dispute.updated' } } diff --git a/src/typings/disputeWebhooks/disputeWebhooksHandler.ts b/src/typings/disputeWebhooks/disputeWebhooksHandler.ts deleted file mode 100644 index 86f38284a..000000000 --- a/src/typings/disputeWebhooks/disputeWebhooksHandler.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* - * The version of the OpenAPI document: v1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit this class manually. - */ - -import { disputeWebhooks } from ".."; - -/** - * Union type for all supported webhook requests. - * Allows generic handling of configuration-related webhook events. - */ -export type GenericWebhook = - | disputeWebhooks.DisputeNotificationRequest; - -/** - * Handler for processing DisputeWebhooks. - * - * This class provides functionality to deserialize the payload of DisputeWebhooks events. - */ -export class DisputeWebhooksHandler { - - private readonly payload: Record; - - public constructor(jsonPayload: string) { - this.payload = JSON.parse(jsonPayload); - } - - /** - * This method checks the type of the webhook payload and returns the appropriate deserialized object. - * - * @returns A deserialized object of type GenericWebhook. - * @throws Error if the type is not recognized. - */ - public getGenericWebhook(): GenericWebhook { - - const type = this.payload["type"]; - - if(Object.values(disputeWebhooks.DisputeNotificationRequest.TypeEnum).includes(type)) { - return this.getDisputeNotificationRequest(); - } - - throw new Error("Could not parse the json payload: " + this.payload); - - } - - /** - * Deserialize the webhook payload into a DisputeNotificationRequest - * - * @returns Deserialized DisputeNotificationRequest object. - */ - public getDisputeNotificationRequest(): disputeWebhooks.DisputeNotificationRequest { - return disputeWebhooks.ObjectSerializer.deserialize(this.payload, "DisputeNotificationRequest"); - } - -} \ No newline at end of file diff --git a/src/typings/disputeWebhooks/models.ts b/src/typings/disputeWebhooks/models.ts index a6f5b596e..def86d6e4 100644 --- a/src/typings/disputeWebhooks/models.ts +++ b/src/typings/disputeWebhooks/models.ts @@ -1,7 +1,158 @@ -export * from "./amount" -export * from "./balancePlatformNotificationResponse" -export * from "./disputeEventNotification" -export * from "./disputeNotificationRequest" +/* + * The version of the OpenAPI document: v1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ -// serializing and deserializing typed objects -export * from "./objectSerializer" \ No newline at end of file + +export * from './amount'; +export * from './balancePlatformNotificationResponse'; +export * from './disputeEventNotification'; +export * from './disputeNotificationRequest'; + + +import { Amount } from './amount'; +import { BalancePlatformNotificationResponse } from './balancePlatformNotificationResponse'; +import { DisputeEventNotification } from './disputeEventNotification'; +import { DisputeNotificationRequest } from './disputeNotificationRequest'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "DisputeEventNotification.TypeEnum": DisputeEventNotification.TypeEnum, + "DisputeNotificationRequest.TypeEnum": DisputeNotificationRequest.TypeEnum, +} + +let typeMap: {[index: string]: any} = { + "Amount": Amount, + "BalancePlatformNotificationResponse": BalancePlatformNotificationResponse, + "DisputeEventNotification": DisputeEventNotification, + "DisputeNotificationRequest": DisputeNotificationRequest, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/disputeWebhooks/objectSerializer.ts b/src/typings/disputeWebhooks/objectSerializer.ts deleted file mode 100644 index 614c0046a..000000000 --- a/src/typings/disputeWebhooks/objectSerializer.ts +++ /dev/null @@ -1,353 +0,0 @@ -export * from "./models"; - -import { Amount } from "./amount"; -import { BalancePlatformNotificationResponse } from "./balancePlatformNotificationResponse"; -import { DisputeEventNotification } from "./disputeEventNotification"; -import { DisputeNotificationRequest } from "./disputeNotificationRequest"; - -/* tslint:disable:no-unused-variable */ -let primitives = [ - "string", - "boolean", - "double", - "integer", - "long", - "float", - "number", - "any" - ]; - -let enumsMap: Set = new Set([ - "DisputeEventNotification.TypeEnum", - "DisputeNotificationRequest.TypeEnum", -]); - -let typeMap: {[index: string]: any} = { - "Amount": Amount, - "BalancePlatformNotificationResponse": BalancePlatformNotificationResponse, - "DisputeEventNotification": DisputeEventNotification, - "DisputeNotificationRequest": DisputeNotificationRequest, -} - -type MimeTypeDescriptor = { - type: string; - subtype: string; - subtypeTokens: string[]; -}; - -/** - * Every mime-type consists of a type, subtype, and optional parameters. - * The subtype can be composite, including information about the content format. - * For example: `application/json-patch+json`, `application/merge-patch+json`. - * - * This helper transforms a string mime-type into an internal representation. - * This simplifies the implementation of predicates that in turn define common rules for parsing or stringifying - * the payload. - */ -const parseMimeType = (mimeType: string): MimeTypeDescriptor => { - const [type = '', subtype = ''] = mimeType.split('/'); - return { - type, - subtype, - subtypeTokens: subtype.split('+'), - }; -}; - -type MimeTypePredicate = (mimeType: string) => boolean; - -// This factory creates a predicate function that checks a string mime-type against defined rules. -const mimeTypePredicateFactory = (predicate: (descriptor: MimeTypeDescriptor) => boolean): MimeTypePredicate => (mimeType) => predicate(parseMimeType(mimeType)); - -// Use this factory when you need to define a simple predicate based only on type and, if applicable, subtype. -const mimeTypeSimplePredicateFactory = (type: string, subtype?: string): MimeTypePredicate => mimeTypePredicateFactory((descriptor) => { - if (descriptor.type !== type) return false; - if (subtype != null && descriptor.subtype !== subtype) return false; - return true; -}); - -// Creating a set of named predicates that will help us determine how to handle different mime-types -const isTextLikeMimeType = mimeTypeSimplePredicateFactory('text'); -const isJsonMimeType = mimeTypeSimplePredicateFactory('application', 'json'); -const isJsonLikeMimeType = mimeTypePredicateFactory((descriptor) => descriptor.type === 'application' && descriptor.subtypeTokens.some((item) => item === 'json')); -const isOctetStreamMimeType = mimeTypeSimplePredicateFactory('application', 'octet-stream'); -const isFormUrlencodedMimeType = mimeTypeSimplePredicateFactory('application', 'x-www-form-urlencoded'); - -// Defining a list of mime-types in the order of prioritization for handling. -const supportedMimeTypePredicatesWithPriority: MimeTypePredicate[] = [ - isJsonMimeType, - isJsonLikeMimeType, - isTextLikeMimeType, - isOctetStreamMimeType, - isFormUrlencodedMimeType, -]; - -const nullableSuffix = " | null"; -const optionalSuffix = " | undefined"; -const arrayPrefix = "Array<"; -const arraySuffix = ">"; -const mapPrefix = "{ [key: string]: "; -const mapSuffix = "; }"; - -export class ObjectSerializer { - public static findCorrectType(data: any, expectedType: string) { - if (data == undefined) { - return expectedType; - } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { - return expectedType; - } else if (expectedType === "Date") { - return expectedType; - } else { - if (enumsMap.has(expectedType)) { - return expectedType; - } - - if (!typeMap[expectedType]) { - return expectedType; // w/e we don't know the type - } - - // Check the discriminator - let discriminatorProperty = typeMap[expectedType].discriminator; - if (discriminatorProperty == null) { - return expectedType; // the type does not have a discriminator. use it. - } else { - if (data[discriminatorProperty]) { - var discriminatorType = data[discriminatorProperty]; - let mapping = typeMap[expectedType].mapping; - if (mapping != undefined && mapping[discriminatorType]) { - return mapping[discriminatorType]; // use the type given in the discriminator - } else if(typeMap[discriminatorType]) { - return discriminatorType; - } else { - return expectedType; // discriminator did not map to a type - } - } else { - return expectedType; // discriminator was not present (or an empty string) - } - } - } - } - - /** - * Serializes a value into a plain JSON-compatible object based on its type. - * - * Supports primitives, arrays, maps, dates, enums, and classes defined in `typeMap`. - * Falls back to raw data if type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The value to serialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A JSON-compatible representation of `data`. - */ - public static serialize(data: any, type: string, format: string = ""): any { - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.serialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.serialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - if (format == "date") { - let month = data.getMonth()+1 - month = month < 10 ? "0" + month.toString() : month.toString() - let day = data.getDate(); - day = day < 10 ? "0" + day.toString() : day.toString(); - - return data.getFullYear() + "-" + month + "-" + day; - } else { - return data.toISOString(); - } - } else { - if (enumsMap.has(type)) { - return data; - } - if (!typeMap[type]) { // in case we dont know the type - return data; - } - - // Get the actual type of this object - type = this.findCorrectType(data, type); - - const clazz = typeMap[type]; - - // Safe check for getAttributeTypeMap - if (typeof clazz.getAttributeTypeMap !== "function") { - return { ...data }; // fallback: shallow copy - } - - // get the map for the correct type. - let attributeTypes = typeMap[type].getAttributeTypeMap(); - let instance: {[index: string]: any} = {}; - for (let attributeType of attributeTypes) { - instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format); - } - return instance; - } - } - - /** - * Deserializes a plain JSON-compatible object into a typed instance. - * - * Handles primitives, arrays, maps, dates, enums, and known classes from `typeMap`. - * Uses discriminators when available to resolve polymorphic types. - * Falls back to raw data if the type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The raw input to deserialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A deserialized instance or value of `data`. - */ - public static deserialize(data: any, type: string, format: string = ""): any { - // polymorphism may change the actual type. - type = ObjectSerializer.findCorrectType(data, type); - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.deserialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.deserialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - return new Date(data); - } else { - if (enumsMap.has(type)) {// is Enum - return data; - } - - if (!typeMap[type]) { // dont know the type - return data; - } - let instance = new typeMap[type](); - - // Safe check for getAttributeTypeMap - if (typeof typeMap[type].getAttributeTypeMap !== "function") { - Object.assign(instance, data); // fallback: shallow copy - return instance; - } - - let attributeTypes = typeMap[type].getAttributeTypeMap(); - for (let attributeType of attributeTypes) { - let value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format); - if (value !== undefined) { - instance[attributeType.name] = value; - } - } - return instance; - } - } - - - /** - * Normalize media type - * - * We currently do not handle any media types attributes, i.e. anything - * after a semicolon. All content is assumed to be UTF-8 compatible. - */ - public static normalizeMediaType(mediaType: string | undefined): string | undefined { - if (mediaType === undefined) { - return undefined; - } - return (mediaType.split(";")[0] ?? '').trim().toLowerCase(); - } - - /** - * From a list of possible media types, choose the one we can handle best. - * - * The order of the given media types does not have any impact on the choice - * made. - */ - public static getPreferredMediaType(mediaTypes: Array): string { - /** According to OAS 3 we should default to json */ - if (mediaTypes.length === 0) { - return "application/json"; - } - - const normalMediaTypes = mediaTypes.map(ObjectSerializer.normalizeMediaType); - - for (const predicate of supportedMimeTypePredicatesWithPriority) { - for (const mediaType of normalMediaTypes) { - if (mediaType != null && predicate(mediaType)) { - return mediaType; - } - } - } - - throw new Error("None of the given media types are supported: " + mediaTypes.join(", ")); - } - - /** - * Convert data to a string according the given media type - */ - public static stringify(data: any, mediaType: string): string { - if (isTextLikeMimeType(mediaType)) { - return String(data); - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.stringify(data); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify."); - } - - /** - * Parse data from a string according to the given media type - */ - public static parse(rawData: string, mediaType: string | undefined) { - if (mediaType === undefined) { - throw new Error("Cannot parse content. No Content-Type defined."); - } - - if (isTextLikeMimeType(mediaType)) { - return rawData; - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.parse(rawData); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse."); - } -} diff --git a/src/typings/disputes/acceptDisputeRequest.ts b/src/typings/disputes/acceptDisputeRequest.ts index 11309d653..97f5bf670 100644 --- a/src/typings/disputes/acceptDisputeRequest.ts +++ b/src/typings/disputes/acceptDisputeRequest.ts @@ -12,35 +12,28 @@ export class AcceptDisputeRequest { /** * The PSP reference assigned to the dispute. */ - "disputePspReference": string; + 'disputePspReference': string; /** * The merchant account identifier, for which you want to process the dispute transaction. */ - "merchantAccountCode": string; + 'merchantAccountCode': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "disputePspReference", "baseName": "disputePspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAccountCode", "baseName": "merchantAccountCode", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AcceptDisputeRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/disputes/acceptDisputeResponse.ts b/src/typings/disputes/acceptDisputeResponse.ts index 5fc944f8f..780e574fe 100644 --- a/src/typings/disputes/acceptDisputeResponse.ts +++ b/src/typings/disputes/acceptDisputeResponse.ts @@ -7,29 +7,22 @@ * Do not edit this class manually. */ -import { DisputeServiceResult } from "./disputeServiceResult"; - +import { DisputeServiceResult } from './disputeServiceResult'; export class AcceptDisputeResponse { - "disputeServiceResult": DisputeServiceResult; - - static readonly discriminator: string | undefined = undefined; + 'disputeServiceResult': DisputeServiceResult; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "disputeServiceResult", "baseName": "disputeServiceResult", - "type": "DisputeServiceResult", - "format": "" + "type": "DisputeServiceResult" } ]; static getAttributeTypeMap() { return AcceptDisputeResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/disputes/defendDisputeRequest.ts b/src/typings/disputes/defendDisputeRequest.ts index e84125d0d..eda5a5ad5 100644 --- a/src/typings/disputes/defendDisputeRequest.ts +++ b/src/typings/disputes/defendDisputeRequest.ts @@ -12,45 +12,37 @@ export class DefendDisputeRequest { /** * The defense reason code that was selected to defend this dispute. */ - "defenseReasonCode": string; + 'defenseReasonCode': string; /** * The PSP reference assigned to the dispute. */ - "disputePspReference": string; + 'disputePspReference': string; /** * The merchant account identifier, for which you want to process the dispute transaction. */ - "merchantAccountCode": string; + 'merchantAccountCode': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "defenseReasonCode", "baseName": "defenseReasonCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "disputePspReference", "baseName": "disputePspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAccountCode", "baseName": "merchantAccountCode", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return DefendDisputeRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/disputes/defendDisputeResponse.ts b/src/typings/disputes/defendDisputeResponse.ts index cbc38c247..f45808021 100644 --- a/src/typings/disputes/defendDisputeResponse.ts +++ b/src/typings/disputes/defendDisputeResponse.ts @@ -7,29 +7,22 @@ * Do not edit this class manually. */ -import { DisputeServiceResult } from "./disputeServiceResult"; - +import { DisputeServiceResult } from './disputeServiceResult'; export class DefendDisputeResponse { - "disputeServiceResult": DisputeServiceResult; - - static readonly discriminator: string | undefined = undefined; + 'disputeServiceResult': DisputeServiceResult; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "disputeServiceResult", "baseName": "disputeServiceResult", - "type": "DisputeServiceResult", - "format": "" + "type": "DisputeServiceResult" } ]; static getAttributeTypeMap() { return DefendDisputeResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/disputes/defenseDocument.ts b/src/typings/disputes/defenseDocument.ts index 3dad951c8..685988405 100644 --- a/src/typings/disputes/defenseDocument.ts +++ b/src/typings/disputes/defenseDocument.ts @@ -12,45 +12,37 @@ export class DefenseDocument { /** * The content of the defense document. */ - "content": string; + 'content': string; /** * The content type of the defense document. */ - "contentType": string; + 'contentType': string; /** * The document type code of the defense document. */ - "defenseDocumentTypeCode": string; + 'defenseDocumentTypeCode': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "content", "baseName": "content", - "type": "string", - "format": "byte" + "type": "string" }, { "name": "contentType", "baseName": "contentType", - "type": "string", - "format": "" + "type": "string" }, { "name": "defenseDocumentTypeCode", "baseName": "defenseDocumentTypeCode", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return DefenseDocument.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/disputes/defenseDocumentType.ts b/src/typings/disputes/defenseDocumentType.ts index fd5a1fc3b..61cea294c 100644 --- a/src/typings/disputes/defenseDocumentType.ts +++ b/src/typings/disputes/defenseDocumentType.ts @@ -12,45 +12,37 @@ export class DefenseDocumentType { /** * When **true**, you\'ve successfully uploaded this type of defense document. When **false**, you haven\'t uploaded this defense document type. */ - "available": boolean; + 'available': boolean; /** * The document type code of the defense document. */ - "defenseDocumentTypeCode": string; + 'defenseDocumentTypeCode': string; /** * Indicates to what extent the defense document is required in the defense process. Possible values: * **Required**: You must supply the document. * **OneOrMore**: You must supply at least one of the documents with this label. * **Optional**: You can choose to supply the document. * **AlternativeRequired**: You must supply a generic defense document. To enable this functionality, contact our Support Team. When enabled, you can supply a generic defense document for all schemes. */ - "requirementLevel": string; + 'requirementLevel': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "available", "baseName": "available", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "defenseDocumentTypeCode", "baseName": "defenseDocumentTypeCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "requirementLevel", "baseName": "requirementLevel", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return DefenseDocumentType.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/disputes/defenseReason.ts b/src/typings/disputes/defenseReason.ts index c143f4ecc..b2965b6e5 100644 --- a/src/typings/disputes/defenseReason.ts +++ b/src/typings/disputes/defenseReason.ts @@ -7,52 +7,43 @@ * Do not edit this class manually. */ -import { DefenseDocumentType } from "./defenseDocumentType"; - +import { DefenseDocumentType } from './defenseDocumentType'; export class DefenseReason { /** * Array of defense document types for a specific defense reason. Indicates the document types that you can submit to the schemes to defend this dispute, and whether they are required. */ - "defenseDocumentTypes"?: Array; + 'defenseDocumentTypes'?: Array; /** * The defense reason code that was selected to defend this dispute. */ - "defenseReasonCode": string; + 'defenseReasonCode': string; /** * Indicates if sufficient defense material has been supplied. */ - "satisfied": boolean; - - static readonly discriminator: string | undefined = undefined; + 'satisfied': boolean; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "defenseDocumentTypes", "baseName": "defenseDocumentTypes", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "defenseReasonCode", "baseName": "defenseReasonCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "satisfied", "baseName": "satisfied", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return DefenseReason.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/disputes/defenseReasonsRequest.ts b/src/typings/disputes/defenseReasonsRequest.ts index 6d6e644c0..0f223e9ba 100644 --- a/src/typings/disputes/defenseReasonsRequest.ts +++ b/src/typings/disputes/defenseReasonsRequest.ts @@ -12,35 +12,28 @@ export class DefenseReasonsRequest { /** * The PSP reference assigned to the dispute. */ - "disputePspReference": string; + 'disputePspReference': string; /** * The merchant account identifier, for which you want to process the dispute transaction. */ - "merchantAccountCode": string; + 'merchantAccountCode': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "disputePspReference", "baseName": "disputePspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAccountCode", "baseName": "merchantAccountCode", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return DefenseReasonsRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/disputes/defenseReasonsResponse.ts b/src/typings/disputes/defenseReasonsResponse.ts index 69e9da054..86cce6575 100644 --- a/src/typings/disputes/defenseReasonsResponse.ts +++ b/src/typings/disputes/defenseReasonsResponse.ts @@ -7,40 +7,32 @@ * Do not edit this class manually. */ -import { DefenseReason } from "./defenseReason"; -import { DisputeServiceResult } from "./disputeServiceResult"; - +import { DefenseReason } from './defenseReason'; +import { DisputeServiceResult } from './disputeServiceResult'; export class DefenseReasonsResponse { /** * The defense reasons that can be used to defend the dispute. */ - "defenseReasons"?: Array; - "disputeServiceResult": DisputeServiceResult; - - static readonly discriminator: string | undefined = undefined; + 'defenseReasons'?: Array; + 'disputeServiceResult': DisputeServiceResult; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "defenseReasons", "baseName": "defenseReasons", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "disputeServiceResult", "baseName": "disputeServiceResult", - "type": "DisputeServiceResult", - "format": "" + "type": "DisputeServiceResult" } ]; static getAttributeTypeMap() { return DefenseReasonsResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/disputes/deleteDefenseDocumentRequest.ts b/src/typings/disputes/deleteDefenseDocumentRequest.ts index 5693606d7..222255191 100644 --- a/src/typings/disputes/deleteDefenseDocumentRequest.ts +++ b/src/typings/disputes/deleteDefenseDocumentRequest.ts @@ -12,45 +12,37 @@ export class DeleteDefenseDocumentRequest { /** * The document type code of the defense document. */ - "defenseDocumentType": string; + 'defenseDocumentType': string; /** * The PSP reference assigned to the dispute. */ - "disputePspReference": string; + 'disputePspReference': string; /** * The merchant account identifier, for which you want to process the dispute transaction. */ - "merchantAccountCode": string; + 'merchantAccountCode': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "defenseDocumentType", "baseName": "defenseDocumentType", - "type": "string", - "format": "" + "type": "string" }, { "name": "disputePspReference", "baseName": "disputePspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAccountCode", "baseName": "merchantAccountCode", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return DeleteDefenseDocumentRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/disputes/deleteDefenseDocumentResponse.ts b/src/typings/disputes/deleteDefenseDocumentResponse.ts index eb846315b..0b2b65333 100644 --- a/src/typings/disputes/deleteDefenseDocumentResponse.ts +++ b/src/typings/disputes/deleteDefenseDocumentResponse.ts @@ -7,29 +7,22 @@ * Do not edit this class manually. */ -import { DisputeServiceResult } from "./disputeServiceResult"; - +import { DisputeServiceResult } from './disputeServiceResult'; export class DeleteDefenseDocumentResponse { - "disputeServiceResult": DisputeServiceResult; - - static readonly discriminator: string | undefined = undefined; + 'disputeServiceResult': DisputeServiceResult; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "disputeServiceResult", "baseName": "disputeServiceResult", - "type": "DisputeServiceResult", - "format": "" + "type": "DisputeServiceResult" } ]; static getAttributeTypeMap() { return DeleteDefenseDocumentResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/disputes/disputeServiceResult.ts b/src/typings/disputes/disputeServiceResult.ts index 8b50aab16..d5c37b19f 100644 --- a/src/typings/disputes/disputeServiceResult.ts +++ b/src/typings/disputes/disputeServiceResult.ts @@ -12,35 +12,28 @@ export class DisputeServiceResult { /** * The general error message. */ - "errorMessage"?: string; + 'errorMessage'?: string; /** * Indicates whether the request succeeded. */ - "success": boolean; + 'success': boolean; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "errorMessage", "baseName": "errorMessage", - "type": "string", - "format": "" + "type": "string" }, { "name": "success", "baseName": "success", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return DisputeServiceResult.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/disputes/models.ts b/src/typings/disputes/models.ts index 2dbfc91e0..672401800 100644 --- a/src/typings/disputes/models.ts +++ b/src/typings/disputes/models.ts @@ -1,18 +1,189 @@ -export * from "./acceptDisputeRequest" -export * from "./acceptDisputeResponse" -export * from "./defendDisputeRequest" -export * from "./defendDisputeResponse" -export * from "./defenseDocument" -export * from "./defenseDocumentType" -export * from "./defenseReason" -export * from "./defenseReasonsRequest" -export * from "./defenseReasonsResponse" -export * from "./deleteDefenseDocumentRequest" -export * from "./deleteDefenseDocumentResponse" -export * from "./disputeServiceResult" -export * from "./serviceError" -export * from "./supplyDefenseDocumentRequest" -export * from "./supplyDefenseDocumentResponse" - -// serializing and deserializing typed objects -export * from "./objectSerializer" \ No newline at end of file +/* + * The version of the OpenAPI document: v30 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export * from './acceptDisputeRequest'; +export * from './acceptDisputeResponse'; +export * from './defendDisputeRequest'; +export * from './defendDisputeResponse'; +export * from './defenseDocument'; +export * from './defenseDocumentType'; +export * from './defenseReason'; +export * from './defenseReasonsRequest'; +export * from './defenseReasonsResponse'; +export * from './deleteDefenseDocumentRequest'; +export * from './deleteDefenseDocumentResponse'; +export * from './disputeServiceResult'; +export * from './serviceError'; +export * from './supplyDefenseDocumentRequest'; +export * from './supplyDefenseDocumentResponse'; + + +import { AcceptDisputeRequest } from './acceptDisputeRequest'; +import { AcceptDisputeResponse } from './acceptDisputeResponse'; +import { DefendDisputeRequest } from './defendDisputeRequest'; +import { DefendDisputeResponse } from './defendDisputeResponse'; +import { DefenseDocument } from './defenseDocument'; +import { DefenseDocumentType } from './defenseDocumentType'; +import { DefenseReason } from './defenseReason'; +import { DefenseReasonsRequest } from './defenseReasonsRequest'; +import { DefenseReasonsResponse } from './defenseReasonsResponse'; +import { DeleteDefenseDocumentRequest } from './deleteDefenseDocumentRequest'; +import { DeleteDefenseDocumentResponse } from './deleteDefenseDocumentResponse'; +import { DisputeServiceResult } from './disputeServiceResult'; +import { ServiceError } from './serviceError'; +import { SupplyDefenseDocumentRequest } from './supplyDefenseDocumentRequest'; +import { SupplyDefenseDocumentResponse } from './supplyDefenseDocumentResponse'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { +} + +let typeMap: {[index: string]: any} = { + "AcceptDisputeRequest": AcceptDisputeRequest, + "AcceptDisputeResponse": AcceptDisputeResponse, + "DefendDisputeRequest": DefendDisputeRequest, + "DefendDisputeResponse": DefendDisputeResponse, + "DefenseDocument": DefenseDocument, + "DefenseDocumentType": DefenseDocumentType, + "DefenseReason": DefenseReason, + "DefenseReasonsRequest": DefenseReasonsRequest, + "DefenseReasonsResponse": DefenseReasonsResponse, + "DeleteDefenseDocumentRequest": DeleteDefenseDocumentRequest, + "DeleteDefenseDocumentResponse": DeleteDefenseDocumentResponse, + "DisputeServiceResult": DisputeServiceResult, + "ServiceError": ServiceError, + "SupplyDefenseDocumentRequest": SupplyDefenseDocumentRequest, + "SupplyDefenseDocumentResponse": SupplyDefenseDocumentResponse, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/disputes/objectSerializer.ts b/src/typings/disputes/objectSerializer.ts deleted file mode 100644 index ad2339d4e..000000000 --- a/src/typings/disputes/objectSerializer.ts +++ /dev/null @@ -1,373 +0,0 @@ -export * from "./models"; - -import { AcceptDisputeRequest } from "./acceptDisputeRequest"; -import { AcceptDisputeResponse } from "./acceptDisputeResponse"; -import { DefendDisputeRequest } from "./defendDisputeRequest"; -import { DefendDisputeResponse } from "./defendDisputeResponse"; -import { DefenseDocument } from "./defenseDocument"; -import { DefenseDocumentType } from "./defenseDocumentType"; -import { DefenseReason } from "./defenseReason"; -import { DefenseReasonsRequest } from "./defenseReasonsRequest"; -import { DefenseReasonsResponse } from "./defenseReasonsResponse"; -import { DeleteDefenseDocumentRequest } from "./deleteDefenseDocumentRequest"; -import { DeleteDefenseDocumentResponse } from "./deleteDefenseDocumentResponse"; -import { DisputeServiceResult } from "./disputeServiceResult"; -import { ServiceError } from "./serviceError"; -import { SupplyDefenseDocumentRequest } from "./supplyDefenseDocumentRequest"; -import { SupplyDefenseDocumentResponse } from "./supplyDefenseDocumentResponse"; - -/* tslint:disable:no-unused-variable */ -let primitives = [ - "string", - "boolean", - "double", - "integer", - "long", - "float", - "number", - "any" - ]; - -let enumsMap: Set = new Set([ -]); - -let typeMap: {[index: string]: any} = { - "AcceptDisputeRequest": AcceptDisputeRequest, - "AcceptDisputeResponse": AcceptDisputeResponse, - "DefendDisputeRequest": DefendDisputeRequest, - "DefendDisputeResponse": DefendDisputeResponse, - "DefenseDocument": DefenseDocument, - "DefenseDocumentType": DefenseDocumentType, - "DefenseReason": DefenseReason, - "DefenseReasonsRequest": DefenseReasonsRequest, - "DefenseReasonsResponse": DefenseReasonsResponse, - "DeleteDefenseDocumentRequest": DeleteDefenseDocumentRequest, - "DeleteDefenseDocumentResponse": DeleteDefenseDocumentResponse, - "DisputeServiceResult": DisputeServiceResult, - "ServiceError": ServiceError, - "SupplyDefenseDocumentRequest": SupplyDefenseDocumentRequest, - "SupplyDefenseDocumentResponse": SupplyDefenseDocumentResponse, -} - -type MimeTypeDescriptor = { - type: string; - subtype: string; - subtypeTokens: string[]; -}; - -/** - * Every mime-type consists of a type, subtype, and optional parameters. - * The subtype can be composite, including information about the content format. - * For example: `application/json-patch+json`, `application/merge-patch+json`. - * - * This helper transforms a string mime-type into an internal representation. - * This simplifies the implementation of predicates that in turn define common rules for parsing or stringifying - * the payload. - */ -const parseMimeType = (mimeType: string): MimeTypeDescriptor => { - const [type = '', subtype = ''] = mimeType.split('/'); - return { - type, - subtype, - subtypeTokens: subtype.split('+'), - }; -}; - -type MimeTypePredicate = (mimeType: string) => boolean; - -// This factory creates a predicate function that checks a string mime-type against defined rules. -const mimeTypePredicateFactory = (predicate: (descriptor: MimeTypeDescriptor) => boolean): MimeTypePredicate => (mimeType) => predicate(parseMimeType(mimeType)); - -// Use this factory when you need to define a simple predicate based only on type and, if applicable, subtype. -const mimeTypeSimplePredicateFactory = (type: string, subtype?: string): MimeTypePredicate => mimeTypePredicateFactory((descriptor) => { - if (descriptor.type !== type) return false; - if (subtype != null && descriptor.subtype !== subtype) return false; - return true; -}); - -// Creating a set of named predicates that will help us determine how to handle different mime-types -const isTextLikeMimeType = mimeTypeSimplePredicateFactory('text'); -const isJsonMimeType = mimeTypeSimplePredicateFactory('application', 'json'); -const isJsonLikeMimeType = mimeTypePredicateFactory((descriptor) => descriptor.type === 'application' && descriptor.subtypeTokens.some((item) => item === 'json')); -const isOctetStreamMimeType = mimeTypeSimplePredicateFactory('application', 'octet-stream'); -const isFormUrlencodedMimeType = mimeTypeSimplePredicateFactory('application', 'x-www-form-urlencoded'); - -// Defining a list of mime-types in the order of prioritization for handling. -const supportedMimeTypePredicatesWithPriority: MimeTypePredicate[] = [ - isJsonMimeType, - isJsonLikeMimeType, - isTextLikeMimeType, - isOctetStreamMimeType, - isFormUrlencodedMimeType, -]; - -const nullableSuffix = " | null"; -const optionalSuffix = " | undefined"; -const arrayPrefix = "Array<"; -const arraySuffix = ">"; -const mapPrefix = "{ [key: string]: "; -const mapSuffix = "; }"; - -export class ObjectSerializer { - public static findCorrectType(data: any, expectedType: string) { - if (data == undefined) { - return expectedType; - } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { - return expectedType; - } else if (expectedType === "Date") { - return expectedType; - } else { - if (enumsMap.has(expectedType)) { - return expectedType; - } - - if (!typeMap[expectedType]) { - return expectedType; // w/e we don't know the type - } - - // Check the discriminator - let discriminatorProperty = typeMap[expectedType].discriminator; - if (discriminatorProperty == null) { - return expectedType; // the type does not have a discriminator. use it. - } else { - if (data[discriminatorProperty]) { - var discriminatorType = data[discriminatorProperty]; - let mapping = typeMap[expectedType].mapping; - if (mapping != undefined && mapping[discriminatorType]) { - return mapping[discriminatorType]; // use the type given in the discriminator - } else if(typeMap[discriminatorType]) { - return discriminatorType; - } else { - return expectedType; // discriminator did not map to a type - } - } else { - return expectedType; // discriminator was not present (or an empty string) - } - } - } - } - - /** - * Serializes a value into a plain JSON-compatible object based on its type. - * - * Supports primitives, arrays, maps, dates, enums, and classes defined in `typeMap`. - * Falls back to raw data if type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The value to serialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A JSON-compatible representation of `data`. - */ - public static serialize(data: any, type: string, format: string = ""): any { - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.serialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.serialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - if (format == "date") { - let month = data.getMonth()+1 - month = month < 10 ? "0" + month.toString() : month.toString() - let day = data.getDate(); - day = day < 10 ? "0" + day.toString() : day.toString(); - - return data.getFullYear() + "-" + month + "-" + day; - } else { - return data.toISOString(); - } - } else { - if (enumsMap.has(type)) { - return data; - } - if (!typeMap[type]) { // in case we dont know the type - return data; - } - - // Get the actual type of this object - type = this.findCorrectType(data, type); - - const clazz = typeMap[type]; - - // Safe check for getAttributeTypeMap - if (typeof clazz.getAttributeTypeMap !== "function") { - return { ...data }; // fallback: shallow copy - } - - // get the map for the correct type. - let attributeTypes = typeMap[type].getAttributeTypeMap(); - let instance: {[index: string]: any} = {}; - for (let attributeType of attributeTypes) { - instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format); - } - return instance; - } - } - - /** - * Deserializes a plain JSON-compatible object into a typed instance. - * - * Handles primitives, arrays, maps, dates, enums, and known classes from `typeMap`. - * Uses discriminators when available to resolve polymorphic types. - * Falls back to raw data if the type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The raw input to deserialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A deserialized instance or value of `data`. - */ - public static deserialize(data: any, type: string, format: string = ""): any { - // polymorphism may change the actual type. - type = ObjectSerializer.findCorrectType(data, type); - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.deserialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.deserialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - return new Date(data); - } else { - if (enumsMap.has(type)) {// is Enum - return data; - } - - if (!typeMap[type]) { // dont know the type - return data; - } - let instance = new typeMap[type](); - - // Safe check for getAttributeTypeMap - if (typeof typeMap[type].getAttributeTypeMap !== "function") { - Object.assign(instance, data); // fallback: shallow copy - return instance; - } - - let attributeTypes = typeMap[type].getAttributeTypeMap(); - for (let attributeType of attributeTypes) { - let value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format); - if (value !== undefined) { - instance[attributeType.name] = value; - } - } - return instance; - } - } - - - /** - * Normalize media type - * - * We currently do not handle any media types attributes, i.e. anything - * after a semicolon. All content is assumed to be UTF-8 compatible. - */ - public static normalizeMediaType(mediaType: string | undefined): string | undefined { - if (mediaType === undefined) { - return undefined; - } - return (mediaType.split(";")[0] ?? '').trim().toLowerCase(); - } - - /** - * From a list of possible media types, choose the one we can handle best. - * - * The order of the given media types does not have any impact on the choice - * made. - */ - public static getPreferredMediaType(mediaTypes: Array): string { - /** According to OAS 3 we should default to json */ - if (mediaTypes.length === 0) { - return "application/json"; - } - - const normalMediaTypes = mediaTypes.map(ObjectSerializer.normalizeMediaType); - - for (const predicate of supportedMimeTypePredicatesWithPriority) { - for (const mediaType of normalMediaTypes) { - if (mediaType != null && predicate(mediaType)) { - return mediaType; - } - } - } - - throw new Error("None of the given media types are supported: " + mediaTypes.join(", ")); - } - - /** - * Convert data to a string according the given media type - */ - public static stringify(data: any, mediaType: string): string { - if (isTextLikeMimeType(mediaType)) { - return String(data); - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.stringify(data); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify."); - } - - /** - * Parse data from a string according to the given media type - */ - public static parse(rawData: string, mediaType: string | undefined) { - if (mediaType === undefined) { - throw new Error("Cannot parse content. No Content-Type defined."); - } - - if (isTextLikeMimeType(mediaType)) { - return rawData; - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.parse(rawData); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse."); - } -} diff --git a/src/typings/disputes/serviceError.ts b/src/typings/disputes/serviceError.ts index 297454623..9bbe11659 100644 --- a/src/typings/disputes/serviceError.ts +++ b/src/typings/disputes/serviceError.ts @@ -12,65 +12,55 @@ export class ServiceError { /** * The error code mapped to the error message. */ - "errorCode"?: string; + 'errorCode'?: string; /** * The category of the error. */ - "errorType"?: string; + 'errorType'?: string; /** * A short explanation of the issue. */ - "message"?: string; + 'message'?: string; /** * The PSP reference of the payment. */ - "pspReference"?: string; + 'pspReference'?: string; /** * The HTTP response status. */ - "status"?: number; + 'status'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "errorCode", "baseName": "errorCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "errorType", "baseName": "errorType", - "type": "string", - "format": "" + "type": "string" }, { "name": "message", "baseName": "message", - "type": "string", - "format": "" + "type": "string" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return ServiceError.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/disputes/supplyDefenseDocumentRequest.ts b/src/typings/disputes/supplyDefenseDocumentRequest.ts index c38ba0977..2d951ee0c 100644 --- a/src/typings/disputes/supplyDefenseDocumentRequest.ts +++ b/src/typings/disputes/supplyDefenseDocumentRequest.ts @@ -7,52 +7,43 @@ * Do not edit this class manually. */ -import { DefenseDocument } from "./defenseDocument"; - +import { DefenseDocument } from './defenseDocument'; export class SupplyDefenseDocumentRequest { /** * An array containing a list of the defense documents. */ - "defenseDocuments": Array; + 'defenseDocuments': Array; /** * The PSP reference assigned to the dispute. */ - "disputePspReference": string; + 'disputePspReference': string; /** * The merchant account identifier, for which you want to process the dispute transaction. */ - "merchantAccountCode": string; - - static readonly discriminator: string | undefined = undefined; + 'merchantAccountCode': string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "defenseDocuments", "baseName": "defenseDocuments", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "disputePspReference", "baseName": "disputePspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAccountCode", "baseName": "merchantAccountCode", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return SupplyDefenseDocumentRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/disputes/supplyDefenseDocumentResponse.ts b/src/typings/disputes/supplyDefenseDocumentResponse.ts index f3fb18598..fe7e4b899 100644 --- a/src/typings/disputes/supplyDefenseDocumentResponse.ts +++ b/src/typings/disputes/supplyDefenseDocumentResponse.ts @@ -7,29 +7,22 @@ * Do not edit this class manually. */ -import { DisputeServiceResult } from "./disputeServiceResult"; - +import { DisputeServiceResult } from './disputeServiceResult'; export class SupplyDefenseDocumentResponse { - "disputeServiceResult": DisputeServiceResult; - - static readonly discriminator: string | undefined = undefined; + 'disputeServiceResult': DisputeServiceResult; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "disputeServiceResult", "baseName": "disputeServiceResult", - "type": "DisputeServiceResult", - "format": "" + "type": "DisputeServiceResult" } ]; static getAttributeTypeMap() { return SupplyDefenseDocumentResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/aULocalAccountIdentification.ts b/src/typings/legalEntityManagement/aULocalAccountIdentification.ts index c3477804d..9993f58ac 100644 --- a/src/typings/legalEntityManagement/aULocalAccountIdentification.ts +++ b/src/typings/legalEntityManagement/aULocalAccountIdentification.ts @@ -12,46 +12,38 @@ export class AULocalAccountIdentification { /** * The bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. */ - "bsbCode": string; + 'bsbCode': string; /** * **auLocal** */ - "type": AULocalAccountIdentification.TypeEnum; + 'type': AULocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "bsbCode", "baseName": "bsbCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "AULocalAccountIdentification.TypeEnum", - "format": "" + "type": "AULocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return AULocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace AULocalAccountIdentification { diff --git a/src/typings/legalEntityManagement/acceptTermsOfServiceRequest.ts b/src/typings/legalEntityManagement/acceptTermsOfServiceRequest.ts index 58eccb3d7..30d970212 100644 --- a/src/typings/legalEntityManagement/acceptTermsOfServiceRequest.ts +++ b/src/typings/legalEntityManagement/acceptTermsOfServiceRequest.ts @@ -12,35 +12,28 @@ export class AcceptTermsOfServiceRequest { /** * The legal entity ID of the user accepting the Terms of Service. For organizations, this must be the individual legal entity ID of an authorized signatory for the organization. For sole proprietorships, this must be the individual legal entity ID of the owner. For individuals, this must be the individual legal entity id of either the individual, parent, or guardian. */ - "acceptedBy": string; + 'acceptedBy': string; /** * The IP address of the user accepting the Terms of Service. */ - "ipAddress"?: string; + 'ipAddress'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "acceptedBy", "baseName": "acceptedBy", - "type": "string", - "format": "" + "type": "string" }, { "name": "ipAddress", "baseName": "ipAddress", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AcceptTermsOfServiceRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/acceptTermsOfServiceResponse.ts b/src/typings/legalEntityManagement/acceptTermsOfServiceResponse.ts index fe95ddc6f..4cd026ca8 100644 --- a/src/typings/legalEntityManagement/acceptTermsOfServiceResponse.ts +++ b/src/typings/legalEntityManagement/acceptTermsOfServiceResponse.ts @@ -12,76 +12,65 @@ export class AcceptTermsOfServiceResponse { /** * The unique identifier of the user that accepted the Terms of Service. */ - "acceptedBy"?: string; + 'acceptedBy'?: string; /** * The unique identifier of the Terms of Service acceptance. */ - "id"?: string; + 'id'?: string; /** * The IP address of the user that accepted the Terms of Service. */ - "ipAddress"?: string; + 'ipAddress'?: string; /** * The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English. */ - "language"?: string; + 'language'?: string; /** * The unique identifier of the Terms of Service document. */ - "termsOfServiceDocumentId"?: string; + 'termsOfServiceDocumentId'?: string; /** * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** */ - "type"?: AcceptTermsOfServiceResponse.TypeEnum; + 'type'?: AcceptTermsOfServiceResponse.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "acceptedBy", "baseName": "acceptedBy", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "ipAddress", "baseName": "ipAddress", - "type": "string", - "format": "" + "type": "string" }, { "name": "language", "baseName": "language", - "type": "string", - "format": "" + "type": "string" }, { "name": "termsOfServiceDocumentId", "baseName": "termsOfServiceDocumentId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "AcceptTermsOfServiceResponse.TypeEnum", - "format": "" + "type": "AcceptTermsOfServiceResponse.TypeEnum" } ]; static getAttributeTypeMap() { return AcceptTermsOfServiceResponse.attributeTypeMap; } - - public constructor() { - } } export namespace AcceptTermsOfServiceResponse { diff --git a/src/typings/legalEntityManagement/additionalBankIdentification.ts b/src/typings/legalEntityManagement/additionalBankIdentification.ts index efc95507d..381c4c2cb 100644 --- a/src/typings/legalEntityManagement/additionalBankIdentification.ts +++ b/src/typings/legalEntityManagement/additionalBankIdentification.ts @@ -12,36 +12,29 @@ export class AdditionalBankIdentification { /** * The value of the additional bank identification. */ - "code"?: string; + 'code'?: string; /** * The type of additional bank identification, depending on the country. Possible values: * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. */ - "type"?: AdditionalBankIdentification.TypeEnum; + 'type'?: AdditionalBankIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "code", "baseName": "code", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "AdditionalBankIdentification.TypeEnum", - "format": "" + "type": "AdditionalBankIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return AdditionalBankIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace AdditionalBankIdentification { diff --git a/src/typings/legalEntityManagement/address.ts b/src/typings/legalEntityManagement/address.ts index 985fcf08c..05bf2cd08 100644 --- a/src/typings/legalEntityManagement/address.ts +++ b/src/typings/legalEntityManagement/address.ts @@ -12,75 +12,64 @@ export class Address { /** * The name of the city. Required if `stateOrProvince` is provided. If you specify the city, you must also send `postalCode` and `street`. */ - "city"?: string; + 'city'?: string; /** * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. */ - "country": string; + 'country': string; /** * The postal code. Required if `stateOrProvince` and/or `city` is provided. When using alphanumeric postal codes, all letters must be uppercase. For example, 1234 AB or SW1A 1AA. */ - "postalCode"?: string; + 'postalCode'?: string; /** * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. If you specify the state or province, you must also send `city`, `postalCode`, and `street`. */ - "stateOrProvince"?: string; + 'stateOrProvince'?: string; /** * The name of the street, and the house or building number. Required if `stateOrProvince` and/or `city` is provided. */ - "street"?: string; + 'street'?: string; /** * The apartment, unit, or suite number. */ - "street2"?: string; + 'street2'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "city", "baseName": "city", - "type": "string", - "format": "" + "type": "string" }, { "name": "country", "baseName": "country", - "type": "string", - "format": "" + "type": "string" }, { "name": "postalCode", "baseName": "postalCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "stateOrProvince", "baseName": "stateOrProvince", - "type": "string", - "format": "" + "type": "string" }, { "name": "street", "baseName": "street", - "type": "string", - "format": "" + "type": "string" }, { "name": "street2", "baseName": "street2", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Address.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/amount.ts b/src/typings/legalEntityManagement/amount.ts index af1cf5255..79562676e 100644 --- a/src/typings/legalEntityManagement/amount.ts +++ b/src/typings/legalEntityManagement/amount.ts @@ -12,35 +12,28 @@ export class Amount { /** * The type of currency. Must be EUR (or EUR equivalent) */ - "currency"?: string; + 'currency'?: string; /** * Total value of amount. Must be >= 0 */ - "value"?: number; + 'value'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "number", - "format": "int64" + "type": "number" } ]; static getAttributeTypeMap() { return Amount.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/attachment.ts b/src/typings/legalEntityManagement/attachment.ts index 3d81ff864..6a8a31326 100644 --- a/src/typings/legalEntityManagement/attachment.ts +++ b/src/typings/legalEntityManagement/attachment.ts @@ -12,69 +12,59 @@ export class Attachment { /** * The document in Base64-encoded string format. */ - "content": string; + 'content': string; /** * The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, **image/png**. * * @deprecated since Legal Entity Management API v1 */ - "contentType"?: string; + 'contentType'?: string; /** * The name of the file including the file extension. * * @deprecated since Legal Entity Management API v1 */ - "filename"?: string; + 'filename'?: string; /** * The name of the file including the file extension. */ - "pageName"?: string; + 'pageName'?: string; /** * Specifies which side of the ID card is uploaded. * When `type` is **driversLicense** or **identityCard**, set this to **front** or **back**. * When omitted, we infer the page number based on the order of attachments. */ - "pageType"?: string; + 'pageType'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "content", "baseName": "content", - "type": "string", - "format": "byte" + "type": "string" }, { "name": "contentType", "baseName": "contentType", - "type": "string", - "format": "" + "type": "string" }, { "name": "filename", "baseName": "filename", - "type": "string", - "format": "" + "type": "string" }, { "name": "pageName", "baseName": "pageName", - "type": "string", - "format": "" + "type": "string" }, { "name": "pageType", "baseName": "pageType", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Attachment.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/bankAccountInfo.ts b/src/typings/legalEntityManagement/bankAccountInfo.ts index e3e8fbf40..18837be00 100644 --- a/src/typings/legalEntityManagement/bankAccountInfo.ts +++ b/src/typings/legalEntityManagement/bankAccountInfo.ts @@ -7,71 +7,77 @@ * Do not edit this class manually. */ -import { BankAccountInfoAccountIdentification } from "./bankAccountInfoAccountIdentification"; - +import { AULocalAccountIdentification } from './aULocalAccountIdentification'; +import { CALocalAccountIdentification } from './cALocalAccountIdentification'; +import { CZLocalAccountIdentification } from './cZLocalAccountIdentification'; +import { DKLocalAccountIdentification } from './dKLocalAccountIdentification'; +import { HKLocalAccountIdentification } from './hKLocalAccountIdentification'; +import { HULocalAccountIdentification } from './hULocalAccountIdentification'; +import { IbanAccountIdentification } from './ibanAccountIdentification'; +import { NOLocalAccountIdentification } from './nOLocalAccountIdentification'; +import { NZLocalAccountIdentification } from './nZLocalAccountIdentification'; +import { NumberAndBicAccountIdentification } from './numberAndBicAccountIdentification'; +import { PLLocalAccountIdentification } from './pLLocalAccountIdentification'; +import { SELocalAccountIdentification } from './sELocalAccountIdentification'; +import { SGLocalAccountIdentification } from './sGLocalAccountIdentification'; +import { UKLocalAccountIdentification } from './uKLocalAccountIdentification'; +import { USLocalAccountIdentification } from './uSLocalAccountIdentification'; export class BankAccountInfo { - "accountIdentification"?: BankAccountInfoAccountIdentification | null; + /** + * Identification of the bank account. + */ + 'accountIdentification'?: AULocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification | null; /** * The type of bank account. * * @deprecated since Legal Entity Management API v2 */ - "accountType"?: string; + 'accountType'?: string; /** * The name of the banking institution where the bank account is held. */ - "bankName"?: string; + 'bankName'?: string; /** * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the bank account is registered. For example, **NL**. */ - "countryCode"?: string; + 'countryCode'?: string; /** * Identifies if the bank account was created through [instant bank verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding). */ - "trustedSource"?: boolean; + 'trustedSource'?: boolean; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountIdentification", "baseName": "accountIdentification", - "type": "BankAccountInfoAccountIdentification | null", - "format": "" + "type": "AULocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification | null" }, { "name": "accountType", "baseName": "accountType", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankName", "baseName": "bankName", - "type": "string", - "format": "" + "type": "string" }, { "name": "countryCode", "baseName": "countryCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "trustedSource", "baseName": "trustedSource", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return BankAccountInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/bankAccountInfoAccountIdentification.ts b/src/typings/legalEntityManagement/bankAccountInfoAccountIdentification.ts deleted file mode 100644 index ea3a30e7e..000000000 --- a/src/typings/legalEntityManagement/bankAccountInfoAccountIdentification.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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. - */ - -import { AULocalAccountIdentification } from "./aULocalAccountIdentification"; -import { CALocalAccountIdentification } from "./cALocalAccountIdentification"; -import { CZLocalAccountIdentification } from "./cZLocalAccountIdentification"; -import { DKLocalAccountIdentification } from "./dKLocalAccountIdentification"; -import { HKLocalAccountIdentification } from "./hKLocalAccountIdentification"; -import { HULocalAccountIdentification } from "./hULocalAccountIdentification"; -import { IbanAccountIdentification } from "./ibanAccountIdentification"; -import { NOLocalAccountIdentification } from "./nOLocalAccountIdentification"; -import { NZLocalAccountIdentification } from "./nZLocalAccountIdentification"; -import { NumberAndBicAccountIdentification } from "./numberAndBicAccountIdentification"; -import { PLLocalAccountIdentification } from "./pLLocalAccountIdentification"; -import { SELocalAccountIdentification } from "./sELocalAccountIdentification"; -import { SGLocalAccountIdentification } from "./sGLocalAccountIdentification"; -import { UKLocalAccountIdentification } from "./uKLocalAccountIdentification"; -import { USLocalAccountIdentification } from "./uSLocalAccountIdentification"; - -/** -* Identification of the bank account. -*/ - - -/** - * @type BankAccountInfoAccountIdentification - * Type - * @export - */ -export type BankAccountInfoAccountIdentification = AULocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification; - -/** -* @type BankAccountInfoAccountIdentificationClass - * Identification of the bank account. -* @export -*/ -export class BankAccountInfoAccountIdentificationClass { - - static readonly discriminator: string = "type"; - - static readonly mapping: {[index: string]: string} | undefined = undefined; -} diff --git a/src/typings/legalEntityManagement/birthData.ts b/src/typings/legalEntityManagement/birthData.ts index 438716276..69ac59991 100644 --- a/src/typings/legalEntityManagement/birthData.ts +++ b/src/typings/legalEntityManagement/birthData.ts @@ -12,25 +12,19 @@ export class BirthData { /** * The individual\'s date of birth, in YYYY-MM-DD format. */ - "dateOfBirth"?: string; + 'dateOfBirth'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "dateOfBirth", "baseName": "dateOfBirth", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return BirthData.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/businessLine.ts b/src/typings/legalEntityManagement/businessLine.ts index 2476b63cc..59e884094 100644 --- a/src/typings/legalEntityManagement/businessLine.ts +++ b/src/typings/legalEntityManagement/businessLine.ts @@ -7,11 +7,10 @@ * Do not edit this class manually. */ -import { CapabilityProblem } from "./capabilityProblem"; -import { SourceOfFunds } from "./sourceOfFunds"; -import { WebData } from "./webData"; -import { WebDataExemption } from "./webDataExemption"; - +import { CapabilityProblem } from './capabilityProblem'; +import { SourceOfFunds } from './sourceOfFunds'; +import { WebData } from './webData'; +import { WebDataExemption } from './webDataExemption'; export class BusinessLine { /** @@ -20,110 +19,95 @@ export class BusinessLine { * @deprecated since Legal Entity Management API v3 * Use `service` instead. */ - "capability"?: BusinessLine.CapabilityEnum; + 'capability'?: BusinessLine.CapabilityEnum; /** * The unique identifier of the business line. */ - "id": string; + 'id': string; /** * A code that represents the industry of the legal entity for [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) or [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). For example, **4431A** for computer software stores. */ - "industryCode": string; + 'industryCode': string; /** * Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line. */ - "legalEntityId": string; + 'legalEntityId': string; /** * The verification errors related to capabilities for this supporting entity. */ - "problems"?: Array; + 'problems'?: Array; /** * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. */ - "salesChannels"?: Array; + 'salesChannels'?: Array; /** * The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** */ - "service": BusinessLine.ServiceEnum; - "sourceOfFunds"?: SourceOfFunds | null; + 'service': BusinessLine.ServiceEnum; + 'sourceOfFunds'?: SourceOfFunds | null; /** * List of website URLs where your user\'s goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. */ - "webData"?: Array; - "webDataExemption"?: WebDataExemption | null; - - static readonly discriminator: string | undefined = undefined; + 'webData'?: Array; + 'webDataExemption'?: WebDataExemption | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "capability", "baseName": "capability", - "type": "BusinessLine.CapabilityEnum", - "format": "" + "type": "BusinessLine.CapabilityEnum" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "industryCode", "baseName": "industryCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "legalEntityId", "baseName": "legalEntityId", - "type": "string", - "format": "" + "type": "string" }, { "name": "problems", "baseName": "problems", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "salesChannels", "baseName": "salesChannels", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "service", "baseName": "service", - "type": "BusinessLine.ServiceEnum", - "format": "" + "type": "BusinessLine.ServiceEnum" }, { "name": "sourceOfFunds", "baseName": "sourceOfFunds", - "type": "SourceOfFunds | null", - "format": "" + "type": "SourceOfFunds | null" }, { "name": "webData", "baseName": "webData", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "webDataExemption", "baseName": "webDataExemption", - "type": "WebDataExemption | null", - "format": "" + "type": "WebDataExemption | null" } ]; static getAttributeTypeMap() { return BusinessLine.attributeTypeMap; } - - public constructor() { - } } export namespace BusinessLine { diff --git a/src/typings/legalEntityManagement/businessLineInfo.ts b/src/typings/legalEntityManagement/businessLineInfo.ts index 00beab89d..ebe9ca74a 100644 --- a/src/typings/legalEntityManagement/businessLineInfo.ts +++ b/src/typings/legalEntityManagement/businessLineInfo.ts @@ -7,10 +7,9 @@ * Do not edit this class manually. */ -import { SourceOfFunds } from "./sourceOfFunds"; -import { WebData } from "./webData"; -import { WebDataExemption } from "./webDataExemption"; - +import { SourceOfFunds } from './sourceOfFunds'; +import { WebData } from './webData'; +import { WebDataExemption } from './webDataExemption'; export class BusinessLineInfo { /** @@ -19,90 +18,77 @@ export class BusinessLineInfo { * @deprecated since Legal Entity Management API v3 * Use `service` instead. */ - "capability"?: BusinessLineInfo.CapabilityEnum; + 'capability'?: BusinessLineInfo.CapabilityEnum; /** * A code that represents the industry of the legal entity for [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) or [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). For example, **4431A** for computer software stores. */ - "industryCode": string; + 'industryCode': string; /** * Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line. */ - "legalEntityId": string; + 'legalEntityId': string; /** * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. */ - "salesChannels"?: Array; + 'salesChannels'?: Array; /** * The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** */ - "service": BusinessLineInfo.ServiceEnum; - "sourceOfFunds"?: SourceOfFunds | null; + 'service': BusinessLineInfo.ServiceEnum; + 'sourceOfFunds'?: SourceOfFunds | null; /** * List of website URLs where your user\'s goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. */ - "webData"?: Array; - "webDataExemption"?: WebDataExemption | null; - - static readonly discriminator: string | undefined = undefined; + 'webData'?: Array; + 'webDataExemption'?: WebDataExemption | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "capability", "baseName": "capability", - "type": "BusinessLineInfo.CapabilityEnum", - "format": "" + "type": "BusinessLineInfo.CapabilityEnum" }, { "name": "industryCode", "baseName": "industryCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "legalEntityId", "baseName": "legalEntityId", - "type": "string", - "format": "" + "type": "string" }, { "name": "salesChannels", "baseName": "salesChannels", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "service", "baseName": "service", - "type": "BusinessLineInfo.ServiceEnum", - "format": "" + "type": "BusinessLineInfo.ServiceEnum" }, { "name": "sourceOfFunds", "baseName": "sourceOfFunds", - "type": "SourceOfFunds | null", - "format": "" + "type": "SourceOfFunds | null" }, { "name": "webData", "baseName": "webData", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "webDataExemption", "baseName": "webDataExemption", - "type": "WebDataExemption | null", - "format": "" + "type": "WebDataExemption | null" } ]; static getAttributeTypeMap() { return BusinessLineInfo.attributeTypeMap; } - - public constructor() { - } } export namespace BusinessLineInfo { diff --git a/src/typings/legalEntityManagement/businessLineInfoUpdate.ts b/src/typings/legalEntityManagement/businessLineInfoUpdate.ts index bb3b0f58a..c9e76e509 100644 --- a/src/typings/legalEntityManagement/businessLineInfoUpdate.ts +++ b/src/typings/legalEntityManagement/businessLineInfoUpdate.ts @@ -7,68 +7,57 @@ * Do not edit this class manually. */ -import { SourceOfFunds } from "./sourceOfFunds"; -import { WebData } from "./webData"; -import { WebDataExemption } from "./webDataExemption"; - +import { SourceOfFunds } from './sourceOfFunds'; +import { WebData } from './webData'; +import { WebDataExemption } from './webDataExemption'; export class BusinessLineInfoUpdate { /** * A code that represents the industry of your legal entity. For example, **4431A** for computer software stores. */ - "industryCode"?: string; + 'industryCode'?: string; /** * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. */ - "salesChannels"?: Array; - "sourceOfFunds"?: SourceOfFunds | null; + 'salesChannels'?: Array; + 'sourceOfFunds'?: SourceOfFunds | null; /** * List of website URLs where your user\'s goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. */ - "webData"?: Array; - "webDataExemption"?: WebDataExemption | null; - - static readonly discriminator: string | undefined = undefined; + 'webData'?: Array; + 'webDataExemption'?: WebDataExemption | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "industryCode", "baseName": "industryCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "salesChannels", "baseName": "salesChannels", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "sourceOfFunds", "baseName": "sourceOfFunds", - "type": "SourceOfFunds | null", - "format": "" + "type": "SourceOfFunds | null" }, { "name": "webData", "baseName": "webData", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "webDataExemption", "baseName": "webDataExemption", - "type": "WebDataExemption | null", - "format": "" + "type": "WebDataExemption | null" } ]; static getAttributeTypeMap() { return BusinessLineInfoUpdate.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/businessLines.ts b/src/typings/legalEntityManagement/businessLines.ts index 1754c8d64..7cabfb3b4 100644 --- a/src/typings/legalEntityManagement/businessLines.ts +++ b/src/typings/legalEntityManagement/businessLines.ts @@ -7,32 +7,25 @@ * Do not edit this class manually. */ -import { BusinessLine } from "./businessLine"; - +import { BusinessLine } from './businessLine'; export class BusinessLines { /** * List of business lines. */ - "businessLines": Array; - - static readonly discriminator: string | undefined = undefined; + 'businessLines': Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "businessLines", "baseName": "businessLines", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return BusinessLines.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/cALocalAccountIdentification.ts b/src/typings/legalEntityManagement/cALocalAccountIdentification.ts index b77883e97..12360c00d 100644 --- a/src/typings/legalEntityManagement/cALocalAccountIdentification.ts +++ b/src/typings/legalEntityManagement/cALocalAccountIdentification.ts @@ -12,66 +12,56 @@ export class CALocalAccountIdentification { /** * The 5- to 12-digit bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ - "accountType"?: CALocalAccountIdentification.AccountTypeEnum; + 'accountType'?: CALocalAccountIdentification.AccountTypeEnum; /** * The 3-digit institution number, without separators or whitespace. */ - "institutionNumber": string; + 'institutionNumber': string; /** * The 5-digit transit number, without separators or whitespace. */ - "transitNumber": string; + 'transitNumber': string; /** * **caLocal** */ - "type": CALocalAccountIdentification.TypeEnum; + 'type': CALocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "accountType", "baseName": "accountType", - "type": "CALocalAccountIdentification.AccountTypeEnum", - "format": "" + "type": "CALocalAccountIdentification.AccountTypeEnum" }, { "name": "institutionNumber", "baseName": "institutionNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "transitNumber", "baseName": "transitNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "CALocalAccountIdentification.TypeEnum", - "format": "" + "type": "CALocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return CALocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace CALocalAccountIdentification { diff --git a/src/typings/legalEntityManagement/cZLocalAccountIdentification.ts b/src/typings/legalEntityManagement/cZLocalAccountIdentification.ts index 18f7602aa..d3195e341 100644 --- a/src/typings/legalEntityManagement/cZLocalAccountIdentification.ts +++ b/src/typings/legalEntityManagement/cZLocalAccountIdentification.ts @@ -12,46 +12,38 @@ export class CZLocalAccountIdentification { /** * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) */ - "accountNumber": string; + 'accountNumber': string; /** * The 4-digit bank code (Kód banky), without separators or whitespace. */ - "bankCode": string; + 'bankCode': string; /** * **czLocal** */ - "type": CZLocalAccountIdentification.TypeEnum; + 'type': CZLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankCode", "baseName": "bankCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "CZLocalAccountIdentification.TypeEnum", - "format": "" + "type": "CZLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return CZLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace CZLocalAccountIdentification { diff --git a/src/typings/legalEntityManagement/calculatePciStatusRequest.ts b/src/typings/legalEntityManagement/calculatePciStatusRequest.ts index ab055179e..92f46facc 100644 --- a/src/typings/legalEntityManagement/calculatePciStatusRequest.ts +++ b/src/typings/legalEntityManagement/calculatePciStatusRequest.ts @@ -12,26 +12,20 @@ export class CalculatePciStatusRequest { /** * An array of additional sales channels to generate PCI questionnaires. Include the relevant sales channels if you need your user to sign PCI questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** */ - "additionalSalesChannels"?: Array; + 'additionalSalesChannels'?: Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalSalesChannels", "baseName": "additionalSalesChannels", - "type": "CalculatePciStatusRequest.AdditionalSalesChannelsEnum", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return CalculatePciStatusRequest.attributeTypeMap; } - - public constructor() { - } } export namespace CalculatePciStatusRequest { diff --git a/src/typings/legalEntityManagement/calculatePciStatusResponse.ts b/src/typings/legalEntityManagement/calculatePciStatusResponse.ts index 844d8dcf0..0926ae48a 100644 --- a/src/typings/legalEntityManagement/calculatePciStatusResponse.ts +++ b/src/typings/legalEntityManagement/calculatePciStatusResponse.ts @@ -12,25 +12,19 @@ export class CalculatePciStatusResponse { /** * Indicates if the user is required to sign PCI questionnaires. If **false**, they do not need to sign any questionnaires. */ - "signingRequired"?: boolean; + 'signingRequired'?: boolean; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "signingRequired", "baseName": "signingRequired", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return CalculatePciStatusResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/calculateTermsOfServiceStatusResponse.ts b/src/typings/legalEntityManagement/calculateTermsOfServiceStatusResponse.ts index 8d916e9e6..389c788ac 100644 --- a/src/typings/legalEntityManagement/calculateTermsOfServiceStatusResponse.ts +++ b/src/typings/legalEntityManagement/calculateTermsOfServiceStatusResponse.ts @@ -12,26 +12,20 @@ export class CalculateTermsOfServiceStatusResponse { /** * The type of Terms of Service that the legal entity needs to accept. If empty, no Terms of Service needs to be accepted. */ - "termsOfServiceTypes"?: Array; + 'termsOfServiceTypes'?: Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "termsOfServiceTypes", "baseName": "termsOfServiceTypes", - "type": "CalculateTermsOfServiceStatusResponse.TermsOfServiceTypesEnum", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return CalculateTermsOfServiceStatusResponse.attributeTypeMap; } - - public constructor() { - } } export namespace CalculateTermsOfServiceStatusResponse { diff --git a/src/typings/legalEntityManagement/capabilityProblem.ts b/src/typings/legalEntityManagement/capabilityProblem.ts index 1b518026c..97e80c57d 100644 --- a/src/typings/legalEntityManagement/capabilityProblem.ts +++ b/src/typings/legalEntityManagement/capabilityProblem.ts @@ -7,37 +7,29 @@ * Do not edit this class manually. */ -import { CapabilityProblemEntity } from "./capabilityProblemEntity"; -import { VerificationError } from "./verificationError"; - +import { CapabilityProblemEntity } from './capabilityProblemEntity'; +import { VerificationError } from './verificationError'; export class CapabilityProblem { - "entity"?: CapabilityProblemEntity | null; - "verificationErrors"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'entity'?: CapabilityProblemEntity | null; + 'verificationErrors'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "entity", "baseName": "entity", - "type": "CapabilityProblemEntity | null", - "format": "" + "type": "CapabilityProblemEntity | null" }, { "name": "verificationErrors", "baseName": "verificationErrors", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return CapabilityProblem.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/capabilityProblemEntity.ts b/src/typings/legalEntityManagement/capabilityProblemEntity.ts index da0c32ae3..5aec97041 100644 --- a/src/typings/legalEntityManagement/capabilityProblemEntity.ts +++ b/src/typings/legalEntityManagement/capabilityProblemEntity.ts @@ -7,54 +7,44 @@ * Do not edit this class manually. */ -import { CapabilityProblemEntityRecursive } from "./capabilityProblemEntityRecursive"; - +import { CapabilityProblemEntityRecursive } from './capabilityProblemEntityRecursive'; export class CapabilityProblemEntity { /** * List of document IDs corresponding to the verification errors from capabilities. */ - "documents"?: Array; - "id"?: string; - "owner"?: CapabilityProblemEntityRecursive | null; - "type"?: CapabilityProblemEntity.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'documents'?: Array; + 'id'?: string; + 'owner'?: CapabilityProblemEntityRecursive | null; + 'type'?: CapabilityProblemEntity.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "documents", "baseName": "documents", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "owner", "baseName": "owner", - "type": "CapabilityProblemEntityRecursive | null", - "format": "" + "type": "CapabilityProblemEntityRecursive | null" }, { "name": "type", "baseName": "type", - "type": "CapabilityProblemEntity.TypeEnum", - "format": "" + "type": "CapabilityProblemEntity.TypeEnum" } ]; static getAttributeTypeMap() { return CapabilityProblemEntity.attributeTypeMap; } - - public constructor() { - } } export namespace CapabilityProblemEntity { diff --git a/src/typings/legalEntityManagement/capabilityProblemEntityRecursive.ts b/src/typings/legalEntityManagement/capabilityProblemEntityRecursive.ts index 1c75d2037..4969028a7 100644 --- a/src/typings/legalEntityManagement/capabilityProblemEntityRecursive.ts +++ b/src/typings/legalEntityManagement/capabilityProblemEntityRecursive.ts @@ -12,40 +12,32 @@ export class CapabilityProblemEntityRecursive { /** * List of document IDs corresponding to the verification errors from capabilities. */ - "documents"?: Array; - "id"?: string; - "type"?: CapabilityProblemEntityRecursive.TypeEnum; + 'documents'?: Array; + 'id'?: string; + 'type'?: CapabilityProblemEntityRecursive.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "documents", "baseName": "documents", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "CapabilityProblemEntityRecursive.TypeEnum", - "format": "" + "type": "CapabilityProblemEntityRecursive.TypeEnum" } ]; static getAttributeTypeMap() { return CapabilityProblemEntityRecursive.attributeTypeMap; } - - public constructor() { - } } export namespace CapabilityProblemEntityRecursive { diff --git a/src/typings/legalEntityManagement/capabilitySettings.ts b/src/typings/legalEntityManagement/capabilitySettings.ts index b5ce3bb1a..0a3d31209 100644 --- a/src/typings/legalEntityManagement/capabilitySettings.ts +++ b/src/typings/legalEntityManagement/capabilitySettings.ts @@ -7,70 +7,59 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class CapabilitySettings { /** * The maximum amount a card holder can spend per industry. */ - "amountPerIndustry"?: { [key: string]: Amount; }; + 'amountPerIndustry'?: { [key: string]: Amount; }; /** * The number of card holders who can use the card. */ - "authorizedCardUsers"?: boolean; + 'authorizedCardUsers'?: boolean; /** * The funding source of the card, for example **debit**. */ - "fundingSource"?: Array; + 'fundingSource'?: Array; /** * The period when the rule conditions apply. */ - "interval"?: CapabilitySettings.IntervalEnum; - "maxAmount"?: Amount | null; - - static readonly discriminator: string | undefined = undefined; + 'interval'?: CapabilitySettings.IntervalEnum; + 'maxAmount'?: Amount | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amountPerIndustry", "baseName": "amountPerIndustry", - "type": "{ [key: string]: Amount; }", - "format": "" + "type": "{ [key: string]: Amount; }" }, { "name": "authorizedCardUsers", "baseName": "authorizedCardUsers", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "fundingSource", "baseName": "fundingSource", - "type": "CapabilitySettings.FundingSourceEnum", - "format": "" + "type": "Array" }, { "name": "interval", "baseName": "interval", - "type": "CapabilitySettings.IntervalEnum", - "format": "" + "type": "CapabilitySettings.IntervalEnum" }, { "name": "maxAmount", "baseName": "maxAmount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" } ]; static getAttributeTypeMap() { return CapabilitySettings.attributeTypeMap; } - - public constructor() { - } } export namespace CapabilitySettings { diff --git a/src/typings/legalEntityManagement/checkTaxElectronicDeliveryConsentResponse.ts b/src/typings/legalEntityManagement/checkTaxElectronicDeliveryConsentResponse.ts index 6e1a07321..4ab23f662 100644 --- a/src/typings/legalEntityManagement/checkTaxElectronicDeliveryConsentResponse.ts +++ b/src/typings/legalEntityManagement/checkTaxElectronicDeliveryConsentResponse.ts @@ -12,25 +12,19 @@ export class CheckTaxElectronicDeliveryConsentResponse { /** * Consent to electronically deliver tax form US1099-K. */ - "US1099k"?: boolean; + 'US1099k'?: boolean; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "US1099k", "baseName": "US1099k", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return CheckTaxElectronicDeliveryConsentResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/dKLocalAccountIdentification.ts b/src/typings/legalEntityManagement/dKLocalAccountIdentification.ts index 446a92493..63fded678 100644 --- a/src/typings/legalEntityManagement/dKLocalAccountIdentification.ts +++ b/src/typings/legalEntityManagement/dKLocalAccountIdentification.ts @@ -12,46 +12,38 @@ export class DKLocalAccountIdentification { /** * The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). */ - "accountNumber": string; + 'accountNumber': string; /** * The 4-digit bank code (Registreringsnummer) (without separators or whitespace). */ - "bankCode": string; + 'bankCode': string; /** * **dkLocal** */ - "type": DKLocalAccountIdentification.TypeEnum; + 'type': DKLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankCode", "baseName": "bankCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "DKLocalAccountIdentification.TypeEnum", - "format": "" + "type": "DKLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return DKLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace DKLocalAccountIdentification { diff --git a/src/typings/legalEntityManagement/dataReviewConfirmationResponse.ts b/src/typings/legalEntityManagement/dataReviewConfirmationResponse.ts index f61cd3a62..64cb8d06b 100644 --- a/src/typings/legalEntityManagement/dataReviewConfirmationResponse.ts +++ b/src/typings/legalEntityManagement/dataReviewConfirmationResponse.ts @@ -12,25 +12,19 @@ export class DataReviewConfirmationResponse { /** * Date when data review was confirmed. */ - "dataReviewedAt"?: string; + 'dataReviewedAt'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "dataReviewedAt", "baseName": "dataReviewedAt", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return DataReviewConfirmationResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/document.ts b/src/typings/legalEntityManagement/document.ts index 0acacb68c..e4f09cab8 100644 --- a/src/typings/legalEntityManagement/document.ts +++ b/src/typings/legalEntityManagement/document.ts @@ -7,154 +7,135 @@ * Do not edit this class manually. */ -import { Attachment } from "./attachment"; -import { OwnerEntity } from "./ownerEntity"; - +import { Attachment } from './attachment'; +import { OwnerEntity } from './ownerEntity'; export class Document { - "attachment"?: Attachment | null; + 'attachment'?: Attachment | null; /** * Array that contains the document. The array supports multiple attachments for uploading different sides or pages of a document. */ - "attachments"?: Array; + 'attachments'?: Array; /** * The creation date of the document. */ - "creationDate"?: Date; + 'creationDate'?: Date; /** * Your description for the document. */ - "description": string; + 'description': string; /** * The expiry date of the document, in YYYY-MM-DD format. * * @deprecated since Legal Entity Management API v1 */ - "expiryDate"?: string; + 'expiryDate'?: string; /** * The filename of the document. */ - "fileName"?: string; + 'fileName'?: string; /** * The unique identifier of the document. */ - "id"?: string; + 'id'?: string; /** * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**. * * @deprecated since Legal Entity Management API v1 */ - "issuerCountry"?: string; + 'issuerCountry'?: string; /** * The state or province where the document was issued (AU only). * * @deprecated since Legal Entity Management API v1 */ - "issuerState"?: string; + 'issuerState'?: string; /** * The modification date of the document. */ - "modificationDate"?: Date; + 'modificationDate'?: Date; /** * The number in the document. */ - "number"?: string; - "owner"?: OwnerEntity | null; + 'number'?: string; + 'owner'?: OwnerEntity | null; /** * Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value is **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). */ - "type": Document.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': Document.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "attachment", "baseName": "attachment", - "type": "Attachment | null", - "format": "" + "type": "Attachment | null" }, { "name": "attachments", "baseName": "attachments", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "creationDate", "baseName": "creationDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "expiryDate", "baseName": "expiryDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "fileName", "baseName": "fileName", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuerCountry", "baseName": "issuerCountry", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuerState", "baseName": "issuerState", - "type": "string", - "format": "" + "type": "string" }, { "name": "modificationDate", "baseName": "modificationDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "number", "baseName": "number", - "type": "string", - "format": "" + "type": "string" }, { "name": "owner", "baseName": "owner", - "type": "OwnerEntity | null", - "format": "" + "type": "OwnerEntity | null" }, { "name": "type", "baseName": "type", - "type": "Document.TypeEnum", - "format": "" + "type": "Document.TypeEnum" } ]; static getAttributeTypeMap() { return Document.attributeTypeMap; } - - public constructor() { - } } export namespace Document { diff --git a/src/typings/legalEntityManagement/documentPage.ts b/src/typings/legalEntityManagement/documentPage.ts index 73ae89a7b..ce8b08c04 100644 --- a/src/typings/legalEntityManagement/documentPage.ts +++ b/src/typings/legalEntityManagement/documentPage.ts @@ -9,40 +9,32 @@ export class DocumentPage { - "pageName"?: string; - "pageNumber"?: number; - "type"?: DocumentPage.TypeEnum; + 'pageName'?: string; + 'pageNumber'?: number; + 'type'?: DocumentPage.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "pageName", "baseName": "pageName", - "type": "string", - "format": "" + "type": "string" }, { "name": "pageNumber", "baseName": "pageNumber", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "type", "baseName": "type", - "type": "DocumentPage.TypeEnum", - "format": "" + "type": "DocumentPage.TypeEnum" } ]; static getAttributeTypeMap() { return DocumentPage.attributeTypeMap; } - - public constructor() { - } } export namespace DocumentPage { diff --git a/src/typings/legalEntityManagement/documentReference.ts b/src/typings/legalEntityManagement/documentReference.ts index 7fb981c0e..785754734 100644 --- a/src/typings/legalEntityManagement/documentReference.ts +++ b/src/typings/legalEntityManagement/documentReference.ts @@ -7,92 +7,79 @@ * Do not edit this class manually. */ -import { DocumentPage } from "./documentPage"; - +import { DocumentPage } from './documentPage'; export class DocumentReference { /** * Identifies whether the document is active and used for checks. */ - "active"?: boolean; + 'active'?: boolean; /** * Your description for the document. */ - "description"?: string; + 'description'?: string; /** * Document name. */ - "fileName"?: string; + 'fileName'?: string; /** * The unique identifier of the resource. */ - "id"?: string; + 'id'?: string; /** * The modification date of the document. */ - "modificationDate"?: Date; + 'modificationDate'?: Date; /** * List of document pages */ - "pages"?: Array; + 'pages'?: Array; /** * Type of document, used when providing an ID number or uploading a document. */ - "type"?: string; - - static readonly discriminator: string | undefined = undefined; + 'type'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "active", "baseName": "active", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "fileName", "baseName": "fileName", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "modificationDate", "baseName": "modificationDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "pages", "baseName": "pages", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return DocumentReference.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/entityReference.ts b/src/typings/legalEntityManagement/entityReference.ts index bd4dbc0bf..328f82b0e 100644 --- a/src/typings/legalEntityManagement/entityReference.ts +++ b/src/typings/legalEntityManagement/entityReference.ts @@ -12,25 +12,19 @@ export class EntityReference { /** * The unique identifier of the resource. */ - "id"?: string; + 'id'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return EntityReference.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/financialReport.ts b/src/typings/legalEntityManagement/financialReport.ts index 848ed18c3..870588044 100644 --- a/src/typings/legalEntityManagement/financialReport.ts +++ b/src/typings/legalEntityManagement/financialReport.ts @@ -12,75 +12,64 @@ export class FinancialReport { /** * The annual turnover of the business. */ - "annualTurnover"?: string; + 'annualTurnover'?: string; /** * The balance sheet total of the business. */ - "balanceSheetTotal"?: string; + 'balanceSheetTotal'?: string; /** * The currency used for the annual turnover, balance sheet total, and net assets. */ - "currencyOfFinancialData"?: string; + 'currencyOfFinancialData'?: string; /** * The date the financial data were provided, in YYYY-MM-DD format. */ - "dateOfFinancialData": string; + 'dateOfFinancialData': string; /** * The number of employees of the business. */ - "employeeCount"?: string; + 'employeeCount'?: string; /** * The net assets of the business. */ - "netAssets"?: string; + 'netAssets'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "annualTurnover", "baseName": "annualTurnover", - "type": "string", - "format": "" + "type": "string" }, { "name": "balanceSheetTotal", "baseName": "balanceSheetTotal", - "type": "string", - "format": "" + "type": "string" }, { "name": "currencyOfFinancialData", "baseName": "currencyOfFinancialData", - "type": "string", - "format": "" + "type": "string" }, { "name": "dateOfFinancialData", "baseName": "dateOfFinancialData", - "type": "string", - "format": "" + "type": "string" }, { "name": "employeeCount", "baseName": "employeeCount", - "type": "string", - "format": "" + "type": "string" }, { "name": "netAssets", "baseName": "netAssets", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return FinancialReport.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/generatePciDescriptionRequest.ts b/src/typings/legalEntityManagement/generatePciDescriptionRequest.ts index 689446147..f64b09964 100644 --- a/src/typings/legalEntityManagement/generatePciDescriptionRequest.ts +++ b/src/typings/legalEntityManagement/generatePciDescriptionRequest.ts @@ -12,36 +12,29 @@ export class GeneratePciDescriptionRequest { /** * An array of additional sales channels to generate PCI questionnaires. Include the relevant sales channels if you need your user to sign PCI questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the questionnaires. Possible values: * **eCommerce** * **pos** * **ecomMoto** * **posMoto** */ - "additionalSalesChannels"?: Array; + 'additionalSalesChannels'?: Array; /** * Sets the language of the PCI questionnaire. Its value is a two-character [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) language code, for example, **en**. */ - "language"?: string; + 'language'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalSalesChannels", "baseName": "additionalSalesChannels", - "type": "GeneratePciDescriptionRequest.AdditionalSalesChannelsEnum", - "format": "" + "type": "Array" }, { "name": "language", "baseName": "language", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return GeneratePciDescriptionRequest.attributeTypeMap; } - - public constructor() { - } } export namespace GeneratePciDescriptionRequest { diff --git a/src/typings/legalEntityManagement/generatePciDescriptionResponse.ts b/src/typings/legalEntityManagement/generatePciDescriptionResponse.ts index 9abc9bfce..0224a7d24 100644 --- a/src/typings/legalEntityManagement/generatePciDescriptionResponse.ts +++ b/src/typings/legalEntityManagement/generatePciDescriptionResponse.ts @@ -12,45 +12,37 @@ export class GeneratePciDescriptionResponse { /** * The generated questionnaires in a base64 encoded format. */ - "content"?: string; + 'content'?: string; /** * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code for the questionnaire. For example, **en**. */ - "language"?: string; + 'language'?: string; /** * The array of Adyen-generated unique identifiers for the questionnaires. If empty, the user is not required to sign questionnaires. */ - "pciTemplateReferences"?: Array; + 'pciTemplateReferences'?: Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "content", "baseName": "content", - "type": "string", - "format": "byte" + "type": "string" }, { "name": "language", "baseName": "language", - "type": "string", - "format": "" + "type": "string" }, { "name": "pciTemplateReferences", "baseName": "pciTemplateReferences", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return GeneratePciDescriptionResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/getAcceptedTermsOfServiceDocumentResponse.ts b/src/typings/legalEntityManagement/getAcceptedTermsOfServiceDocumentResponse.ts index 9a97584b5..f848433b3 100644 --- a/src/typings/legalEntityManagement/getAcceptedTermsOfServiceDocumentResponse.ts +++ b/src/typings/legalEntityManagement/getAcceptedTermsOfServiceDocumentResponse.ts @@ -12,56 +12,47 @@ export class GetAcceptedTermsOfServiceDocumentResponse { /** * The accepted Terms of Service document in the requested format represented as a Base64-encoded bytes array. */ - "document"?: string; + 'document'?: string; /** * The unique identifier of the legal entity. */ - "id"?: string; + 'id'?: string; /** * An Adyen-generated reference for the accepted Terms of Service. */ - "termsOfServiceAcceptanceReference"?: string; + 'termsOfServiceAcceptanceReference'?: string; /** * The format of the Terms of Service document. */ - "termsOfServiceDocumentFormat"?: GetAcceptedTermsOfServiceDocumentResponse.TermsOfServiceDocumentFormatEnum; + 'termsOfServiceDocumentFormat'?: GetAcceptedTermsOfServiceDocumentResponse.TermsOfServiceDocumentFormatEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "document", "baseName": "document", - "type": "string", - "format": "byte" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "termsOfServiceAcceptanceReference", "baseName": "termsOfServiceAcceptanceReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "termsOfServiceDocumentFormat", "baseName": "termsOfServiceDocumentFormat", - "type": "GetAcceptedTermsOfServiceDocumentResponse.TermsOfServiceDocumentFormatEnum", - "format": "" + "type": "GetAcceptedTermsOfServiceDocumentResponse.TermsOfServiceDocumentFormatEnum" } ]; static getAttributeTypeMap() { return GetAcceptedTermsOfServiceDocumentResponse.attributeTypeMap; } - - public constructor() { - } } export namespace GetAcceptedTermsOfServiceDocumentResponse { diff --git a/src/typings/legalEntityManagement/getPciQuestionnaireInfosResponse.ts b/src/typings/legalEntityManagement/getPciQuestionnaireInfosResponse.ts index 3ed31f971..9bb3c0c45 100644 --- a/src/typings/legalEntityManagement/getPciQuestionnaireInfosResponse.ts +++ b/src/typings/legalEntityManagement/getPciQuestionnaireInfosResponse.ts @@ -7,32 +7,25 @@ * Do not edit this class manually. */ -import { PciDocumentInfo } from "./pciDocumentInfo"; - +import { PciDocumentInfo } from './pciDocumentInfo'; export class GetPciQuestionnaireInfosResponse { /** * Information about the signed PCI questionnaires. */ - "data"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'data'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return GetPciQuestionnaireInfosResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/getPciQuestionnaireResponse.ts b/src/typings/legalEntityManagement/getPciQuestionnaireResponse.ts index 30037f9b7..19b26ae69 100644 --- a/src/typings/legalEntityManagement/getPciQuestionnaireResponse.ts +++ b/src/typings/legalEntityManagement/getPciQuestionnaireResponse.ts @@ -12,55 +12,46 @@ export class GetPciQuestionnaireResponse { /** * The generated questionnaire in a base64 encoded format. */ - "content"?: string; + 'content'?: string; /** * The date the questionnaire was created, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 */ - "createdAt"?: Date; + 'createdAt'?: Date; /** * The unique identifier of the signed questionnaire. */ - "id"?: string; + 'id'?: string; /** * The expiration date of the questionnaire, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 */ - "validUntil"?: Date; + 'validUntil'?: Date; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "content", "baseName": "content", - "type": "string", - "format": "byte" + "type": "string" }, { "name": "createdAt", "baseName": "createdAt", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "validUntil", "baseName": "validUntil", - "type": "Date", - "format": "date-time" + "type": "Date" } ]; static getAttributeTypeMap() { return GetPciQuestionnaireResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/getTermsOfServiceAcceptanceInfosResponse.ts b/src/typings/legalEntityManagement/getTermsOfServiceAcceptanceInfosResponse.ts index 2360fa69d..4c5a99148 100644 --- a/src/typings/legalEntityManagement/getTermsOfServiceAcceptanceInfosResponse.ts +++ b/src/typings/legalEntityManagement/getTermsOfServiceAcceptanceInfosResponse.ts @@ -7,32 +7,25 @@ * Do not edit this class manually. */ -import { TermsOfServiceAcceptanceInfo } from "./termsOfServiceAcceptanceInfo"; - +import { TermsOfServiceAcceptanceInfo } from './termsOfServiceAcceptanceInfo'; export class GetTermsOfServiceAcceptanceInfosResponse { /** * The Terms of Service acceptance information. */ - "data"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'data'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return GetTermsOfServiceAcceptanceInfosResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/getTermsOfServiceDocumentRequest.ts b/src/typings/legalEntityManagement/getTermsOfServiceDocumentRequest.ts index cb715ffdd..40cd078c3 100644 --- a/src/typings/legalEntityManagement/getTermsOfServiceDocumentRequest.ts +++ b/src/typings/legalEntityManagement/getTermsOfServiceDocumentRequest.ts @@ -12,46 +12,38 @@ export class GetTermsOfServiceDocumentRequest { /** * The language to be used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English. */ - "language": string; + 'language': string; /** * The requested format for the Terms of Service document. Default value: JSON. Possible values: **JSON**, **PDF**, or **TXT**. */ - "termsOfServiceDocumentFormat"?: string; + 'termsOfServiceDocumentFormat'?: string; /** * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** */ - "type": GetTermsOfServiceDocumentRequest.TypeEnum; + 'type': GetTermsOfServiceDocumentRequest.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "language", "baseName": "language", - "type": "string", - "format": "" + "type": "string" }, { "name": "termsOfServiceDocumentFormat", "baseName": "termsOfServiceDocumentFormat", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "GetTermsOfServiceDocumentRequest.TypeEnum", - "format": "" + "type": "GetTermsOfServiceDocumentRequest.TypeEnum" } ]; static getAttributeTypeMap() { return GetTermsOfServiceDocumentRequest.attributeTypeMap; } - - public constructor() { - } } export namespace GetTermsOfServiceDocumentRequest { diff --git a/src/typings/legalEntityManagement/getTermsOfServiceDocumentResponse.ts b/src/typings/legalEntityManagement/getTermsOfServiceDocumentResponse.ts index ca8e94b72..b2063b513 100644 --- a/src/typings/legalEntityManagement/getTermsOfServiceDocumentResponse.ts +++ b/src/typings/legalEntityManagement/getTermsOfServiceDocumentResponse.ts @@ -12,76 +12,65 @@ export class GetTermsOfServiceDocumentResponse { /** * The Terms of Service document in Base64-encoded format. */ - "document"?: string; + 'document'?: string; /** * The unique identifier of the legal entity. */ - "id"?: string; + 'id'?: string; /** * The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English. */ - "language"?: string; + 'language'?: string; /** * The format of the Terms of Service document. */ - "termsOfServiceDocumentFormat"?: string; + 'termsOfServiceDocumentFormat'?: string; /** * The unique identifier of the Terms of Service document. */ - "termsOfServiceDocumentId"?: string; + 'termsOfServiceDocumentId'?: string; /** * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** */ - "type"?: GetTermsOfServiceDocumentResponse.TypeEnum; + 'type'?: GetTermsOfServiceDocumentResponse.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "document", "baseName": "document", - "type": "string", - "format": "byte" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "language", "baseName": "language", - "type": "string", - "format": "" + "type": "string" }, { "name": "termsOfServiceDocumentFormat", "baseName": "termsOfServiceDocumentFormat", - "type": "string", - "format": "" + "type": "string" }, { "name": "termsOfServiceDocumentId", "baseName": "termsOfServiceDocumentId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "GetTermsOfServiceDocumentResponse.TypeEnum", - "format": "" + "type": "GetTermsOfServiceDocumentResponse.TypeEnum" } ]; static getAttributeTypeMap() { return GetTermsOfServiceDocumentResponse.attributeTypeMap; } - - public constructor() { - } } export namespace GetTermsOfServiceDocumentResponse { diff --git a/src/typings/legalEntityManagement/hKLocalAccountIdentification.ts b/src/typings/legalEntityManagement/hKLocalAccountIdentification.ts index 2e7942bb4..57d7533bf 100644 --- a/src/typings/legalEntityManagement/hKLocalAccountIdentification.ts +++ b/src/typings/legalEntityManagement/hKLocalAccountIdentification.ts @@ -12,46 +12,38 @@ export class HKLocalAccountIdentification { /** * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. */ - "accountNumber": string; + 'accountNumber': string; /** * The 3-digit clearing code, without separators or whitespace. */ - "clearingCode": string; + 'clearingCode': string; /** * **hkLocal** */ - "type": HKLocalAccountIdentification.TypeEnum; + 'type': HKLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "clearingCode", "baseName": "clearingCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "HKLocalAccountIdentification.TypeEnum", - "format": "" + "type": "HKLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return HKLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace HKLocalAccountIdentification { diff --git a/src/typings/legalEntityManagement/hULocalAccountIdentification.ts b/src/typings/legalEntityManagement/hULocalAccountIdentification.ts index 312e153ea..b05fc60f1 100644 --- a/src/typings/legalEntityManagement/hULocalAccountIdentification.ts +++ b/src/typings/legalEntityManagement/hULocalAccountIdentification.ts @@ -12,36 +12,29 @@ export class HULocalAccountIdentification { /** * The 24-digit bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * **huLocal** */ - "type": HULocalAccountIdentification.TypeEnum; + 'type': HULocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "HULocalAccountIdentification.TypeEnum", - "format": "" + "type": "HULocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return HULocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace HULocalAccountIdentification { diff --git a/src/typings/legalEntityManagement/ibanAccountIdentification.ts b/src/typings/legalEntityManagement/ibanAccountIdentification.ts index 010b37fb3..df72fe59d 100644 --- a/src/typings/legalEntityManagement/ibanAccountIdentification.ts +++ b/src/typings/legalEntityManagement/ibanAccountIdentification.ts @@ -12,36 +12,29 @@ export class IbanAccountIdentification { /** * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ - "iban": string; + 'iban': string; /** * **iban** */ - "type": IbanAccountIdentification.TypeEnum; + 'type': IbanAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "iban", "baseName": "iban", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "IbanAccountIdentification.TypeEnum", - "format": "" + "type": "IbanAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return IbanAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace IbanAccountIdentification { diff --git a/src/typings/legalEntityManagement/identificationData.ts b/src/typings/legalEntityManagement/identificationData.ts index 9a47671e4..f8d22bd0a 100644 --- a/src/typings/legalEntityManagement/identificationData.ts +++ b/src/typings/legalEntityManagement/identificationData.ts @@ -12,88 +12,76 @@ export class IdentificationData { /** * The card number of the document that was issued (AU only). */ - "cardNumber"?: string; + 'cardNumber'?: string; /** * The expiry date of the document, in YYYY-MM-DD format. */ - "expiryDate"?: string; + 'expiryDate'?: string; /** * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**. * * @deprecated since Legal Entity Management API v1 */ - "issuerCountry"?: string; + 'issuerCountry'?: string; /** * The state or province where the document was issued (AU only). */ - "issuerState"?: string; + 'issuerState'?: string; /** * Applies only to individuals in the US. Set to **true** if the individual does not have an SSN. To verify their identity, Adyen will require them to upload an ID document. */ - "nationalIdExempt"?: boolean; + 'nationalIdExempt'?: boolean; /** * The number in the document. */ - "number"?: string; + 'number'?: string; /** * Type of identity data. For individuals, the following types are supported. See our [onboarding guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber** */ - "type": IdentificationData.TypeEnum; + 'type': IdentificationData.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "cardNumber", "baseName": "cardNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "expiryDate", "baseName": "expiryDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuerCountry", "baseName": "issuerCountry", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuerState", "baseName": "issuerState", - "type": "string", - "format": "" + "type": "string" }, { "name": "nationalIdExempt", "baseName": "nationalIdExempt", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "number", "baseName": "number", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "IdentificationData.TypeEnum", - "format": "" + "type": "IdentificationData.TypeEnum" } ]; static getAttributeTypeMap() { return IdentificationData.attributeTypeMap; } - - public constructor() { - } } export namespace IdentificationData { diff --git a/src/typings/legalEntityManagement/individual.ts b/src/typings/legalEntityManagement/individual.ts index 130cdca53..373ebd48f 100644 --- a/src/typings/legalEntityManagement/individual.ts +++ b/src/typings/legalEntityManagement/individual.ts @@ -7,100 +7,85 @@ * Do not edit this class manually. */ -import { Address } from "./address"; -import { BirthData } from "./birthData"; -import { IdentificationData } from "./identificationData"; -import { Name } from "./name"; -import { PhoneNumber } from "./phoneNumber"; -import { TaxInformation } from "./taxInformation"; -import { WebData } from "./webData"; - +import { Address } from './address'; +import { BirthData } from './birthData'; +import { IdentificationData } from './identificationData'; +import { Name } from './name'; +import { PhoneNumber } from './phoneNumber'; +import { TaxInformation } from './taxInformation'; +import { WebData } from './webData'; export class Individual { - "birthData"?: BirthData | null; + 'birthData'?: BirthData | null; /** * The email address of the legal entity. */ - "email"?: string; - "identificationData"?: IdentificationData | null; - "name": Name; + 'email'?: string; + 'identificationData'?: IdentificationData | null; + 'name': Name; /** * The individual\'s nationality. */ - "nationality"?: string; - "phone"?: PhoneNumber | null; - "residentialAddress": Address; + 'nationality'?: string; + 'phone'?: PhoneNumber | null; + 'residentialAddress': Address; /** * The tax information of the individual. */ - "taxInformation"?: Array; - "webData"?: WebData | null; - - static readonly discriminator: string | undefined = undefined; + 'taxInformation'?: Array; + 'webData'?: WebData | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "birthData", "baseName": "birthData", - "type": "BirthData | null", - "format": "" + "type": "BirthData | null" }, { "name": "email", "baseName": "email", - "type": "string", - "format": "" + "type": "string" }, { "name": "identificationData", "baseName": "identificationData", - "type": "IdentificationData | null", - "format": "" + "type": "IdentificationData | null" }, { "name": "name", "baseName": "name", - "type": "Name", - "format": "" + "type": "Name" }, { "name": "nationality", "baseName": "nationality", - "type": "string", - "format": "" + "type": "string" }, { "name": "phone", "baseName": "phone", - "type": "PhoneNumber | null", - "format": "" + "type": "PhoneNumber | null" }, { "name": "residentialAddress", "baseName": "residentialAddress", - "type": "Address", - "format": "" + "type": "Address" }, { "name": "taxInformation", "baseName": "taxInformation", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "webData", "baseName": "webData", - "type": "WebData | null", - "format": "" + "type": "WebData | null" } ]; static getAttributeTypeMap() { return Individual.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/legalEntity.ts b/src/typings/legalEntityManagement/legalEntity.ts index ad3424570..f83c471a5 100644 --- a/src/typings/legalEntityManagement/legalEntity.ts +++ b/src/typings/legalEntityManagement/legalEntity.ts @@ -7,182 +7,160 @@ * Do not edit this class manually. */ -import { CapabilityProblem } from "./capabilityProblem"; -import { DocumentReference } from "./documentReference"; -import { EntityReference } from "./entityReference"; -import { Individual } from "./individual"; -import { LegalEntityAssociation } from "./legalEntityAssociation"; -import { LegalEntityCapability } from "./legalEntityCapability"; -import { Organization } from "./organization"; -import { SoleProprietorship } from "./soleProprietorship"; -import { TransferInstrumentReference } from "./transferInstrumentReference"; -import { Trust } from "./trust"; -import { UnincorporatedPartnership } from "./unincorporatedPartnership"; -import { VerificationDeadline } from "./verificationDeadline"; - +import { CapabilityProblem } from './capabilityProblem'; +import { DocumentReference } from './documentReference'; +import { EntityReference } from './entityReference'; +import { Individual } from './individual'; +import { LegalEntityAssociation } from './legalEntityAssociation'; +import { LegalEntityCapability } from './legalEntityCapability'; +import { Organization } from './organization'; +import { SoleProprietorship } from './soleProprietorship'; +import { TransferInstrumentReference } from './transferInstrumentReference'; +import { Trust } from './trust'; +import { UnincorporatedPartnership } from './unincorporatedPartnership'; +import { VerificationDeadline } from './verificationDeadline'; export class LegalEntity { /** * Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. */ - "capabilities"?: { [key: string]: LegalEntityCapability; }; + 'capabilities'?: { [key: string]: LegalEntityCapability; }; /** * List of documents uploaded for the legal entity. */ - "documentDetails"?: Array; + 'documentDetails'?: Array; /** * List of documents uploaded for the legal entity. * * @deprecated since Legal Entity Management API v1 * Use the `documentDetails` array instead. */ - "documents"?: Array; + 'documents'?: Array; /** * List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. */ - "entityAssociations"?: Array; + 'entityAssociations'?: Array; /** * The unique identifier of the legal entity. */ - "id": string; - "individual"?: Individual | null; - "organization"?: Organization | null; + 'id': string; + 'individual'?: Individual | null; + 'organization'?: Organization | null; /** * List of verification errors related to capabilities for the legal entity. */ - "problems"?: Array; + 'problems'?: Array; /** * Your reference for the legal entity, maximum 150 characters. */ - "reference"?: string; - "soleProprietorship"?: SoleProprietorship | null; + 'reference'?: string; + 'soleProprietorship'?: SoleProprietorship | null; /** * List of transfer instruments that the legal entity owns. */ - "transferInstruments"?: Array; - "trust"?: Trust | null; + 'transferInstruments'?: Array; + 'trust'?: Trust | null; /** * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. */ - "type"?: LegalEntity.TypeEnum; - "unincorporatedPartnership"?: UnincorporatedPartnership | null; + 'type'?: LegalEntity.TypeEnum; + 'unincorporatedPartnership'?: UnincorporatedPartnership | null; /** * List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. */ - "verificationDeadlines"?: Array; + 'verificationDeadlines'?: Array; /** * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). */ - "verificationPlan"?: string; - - static readonly discriminator: string | undefined = undefined; + 'verificationPlan'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "capabilities", "baseName": "capabilities", - "type": "{ [key: string]: LegalEntityCapability; }", - "format": "" + "type": "{ [key: string]: LegalEntityCapability; }" }, { "name": "documentDetails", "baseName": "documentDetails", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "documents", "baseName": "documents", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "entityAssociations", "baseName": "entityAssociations", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "individual", "baseName": "individual", - "type": "Individual | null", - "format": "" + "type": "Individual | null" }, { "name": "organization", "baseName": "organization", - "type": "Organization | null", - "format": "" + "type": "Organization | null" }, { "name": "problems", "baseName": "problems", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "soleProprietorship", "baseName": "soleProprietorship", - "type": "SoleProprietorship | null", - "format": "" + "type": "SoleProprietorship | null" }, { "name": "transferInstruments", "baseName": "transferInstruments", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "trust", "baseName": "trust", - "type": "Trust | null", - "format": "" + "type": "Trust | null" }, { "name": "type", "baseName": "type", - "type": "LegalEntity.TypeEnum", - "format": "" + "type": "LegalEntity.TypeEnum" }, { "name": "unincorporatedPartnership", "baseName": "unincorporatedPartnership", - "type": "UnincorporatedPartnership | null", - "format": "" + "type": "UnincorporatedPartnership | null" }, { "name": "verificationDeadlines", "baseName": "verificationDeadlines", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "verificationPlan", "baseName": "verificationPlan", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return LegalEntity.attributeTypeMap; } - - public constructor() { - } } export namespace LegalEntity { diff --git a/src/typings/legalEntityManagement/legalEntityAssociation.ts b/src/typings/legalEntityManagement/legalEntityAssociation.ts index 0e4b84d2e..5f7e28f3b 100644 --- a/src/typings/legalEntityManagement/legalEntityAssociation.ts +++ b/src/typings/legalEntityManagement/legalEntityAssociation.ts @@ -12,106 +12,92 @@ export class LegalEntityAssociation { /** * The unique identifier of another legal entity with which the `legalEntityId` is associated. When the `legalEntityId` is associated to legal entities other than the current one, the response returns all the associations. */ - "associatorId"?: string; + 'associatorId'?: string; /** * The legal entity type of associated legal entity. For example, **organization**, **soleProprietorship** or **individual**. */ - "entityType"?: string; + 'entityType'?: string; /** * The individual\'s job title if the `type` is **uboThroughControl** or **signatory**. */ - "jobTitle"?: string; + 'jobTitle'?: string; /** * The unique identifier of the associated [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). */ - "legalEntityId": string; + 'legalEntityId': string; /** * The name of the associated [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). - For **individual**, `name.firstName` and `name.lastName`. - For **organization**, `legalName`. - For **soleProprietorship**, `name`. */ - "name"?: string; + 'name'?: string; /** * Default value: **false** Set to **true** if the entity association `type` **director**, **secondaryPartner** or **shareholder** is also a nominee. Only applicable to New Zealand. */ - "nominee"?: boolean; + 'nominee'?: boolean; /** * The individual\'s relationship to a legal representative if the `type` is **legalRepresentative**. Possible values: **parent**, **guardian**. */ - "relationship"?: string; + 'relationship'?: string; /** * Defines the KYC exemption reason for a settlor associated with a trust. Only applicable to trusts in Australia. For example, **professionalServiceProvider**, **deceased**, or **contributionBelowThreshold**. */ - "settlorExemptionReason"?: Array; + 'settlorExemptionReason'?: Array; /** * Defines the relationship of the legal entity to the current legal entity. Possible value for individuals: **legalRepresentative**. Possible values for organizations: **director**, **signatory**, **trustOwnership**, **uboThroughOwnership**, **uboThroughControl**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust**. Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**. Possible value for unincorporated partnership: **unincorporatedPartnership**. Possible values for unincorporated partnership members: **secondaryPartner**, **uboThroughControl**, **uboThroughOwnership** */ - "type": LegalEntityAssociation.TypeEnum; + 'type': LegalEntityAssociation.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "associatorId", "baseName": "associatorId", - "type": "string", - "format": "" + "type": "string" }, { "name": "entityType", "baseName": "entityType", - "type": "string", - "format": "" + "type": "string" }, { "name": "jobTitle", "baseName": "jobTitle", - "type": "string", - "format": "" + "type": "string" }, { "name": "legalEntityId", "baseName": "legalEntityId", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "nominee", "baseName": "nominee", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "relationship", "baseName": "relationship", - "type": "string", - "format": "" + "type": "string" }, { "name": "settlorExemptionReason", "baseName": "settlorExemptionReason", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "type", "baseName": "type", - "type": "LegalEntityAssociation.TypeEnum", - "format": "" + "type": "LegalEntityAssociation.TypeEnum" } ]; static getAttributeTypeMap() { return LegalEntityAssociation.attributeTypeMap; } - - public constructor() { - } } export namespace LegalEntityAssociation { diff --git a/src/typings/legalEntityManagement/legalEntityCapability.ts b/src/typings/legalEntityManagement/legalEntityCapability.ts index 146b2c11e..ca818f750 100644 --- a/src/typings/legalEntityManagement/legalEntityCapability.ts +++ b/src/typings/legalEntityManagement/legalEntityCapability.ts @@ -7,98 +7,84 @@ * Do not edit this class manually. */ -import { CapabilitySettings } from "./capabilitySettings"; -import { SupportingEntityCapability } from "./supportingEntityCapability"; - +import { CapabilitySettings } from './capabilitySettings'; +import { SupportingEntityCapability } from './supportingEntityCapability'; export class LegalEntityCapability { /** * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful. */ - "allowed"?: boolean; + 'allowed'?: boolean; /** * The capability level that is allowed for the legal entity. Possible values: **notApplicable**, **low**, **medium**, **high**. */ - "allowedLevel"?: LegalEntityCapability.AllowedLevelEnum; - "allowedSettings"?: CapabilitySettings | null; + 'allowedLevel'?: LegalEntityCapability.AllowedLevelEnum; + 'allowedSettings'?: CapabilitySettings | null; /** * Indicates whether the capability is requested. To check whether the legal entity is permitted to use the capability, refer to the `allowed` field. */ - "requested"?: boolean; + 'requested'?: boolean; /** * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. */ - "requestedLevel"?: LegalEntityCapability.RequestedLevelEnum; - "requestedSettings"?: CapabilitySettings | null; + 'requestedLevel'?: LegalEntityCapability.RequestedLevelEnum; + 'requestedSettings'?: CapabilitySettings | null; /** * The capability status of transfer instruments associated with the legal entity. */ - "transferInstruments"?: Array; + 'transferInstruments'?: Array; /** * The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. */ - "verificationStatus"?: string; - - static readonly discriminator: string | undefined = undefined; + 'verificationStatus'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "allowed", "baseName": "allowed", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "allowedLevel", "baseName": "allowedLevel", - "type": "LegalEntityCapability.AllowedLevelEnum", - "format": "" + "type": "LegalEntityCapability.AllowedLevelEnum" }, { "name": "allowedSettings", "baseName": "allowedSettings", - "type": "CapabilitySettings | null", - "format": "" + "type": "CapabilitySettings | null" }, { "name": "requested", "baseName": "requested", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "requestedLevel", "baseName": "requestedLevel", - "type": "LegalEntityCapability.RequestedLevelEnum", - "format": "" + "type": "LegalEntityCapability.RequestedLevelEnum" }, { "name": "requestedSettings", "baseName": "requestedSettings", - "type": "CapabilitySettings | null", - "format": "" + "type": "CapabilitySettings | null" }, { "name": "transferInstruments", "baseName": "transferInstruments", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "verificationStatus", "baseName": "verificationStatus", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return LegalEntityCapability.attributeTypeMap; } - - public constructor() { - } } export namespace LegalEntityCapability { diff --git a/src/typings/legalEntityManagement/legalEntityInfo.ts b/src/typings/legalEntityManagement/legalEntityInfo.ts index 10e794650..e7c291288 100644 --- a/src/typings/legalEntityManagement/legalEntityInfo.ts +++ b/src/typings/legalEntityManagement/legalEntityInfo.ts @@ -7,114 +7,98 @@ * Do not edit this class manually. */ -import { Individual } from "./individual"; -import { LegalEntityAssociation } from "./legalEntityAssociation"; -import { LegalEntityCapability } from "./legalEntityCapability"; -import { Organization } from "./organization"; -import { SoleProprietorship } from "./soleProprietorship"; -import { Trust } from "./trust"; -import { UnincorporatedPartnership } from "./unincorporatedPartnership"; - +import { Individual } from './individual'; +import { LegalEntityAssociation } from './legalEntityAssociation'; +import { LegalEntityCapability } from './legalEntityCapability'; +import { Organization } from './organization'; +import { SoleProprietorship } from './soleProprietorship'; +import { Trust } from './trust'; +import { UnincorporatedPartnership } from './unincorporatedPartnership'; export class LegalEntityInfo { /** * Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. */ - "capabilities"?: { [key: string]: LegalEntityCapability; }; + 'capabilities'?: { [key: string]: LegalEntityCapability; }; /** * List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. */ - "entityAssociations"?: Array; - "individual"?: Individual | null; - "organization"?: Organization | null; + 'entityAssociations'?: Array; + 'individual'?: Individual | null; + 'organization'?: Organization | null; /** * Your reference for the legal entity, maximum 150 characters. */ - "reference"?: string; - "soleProprietorship"?: SoleProprietorship | null; - "trust"?: Trust | null; + 'reference'?: string; + 'soleProprietorship'?: SoleProprietorship | null; + 'trust'?: Trust | null; /** * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. */ - "type"?: LegalEntityInfo.TypeEnum; - "unincorporatedPartnership"?: UnincorporatedPartnership | null; + 'type'?: LegalEntityInfo.TypeEnum; + 'unincorporatedPartnership'?: UnincorporatedPartnership | null; /** * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). */ - "verificationPlan"?: string; - - static readonly discriminator: string | undefined = undefined; + 'verificationPlan'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "capabilities", "baseName": "capabilities", - "type": "{ [key: string]: LegalEntityCapability; }", - "format": "" + "type": "{ [key: string]: LegalEntityCapability; }" }, { "name": "entityAssociations", "baseName": "entityAssociations", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "individual", "baseName": "individual", - "type": "Individual | null", - "format": "" + "type": "Individual | null" }, { "name": "organization", "baseName": "organization", - "type": "Organization | null", - "format": "" + "type": "Organization | null" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "soleProprietorship", "baseName": "soleProprietorship", - "type": "SoleProprietorship | null", - "format": "" + "type": "SoleProprietorship | null" }, { "name": "trust", "baseName": "trust", - "type": "Trust | null", - "format": "" + "type": "Trust | null" }, { "name": "type", "baseName": "type", - "type": "LegalEntityInfo.TypeEnum", - "format": "" + "type": "LegalEntityInfo.TypeEnum" }, { "name": "unincorporatedPartnership", "baseName": "unincorporatedPartnership", - "type": "UnincorporatedPartnership | null", - "format": "" + "type": "UnincorporatedPartnership | null" }, { "name": "verificationPlan", "baseName": "verificationPlan", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return LegalEntityInfo.attributeTypeMap; } - - public constructor() { - } } export namespace LegalEntityInfo { diff --git a/src/typings/legalEntityManagement/legalEntityInfoRequiredType.ts b/src/typings/legalEntityManagement/legalEntityInfoRequiredType.ts index 38e3d27eb..0ef922b97 100644 --- a/src/typings/legalEntityManagement/legalEntityInfoRequiredType.ts +++ b/src/typings/legalEntityManagement/legalEntityInfoRequiredType.ts @@ -7,114 +7,98 @@ * Do not edit this class manually. */ -import { Individual } from "./individual"; -import { LegalEntityAssociation } from "./legalEntityAssociation"; -import { LegalEntityCapability } from "./legalEntityCapability"; -import { Organization } from "./organization"; -import { SoleProprietorship } from "./soleProprietorship"; -import { Trust } from "./trust"; -import { UnincorporatedPartnership } from "./unincorporatedPartnership"; - +import { Individual } from './individual'; +import { LegalEntityAssociation } from './legalEntityAssociation'; +import { LegalEntityCapability } from './legalEntityCapability'; +import { Organization } from './organization'; +import { SoleProprietorship } from './soleProprietorship'; +import { Trust } from './trust'; +import { UnincorporatedPartnership } from './unincorporatedPartnership'; export class LegalEntityInfoRequiredType { /** * Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. */ - "capabilities"?: { [key: string]: LegalEntityCapability; }; + 'capabilities'?: { [key: string]: LegalEntityCapability; }; /** * List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. */ - "entityAssociations"?: Array; - "individual"?: Individual | null; - "organization"?: Organization | null; + 'entityAssociations'?: Array; + 'individual'?: Individual | null; + 'organization'?: Organization | null; /** * Your reference for the legal entity, maximum 150 characters. */ - "reference"?: string; - "soleProprietorship"?: SoleProprietorship | null; - "trust"?: Trust | null; + 'reference'?: string; + 'soleProprietorship'?: SoleProprietorship | null; + 'trust'?: Trust | null; /** * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. */ - "type": LegalEntityInfoRequiredType.TypeEnum; - "unincorporatedPartnership"?: UnincorporatedPartnership | null; + 'type': LegalEntityInfoRequiredType.TypeEnum; + 'unincorporatedPartnership'?: UnincorporatedPartnership | null; /** * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). */ - "verificationPlan"?: string; - - static readonly discriminator: string | undefined = undefined; + 'verificationPlan'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "capabilities", "baseName": "capabilities", - "type": "{ [key: string]: LegalEntityCapability; }", - "format": "" + "type": "{ [key: string]: LegalEntityCapability; }" }, { "name": "entityAssociations", "baseName": "entityAssociations", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "individual", "baseName": "individual", - "type": "Individual | null", - "format": "" + "type": "Individual | null" }, { "name": "organization", "baseName": "organization", - "type": "Organization | null", - "format": "" + "type": "Organization | null" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "soleProprietorship", "baseName": "soleProprietorship", - "type": "SoleProprietorship | null", - "format": "" + "type": "SoleProprietorship | null" }, { "name": "trust", "baseName": "trust", - "type": "Trust | null", - "format": "" + "type": "Trust | null" }, { "name": "type", "baseName": "type", - "type": "LegalEntityInfoRequiredType.TypeEnum", - "format": "" + "type": "LegalEntityInfoRequiredType.TypeEnum" }, { "name": "unincorporatedPartnership", "baseName": "unincorporatedPartnership", - "type": "UnincorporatedPartnership | null", - "format": "" + "type": "UnincorporatedPartnership | null" }, { "name": "verificationPlan", "baseName": "verificationPlan", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return LegalEntityInfoRequiredType.attributeTypeMap; } - - public constructor() { - } } export namespace LegalEntityInfoRequiredType { diff --git a/src/typings/legalEntityManagement/models.ts b/src/typings/legalEntityManagement/models.ts index 4f34440ef..2ee5efac7 100644 --- a/src/typings/legalEntityManagement/models.ts +++ b/src/typings/legalEntityManagement/models.ts @@ -1,94 +1,476 @@ -export * from "./aULocalAccountIdentification" -export * from "./acceptTermsOfServiceRequest" -export * from "./acceptTermsOfServiceResponse" -export * from "./additionalBankIdentification" -export * from "./address" -export * from "./amount" -export * from "./attachment" -export * from "./bankAccountInfo" -export * from "./bankAccountInfoAccountIdentification" -export * from "./birthData" -export * from "./businessLine" -export * from "./businessLineInfo" -export * from "./businessLineInfoUpdate" -export * from "./businessLines" -export * from "./cALocalAccountIdentification" -export * from "./cZLocalAccountIdentification" -export * from "./calculatePciStatusRequest" -export * from "./calculatePciStatusResponse" -export * from "./calculateTermsOfServiceStatusResponse" -export * from "./capabilityProblem" -export * from "./capabilityProblemEntity" -export * from "./capabilityProblemEntityRecursive" -export * from "./capabilitySettings" -export * from "./checkTaxElectronicDeliveryConsentResponse" -export * from "./dKLocalAccountIdentification" -export * from "./dataReviewConfirmationResponse" -export * from "./document" -export * from "./documentPage" -export * from "./documentReference" -export * from "./entityReference" -export * from "./financialReport" -export * from "./generatePciDescriptionRequest" -export * from "./generatePciDescriptionResponse" -export * from "./getAcceptedTermsOfServiceDocumentResponse" -export * from "./getPciQuestionnaireInfosResponse" -export * from "./getPciQuestionnaireResponse" -export * from "./getTermsOfServiceAcceptanceInfosResponse" -export * from "./getTermsOfServiceDocumentRequest" -export * from "./getTermsOfServiceDocumentResponse" -export * from "./hKLocalAccountIdentification" -export * from "./hULocalAccountIdentification" -export * from "./ibanAccountIdentification" -export * from "./identificationData" -export * from "./individual" -export * from "./legalEntity" -export * from "./legalEntityAssociation" -export * from "./legalEntityCapability" -export * from "./legalEntityInfo" -export * from "./legalEntityInfoRequiredType" -export * from "./nOLocalAccountIdentification" -export * from "./nZLocalAccountIdentification" -export * from "./name" -export * from "./numberAndBicAccountIdentification" -export * from "./onboardingLink" -export * from "./onboardingLinkInfo" -export * from "./onboardingLinkSettings" -export * from "./onboardingTheme" -export * from "./onboardingThemes" -export * from "./organization" -export * from "./ownerEntity" -export * from "./pLLocalAccountIdentification" -export * from "./pciDocumentInfo" -export * from "./pciSigningRequest" -export * from "./pciSigningResponse" -export * from "./phoneNumber" -export * from "./remediatingAction" -export * from "./sELocalAccountIdentification" -export * from "./sGLocalAccountIdentification" -export * from "./serviceError" -export * from "./setTaxElectronicDeliveryConsentRequest" -export * from "./soleProprietorship" -export * from "./sourceOfFunds" -export * from "./stockData" -export * from "./supportingEntityCapability" -export * from "./taxInformation" -export * from "./taxReportingClassification" -export * from "./termsOfServiceAcceptanceInfo" -export * from "./transferInstrument" -export * from "./transferInstrumentInfo" -export * from "./transferInstrumentReference" -export * from "./trust" -export * from "./uKLocalAccountIdentification" -export * from "./uSLocalAccountIdentification" -export * from "./undefinedBeneficiary" -export * from "./unincorporatedPartnership" -export * from "./verificationDeadline" -export * from "./verificationError" -export * from "./verificationErrorRecursive" -export * from "./verificationErrors" -export * from "./webData" -export * from "./webDataExemption" +/* + * 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. + */ -// serializing and deserializing typed objects -export * from "./objectSerializer" \ No newline at end of file + +export * from './aULocalAccountIdentification'; +export * from './acceptTermsOfServiceRequest'; +export * from './acceptTermsOfServiceResponse'; +export * from './additionalBankIdentification'; +export * from './address'; +export * from './amount'; +export * from './attachment'; +export * from './bankAccountInfo'; +export * from './birthData'; +export * from './businessLine'; +export * from './businessLineInfo'; +export * from './businessLineInfoUpdate'; +export * from './businessLines'; +export * from './cALocalAccountIdentification'; +export * from './cZLocalAccountIdentification'; +export * from './calculatePciStatusRequest'; +export * from './calculatePciStatusResponse'; +export * from './calculateTermsOfServiceStatusResponse'; +export * from './capabilityProblem'; +export * from './capabilityProblemEntity'; +export * from './capabilityProblemEntityRecursive'; +export * from './capabilitySettings'; +export * from './checkTaxElectronicDeliveryConsentResponse'; +export * from './dKLocalAccountIdentification'; +export * from './dataReviewConfirmationResponse'; +export * from './document'; +export * from './documentPage'; +export * from './documentReference'; +export * from './entityReference'; +export * from './financialReport'; +export * from './generatePciDescriptionRequest'; +export * from './generatePciDescriptionResponse'; +export * from './getAcceptedTermsOfServiceDocumentResponse'; +export * from './getPciQuestionnaireInfosResponse'; +export * from './getPciQuestionnaireResponse'; +export * from './getTermsOfServiceAcceptanceInfosResponse'; +export * from './getTermsOfServiceDocumentRequest'; +export * from './getTermsOfServiceDocumentResponse'; +export * from './hKLocalAccountIdentification'; +export * from './hULocalAccountIdentification'; +export * from './ibanAccountIdentification'; +export * from './identificationData'; +export * from './individual'; +export * from './legalEntity'; +export * from './legalEntityAssociation'; +export * from './legalEntityCapability'; +export * from './legalEntityInfo'; +export * from './legalEntityInfoRequiredType'; +export * from './nOLocalAccountIdentification'; +export * from './nZLocalAccountIdentification'; +export * from './name'; +export * from './numberAndBicAccountIdentification'; +export * from './onboardingLink'; +export * from './onboardingLinkInfo'; +export * from './onboardingLinkSettings'; +export * from './onboardingTheme'; +export * from './onboardingThemes'; +export * from './organization'; +export * from './ownerEntity'; +export * from './pLLocalAccountIdentification'; +export * from './pciDocumentInfo'; +export * from './pciSigningRequest'; +export * from './pciSigningResponse'; +export * from './phoneNumber'; +export * from './remediatingAction'; +export * from './sELocalAccountIdentification'; +export * from './sGLocalAccountIdentification'; +export * from './serviceError'; +export * from './setTaxElectronicDeliveryConsentRequest'; +export * from './soleProprietorship'; +export * from './sourceOfFunds'; +export * from './stockData'; +export * from './supportingEntityCapability'; +export * from './taxInformation'; +export * from './taxReportingClassification'; +export * from './termsOfServiceAcceptanceInfo'; +export * from './transferInstrument'; +export * from './transferInstrumentInfo'; +export * from './transferInstrumentReference'; +export * from './trust'; +export * from './uKLocalAccountIdentification'; +export * from './uSLocalAccountIdentification'; +export * from './undefinedBeneficiary'; +export * from './unincorporatedPartnership'; +export * from './verificationDeadline'; +export * from './verificationError'; +export * from './verificationErrorRecursive'; +export * from './verificationErrors'; +export * from './webData'; +export * from './webDataExemption'; + + +import { AULocalAccountIdentification } from './aULocalAccountIdentification'; +import { AcceptTermsOfServiceRequest } from './acceptTermsOfServiceRequest'; +import { AcceptTermsOfServiceResponse } from './acceptTermsOfServiceResponse'; +import { AdditionalBankIdentification } from './additionalBankIdentification'; +import { Address } from './address'; +import { Amount } from './amount'; +import { Attachment } from './attachment'; +import { BankAccountInfo } from './bankAccountInfo'; +import { BirthData } from './birthData'; +import { BusinessLine } from './businessLine'; +import { BusinessLineInfo } from './businessLineInfo'; +import { BusinessLineInfoUpdate } from './businessLineInfoUpdate'; +import { BusinessLines } from './businessLines'; +import { CALocalAccountIdentification } from './cALocalAccountIdentification'; +import { CZLocalAccountIdentification } from './cZLocalAccountIdentification'; +import { CalculatePciStatusRequest } from './calculatePciStatusRequest'; +import { CalculatePciStatusResponse } from './calculatePciStatusResponse'; +import { CalculateTermsOfServiceStatusResponse } from './calculateTermsOfServiceStatusResponse'; +import { CapabilityProblem } from './capabilityProblem'; +import { CapabilityProblemEntity } from './capabilityProblemEntity'; +import { CapabilityProblemEntityRecursive } from './capabilityProblemEntityRecursive'; +import { CapabilitySettings } from './capabilitySettings'; +import { CheckTaxElectronicDeliveryConsentResponse } from './checkTaxElectronicDeliveryConsentResponse'; +import { DKLocalAccountIdentification } from './dKLocalAccountIdentification'; +import { DataReviewConfirmationResponse } from './dataReviewConfirmationResponse'; +import { Document } from './document'; +import { DocumentPage } from './documentPage'; +import { DocumentReference } from './documentReference'; +import { EntityReference } from './entityReference'; +import { FinancialReport } from './financialReport'; +import { GeneratePciDescriptionRequest } from './generatePciDescriptionRequest'; +import { GeneratePciDescriptionResponse } from './generatePciDescriptionResponse'; +import { GetAcceptedTermsOfServiceDocumentResponse } from './getAcceptedTermsOfServiceDocumentResponse'; +import { GetPciQuestionnaireInfosResponse } from './getPciQuestionnaireInfosResponse'; +import { GetPciQuestionnaireResponse } from './getPciQuestionnaireResponse'; +import { GetTermsOfServiceAcceptanceInfosResponse } from './getTermsOfServiceAcceptanceInfosResponse'; +import { GetTermsOfServiceDocumentRequest } from './getTermsOfServiceDocumentRequest'; +import { GetTermsOfServiceDocumentResponse } from './getTermsOfServiceDocumentResponse'; +import { HKLocalAccountIdentification } from './hKLocalAccountIdentification'; +import { HULocalAccountIdentification } from './hULocalAccountIdentification'; +import { IbanAccountIdentification } from './ibanAccountIdentification'; +import { IdentificationData } from './identificationData'; +import { Individual } from './individual'; +import { LegalEntity } from './legalEntity'; +import { LegalEntityAssociation } from './legalEntityAssociation'; +import { LegalEntityCapability } from './legalEntityCapability'; +import { LegalEntityInfo } from './legalEntityInfo'; +import { LegalEntityInfoRequiredType } from './legalEntityInfoRequiredType'; +import { NOLocalAccountIdentification } from './nOLocalAccountIdentification'; +import { NZLocalAccountIdentification } from './nZLocalAccountIdentification'; +import { Name } from './name'; +import { NumberAndBicAccountIdentification } from './numberAndBicAccountIdentification'; +import { OnboardingLink } from './onboardingLink'; +import { OnboardingLinkInfo } from './onboardingLinkInfo'; +import { OnboardingLinkSettings } from './onboardingLinkSettings'; +import { OnboardingTheme } from './onboardingTheme'; +import { OnboardingThemes } from './onboardingThemes'; +import { Organization } from './organization'; +import { OwnerEntity } from './ownerEntity'; +import { PLLocalAccountIdentification } from './pLLocalAccountIdentification'; +import { PciDocumentInfo } from './pciDocumentInfo'; +import { PciSigningRequest } from './pciSigningRequest'; +import { PciSigningResponse } from './pciSigningResponse'; +import { PhoneNumber } from './phoneNumber'; +import { RemediatingAction } from './remediatingAction'; +import { SELocalAccountIdentification } from './sELocalAccountIdentification'; +import { SGLocalAccountIdentification } from './sGLocalAccountIdentification'; +import { ServiceError } from './serviceError'; +import { SetTaxElectronicDeliveryConsentRequest } from './setTaxElectronicDeliveryConsentRequest'; +import { SoleProprietorship } from './soleProprietorship'; +import { SourceOfFunds } from './sourceOfFunds'; +import { StockData } from './stockData'; +import { SupportingEntityCapability } from './supportingEntityCapability'; +import { TaxInformation } from './taxInformation'; +import { TaxReportingClassification } from './taxReportingClassification'; +import { TermsOfServiceAcceptanceInfo } from './termsOfServiceAcceptanceInfo'; +import { TransferInstrument } from './transferInstrument'; +import { TransferInstrumentInfo } from './transferInstrumentInfo'; +import { TransferInstrumentReference } from './transferInstrumentReference'; +import { Trust } from './trust'; +import { UKLocalAccountIdentification } from './uKLocalAccountIdentification'; +import { USLocalAccountIdentification } from './uSLocalAccountIdentification'; +import { UndefinedBeneficiary } from './undefinedBeneficiary'; +import { UnincorporatedPartnership } from './unincorporatedPartnership'; +import { VerificationDeadline } from './verificationDeadline'; +import { VerificationError } from './verificationError'; +import { VerificationErrorRecursive } from './verificationErrorRecursive'; +import { VerificationErrors } from './verificationErrors'; +import { WebData } from './webData'; +import { WebDataExemption } from './webDataExemption'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "AULocalAccountIdentification.TypeEnum": AULocalAccountIdentification.TypeEnum, + "AcceptTermsOfServiceResponse.TypeEnum": AcceptTermsOfServiceResponse.TypeEnum, + "AdditionalBankIdentification.TypeEnum": AdditionalBankIdentification.TypeEnum, + "BusinessLine.CapabilityEnum": BusinessLine.CapabilityEnum, + "BusinessLine.ServiceEnum": BusinessLine.ServiceEnum, + "BusinessLineInfo.CapabilityEnum": BusinessLineInfo.CapabilityEnum, + "BusinessLineInfo.ServiceEnum": BusinessLineInfo.ServiceEnum, + "CALocalAccountIdentification.AccountTypeEnum": CALocalAccountIdentification.AccountTypeEnum, + "CALocalAccountIdentification.TypeEnum": CALocalAccountIdentification.TypeEnum, + "CZLocalAccountIdentification.TypeEnum": CZLocalAccountIdentification.TypeEnum, + "CalculatePciStatusRequest.AdditionalSalesChannelsEnum": CalculatePciStatusRequest.AdditionalSalesChannelsEnum, + "CalculateTermsOfServiceStatusResponse.TermsOfServiceTypesEnum": CalculateTermsOfServiceStatusResponse.TermsOfServiceTypesEnum, + "CapabilityProblemEntity.TypeEnum": CapabilityProblemEntity.TypeEnum, + "CapabilityProblemEntityRecursive.TypeEnum": CapabilityProblemEntityRecursive.TypeEnum, + "CapabilitySettings.FundingSourceEnum": CapabilitySettings.FundingSourceEnum, + "CapabilitySettings.IntervalEnum": CapabilitySettings.IntervalEnum, + "DKLocalAccountIdentification.TypeEnum": DKLocalAccountIdentification.TypeEnum, + "Document.TypeEnum": Document.TypeEnum, + "DocumentPage.TypeEnum": DocumentPage.TypeEnum, + "GeneratePciDescriptionRequest.AdditionalSalesChannelsEnum": GeneratePciDescriptionRequest.AdditionalSalesChannelsEnum, + "GetAcceptedTermsOfServiceDocumentResponse.TermsOfServiceDocumentFormatEnum": GetAcceptedTermsOfServiceDocumentResponse.TermsOfServiceDocumentFormatEnum, + "GetTermsOfServiceDocumentRequest.TypeEnum": GetTermsOfServiceDocumentRequest.TypeEnum, + "GetTermsOfServiceDocumentResponse.TypeEnum": GetTermsOfServiceDocumentResponse.TypeEnum, + "HKLocalAccountIdentification.TypeEnum": HKLocalAccountIdentification.TypeEnum, + "HULocalAccountIdentification.TypeEnum": HULocalAccountIdentification.TypeEnum, + "IbanAccountIdentification.TypeEnum": IbanAccountIdentification.TypeEnum, + "IdentificationData.TypeEnum": IdentificationData.TypeEnum, + "LegalEntity.TypeEnum": LegalEntity.TypeEnum, + "LegalEntityAssociation.TypeEnum": LegalEntityAssociation.TypeEnum, + "LegalEntityCapability.AllowedLevelEnum": LegalEntityCapability.AllowedLevelEnum, + "LegalEntityCapability.RequestedLevelEnum": LegalEntityCapability.RequestedLevelEnum, + "LegalEntityInfo.TypeEnum": LegalEntityInfo.TypeEnum, + "LegalEntityInfoRequiredType.TypeEnum": LegalEntityInfoRequiredType.TypeEnum, + "NOLocalAccountIdentification.TypeEnum": NOLocalAccountIdentification.TypeEnum, + "NZLocalAccountIdentification.TypeEnum": NZLocalAccountIdentification.TypeEnum, + "NumberAndBicAccountIdentification.TypeEnum": NumberAndBicAccountIdentification.TypeEnum, + "Organization.TypeEnum": Organization.TypeEnum, + "Organization.VatAbsenceReasonEnum": Organization.VatAbsenceReasonEnum, + "PLLocalAccountIdentification.TypeEnum": PLLocalAccountIdentification.TypeEnum, + "SELocalAccountIdentification.TypeEnum": SELocalAccountIdentification.TypeEnum, + "SGLocalAccountIdentification.TypeEnum": SGLocalAccountIdentification.TypeEnum, + "SoleProprietorship.VatAbsenceReasonEnum": SoleProprietorship.VatAbsenceReasonEnum, + "SourceOfFunds.TypeEnum": SourceOfFunds.TypeEnum, + "TaxReportingClassification.BusinessTypeEnum": TaxReportingClassification.BusinessTypeEnum, + "TaxReportingClassification.MainSourceOfIncomeEnum": TaxReportingClassification.MainSourceOfIncomeEnum, + "TaxReportingClassification.TypeEnum": TaxReportingClassification.TypeEnum, + "TermsOfServiceAcceptanceInfo.TypeEnum": TermsOfServiceAcceptanceInfo.TypeEnum, + "TransferInstrument.TypeEnum": TransferInstrument.TypeEnum, + "TransferInstrumentInfo.TypeEnum": TransferInstrumentInfo.TypeEnum, + "Trust.TypeEnum": Trust.TypeEnum, + "Trust.VatAbsenceReasonEnum": Trust.VatAbsenceReasonEnum, + "UKLocalAccountIdentification.TypeEnum": UKLocalAccountIdentification.TypeEnum, + "USLocalAccountIdentification.AccountTypeEnum": USLocalAccountIdentification.AccountTypeEnum, + "USLocalAccountIdentification.TypeEnum": USLocalAccountIdentification.TypeEnum, + "UnincorporatedPartnership.TypeEnum": UnincorporatedPartnership.TypeEnum, + "UnincorporatedPartnership.VatAbsenceReasonEnum": UnincorporatedPartnership.VatAbsenceReasonEnum, + "VerificationDeadline.CapabilitiesEnum": VerificationDeadline.CapabilitiesEnum, + "VerificationError.CapabilitiesEnum": VerificationError.CapabilitiesEnum, + "VerificationError.TypeEnum": VerificationError.TypeEnum, + "VerificationErrorRecursive.CapabilitiesEnum": VerificationErrorRecursive.CapabilitiesEnum, + "VerificationErrorRecursive.TypeEnum": VerificationErrorRecursive.TypeEnum, + "WebDataExemption.ReasonEnum": WebDataExemption.ReasonEnum, +} + +let typeMap: {[index: string]: any} = { + "AULocalAccountIdentification": AULocalAccountIdentification, + "AcceptTermsOfServiceRequest": AcceptTermsOfServiceRequest, + "AcceptTermsOfServiceResponse": AcceptTermsOfServiceResponse, + "AdditionalBankIdentification": AdditionalBankIdentification, + "Address": Address, + "Amount": Amount, + "Attachment": Attachment, + "BankAccountInfo": BankAccountInfo, + "BirthData": BirthData, + "BusinessLine": BusinessLine, + "BusinessLineInfo": BusinessLineInfo, + "BusinessLineInfoUpdate": BusinessLineInfoUpdate, + "BusinessLines": BusinessLines, + "CALocalAccountIdentification": CALocalAccountIdentification, + "CZLocalAccountIdentification": CZLocalAccountIdentification, + "CalculatePciStatusRequest": CalculatePciStatusRequest, + "CalculatePciStatusResponse": CalculatePciStatusResponse, + "CalculateTermsOfServiceStatusResponse": CalculateTermsOfServiceStatusResponse, + "CapabilityProblem": CapabilityProblem, + "CapabilityProblemEntity": CapabilityProblemEntity, + "CapabilityProblemEntityRecursive": CapabilityProblemEntityRecursive, + "CapabilitySettings": CapabilitySettings, + "CheckTaxElectronicDeliveryConsentResponse": CheckTaxElectronicDeliveryConsentResponse, + "DKLocalAccountIdentification": DKLocalAccountIdentification, + "DataReviewConfirmationResponse": DataReviewConfirmationResponse, + "Document": Document, + "DocumentPage": DocumentPage, + "DocumentReference": DocumentReference, + "EntityReference": EntityReference, + "FinancialReport": FinancialReport, + "GeneratePciDescriptionRequest": GeneratePciDescriptionRequest, + "GeneratePciDescriptionResponse": GeneratePciDescriptionResponse, + "GetAcceptedTermsOfServiceDocumentResponse": GetAcceptedTermsOfServiceDocumentResponse, + "GetPciQuestionnaireInfosResponse": GetPciQuestionnaireInfosResponse, + "GetPciQuestionnaireResponse": GetPciQuestionnaireResponse, + "GetTermsOfServiceAcceptanceInfosResponse": GetTermsOfServiceAcceptanceInfosResponse, + "GetTermsOfServiceDocumentRequest": GetTermsOfServiceDocumentRequest, + "GetTermsOfServiceDocumentResponse": GetTermsOfServiceDocumentResponse, + "HKLocalAccountIdentification": HKLocalAccountIdentification, + "HULocalAccountIdentification": HULocalAccountIdentification, + "IbanAccountIdentification": IbanAccountIdentification, + "IdentificationData": IdentificationData, + "Individual": Individual, + "LegalEntity": LegalEntity, + "LegalEntityAssociation": LegalEntityAssociation, + "LegalEntityCapability": LegalEntityCapability, + "LegalEntityInfo": LegalEntityInfo, + "LegalEntityInfoRequiredType": LegalEntityInfoRequiredType, + "NOLocalAccountIdentification": NOLocalAccountIdentification, + "NZLocalAccountIdentification": NZLocalAccountIdentification, + "Name": Name, + "NumberAndBicAccountIdentification": NumberAndBicAccountIdentification, + "OnboardingLink": OnboardingLink, + "OnboardingLinkInfo": OnboardingLinkInfo, + "OnboardingLinkSettings": OnboardingLinkSettings, + "OnboardingTheme": OnboardingTheme, + "OnboardingThemes": OnboardingThemes, + "Organization": Organization, + "OwnerEntity": OwnerEntity, + "PLLocalAccountIdentification": PLLocalAccountIdentification, + "PciDocumentInfo": PciDocumentInfo, + "PciSigningRequest": PciSigningRequest, + "PciSigningResponse": PciSigningResponse, + "PhoneNumber": PhoneNumber, + "RemediatingAction": RemediatingAction, + "SELocalAccountIdentification": SELocalAccountIdentification, + "SGLocalAccountIdentification": SGLocalAccountIdentification, + "ServiceError": ServiceError, + "SetTaxElectronicDeliveryConsentRequest": SetTaxElectronicDeliveryConsentRequest, + "SoleProprietorship": SoleProprietorship, + "SourceOfFunds": SourceOfFunds, + "StockData": StockData, + "SupportingEntityCapability": SupportingEntityCapability, + "TaxInformation": TaxInformation, + "TaxReportingClassification": TaxReportingClassification, + "TermsOfServiceAcceptanceInfo": TermsOfServiceAcceptanceInfo, + "TransferInstrument": TransferInstrument, + "TransferInstrumentInfo": TransferInstrumentInfo, + "TransferInstrumentReference": TransferInstrumentReference, + "Trust": Trust, + "UKLocalAccountIdentification": UKLocalAccountIdentification, + "USLocalAccountIdentification": USLocalAccountIdentification, + "UndefinedBeneficiary": UndefinedBeneficiary, + "UnincorporatedPartnership": UnincorporatedPartnership, + "VerificationDeadline": VerificationDeadline, + "VerificationError": VerificationError, + "VerificationErrorRecursive": VerificationErrorRecursive, + "VerificationErrors": VerificationErrors, + "WebData": WebData, + "WebDataExemption": WebDataExemption, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/legalEntityManagement/nOLocalAccountIdentification.ts b/src/typings/legalEntityManagement/nOLocalAccountIdentification.ts index 6f027dd1a..6ba897a58 100644 --- a/src/typings/legalEntityManagement/nOLocalAccountIdentification.ts +++ b/src/typings/legalEntityManagement/nOLocalAccountIdentification.ts @@ -12,36 +12,29 @@ export class NOLocalAccountIdentification { /** * The 11-digit bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * **noLocal** */ - "type": NOLocalAccountIdentification.TypeEnum; + 'type': NOLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "NOLocalAccountIdentification.TypeEnum", - "format": "" + "type": "NOLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return NOLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace NOLocalAccountIdentification { diff --git a/src/typings/legalEntityManagement/nZLocalAccountIdentification.ts b/src/typings/legalEntityManagement/nZLocalAccountIdentification.ts index 3d9551d56..de28e370c 100644 --- a/src/typings/legalEntityManagement/nZLocalAccountIdentification.ts +++ b/src/typings/legalEntityManagement/nZLocalAccountIdentification.ts @@ -12,36 +12,29 @@ export class NZLocalAccountIdentification { /** * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. */ - "accountNumber": string; + 'accountNumber': string; /** * **nzLocal** */ - "type": NZLocalAccountIdentification.TypeEnum; + 'type': NZLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "NZLocalAccountIdentification.TypeEnum", - "format": "" + "type": "NZLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return NZLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace NZLocalAccountIdentification { diff --git a/src/typings/legalEntityManagement/name.ts b/src/typings/legalEntityManagement/name.ts index bb7c02e19..185dc9876 100644 --- a/src/typings/legalEntityManagement/name.ts +++ b/src/typings/legalEntityManagement/name.ts @@ -12,45 +12,37 @@ export class Name { /** * The individual\'s first name. Must not be blank. */ - "firstName": string; + 'firstName': string; /** * The infix in the individual\'s name, if any. */ - "infix"?: string; + 'infix'?: string; /** * The individual\'s last name. Must not be blank. */ - "lastName": string; + 'lastName': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "firstName", "baseName": "firstName", - "type": "string", - "format": "" + "type": "string" }, { "name": "infix", "baseName": "infix", - "type": "string", - "format": "" + "type": "string" }, { "name": "lastName", "baseName": "lastName", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Name.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/numberAndBicAccountIdentification.ts b/src/typings/legalEntityManagement/numberAndBicAccountIdentification.ts index c0becad2e..283424e68 100644 --- a/src/typings/legalEntityManagement/numberAndBicAccountIdentification.ts +++ b/src/typings/legalEntityManagement/numberAndBicAccountIdentification.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { AdditionalBankIdentification } from "./additionalBankIdentification"; - +import { AdditionalBankIdentification } from './additionalBankIdentification'; export class NumberAndBicAccountIdentification { /** * The bank account number, without separators or whitespace. The length and format depends on the bank or country. */ - "accountNumber": string; - "additionalBankIdentification"?: AdditionalBankIdentification | null; + 'accountNumber': string; + 'additionalBankIdentification'?: AdditionalBankIdentification | null; /** * The bank\'s 8- or 11-character BIC or SWIFT code. */ - "bic": string; + 'bic': string; /** * **numberAndBic** */ - "type": NumberAndBicAccountIdentification.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': NumberAndBicAccountIdentification.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "additionalBankIdentification", "baseName": "additionalBankIdentification", - "type": "AdditionalBankIdentification | null", - "format": "" + "type": "AdditionalBankIdentification | null" }, { "name": "bic", "baseName": "bic", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "NumberAndBicAccountIdentification.TypeEnum", - "format": "" + "type": "NumberAndBicAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return NumberAndBicAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace NumberAndBicAccountIdentification { diff --git a/src/typings/legalEntityManagement/objectSerializer.ts b/src/typings/legalEntityManagement/objectSerializer.ts deleted file mode 100644 index 7aac50759..000000000 --- a/src/typings/legalEntityManagement/objectSerializer.ts +++ /dev/null @@ -1,589 +0,0 @@ -export * from "./models"; - -import { AULocalAccountIdentification } from "./aULocalAccountIdentification"; -import { AcceptTermsOfServiceRequest } from "./acceptTermsOfServiceRequest"; -import { AcceptTermsOfServiceResponse } from "./acceptTermsOfServiceResponse"; -import { AdditionalBankIdentification } from "./additionalBankIdentification"; -import { Address } from "./address"; -import { Amount } from "./amount"; -import { Attachment } from "./attachment"; -import { BankAccountInfo } from "./bankAccountInfo"; -import { BankAccountInfoAccountIdentificationClass } from "./bankAccountInfoAccountIdentification"; -import { BirthData } from "./birthData"; -import { BusinessLine } from "./businessLine"; -import { BusinessLineInfo } from "./businessLineInfo"; -import { BusinessLineInfoUpdate } from "./businessLineInfoUpdate"; -import { BusinessLines } from "./businessLines"; -import { CALocalAccountIdentification } from "./cALocalAccountIdentification"; -import { CZLocalAccountIdentification } from "./cZLocalAccountIdentification"; -import { CalculatePciStatusRequest } from "./calculatePciStatusRequest"; -import { CalculatePciStatusResponse } from "./calculatePciStatusResponse"; -import { CalculateTermsOfServiceStatusResponse } from "./calculateTermsOfServiceStatusResponse"; -import { CapabilityProblem } from "./capabilityProblem"; -import { CapabilityProblemEntity } from "./capabilityProblemEntity"; -import { CapabilityProblemEntityRecursive } from "./capabilityProblemEntityRecursive"; -import { CapabilitySettings } from "./capabilitySettings"; -import { CheckTaxElectronicDeliveryConsentResponse } from "./checkTaxElectronicDeliveryConsentResponse"; -import { DKLocalAccountIdentification } from "./dKLocalAccountIdentification"; -import { DataReviewConfirmationResponse } from "./dataReviewConfirmationResponse"; -import { Document } from "./document"; -import { DocumentPage } from "./documentPage"; -import { DocumentReference } from "./documentReference"; -import { EntityReference } from "./entityReference"; -import { FinancialReport } from "./financialReport"; -import { GeneratePciDescriptionRequest } from "./generatePciDescriptionRequest"; -import { GeneratePciDescriptionResponse } from "./generatePciDescriptionResponse"; -import { GetAcceptedTermsOfServiceDocumentResponse } from "./getAcceptedTermsOfServiceDocumentResponse"; -import { GetPciQuestionnaireInfosResponse } from "./getPciQuestionnaireInfosResponse"; -import { GetPciQuestionnaireResponse } from "./getPciQuestionnaireResponse"; -import { GetTermsOfServiceAcceptanceInfosResponse } from "./getTermsOfServiceAcceptanceInfosResponse"; -import { GetTermsOfServiceDocumentRequest } from "./getTermsOfServiceDocumentRequest"; -import { GetTermsOfServiceDocumentResponse } from "./getTermsOfServiceDocumentResponse"; -import { HKLocalAccountIdentification } from "./hKLocalAccountIdentification"; -import { HULocalAccountIdentification } from "./hULocalAccountIdentification"; -import { IbanAccountIdentification } from "./ibanAccountIdentification"; -import { IdentificationData } from "./identificationData"; -import { Individual } from "./individual"; -import { LegalEntity } from "./legalEntity"; -import { LegalEntityAssociation } from "./legalEntityAssociation"; -import { LegalEntityCapability } from "./legalEntityCapability"; -import { LegalEntityInfo } from "./legalEntityInfo"; -import { LegalEntityInfoRequiredType } from "./legalEntityInfoRequiredType"; -import { NOLocalAccountIdentification } from "./nOLocalAccountIdentification"; -import { NZLocalAccountIdentification } from "./nZLocalAccountIdentification"; -import { Name } from "./name"; -import { NumberAndBicAccountIdentification } from "./numberAndBicAccountIdentification"; -import { OnboardingLink } from "./onboardingLink"; -import { OnboardingLinkInfo } from "./onboardingLinkInfo"; -import { OnboardingLinkSettings } from "./onboardingLinkSettings"; -import { OnboardingTheme } from "./onboardingTheme"; -import { OnboardingThemes } from "./onboardingThemes"; -import { Organization } from "./organization"; -import { OwnerEntity } from "./ownerEntity"; -import { PLLocalAccountIdentification } from "./pLLocalAccountIdentification"; -import { PciDocumentInfo } from "./pciDocumentInfo"; -import { PciSigningRequest } from "./pciSigningRequest"; -import { PciSigningResponse } from "./pciSigningResponse"; -import { PhoneNumber } from "./phoneNumber"; -import { RemediatingAction } from "./remediatingAction"; -import { SELocalAccountIdentification } from "./sELocalAccountIdentification"; -import { SGLocalAccountIdentification } from "./sGLocalAccountIdentification"; -import { ServiceError } from "./serviceError"; -import { SetTaxElectronicDeliveryConsentRequest } from "./setTaxElectronicDeliveryConsentRequest"; -import { SoleProprietorship } from "./soleProprietorship"; -import { SourceOfFunds } from "./sourceOfFunds"; -import { StockData } from "./stockData"; -import { SupportingEntityCapability } from "./supportingEntityCapability"; -import { TaxInformation } from "./taxInformation"; -import { TaxReportingClassification } from "./taxReportingClassification"; -import { TermsOfServiceAcceptanceInfo } from "./termsOfServiceAcceptanceInfo"; -import { TransferInstrument } from "./transferInstrument"; -import { TransferInstrumentInfo } from "./transferInstrumentInfo"; -import { TransferInstrumentReference } from "./transferInstrumentReference"; -import { Trust } from "./trust"; -import { UKLocalAccountIdentification } from "./uKLocalAccountIdentification"; -import { USLocalAccountIdentification } from "./uSLocalAccountIdentification"; -import { UndefinedBeneficiary } from "./undefinedBeneficiary"; -import { UnincorporatedPartnership } from "./unincorporatedPartnership"; -import { VerificationDeadline } from "./verificationDeadline"; -import { VerificationError } from "./verificationError"; -import { VerificationErrorRecursive } from "./verificationErrorRecursive"; -import { VerificationErrors } from "./verificationErrors"; -import { WebData } from "./webData"; -import { WebDataExemption } from "./webDataExemption"; - -/* tslint:disable:no-unused-variable */ -let primitives = [ - "string", - "boolean", - "double", - "integer", - "long", - "float", - "number", - "any" - ]; - -let enumsMap: Set = new Set([ - "AULocalAccountIdentification.TypeEnum", - "AcceptTermsOfServiceResponse.TypeEnum", - "AdditionalBankIdentification.TypeEnum", - "BankAccountInfoAccountIdentification.TypeEnum", - "BankAccountInfoAccountIdentification.AccountTypeEnum", - "BusinessLine.CapabilityEnum", - "BusinessLine.ServiceEnum", - "BusinessLineInfo.CapabilityEnum", - "BusinessLineInfo.ServiceEnum", - "CALocalAccountIdentification.AccountTypeEnum", - "CALocalAccountIdentification.TypeEnum", - "CZLocalAccountIdentification.TypeEnum", - "CalculatePciStatusRequest.AdditionalSalesChannelsEnum", - "CalculateTermsOfServiceStatusResponse.TermsOfServiceTypesEnum", - "CapabilityProblemEntity.TypeEnum", - "CapabilityProblemEntityRecursive.TypeEnum", - "CapabilitySettings.FundingSourceEnum", - "CapabilitySettings.IntervalEnum", - "DKLocalAccountIdentification.TypeEnum", - "Document.TypeEnum", - "DocumentPage.TypeEnum", - "GeneratePciDescriptionRequest.AdditionalSalesChannelsEnum", - "GetAcceptedTermsOfServiceDocumentResponse.TermsOfServiceDocumentFormatEnum", - "GetTermsOfServiceDocumentRequest.TypeEnum", - "GetTermsOfServiceDocumentResponse.TypeEnum", - "HKLocalAccountIdentification.TypeEnum", - "HULocalAccountIdentification.TypeEnum", - "IbanAccountIdentification.TypeEnum", - "IdentificationData.TypeEnum", - "LegalEntity.TypeEnum", - "LegalEntityAssociation.TypeEnum", - "LegalEntityCapability.AllowedLevelEnum", - "LegalEntityCapability.RequestedLevelEnum", - "LegalEntityInfo.TypeEnum", - "LegalEntityInfoRequiredType.TypeEnum", - "NOLocalAccountIdentification.TypeEnum", - "NZLocalAccountIdentification.TypeEnum", - "NumberAndBicAccountIdentification.TypeEnum", - "Organization.TypeEnum", - "Organization.VatAbsenceReasonEnum", - "PLLocalAccountIdentification.TypeEnum", - "SELocalAccountIdentification.TypeEnum", - "SGLocalAccountIdentification.TypeEnum", - "SoleProprietorship.VatAbsenceReasonEnum", - "SourceOfFunds.TypeEnum", - "TaxReportingClassification.BusinessTypeEnum", - "TaxReportingClassification.MainSourceOfIncomeEnum", - "TaxReportingClassification.TypeEnum", - "TermsOfServiceAcceptanceInfo.TypeEnum", - "TransferInstrument.TypeEnum", - "TransferInstrumentInfo.TypeEnum", - "Trust.TypeEnum", - "Trust.VatAbsenceReasonEnum", - "UKLocalAccountIdentification.TypeEnum", - "USLocalAccountIdentification.AccountTypeEnum", - "USLocalAccountIdentification.TypeEnum", - "UnincorporatedPartnership.TypeEnum", - "UnincorporatedPartnership.VatAbsenceReasonEnum", - "VerificationDeadline.CapabilitiesEnum", - "VerificationError.CapabilitiesEnum", - "VerificationError.TypeEnum", - "VerificationErrorRecursive.CapabilitiesEnum", - "VerificationErrorRecursive.TypeEnum", - "WebDataExemption.ReasonEnum", -]); - -let typeMap: {[index: string]: any} = { - "AULocalAccountIdentification": AULocalAccountIdentification, - "AcceptTermsOfServiceRequest": AcceptTermsOfServiceRequest, - "AcceptTermsOfServiceResponse": AcceptTermsOfServiceResponse, - "AdditionalBankIdentification": AdditionalBankIdentification, - "Address": Address, - "Amount": Amount, - "Attachment": Attachment, - "BankAccountInfo": BankAccountInfo, - "BankAccountInfoAccountIdentification": BankAccountInfoAccountIdentificationClass, - "BirthData": BirthData, - "BusinessLine": BusinessLine, - "BusinessLineInfo": BusinessLineInfo, - "BusinessLineInfoUpdate": BusinessLineInfoUpdate, - "BusinessLines": BusinessLines, - "CALocalAccountIdentification": CALocalAccountIdentification, - "CZLocalAccountIdentification": CZLocalAccountIdentification, - "CalculatePciStatusRequest": CalculatePciStatusRequest, - "CalculatePciStatusResponse": CalculatePciStatusResponse, - "CalculateTermsOfServiceStatusResponse": CalculateTermsOfServiceStatusResponse, - "CapabilityProblem": CapabilityProblem, - "CapabilityProblemEntity": CapabilityProblemEntity, - "CapabilityProblemEntityRecursive": CapabilityProblemEntityRecursive, - "CapabilitySettings": CapabilitySettings, - "CheckTaxElectronicDeliveryConsentResponse": CheckTaxElectronicDeliveryConsentResponse, - "DKLocalAccountIdentification": DKLocalAccountIdentification, - "DataReviewConfirmationResponse": DataReviewConfirmationResponse, - "Document": Document, - "DocumentPage": DocumentPage, - "DocumentReference": DocumentReference, - "EntityReference": EntityReference, - "FinancialReport": FinancialReport, - "GeneratePciDescriptionRequest": GeneratePciDescriptionRequest, - "GeneratePciDescriptionResponse": GeneratePciDescriptionResponse, - "GetAcceptedTermsOfServiceDocumentResponse": GetAcceptedTermsOfServiceDocumentResponse, - "GetPciQuestionnaireInfosResponse": GetPciQuestionnaireInfosResponse, - "GetPciQuestionnaireResponse": GetPciQuestionnaireResponse, - "GetTermsOfServiceAcceptanceInfosResponse": GetTermsOfServiceAcceptanceInfosResponse, - "GetTermsOfServiceDocumentRequest": GetTermsOfServiceDocumentRequest, - "GetTermsOfServiceDocumentResponse": GetTermsOfServiceDocumentResponse, - "HKLocalAccountIdentification": HKLocalAccountIdentification, - "HULocalAccountIdentification": HULocalAccountIdentification, - "IbanAccountIdentification": IbanAccountIdentification, - "IdentificationData": IdentificationData, - "Individual": Individual, - "LegalEntity": LegalEntity, - "LegalEntityAssociation": LegalEntityAssociation, - "LegalEntityCapability": LegalEntityCapability, - "LegalEntityInfo": LegalEntityInfo, - "LegalEntityInfoRequiredType": LegalEntityInfoRequiredType, - "NOLocalAccountIdentification": NOLocalAccountIdentification, - "NZLocalAccountIdentification": NZLocalAccountIdentification, - "Name": Name, - "NumberAndBicAccountIdentification": NumberAndBicAccountIdentification, - "OnboardingLink": OnboardingLink, - "OnboardingLinkInfo": OnboardingLinkInfo, - "OnboardingLinkSettings": OnboardingLinkSettings, - "OnboardingTheme": OnboardingTheme, - "OnboardingThemes": OnboardingThemes, - "Organization": Organization, - "OwnerEntity": OwnerEntity, - "PLLocalAccountIdentification": PLLocalAccountIdentification, - "PciDocumentInfo": PciDocumentInfo, - "PciSigningRequest": PciSigningRequest, - "PciSigningResponse": PciSigningResponse, - "PhoneNumber": PhoneNumber, - "RemediatingAction": RemediatingAction, - "SELocalAccountIdentification": SELocalAccountIdentification, - "SGLocalAccountIdentification": SGLocalAccountIdentification, - "ServiceError": ServiceError, - "SetTaxElectronicDeliveryConsentRequest": SetTaxElectronicDeliveryConsentRequest, - "SoleProprietorship": SoleProprietorship, - "SourceOfFunds": SourceOfFunds, - "StockData": StockData, - "SupportingEntityCapability": SupportingEntityCapability, - "TaxInformation": TaxInformation, - "TaxReportingClassification": TaxReportingClassification, - "TermsOfServiceAcceptanceInfo": TermsOfServiceAcceptanceInfo, - "TransferInstrument": TransferInstrument, - "TransferInstrumentInfo": TransferInstrumentInfo, - "TransferInstrumentReference": TransferInstrumentReference, - "Trust": Trust, - "UKLocalAccountIdentification": UKLocalAccountIdentification, - "USLocalAccountIdentification": USLocalAccountIdentification, - "UndefinedBeneficiary": UndefinedBeneficiary, - "UnincorporatedPartnership": UnincorporatedPartnership, - "VerificationDeadline": VerificationDeadline, - "VerificationError": VerificationError, - "VerificationErrorRecursive": VerificationErrorRecursive, - "VerificationErrors": VerificationErrors, - "WebData": WebData, - "WebDataExemption": WebDataExemption, -} - -type MimeTypeDescriptor = { - type: string; - subtype: string; - subtypeTokens: string[]; -}; - -/** - * Every mime-type consists of a type, subtype, and optional parameters. - * The subtype can be composite, including information about the content format. - * For example: `application/json-patch+json`, `application/merge-patch+json`. - * - * This helper transforms a string mime-type into an internal representation. - * This simplifies the implementation of predicates that in turn define common rules for parsing or stringifying - * the payload. - */ -const parseMimeType = (mimeType: string): MimeTypeDescriptor => { - const [type = '', subtype = ''] = mimeType.split('/'); - return { - type, - subtype, - subtypeTokens: subtype.split('+'), - }; -}; - -type MimeTypePredicate = (mimeType: string) => boolean; - -// This factory creates a predicate function that checks a string mime-type against defined rules. -const mimeTypePredicateFactory = (predicate: (descriptor: MimeTypeDescriptor) => boolean): MimeTypePredicate => (mimeType) => predicate(parseMimeType(mimeType)); - -// Use this factory when you need to define a simple predicate based only on type and, if applicable, subtype. -const mimeTypeSimplePredicateFactory = (type: string, subtype?: string): MimeTypePredicate => mimeTypePredicateFactory((descriptor) => { - if (descriptor.type !== type) return false; - if (subtype != null && descriptor.subtype !== subtype) return false; - return true; -}); - -// Creating a set of named predicates that will help us determine how to handle different mime-types -const isTextLikeMimeType = mimeTypeSimplePredicateFactory('text'); -const isJsonMimeType = mimeTypeSimplePredicateFactory('application', 'json'); -const isJsonLikeMimeType = mimeTypePredicateFactory((descriptor) => descriptor.type === 'application' && descriptor.subtypeTokens.some((item) => item === 'json')); -const isOctetStreamMimeType = mimeTypeSimplePredicateFactory('application', 'octet-stream'); -const isFormUrlencodedMimeType = mimeTypeSimplePredicateFactory('application', 'x-www-form-urlencoded'); - -// Defining a list of mime-types in the order of prioritization for handling. -const supportedMimeTypePredicatesWithPriority: MimeTypePredicate[] = [ - isJsonMimeType, - isJsonLikeMimeType, - isTextLikeMimeType, - isOctetStreamMimeType, - isFormUrlencodedMimeType, -]; - -const nullableSuffix = " | null"; -const optionalSuffix = " | undefined"; -const arrayPrefix = "Array<"; -const arraySuffix = ">"; -const mapPrefix = "{ [key: string]: "; -const mapSuffix = "; }"; - -export class ObjectSerializer { - public static findCorrectType(data: any, expectedType: string) { - if (data == undefined) { - return expectedType; - } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { - return expectedType; - } else if (expectedType === "Date") { - return expectedType; - } else { - if (enumsMap.has(expectedType)) { - return expectedType; - } - - if (!typeMap[expectedType]) { - return expectedType; // w/e we don't know the type - } - - // Check the discriminator - let discriminatorProperty = typeMap[expectedType].discriminator; - if (discriminatorProperty == null) { - return expectedType; // the type does not have a discriminator. use it. - } else { - if (data[discriminatorProperty]) { - var discriminatorType = data[discriminatorProperty]; - let mapping = typeMap[expectedType].mapping; - if (mapping != undefined && mapping[discriminatorType]) { - return mapping[discriminatorType]; // use the type given in the discriminator - } else if(typeMap[discriminatorType]) { - return discriminatorType; - } else { - return expectedType; // discriminator did not map to a type - } - } else { - return expectedType; // discriminator was not present (or an empty string) - } - } - } - } - - /** - * Serializes a value into a plain JSON-compatible object based on its type. - * - * Supports primitives, arrays, maps, dates, enums, and classes defined in `typeMap`. - * Falls back to raw data if type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The value to serialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A JSON-compatible representation of `data`. - */ - public static serialize(data: any, type: string, format: string = ""): any { - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.serialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.serialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - if (format == "date") { - let month = data.getMonth()+1 - month = month < 10 ? "0" + month.toString() : month.toString() - let day = data.getDate(); - day = day < 10 ? "0" + day.toString() : day.toString(); - - return data.getFullYear() + "-" + month + "-" + day; - } else { - return data.toISOString(); - } - } else { - if (enumsMap.has(type)) { - return data; - } - if (!typeMap[type]) { // in case we dont know the type - return data; - } - - // Get the actual type of this object - type = this.findCorrectType(data, type); - - const clazz = typeMap[type]; - - // Safe check for getAttributeTypeMap - if (typeof clazz.getAttributeTypeMap !== "function") { - return { ...data }; // fallback: shallow copy - } - - // get the map for the correct type. - let attributeTypes = typeMap[type].getAttributeTypeMap(); - let instance: {[index: string]: any} = {}; - for (let attributeType of attributeTypes) { - instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format); - } - return instance; - } - } - - /** - * Deserializes a plain JSON-compatible object into a typed instance. - * - * Handles primitives, arrays, maps, dates, enums, and known classes from `typeMap`. - * Uses discriminators when available to resolve polymorphic types. - * Falls back to raw data if the type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The raw input to deserialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A deserialized instance or value of `data`. - */ - public static deserialize(data: any, type: string, format: string = ""): any { - // polymorphism may change the actual type. - type = ObjectSerializer.findCorrectType(data, type); - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.deserialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.deserialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - return new Date(data); - } else { - if (enumsMap.has(type)) {// is Enum - return data; - } - - if (!typeMap[type]) { // dont know the type - return data; - } - let instance = new typeMap[type](); - - // Safe check for getAttributeTypeMap - if (typeof typeMap[type].getAttributeTypeMap !== "function") { - Object.assign(instance, data); // fallback: shallow copy - return instance; - } - - let attributeTypes = typeMap[type].getAttributeTypeMap(); - for (let attributeType of attributeTypes) { - let value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format); - if (value !== undefined) { - instance[attributeType.name] = value; - } - } - return instance; - } - } - - - /** - * Normalize media type - * - * We currently do not handle any media types attributes, i.e. anything - * after a semicolon. All content is assumed to be UTF-8 compatible. - */ - public static normalizeMediaType(mediaType: string | undefined): string | undefined { - if (mediaType === undefined) { - return undefined; - } - return (mediaType.split(";")[0] ?? '').trim().toLowerCase(); - } - - /** - * From a list of possible media types, choose the one we can handle best. - * - * The order of the given media types does not have any impact on the choice - * made. - */ - public static getPreferredMediaType(mediaTypes: Array): string { - /** According to OAS 3 we should default to json */ - if (mediaTypes.length === 0) { - return "application/json"; - } - - const normalMediaTypes = mediaTypes.map(ObjectSerializer.normalizeMediaType); - - for (const predicate of supportedMimeTypePredicatesWithPriority) { - for (const mediaType of normalMediaTypes) { - if (mediaType != null && predicate(mediaType)) { - return mediaType; - } - } - } - - throw new Error("None of the given media types are supported: " + mediaTypes.join(", ")); - } - - /** - * Convert data to a string according the given media type - */ - public static stringify(data: any, mediaType: string): string { - if (isTextLikeMimeType(mediaType)) { - return String(data); - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.stringify(data); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify."); - } - - /** - * Parse data from a string according to the given media type - */ - public static parse(rawData: string, mediaType: string | undefined) { - if (mediaType === undefined) { - throw new Error("Cannot parse content. No Content-Type defined."); - } - - if (isTextLikeMimeType(mediaType)) { - return rawData; - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.parse(rawData); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse."); - } -} diff --git a/src/typings/legalEntityManagement/onboardingLink.ts b/src/typings/legalEntityManagement/onboardingLink.ts index 2827d4a20..6be991390 100644 --- a/src/typings/legalEntityManagement/onboardingLink.ts +++ b/src/typings/legalEntityManagement/onboardingLink.ts @@ -12,25 +12,19 @@ export class OnboardingLink { /** * The URL of the hosted onboarding page where you need to redirect your user. This URL expires after 4 minutes and can only be used once. If the link expires, you need to create a new link. */ - "url"?: string; + 'url'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "url", "baseName": "url", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return OnboardingLink.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/onboardingLinkInfo.ts b/src/typings/legalEntityManagement/onboardingLinkInfo.ts index e4a3acc10..d69bac09b 100644 --- a/src/typings/legalEntityManagement/onboardingLinkInfo.ts +++ b/src/typings/legalEntityManagement/onboardingLinkInfo.ts @@ -7,59 +7,49 @@ * Do not edit this class manually. */ -import { OnboardingLinkSettings } from "./onboardingLinkSettings"; - +import { OnboardingLinkSettings } from './onboardingLinkSettings'; export class OnboardingLinkInfo { /** * The language that will be used for the page, specified by a combination of two letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language and [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. See possible valuesfor [marketplaces](https://docs.adyen.com/marketplaces/onboard-users/hosted#supported-languages) or [platforms](https://docs.adyen.com/platforms/onboard-users/hosted#supported-languages). If not specified in the request or if the language is not supported, the page uses the browser language. If the browser language is not supported, the page uses **en-US** by default. */ - "locale"?: string; + 'locale'?: string; /** * The URL where the user is redirected after they complete hosted onboarding. */ - "redirectUrl"?: string; - "settings"?: OnboardingLinkSettings | null; + 'redirectUrl'?: string; + 'settings'?: OnboardingLinkSettings | null; /** * The unique identifier of the hosted onboarding theme. */ - "themeId"?: string; - - static readonly discriminator: string | undefined = undefined; + 'themeId'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "locale", "baseName": "locale", - "type": "string", - "format": "" + "type": "string" }, { "name": "redirectUrl", "baseName": "redirectUrl", - "type": "string", - "format": "" + "type": "string" }, { "name": "settings", "baseName": "settings", - "type": "OnboardingLinkSettings | null", - "format": "" + "type": "OnboardingLinkSettings | null" }, { "name": "themeId", "baseName": "themeId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return OnboardingLinkInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/onboardingLinkSettings.ts b/src/typings/legalEntityManagement/onboardingLinkSettings.ts index fc10b8c37..f866e9501 100644 --- a/src/typings/legalEntityManagement/onboardingLinkSettings.ts +++ b/src/typings/legalEntityManagement/onboardingLinkSettings.ts @@ -12,185 +12,163 @@ export class OnboardingLinkSettings { /** * The list of countries the user can choose from in hosted onboarding when `editPrefilledCountry` is allowed. The value must be in the two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code format. The array is empty by default, allowing all [countries and regions supported by hosted onboarding](https://docs.adyen.com/platforms/onboard-users/#hosted-onboarding). */ - "acceptedCountries"?: Array; + 'acceptedCountries'?: Array; /** * Default value: **false** Indicates if the user can select the format for their payout account (if applicable). */ - "allowBankAccountFormatSelection"?: boolean; + 'allowBankAccountFormatSelection'?: boolean; /** * Default value: **true** Indicates whether the debug user interface (UI) is enabled. The debug UI provides information for your support staff to diagnose and resolve user issues during onboarding. It can be accessed using a keyboard shortcut. */ - "allowDebugUi"?: boolean; + 'allowDebugUi'?: boolean; /** * Default value: **false** Indicates if the user can select a payout account in a different EU/EEA location (including Switzerland and the UK) than the location of their legal entity. */ - "allowIntraRegionCrossBorderPayout"?: boolean; + 'allowIntraRegionCrossBorderPayout'?: boolean; /** * Default value: **true** Indicates if the user can change their legal entity type. */ - "changeLegalEntityType"?: boolean; + 'changeLegalEntityType'?: boolean; /** * Default value: **true** Indicates if the user can change the country of their legal entity\'s address, for example the registered address of an organization. */ - "editPrefilledCountry"?: boolean; + 'editPrefilledCountry'?: boolean; /** * Default value: **false** Indicates if only users above the age of 18 can be onboarded. */ - "enforceLegalAge"?: boolean; + 'enforceLegalAge'?: boolean; /** * Default value: **true** Indicates whether the introduction screen is hidden for the user of the individual legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. */ - "hideOnboardingIntroductionIndividual"?: boolean; + 'hideOnboardingIntroductionIndividual'?: boolean; /** * Default value: **true** Indicates whether the introduction screen is hidden for the user of the organization legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. */ - "hideOnboardingIntroductionOrganization"?: boolean; + 'hideOnboardingIntroductionOrganization'?: boolean; /** * Default value: **true** Indicates whether the introduction screen is hidden for the user of the sole proprietorship legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. */ - "hideOnboardingIntroductionSoleProprietor"?: boolean; + 'hideOnboardingIntroductionSoleProprietor'?: boolean; /** * Default value: **true** Indicates whether the introduction screen is hidden for the user of the trust legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process. */ - "hideOnboardingIntroductionTrust"?: boolean; + 'hideOnboardingIntroductionTrust'?: boolean; /** * Default value: **true** Indicates if the user can initiate the verification process through open banking providers, like Plaid or Tink. */ - "instantBankVerification"?: boolean; + 'instantBankVerification'?: boolean; /** * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **ecomMoto** sales channel type. */ - "requirePciSignEcomMoto"?: boolean; + 'requirePciSignEcomMoto'?: boolean; /** * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **eCommerce** sales channel type. */ - "requirePciSignEcommerce"?: boolean; + 'requirePciSignEcommerce'?: boolean; /** * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **pos** sales channel type. */ - "requirePciSignPos"?: boolean; + 'requirePciSignPos'?: boolean; /** * Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **posMoto** sales channel type. */ - "requirePciSignPosMoto"?: boolean; + 'requirePciSignPosMoto'?: boolean; /** * The maximum number of transfer instruments the user can create. */ - "transferInstrumentLimit"?: number; + 'transferInstrumentLimit'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "acceptedCountries", "baseName": "acceptedCountries", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "allowBankAccountFormatSelection", "baseName": "allowBankAccountFormatSelection", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "allowDebugUi", "baseName": "allowDebugUi", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "allowIntraRegionCrossBorderPayout", "baseName": "allowIntraRegionCrossBorderPayout", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "changeLegalEntityType", "baseName": "changeLegalEntityType", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "editPrefilledCountry", "baseName": "editPrefilledCountry", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "enforceLegalAge", "baseName": "enforceLegalAge", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "hideOnboardingIntroductionIndividual", "baseName": "hideOnboardingIntroductionIndividual", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "hideOnboardingIntroductionOrganization", "baseName": "hideOnboardingIntroductionOrganization", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "hideOnboardingIntroductionSoleProprietor", "baseName": "hideOnboardingIntroductionSoleProprietor", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "hideOnboardingIntroductionTrust", "baseName": "hideOnboardingIntroductionTrust", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "instantBankVerification", "baseName": "instantBankVerification", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "requirePciSignEcomMoto", "baseName": "requirePciSignEcomMoto", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "requirePciSignEcommerce", "baseName": "requirePciSignEcommerce", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "requirePciSignPos", "baseName": "requirePciSignPos", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "requirePciSignPosMoto", "baseName": "requirePciSignPosMoto", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "transferInstrumentLimit", "baseName": "transferInstrumentLimit", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return OnboardingLinkSettings.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/onboardingTheme.ts b/src/typings/legalEntityManagement/onboardingTheme.ts index 59b5a400e..41b3bf80d 100644 --- a/src/typings/legalEntityManagement/onboardingTheme.ts +++ b/src/typings/legalEntityManagement/onboardingTheme.ts @@ -12,65 +12,55 @@ export class OnboardingTheme { /** * The creation date of the theme. */ - "createdAt": Date; + 'createdAt': Date; /** * The description of the theme. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the theme. */ - "id": string; + 'id': string; /** * The properties of the theme. */ - "properties": { [key: string]: string; }; + 'properties': { [key: string]: string; }; /** * The date when the theme was last updated. */ - "updatedAt"?: Date; + 'updatedAt'?: Date; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "createdAt", "baseName": "createdAt", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "properties", "baseName": "properties", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "updatedAt", "baseName": "updatedAt", - "type": "Date", - "format": "date-time" + "type": "Date" } ]; static getAttributeTypeMap() { return OnboardingTheme.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/onboardingThemes.ts b/src/typings/legalEntityManagement/onboardingThemes.ts index a0ea0a0c6..2a5962dde 100644 --- a/src/typings/legalEntityManagement/onboardingThemes.ts +++ b/src/typings/legalEntityManagement/onboardingThemes.ts @@ -7,52 +7,43 @@ * Do not edit this class manually. */ -import { OnboardingTheme } from "./onboardingTheme"; - +import { OnboardingTheme } from './onboardingTheme'; export class OnboardingThemes { /** * The next page. Only present if there is a next page. */ - "next"?: string; + 'next'?: string; /** * The previous page. Only present if there is a previous page. */ - "previous"?: string; + 'previous'?: string; /** * List of onboarding themes. */ - "themes": Array; - - static readonly discriminator: string | undefined = undefined; + 'themes': Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "next", "baseName": "next", - "type": "string", - "format": "" + "type": "string" }, { "name": "previous", "baseName": "previous", - "type": "string", - "format": "" + "type": "string" }, { "name": "themes", "baseName": "themes", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return OnboardingThemes.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/organization.ts b/src/typings/legalEntityManagement/organization.ts index f0ed9f161..4cab32d67 100644 --- a/src/typings/legalEntityManagement/organization.ts +++ b/src/typings/legalEntityManagement/organization.ts @@ -7,191 +7,167 @@ * Do not edit this class manually. */ -import { Address } from "./address"; -import { FinancialReport } from "./financialReport"; -import { PhoneNumber } from "./phoneNumber"; -import { StockData } from "./stockData"; -import { TaxInformation } from "./taxInformation"; -import { TaxReportingClassification } from "./taxReportingClassification"; -import { WebData } from "./webData"; - +import { Address } from './address'; +import { FinancialReport } from './financialReport'; +import { PhoneNumber } from './phoneNumber'; +import { StockData } from './stockData'; +import { TaxInformation } from './taxInformation'; +import { TaxReportingClassification } from './taxReportingClassification'; +import { WebData } from './webData'; export class Organization { /** * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. */ - "countryOfGoverningLaw"?: string; + 'countryOfGoverningLaw'?: string; /** * The date when the organization was incorporated in YYYY-MM-DD format. */ - "dateOfIncorporation"?: string; + 'dateOfIncorporation'?: string; /** * Your description for the organization. */ - "description"?: string; + 'description'?: string; /** * The organization\'s trading name, if different from the registered legal name. */ - "doingBusinessAs"?: string; + 'doingBusinessAs'?: string; /** * The email address of the legal entity. */ - "email"?: string; + 'email'?: string; /** * The financial report information of the organization. */ - "financialReports"?: Array; + 'financialReports'?: Array; /** * The organization\'s legal name. */ - "legalName": string; - "phone"?: PhoneNumber | null; - "principalPlaceOfBusiness"?: Address | null; - "registeredAddress": Address; + 'legalName': string; + 'phone'?: PhoneNumber | null; + 'principalPlaceOfBusiness'?: Address | null; + 'registeredAddress': Address; /** * The organization\'s registration number. */ - "registrationNumber"?: string; - "stockData"?: StockData | null; + 'registrationNumber'?: string; + 'stockData'?: StockData | null; /** * The tax information of the organization. */ - "taxInformation"?: Array; - "taxReportingClassification"?: TaxReportingClassification | null; + 'taxInformation'?: Array; + 'taxReportingClassification'?: TaxReportingClassification | null; /** * Type of organization. Possible values: **associationIncorporated**, **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, **partnershipIncorporated**, **privateCompany**. */ - "type"?: Organization.TypeEnum; + 'type'?: Organization.TypeEnum; /** * The reason the organization has not provided a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. */ - "vatAbsenceReason"?: Organization.VatAbsenceReasonEnum; + 'vatAbsenceReason'?: Organization.VatAbsenceReasonEnum; /** * The organization\'s VAT number. */ - "vatNumber"?: string; - "webData"?: WebData | null; - - static readonly discriminator: string | undefined = undefined; + 'vatNumber'?: string; + 'webData'?: WebData | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "countryOfGoverningLaw", "baseName": "countryOfGoverningLaw", - "type": "string", - "format": "" + "type": "string" }, { "name": "dateOfIncorporation", "baseName": "dateOfIncorporation", - "type": "string", - "format": "" + "type": "string" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "doingBusinessAs", "baseName": "doingBusinessAs", - "type": "string", - "format": "" + "type": "string" }, { "name": "email", "baseName": "email", - "type": "string", - "format": "" + "type": "string" }, { "name": "financialReports", "baseName": "financialReports", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "legalName", "baseName": "legalName", - "type": "string", - "format": "" + "type": "string" }, { "name": "phone", "baseName": "phone", - "type": "PhoneNumber | null", - "format": "" + "type": "PhoneNumber | null" }, { "name": "principalPlaceOfBusiness", "baseName": "principalPlaceOfBusiness", - "type": "Address | null", - "format": "" + "type": "Address | null" }, { "name": "registeredAddress", "baseName": "registeredAddress", - "type": "Address", - "format": "" + "type": "Address" }, { "name": "registrationNumber", "baseName": "registrationNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "stockData", "baseName": "stockData", - "type": "StockData | null", - "format": "" + "type": "StockData | null" }, { "name": "taxInformation", "baseName": "taxInformation", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "taxReportingClassification", "baseName": "taxReportingClassification", - "type": "TaxReportingClassification | null", - "format": "" + "type": "TaxReportingClassification | null" }, { "name": "type", "baseName": "type", - "type": "Organization.TypeEnum", - "format": "" + "type": "Organization.TypeEnum" }, { "name": "vatAbsenceReason", "baseName": "vatAbsenceReason", - "type": "Organization.VatAbsenceReasonEnum", - "format": "" + "type": "Organization.VatAbsenceReasonEnum" }, { "name": "vatNumber", "baseName": "vatNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "webData", "baseName": "webData", - "type": "WebData | null", - "format": "" + "type": "WebData | null" } ]; static getAttributeTypeMap() { return Organization.attributeTypeMap; } - - public constructor() { - } } export namespace Organization { diff --git a/src/typings/legalEntityManagement/ownerEntity.ts b/src/typings/legalEntityManagement/ownerEntity.ts index ed1466281..83bcadc25 100644 --- a/src/typings/legalEntityManagement/ownerEntity.ts +++ b/src/typings/legalEntityManagement/ownerEntity.ts @@ -12,35 +12,28 @@ export class OwnerEntity { /** * Unique identifier of the resource that owns the document. For `type` **legalEntity**, this value is the unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). For `type` **bankAccount**, this value is the unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ - "id": string; + 'id': string; /** * Type of resource that owns the document. Possible values: **legalEntity**, **bankAccount**. */ - "type": string; + 'type': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return OwnerEntity.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/pLLocalAccountIdentification.ts b/src/typings/legalEntityManagement/pLLocalAccountIdentification.ts index 705582067..78c7d765a 100644 --- a/src/typings/legalEntityManagement/pLLocalAccountIdentification.ts +++ b/src/typings/legalEntityManagement/pLLocalAccountIdentification.ts @@ -12,36 +12,29 @@ export class PLLocalAccountIdentification { /** * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * **plLocal** */ - "type": PLLocalAccountIdentification.TypeEnum; + 'type': PLLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "PLLocalAccountIdentification.TypeEnum", - "format": "" + "type": "PLLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return PLLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace PLLocalAccountIdentification { diff --git a/src/typings/legalEntityManagement/pciDocumentInfo.ts b/src/typings/legalEntityManagement/pciDocumentInfo.ts index e8425402c..5f7dd05c7 100644 --- a/src/typings/legalEntityManagement/pciDocumentInfo.ts +++ b/src/typings/legalEntityManagement/pciDocumentInfo.ts @@ -12,45 +12,37 @@ export class PciDocumentInfo { /** * The date the questionnaire was created, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 */ - "createdAt"?: Date; + 'createdAt'?: Date; /** * The unique identifier of the signed questionnaire. */ - "id"?: string; + 'id'?: string; /** * The expiration date of the questionnaire, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00 */ - "validUntil"?: Date; + 'validUntil'?: Date; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "createdAt", "baseName": "createdAt", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "validUntil", "baseName": "validUntil", - "type": "Date", - "format": "date-time" + "type": "Date" } ]; static getAttributeTypeMap() { return PciDocumentInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/pciSigningRequest.ts b/src/typings/legalEntityManagement/pciSigningRequest.ts index 8563eac2f..244cfbf30 100644 --- a/src/typings/legalEntityManagement/pciSigningRequest.ts +++ b/src/typings/legalEntityManagement/pciSigningRequest.ts @@ -12,35 +12,28 @@ export class PciSigningRequest { /** * The array of Adyen-generated unique identifiers for the questionnaires. */ - "pciTemplateReferences": Array; + 'pciTemplateReferences': Array; /** * The [legal entity ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) of the individual who signs the PCI questionnaire. */ - "signedBy": string; + 'signedBy': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "pciTemplateReferences", "baseName": "pciTemplateReferences", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "signedBy", "baseName": "signedBy", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PciSigningRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/pciSigningResponse.ts b/src/typings/legalEntityManagement/pciSigningResponse.ts index 93ec9233e..a9341ed90 100644 --- a/src/typings/legalEntityManagement/pciSigningResponse.ts +++ b/src/typings/legalEntityManagement/pciSigningResponse.ts @@ -12,35 +12,28 @@ export class PciSigningResponse { /** * The unique identifiers of the signed PCI documents. */ - "pciQuestionnaireIds"?: Array; + 'pciQuestionnaireIds'?: Array; /** * The [legal entity ID](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) of the individual who signed the PCI questionnaire. */ - "signedBy"?: string; + 'signedBy'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "pciQuestionnaireIds", "baseName": "pciQuestionnaireIds", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "signedBy", "baseName": "signedBy", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PciSigningResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/phoneNumber.ts b/src/typings/legalEntityManagement/phoneNumber.ts index 6aa9ed7e1..8a247c46b 100644 --- a/src/typings/legalEntityManagement/phoneNumber.ts +++ b/src/typings/legalEntityManagement/phoneNumber.ts @@ -12,45 +12,37 @@ export class PhoneNumber { /** * The full phone number, including the country code. For example, **+3112345678**. */ - "number": string; + 'number': string; /** * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code prefix of the phone number. For example, **US** or **NL**. The value of the `phoneCountryCode` is determined by the country code digit(s) of `phone.number` */ - "phoneCountryCode"?: string; + 'phoneCountryCode'?: string; /** * The type of phone number. Possible values: **mobile**, **landline**, **sip**, **fax.** */ - "type"?: string; + 'type'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "number", "baseName": "number", - "type": "string", - "format": "" + "type": "string" }, { "name": "phoneCountryCode", "baseName": "phoneCountryCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PhoneNumber.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/remediatingAction.ts b/src/typings/legalEntityManagement/remediatingAction.ts index d75c02f6d..9e8efd678 100644 --- a/src/typings/legalEntityManagement/remediatingAction.ts +++ b/src/typings/legalEntityManagement/remediatingAction.ts @@ -9,32 +9,25 @@ export class RemediatingAction { - "code"?: string; - "message"?: string; + 'code'?: string; + 'message'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "code", "baseName": "code", - "type": "string", - "format": "" + "type": "string" }, { "name": "message", "baseName": "message", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return RemediatingAction.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/sELocalAccountIdentification.ts b/src/typings/legalEntityManagement/sELocalAccountIdentification.ts index ed3fb2de4..a0646debc 100644 --- a/src/typings/legalEntityManagement/sELocalAccountIdentification.ts +++ b/src/typings/legalEntityManagement/sELocalAccountIdentification.ts @@ -12,46 +12,38 @@ export class SELocalAccountIdentification { /** * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. */ - "clearingNumber": string; + 'clearingNumber': string; /** * **seLocal** */ - "type": SELocalAccountIdentification.TypeEnum; + 'type': SELocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "clearingNumber", "baseName": "clearingNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "SELocalAccountIdentification.TypeEnum", - "format": "" + "type": "SELocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return SELocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace SELocalAccountIdentification { diff --git a/src/typings/legalEntityManagement/sGLocalAccountIdentification.ts b/src/typings/legalEntityManagement/sGLocalAccountIdentification.ts index 1a2509e11..38823c052 100644 --- a/src/typings/legalEntityManagement/sGLocalAccountIdentification.ts +++ b/src/typings/legalEntityManagement/sGLocalAccountIdentification.ts @@ -12,46 +12,38 @@ export class SGLocalAccountIdentification { /** * The 4- to 19-digit bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * The bank\'s 8- or 11-character BIC or SWIFT code. */ - "bic": string; + 'bic': string; /** * **sgLocal** */ - "type"?: SGLocalAccountIdentification.TypeEnum; + 'type'?: SGLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "bic", "baseName": "bic", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "SGLocalAccountIdentification.TypeEnum", - "format": "" + "type": "SGLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return SGLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace SGLocalAccountIdentification { diff --git a/src/typings/legalEntityManagement/serviceError.ts b/src/typings/legalEntityManagement/serviceError.ts index 1c561a505..b5f5b6473 100644 --- a/src/typings/legalEntityManagement/serviceError.ts +++ b/src/typings/legalEntityManagement/serviceError.ts @@ -12,65 +12,55 @@ export class ServiceError { /** * The error code mapped to the error message. */ - "errorCode"?: string; + 'errorCode'?: string; /** * The category of the error. */ - "errorType"?: string; + 'errorType'?: string; /** * A short explanation of the issue. */ - "message"?: string; + 'message'?: string; /** * The PSP reference of the payment. */ - "pspReference"?: string; + 'pspReference'?: string; /** * The HTTP response status. */ - "status"?: number; + 'status'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "errorCode", "baseName": "errorCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "errorType", "baseName": "errorType", - "type": "string", - "format": "" + "type": "string" }, { "name": "message", "baseName": "message", - "type": "string", - "format": "" + "type": "string" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return ServiceError.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/setTaxElectronicDeliveryConsentRequest.ts b/src/typings/legalEntityManagement/setTaxElectronicDeliveryConsentRequest.ts index 6866bc0f9..31c8437a7 100644 --- a/src/typings/legalEntityManagement/setTaxElectronicDeliveryConsentRequest.ts +++ b/src/typings/legalEntityManagement/setTaxElectronicDeliveryConsentRequest.ts @@ -12,25 +12,19 @@ export class SetTaxElectronicDeliveryConsentRequest { /** * Consent to electronically deliver tax form US1099-K. */ - "US1099k"?: boolean; + 'US1099k'?: boolean; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "US1099k", "baseName": "US1099k", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return SetTaxElectronicDeliveryConsentRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/soleProprietorship.ts b/src/typings/legalEntityManagement/soleProprietorship.ts index 7b2b00e38..110ddf597 100644 --- a/src/typings/legalEntityManagement/soleProprietorship.ts +++ b/src/typings/legalEntityManagement/soleProprietorship.ts @@ -7,139 +7,121 @@ * Do not edit this class manually. */ -import { Address } from "./address"; -import { FinancialReport } from "./financialReport"; -import { TaxInformation } from "./taxInformation"; - +import { Address } from './address'; +import { FinancialReport } from './financialReport'; +import { TaxInformation } from './taxInformation'; export class SoleProprietorship { /** * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. */ - "countryOfGoverningLaw": string; + 'countryOfGoverningLaw': string; /** * The date when the legal arrangement was incorporated in YYYY-MM-DD format. */ - "dateOfIncorporation"?: string; + 'dateOfIncorporation'?: string; /** * The registered name, if different from the `name`. */ - "doingBusinessAs"?: string; + 'doingBusinessAs'?: string; /** * The information from the financial report of the sole proprietorship. */ - "financialReports"?: Array; + 'financialReports'?: Array; /** * The legal name. */ - "name": string; - "principalPlaceOfBusiness"?: Address | null; - "registeredAddress": Address; + 'name': string; + 'principalPlaceOfBusiness'?: Address | null; + 'registeredAddress': Address; /** * The registration number. */ - "registrationNumber"?: string; + 'registrationNumber'?: string; /** * The tax information is absent. */ - "taxAbsent"?: boolean | null; + 'taxAbsent'?: boolean | null; /** * The tax information of the entity. */ - "taxInformation"?: Array; + 'taxInformation'?: Array; /** * The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. */ - "vatAbsenceReason"?: SoleProprietorship.VatAbsenceReasonEnum; + 'vatAbsenceReason'?: SoleProprietorship.VatAbsenceReasonEnum; /** * The VAT number. */ - "vatNumber"?: string; - - static readonly discriminator: string | undefined = undefined; + 'vatNumber'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "countryOfGoverningLaw", "baseName": "countryOfGoverningLaw", - "type": "string", - "format": "" + "type": "string" }, { "name": "dateOfIncorporation", "baseName": "dateOfIncorporation", - "type": "string", - "format": "" + "type": "string" }, { "name": "doingBusinessAs", "baseName": "doingBusinessAs", - "type": "string", - "format": "" + "type": "string" }, { "name": "financialReports", "baseName": "financialReports", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "principalPlaceOfBusiness", "baseName": "principalPlaceOfBusiness", - "type": "Address | null", - "format": "" + "type": "Address | null" }, { "name": "registeredAddress", "baseName": "registeredAddress", - "type": "Address", - "format": "" + "type": "Address" }, { "name": "registrationNumber", "baseName": "registrationNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "taxAbsent", "baseName": "taxAbsent", - "type": "boolean | null", - "format": "" + "type": "boolean | null" }, { "name": "taxInformation", "baseName": "taxInformation", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "vatAbsenceReason", "baseName": "vatAbsenceReason", - "type": "SoleProprietorship.VatAbsenceReasonEnum", - "format": "" + "type": "SoleProprietorship.VatAbsenceReasonEnum" }, { "name": "vatNumber", "baseName": "vatNumber", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return SoleProprietorship.attributeTypeMap; } - - public constructor() { - } } export namespace SoleProprietorship { diff --git a/src/typings/legalEntityManagement/sourceOfFunds.ts b/src/typings/legalEntityManagement/sourceOfFunds.ts index 1836f8b8f..b5b119e56 100644 --- a/src/typings/legalEntityManagement/sourceOfFunds.ts +++ b/src/typings/legalEntityManagement/sourceOfFunds.ts @@ -15,56 +15,47 @@ export class SourceOfFunds { * @deprecated since Legal Entity Management API v3 * This field will be removed in v4. */ - "acquiringBusinessLineId"?: string; + 'acquiringBusinessLineId'?: string; /** * Indicates whether the funds are coming from transactions processed by Adyen. If **false**, a `description` is required. */ - "adyenProcessedFunds"?: boolean; + 'adyenProcessedFunds'?: boolean; /** * Text describing the source of funds. For example, for `type` **business**, provide a description of where the business transactions come from, such as payments through bank transfer. Required when `adyenProcessedFunds` is **false**. */ - "description"?: string; + 'description'?: string; /** * The type of the source of funds. Possible value: **business**. */ - "type"?: SourceOfFunds.TypeEnum; + 'type'?: SourceOfFunds.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "acquiringBusinessLineId", "baseName": "acquiringBusinessLineId", - "type": "string", - "format": "" + "type": "string" }, { "name": "adyenProcessedFunds", "baseName": "adyenProcessedFunds", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "SourceOfFunds.TypeEnum", - "format": "" + "type": "SourceOfFunds.TypeEnum" } ]; static getAttributeTypeMap() { return SourceOfFunds.attributeTypeMap; } - - public constructor() { - } } export namespace SourceOfFunds { diff --git a/src/typings/legalEntityManagement/stockData.ts b/src/typings/legalEntityManagement/stockData.ts index 8dd02f43e..a26c836cf 100644 --- a/src/typings/legalEntityManagement/stockData.ts +++ b/src/typings/legalEntityManagement/stockData.ts @@ -12,45 +12,37 @@ export class StockData { /** * The four-digit [Market Identifier Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) of the stock market where the organization\'s stocks are traded. */ - "marketIdentifier"?: string; + 'marketIdentifier'?: string; /** * The 12-digit International Securities Identification Number (ISIN) of the company, without dashes (-). */ - "stockNumber"?: string; + 'stockNumber'?: string; /** * The stock ticker symbol. */ - "tickerSymbol"?: string; + 'tickerSymbol'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "marketIdentifier", "baseName": "marketIdentifier", - "type": "string", - "format": "" + "type": "string" }, { "name": "stockNumber", "baseName": "stockNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "tickerSymbol", "baseName": "tickerSymbol", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return StockData.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/supportingEntityCapability.ts b/src/typings/legalEntityManagement/supportingEntityCapability.ts index c04421ad9..7c683068f 100644 --- a/src/typings/legalEntityManagement/supportingEntityCapability.ts +++ b/src/typings/legalEntityManagement/supportingEntityCapability.ts @@ -12,55 +12,46 @@ export class SupportingEntityCapability { /** * Indicates whether the capability is allowed for the supporting entity. If a capability is allowed for a supporting entity but not for the parent legal entity, this means the legal entity has other supporting entities that failed verification. **You can use the allowed supporting entity** regardless of the verification status of other supporting entities. */ - "allowed"?: boolean; + 'allowed'?: boolean; /** * Supporting entity reference */ - "id"?: string; + 'id'?: string; /** * Indicates whether the supporting entity capability is requested. */ - "requested"?: boolean; + 'requested'?: boolean; /** * The status of the verification checks for the capability of the supporting entity. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. */ - "verificationStatus"?: string; + 'verificationStatus'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "allowed", "baseName": "allowed", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "requested", "baseName": "requested", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "verificationStatus", "baseName": "verificationStatus", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return SupportingEntityCapability.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/taxInformation.ts b/src/typings/legalEntityManagement/taxInformation.ts index 615991a66..53637482b 100644 --- a/src/typings/legalEntityManagement/taxInformation.ts +++ b/src/typings/legalEntityManagement/taxInformation.ts @@ -12,45 +12,37 @@ export class TaxInformation { /** * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. */ - "country"?: string; + 'country'?: string; /** * The tax ID number (TIN) of the organization or individual. */ - "number"?: string; + 'number'?: string; /** * The TIN type depending on the country where it was issued. Only provide if the country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US. */ - "type"?: string; + 'type'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "country", "baseName": "country", - "type": "string", - "format": "" + "type": "string" }, { "name": "number", "baseName": "number", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TaxInformation.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/taxReportingClassification.ts b/src/typings/legalEntityManagement/taxReportingClassification.ts index a8e4a2956..df53e95b0 100644 --- a/src/typings/legalEntityManagement/taxReportingClassification.ts +++ b/src/typings/legalEntityManagement/taxReportingClassification.ts @@ -12,56 +12,47 @@ export class TaxReportingClassification { /** * The organization\'s business type. Possible values: **other**, **listedPublicCompany**, **subsidiaryOfListedPublicCompany**, **governmentalOrganization**, **internationalOrganization**, **financialInstitution**. */ - "businessType"?: TaxReportingClassification.BusinessTypeEnum; + 'businessType'?: TaxReportingClassification.BusinessTypeEnum; /** * The Global Intermediary Identification Number (GIIN) required for FATCA. Only required if the organization is a US financial institution and the `businessType` is **financialInstitution**. */ - "financialInstitutionNumber"?: string; + 'financialInstitutionNumber'?: string; /** * The organization\'s main source of income. Only required if `businessType` is **other**. Possible values: **businessOperation**, **realEstateSales**, **investmentInterestOrRoyalty**, **propertyRental**, **other**. */ - "mainSourceOfIncome"?: TaxReportingClassification.MainSourceOfIncomeEnum; + 'mainSourceOfIncome'?: TaxReportingClassification.MainSourceOfIncomeEnum; /** * The tax reporting classification type. Possible values: **nonFinancialNonReportable**, **financialNonReportable**, **nonFinancialActive**, **nonFinancialPassive**. */ - "type"?: TaxReportingClassification.TypeEnum; + 'type'?: TaxReportingClassification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "businessType", "baseName": "businessType", - "type": "TaxReportingClassification.BusinessTypeEnum", - "format": "" + "type": "TaxReportingClassification.BusinessTypeEnum" }, { "name": "financialInstitutionNumber", "baseName": "financialInstitutionNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "mainSourceOfIncome", "baseName": "mainSourceOfIncome", - "type": "TaxReportingClassification.MainSourceOfIncomeEnum", - "format": "" + "type": "TaxReportingClassification.MainSourceOfIncomeEnum" }, { "name": "type", "baseName": "type", - "type": "TaxReportingClassification.TypeEnum", - "format": "" + "type": "TaxReportingClassification.TypeEnum" } ]; static getAttributeTypeMap() { return TaxReportingClassification.attributeTypeMap; } - - public constructor() { - } } export namespace TaxReportingClassification { diff --git a/src/typings/legalEntityManagement/termsOfServiceAcceptanceInfo.ts b/src/typings/legalEntityManagement/termsOfServiceAcceptanceInfo.ts index 433f86706..79e9a65bd 100644 --- a/src/typings/legalEntityManagement/termsOfServiceAcceptanceInfo.ts +++ b/src/typings/legalEntityManagement/termsOfServiceAcceptanceInfo.ts @@ -12,76 +12,65 @@ export class TermsOfServiceAcceptanceInfo { /** * The unique identifier of the user that accepted the Terms of Service. */ - "acceptedBy"?: string; + 'acceptedBy'?: string; /** * The unique identifier of the legal entity for which the Terms of Service are accepted. */ - "acceptedFor"?: string; + 'acceptedFor'?: string; /** * The date when the Terms of Service were accepted, in ISO 8601 extended format. For example, 2022-12-18T10:15:30+01:00. */ - "createdAt"?: Date; + 'createdAt'?: Date; /** * An Adyen-generated reference for the accepted Terms of Service. */ - "id"?: string; + 'id'?: string; /** * The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** */ - "type"?: TermsOfServiceAcceptanceInfo.TypeEnum; + 'type'?: TermsOfServiceAcceptanceInfo.TypeEnum; /** * The expiration date for the Terms of Service acceptance, in ISO 8601 extended format. For example, 2022-12-18T00:00:00+01:00. */ - "validTo"?: Date; + 'validTo'?: Date; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "acceptedBy", "baseName": "acceptedBy", - "type": "string", - "format": "" + "type": "string" }, { "name": "acceptedFor", "baseName": "acceptedFor", - "type": "string", - "format": "" + "type": "string" }, { "name": "createdAt", "baseName": "createdAt", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "TermsOfServiceAcceptanceInfo.TypeEnum", - "format": "" + "type": "TermsOfServiceAcceptanceInfo.TypeEnum" }, { "name": "validTo", "baseName": "validTo", - "type": "Date", - "format": "date-time" + "type": "Date" } ]; static getAttributeTypeMap() { return TermsOfServiceAcceptanceInfo.attributeTypeMap; } - - public constructor() { - } } export namespace TermsOfServiceAcceptanceInfo { diff --git a/src/typings/legalEntityManagement/transferInstrument.ts b/src/typings/legalEntityManagement/transferInstrument.ts index 743d6cc91..80db42003 100644 --- a/src/typings/legalEntityManagement/transferInstrument.ts +++ b/src/typings/legalEntityManagement/transferInstrument.ts @@ -7,93 +7,80 @@ * Do not edit this class manually. */ -import { BankAccountInfo } from "./bankAccountInfo"; -import { CapabilityProblem } from "./capabilityProblem"; -import { DocumentReference } from "./documentReference"; -import { SupportingEntityCapability } from "./supportingEntityCapability"; - +import { BankAccountInfo } from './bankAccountInfo'; +import { CapabilityProblem } from './capabilityProblem'; +import { DocumentReference } from './documentReference'; +import { SupportingEntityCapability } from './supportingEntityCapability'; export class TransferInstrument { - "bankAccount": BankAccountInfo; + 'bankAccount': BankAccountInfo; /** * List of capabilities for this transfer instrument. */ - "capabilities"?: { [key: string]: SupportingEntityCapability; }; + 'capabilities'?: { [key: string]: SupportingEntityCapability; }; /** * List of documents uploaded for the transfer instrument. */ - "documentDetails"?: Array; + 'documentDetails'?: Array; /** * The unique identifier of the transfer instrument. */ - "id": string; + 'id': string; /** * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) that owns the transfer instrument. */ - "legalEntityId": string; + 'legalEntityId': string; /** * The verification errors related to capabilities for this transfer instrument. */ - "problems"?: Array; + 'problems'?: Array; /** * The type of transfer instrument. Possible value: **bankAccount**. */ - "type": TransferInstrument.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': TransferInstrument.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "bankAccount", "baseName": "bankAccount", - "type": "BankAccountInfo", - "format": "" + "type": "BankAccountInfo" }, { "name": "capabilities", "baseName": "capabilities", - "type": "{ [key: string]: SupportingEntityCapability; }", - "format": "" + "type": "{ [key: string]: SupportingEntityCapability; }" }, { "name": "documentDetails", "baseName": "documentDetails", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "legalEntityId", "baseName": "legalEntityId", - "type": "string", - "format": "" + "type": "string" }, { "name": "problems", "baseName": "problems", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "type", "baseName": "type", - "type": "TransferInstrument.TypeEnum", - "format": "" + "type": "TransferInstrument.TypeEnum" } ]; static getAttributeTypeMap() { return TransferInstrument.attributeTypeMap; } - - public constructor() { - } } export namespace TransferInstrument { diff --git a/src/typings/legalEntityManagement/transferInstrumentInfo.ts b/src/typings/legalEntityManagement/transferInstrumentInfo.ts index 42ca973ac..b0c592243 100644 --- a/src/typings/legalEntityManagement/transferInstrumentInfo.ts +++ b/src/typings/legalEntityManagement/transferInstrumentInfo.ts @@ -7,50 +7,41 @@ * Do not edit this class manually. */ -import { BankAccountInfo } from "./bankAccountInfo"; - +import { BankAccountInfo } from './bankAccountInfo'; export class TransferInstrumentInfo { - "bankAccount": BankAccountInfo; + 'bankAccount': BankAccountInfo; /** * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) that owns the transfer instrument. */ - "legalEntityId": string; + 'legalEntityId': string; /** * The type of transfer instrument. Possible value: **bankAccount**. */ - "type": TransferInstrumentInfo.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': TransferInstrumentInfo.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "bankAccount", "baseName": "bankAccount", - "type": "BankAccountInfo", - "format": "" + "type": "BankAccountInfo" }, { "name": "legalEntityId", "baseName": "legalEntityId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "TransferInstrumentInfo.TypeEnum", - "format": "" + "type": "TransferInstrumentInfo.TypeEnum" } ]; static getAttributeTypeMap() { return TransferInstrumentInfo.attributeTypeMap; } - - public constructor() { - } } export namespace TransferInstrumentInfo { diff --git a/src/typings/legalEntityManagement/transferInstrumentReference.ts b/src/typings/legalEntityManagement/transferInstrumentReference.ts index 2547727ef..1314189a0 100644 --- a/src/typings/legalEntityManagement/transferInstrumentReference.ts +++ b/src/typings/legalEntityManagement/transferInstrumentReference.ts @@ -12,55 +12,46 @@ export class TransferInstrumentReference { /** * The masked IBAN or bank account number. */ - "accountIdentifier": string; + 'accountIdentifier': string; /** * The unique identifier of the resource. */ - "id": string; + 'id': string; /** * Four last digits of the bank account number. If the transfer instrument is created using [instant bank account verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding), and it is a virtual bank account, these digits may be different from the last four digits of the masked account number. */ - "realLastFour"?: string; + 'realLastFour'?: string; /** * Identifies if the bank account was created through [instant bank verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding). */ - "trustedSource"?: boolean; + 'trustedSource'?: boolean; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountIdentifier", "baseName": "accountIdentifier", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "realLastFour", "baseName": "realLastFour", - "type": "string", - "format": "" + "type": "string" }, { "name": "trustedSource", "baseName": "trustedSource", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return TransferInstrumentReference.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/trust.ts b/src/typings/legalEntityManagement/trust.ts index f4c6b5c42..7043e0568 100644 --- a/src/typings/legalEntityManagement/trust.ts +++ b/src/typings/legalEntityManagement/trust.ts @@ -7,149 +7,130 @@ * Do not edit this class manually. */ -import { Address } from "./address"; -import { TaxInformation } from "./taxInformation"; -import { UndefinedBeneficiary } from "./undefinedBeneficiary"; - +import { Address } from './address'; +import { TaxInformation } from './taxInformation'; +import { UndefinedBeneficiary } from './undefinedBeneficiary'; export class Trust { /** * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. */ - "countryOfGoverningLaw": string; + 'countryOfGoverningLaw': string; /** * The date when the legal arrangement was incorporated in YYYY-MM-DD format. */ - "dateOfIncorporation"?: string; + 'dateOfIncorporation'?: string; /** * A short description about the trust. Only applicable for charitable trusts in New Zealand. */ - "description"?: string; + 'description'?: string; /** * The registered name, if different from the `name`. */ - "doingBusinessAs"?: string; + 'doingBusinessAs'?: string; /** * The legal name. */ - "name": string; - "principalPlaceOfBusiness"?: Address | null; - "registeredAddress": Address; + 'name': string; + 'principalPlaceOfBusiness'?: Address | null; + 'registeredAddress': Address; /** * The registration number. */ - "registrationNumber"?: string; + 'registrationNumber'?: string; /** * The tax information of the entity. */ - "taxInformation"?: Array; + 'taxInformation'?: Array; /** * Type of trust. See possible values for trusts in [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) and [New Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). */ - "type": Trust.TypeEnum; + 'type': Trust.TypeEnum; /** * The undefined beneficiary information of the entity. */ - "undefinedBeneficiaryInfo"?: Array; + 'undefinedBeneficiaryInfo'?: Array; /** * The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. */ - "vatAbsenceReason"?: Trust.VatAbsenceReasonEnum; + 'vatAbsenceReason'?: Trust.VatAbsenceReasonEnum; /** * The VAT number. */ - "vatNumber"?: string; - - static readonly discriminator: string | undefined = undefined; + 'vatNumber'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "countryOfGoverningLaw", "baseName": "countryOfGoverningLaw", - "type": "string", - "format": "" + "type": "string" }, { "name": "dateOfIncorporation", "baseName": "dateOfIncorporation", - "type": "string", - "format": "" + "type": "string" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "doingBusinessAs", "baseName": "doingBusinessAs", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "principalPlaceOfBusiness", "baseName": "principalPlaceOfBusiness", - "type": "Address | null", - "format": "" + "type": "Address | null" }, { "name": "registeredAddress", "baseName": "registeredAddress", - "type": "Address", - "format": "" + "type": "Address" }, { "name": "registrationNumber", "baseName": "registrationNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "taxInformation", "baseName": "taxInformation", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "type", "baseName": "type", - "type": "Trust.TypeEnum", - "format": "" + "type": "Trust.TypeEnum" }, { "name": "undefinedBeneficiaryInfo", "baseName": "undefinedBeneficiaryInfo", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "vatAbsenceReason", "baseName": "vatAbsenceReason", - "type": "Trust.VatAbsenceReasonEnum", - "format": "" + "type": "Trust.VatAbsenceReasonEnum" }, { "name": "vatNumber", "baseName": "vatNumber", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Trust.attributeTypeMap; } - - public constructor() { - } } export namespace Trust { diff --git a/src/typings/legalEntityManagement/uKLocalAccountIdentification.ts b/src/typings/legalEntityManagement/uKLocalAccountIdentification.ts index 86a079b8c..26dff2350 100644 --- a/src/typings/legalEntityManagement/uKLocalAccountIdentification.ts +++ b/src/typings/legalEntityManagement/uKLocalAccountIdentification.ts @@ -12,46 +12,38 @@ export class UKLocalAccountIdentification { /** * The 8-digit bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. */ - "sortCode": string; + 'sortCode': string; /** * **ukLocal** */ - "type": UKLocalAccountIdentification.TypeEnum; + 'type': UKLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "sortCode", "baseName": "sortCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "UKLocalAccountIdentification.TypeEnum", - "format": "" + "type": "UKLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return UKLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace UKLocalAccountIdentification { diff --git a/src/typings/legalEntityManagement/uSLocalAccountIdentification.ts b/src/typings/legalEntityManagement/uSLocalAccountIdentification.ts index 70431f551..43cba41d2 100644 --- a/src/typings/legalEntityManagement/uSLocalAccountIdentification.ts +++ b/src/typings/legalEntityManagement/uSLocalAccountIdentification.ts @@ -12,56 +12,47 @@ export class USLocalAccountIdentification { /** * The bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ - "accountType"?: USLocalAccountIdentification.AccountTypeEnum; + 'accountType'?: USLocalAccountIdentification.AccountTypeEnum; /** * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. */ - "routingNumber": string; + 'routingNumber': string; /** * **usLocal** */ - "type": USLocalAccountIdentification.TypeEnum; + 'type': USLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "accountType", "baseName": "accountType", - "type": "USLocalAccountIdentification.AccountTypeEnum", - "format": "" + "type": "USLocalAccountIdentification.AccountTypeEnum" }, { "name": "routingNumber", "baseName": "routingNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "USLocalAccountIdentification.TypeEnum", - "format": "" + "type": "USLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return USLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace USLocalAccountIdentification { diff --git a/src/typings/legalEntityManagement/undefinedBeneficiary.ts b/src/typings/legalEntityManagement/undefinedBeneficiary.ts index 71a72ef17..45e0b8c8f 100644 --- a/src/typings/legalEntityManagement/undefinedBeneficiary.ts +++ b/src/typings/legalEntityManagement/undefinedBeneficiary.ts @@ -12,35 +12,28 @@ export class UndefinedBeneficiary { /** * The details of the undefined beneficiary. */ - "description"?: string; + 'description'?: string; /** * The reference of the undefined beneficiary. */ - "reference"?: string; + 'reference'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return UndefinedBeneficiary.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/unincorporatedPartnership.ts b/src/typings/legalEntityManagement/unincorporatedPartnership.ts index ada802871..d37061c6f 100644 --- a/src/typings/legalEntityManagement/unincorporatedPartnership.ts +++ b/src/typings/legalEntityManagement/unincorporatedPartnership.ts @@ -7,138 +7,120 @@ * Do not edit this class manually. */ -import { Address } from "./address"; -import { TaxInformation } from "./taxInformation"; - +import { Address } from './address'; +import { TaxInformation } from './taxInformation'; export class UnincorporatedPartnership { /** * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. */ - "countryOfGoverningLaw": string; + 'countryOfGoverningLaw': string; /** * The date when the legal arrangement was incorporated in YYYY-MM-DD format. */ - "dateOfIncorporation"?: string; + 'dateOfIncorporation'?: string; /** * Short description about the Legal Arrangement. */ - "description"?: string; + 'description'?: string; /** * The registered name, if different from the `name`. */ - "doingBusinessAs"?: string; + 'doingBusinessAs'?: string; /** * The legal name. */ - "name": string; - "principalPlaceOfBusiness"?: Address | null; - "registeredAddress": Address; + 'name': string; + 'principalPlaceOfBusiness'?: Address | null; + 'registeredAddress': Address; /** * The registration number. */ - "registrationNumber"?: string; + 'registrationNumber'?: string; /** * The tax information of the entity. */ - "taxInformation"?: Array; + 'taxInformation'?: Array; /** * Type of Partnership. Possible values: * **limitedPartnership** * **generalPartnership** * **familyPartnership** * **commercialPartnership** * **publicPartnership** * **otherPartnership** * **gbr** * **gmbh** * **kgaa** * **cv** * **vof** * **maatschap** * **privateFundLimitedPartnership** * **businessTrustEntity** * **businessPartnership** * **limitedLiabilityPartnership** * **eg** * **cooperative** * **vos** * **comunidadDeBienes** * **herenciaYacente** * **comunidadDePropietarios** * **sep** * **sca** * **bt** * **kkt** * **scs** * **snc** */ - "type"?: UnincorporatedPartnership.TypeEnum; + 'type'?: UnincorporatedPartnership.TypeEnum; /** * The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. */ - "vatAbsenceReason"?: UnincorporatedPartnership.VatAbsenceReasonEnum; + 'vatAbsenceReason'?: UnincorporatedPartnership.VatAbsenceReasonEnum; /** * The VAT number. */ - "vatNumber"?: string; - - static readonly discriminator: string | undefined = undefined; + 'vatNumber'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "countryOfGoverningLaw", "baseName": "countryOfGoverningLaw", - "type": "string", - "format": "" + "type": "string" }, { "name": "dateOfIncorporation", "baseName": "dateOfIncorporation", - "type": "string", - "format": "" + "type": "string" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "doingBusinessAs", "baseName": "doingBusinessAs", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "principalPlaceOfBusiness", "baseName": "principalPlaceOfBusiness", - "type": "Address | null", - "format": "" + "type": "Address | null" }, { "name": "registeredAddress", "baseName": "registeredAddress", - "type": "Address", - "format": "" + "type": "Address" }, { "name": "registrationNumber", "baseName": "registrationNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "taxInformation", "baseName": "taxInformation", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "type", "baseName": "type", - "type": "UnincorporatedPartnership.TypeEnum", - "format": "" + "type": "UnincorporatedPartnership.TypeEnum" }, { "name": "vatAbsenceReason", "baseName": "vatAbsenceReason", - "type": "UnincorporatedPartnership.VatAbsenceReasonEnum", - "format": "" + "type": "UnincorporatedPartnership.VatAbsenceReasonEnum" }, { "name": "vatNumber", "baseName": "vatNumber", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return UnincorporatedPartnership.attributeTypeMap; } - - public constructor() { - } } export namespace UnincorporatedPartnership { diff --git a/src/typings/legalEntityManagement/verificationDeadline.ts b/src/typings/legalEntityManagement/verificationDeadline.ts index 624739ec9..61f315167 100644 --- a/src/typings/legalEntityManagement/verificationDeadline.ts +++ b/src/typings/legalEntityManagement/verificationDeadline.ts @@ -12,46 +12,38 @@ export class VerificationDeadline { /** * The list of capabilities that will be disallowed if information is not reviewed by the time of the deadline */ - "capabilities": Array; + 'capabilities': Array; /** * The unique identifiers of the legal entity or supporting entities that the deadline applies to */ - "entityIds"?: Array; + 'entityIds'?: Array; /** * The date that verification is due by before capabilities are disallowed. */ - "expiresAt": Date; + 'expiresAt': Date; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "capabilities", "baseName": "capabilities", - "type": "VerificationDeadline.CapabilitiesEnum", - "format": "" + "type": "Array" }, { "name": "entityIds", "baseName": "entityIds", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "expiresAt", "baseName": "expiresAt", - "type": "Date", - "format": "date-time" + "type": "Date" } ]; static getAttributeTypeMap() { return VerificationDeadline.attributeTypeMap; } - - public constructor() { - } } export namespace VerificationDeadline { diff --git a/src/typings/legalEntityManagement/verificationError.ts b/src/typings/legalEntityManagement/verificationError.ts index 846e0c5c1..488fa7bd3 100644 --- a/src/typings/legalEntityManagement/verificationError.ts +++ b/src/typings/legalEntityManagement/verificationError.ts @@ -7,84 +7,72 @@ * Do not edit this class manually. */ -import { RemediatingAction } from "./remediatingAction"; -import { VerificationErrorRecursive } from "./verificationErrorRecursive"; - +import { RemediatingAction } from './remediatingAction'; +import { VerificationErrorRecursive } from './verificationErrorRecursive'; export class VerificationError { /** * Contains key-value pairs that specify the actions that the legal entity can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. */ - "capabilities"?: Array; + 'capabilities'?: Array; /** * The general error code. */ - "code"?: string; + 'code'?: string; /** * The general error message. */ - "message"?: string; + 'message'?: string; /** * An object containing possible solutions to fix a verification error. */ - "remediatingActions"?: Array; + 'remediatingActions'?: Array; /** * An array containing more granular information about the cause of the verification error. */ - "subErrors"?: Array; + 'subErrors'?: Array; /** * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** */ - "type"?: VerificationError.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type'?: VerificationError.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "capabilities", "baseName": "capabilities", - "type": "VerificationError.CapabilitiesEnum", - "format": "" + "type": "Array" }, { "name": "code", "baseName": "code", - "type": "string", - "format": "" + "type": "string" }, { "name": "message", "baseName": "message", - "type": "string", - "format": "" + "type": "string" }, { "name": "remediatingActions", "baseName": "remediatingActions", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "subErrors", "baseName": "subErrors", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "type", "baseName": "type", - "type": "VerificationError.TypeEnum", - "format": "" + "type": "VerificationError.TypeEnum" } ]; static getAttributeTypeMap() { return VerificationError.attributeTypeMap; } - - public constructor() { - } } export namespace VerificationError { diff --git a/src/typings/legalEntityManagement/verificationErrorRecursive.ts b/src/typings/legalEntityManagement/verificationErrorRecursive.ts index ca0a95748..c4b282690 100644 --- a/src/typings/legalEntityManagement/verificationErrorRecursive.ts +++ b/src/typings/legalEntityManagement/verificationErrorRecursive.ts @@ -7,73 +7,62 @@ * Do not edit this class manually. */ -import { RemediatingAction } from "./remediatingAction"; - +import { RemediatingAction } from './remediatingAction'; export class VerificationErrorRecursive { /** * Contains key-value pairs that specify the actions that the legal entity can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. */ - "capabilities"?: Array; + 'capabilities'?: Array; /** * The general error code. */ - "code"?: string; + 'code'?: string; /** * The general error message. */ - "message"?: string; + 'message'?: string; /** * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** */ - "type"?: VerificationErrorRecursive.TypeEnum; + 'type'?: VerificationErrorRecursive.TypeEnum; /** * An object containing possible solutions to fix a verification error. */ - "remediatingActions"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'remediatingActions'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "capabilities", "baseName": "capabilities", - "type": "VerificationErrorRecursive.CapabilitiesEnum", - "format": "" + "type": "Array" }, { "name": "code", "baseName": "code", - "type": "string", - "format": "" + "type": "string" }, { "name": "message", "baseName": "message", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "VerificationErrorRecursive.TypeEnum", - "format": "" + "type": "VerificationErrorRecursive.TypeEnum" }, { "name": "remediatingActions", "baseName": "remediatingActions", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return VerificationErrorRecursive.attributeTypeMap; } - - public constructor() { - } } export namespace VerificationErrorRecursive { diff --git a/src/typings/legalEntityManagement/verificationErrors.ts b/src/typings/legalEntityManagement/verificationErrors.ts index 11b8584c1..4c6ef3954 100644 --- a/src/typings/legalEntityManagement/verificationErrors.ts +++ b/src/typings/legalEntityManagement/verificationErrors.ts @@ -7,32 +7,25 @@ * Do not edit this class manually. */ -import { CapabilityProblem } from "./capabilityProblem"; - +import { CapabilityProblem } from './capabilityProblem'; export class VerificationErrors { /** * List of the verification errors. */ - "problems"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'problems'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "problems", "baseName": "problems", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return VerificationErrors.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/webData.ts b/src/typings/legalEntityManagement/webData.ts index cfcd6d1e6..ebfa8f151 100644 --- a/src/typings/legalEntityManagement/webData.ts +++ b/src/typings/legalEntityManagement/webData.ts @@ -12,35 +12,28 @@ export class WebData { /** * The URL of the website or the app store URL. */ - "webAddress"?: string; + 'webAddress'?: string; /** * The unique identifier of the web address. */ - "webAddressId"?: string; + 'webAddressId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "webAddress", "baseName": "webAddress", - "type": "string", - "format": "" + "type": "string" }, { "name": "webAddressId", "baseName": "webAddressId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return WebData.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/legalEntityManagement/webDataExemption.ts b/src/typings/legalEntityManagement/webDataExemption.ts index c19c23b9a..6ce03705d 100644 --- a/src/typings/legalEntityManagement/webDataExemption.ts +++ b/src/typings/legalEntityManagement/webDataExemption.ts @@ -12,26 +12,20 @@ export class WebDataExemption { /** * The reason why the web data was not provided. Possible value: **noOnlinePresence**. */ - "reason"?: WebDataExemption.ReasonEnum; + 'reason'?: WebDataExemption.ReasonEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "reason", "baseName": "reason", - "type": "WebDataExemption.ReasonEnum", - "format": "" + "type": "WebDataExemption.ReasonEnum" } ]; static getAttributeTypeMap() { return WebDataExemption.attributeTypeMap; } - - public constructor() { - } } export namespace WebDataExemption { diff --git a/src/typings/management/accelInfo.ts b/src/typings/management/accelInfo.ts index 692671f52..3ddac8149 100644 --- a/src/typings/management/accelInfo.ts +++ b/src/typings/management/accelInfo.ts @@ -7,40 +7,32 @@ * Do not edit this class manually. */ -import { TransactionDescriptionInfo } from "./transactionDescriptionInfo"; - +import { TransactionDescriptionInfo } from './transactionDescriptionInfo'; export class AccelInfo { /** * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. */ - "processingType": AccelInfo.ProcessingTypeEnum; - "transactionDescription"?: TransactionDescriptionInfo | null; - - static readonly discriminator: string | undefined = undefined; + 'processingType': AccelInfo.ProcessingTypeEnum; + 'transactionDescription'?: TransactionDescriptionInfo | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "processingType", "baseName": "processingType", - "type": "AccelInfo.ProcessingTypeEnum", - "format": "" + "type": "AccelInfo.ProcessingTypeEnum" }, { "name": "transactionDescription", "baseName": "transactionDescription", - "type": "TransactionDescriptionInfo | null", - "format": "" + "type": "TransactionDescriptionInfo | null" } ]; static getAttributeTypeMap() { return AccelInfo.attributeTypeMap; } - - public constructor() { - } } export namespace AccelInfo { diff --git a/src/typings/management/additionalCommission.ts b/src/typings/management/additionalCommission.ts index 59c777e29..7bbd646fe 100644 --- a/src/typings/management/additionalCommission.ts +++ b/src/typings/management/additionalCommission.ts @@ -12,45 +12,37 @@ export class AdditionalCommission { /** * Unique identifier of the balance account to which the additional commission is booked. */ - "balanceAccountId"?: string; + 'balanceAccountId'?: string; /** * A fixed commission fee, in minor units. */ - "fixedAmount"?: number; + 'fixedAmount'?: number; /** * A variable commission fee, in basis points. */ - "variablePercentage"?: number; + 'variablePercentage'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balanceAccountId", "baseName": "balanceAccountId", - "type": "string", - "format": "" + "type": "string" }, { "name": "fixedAmount", "baseName": "fixedAmount", - "type": "number", - "format": "int64" + "type": "number" }, { "name": "variablePercentage", "baseName": "variablePercentage", - "type": "number", - "format": "int64" + "type": "number" } ]; static getAttributeTypeMap() { return AdditionalCommission.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/additionalSettings.ts b/src/typings/management/additionalSettings.ts index f4439bcac..167d9e582 100644 --- a/src/typings/management/additionalSettings.ts +++ b/src/typings/management/additionalSettings.ts @@ -12,35 +12,28 @@ export class AdditionalSettings { /** * Object containing list of event codes for which the notification will be sent. */ - "includeEventCodes"?: Array; + 'includeEventCodes'?: Array; /** * Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured. */ - "properties"?: { [key: string]: boolean; }; + 'properties'?: { [key: string]: boolean; }; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "includeEventCodes", "baseName": "includeEventCodes", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "properties", "baseName": "properties", - "type": "{ [key: string]: boolean; }", - "format": "" + "type": "{ [key: string]: boolean; }" } ]; static getAttributeTypeMap() { return AdditionalSettings.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/additionalSettingsResponse.ts b/src/typings/management/additionalSettingsResponse.ts index e01990ef6..e07d69166 100644 --- a/src/typings/management/additionalSettingsResponse.ts +++ b/src/typings/management/additionalSettingsResponse.ts @@ -12,45 +12,37 @@ export class AdditionalSettingsResponse { /** * Object containing list of event codes for which the notification will not be sent. */ - "excludeEventCodes"?: Array; + 'excludeEventCodes'?: Array; /** * Object containing list of event codes for which the notification will be sent. */ - "includeEventCodes"?: Array; + 'includeEventCodes'?: Array; /** * Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured. */ - "properties"?: { [key: string]: boolean; }; + 'properties'?: { [key: string]: boolean; }; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "excludeEventCodes", "baseName": "excludeEventCodes", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "includeEventCodes", "baseName": "includeEventCodes", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "properties", "baseName": "properties", - "type": "{ [key: string]: boolean; }", - "format": "" + "type": "{ [key: string]: boolean; }" } ]; static getAttributeTypeMap() { return AdditionalSettingsResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/address.ts b/src/typings/management/address.ts index 4bb4fa7d8..9f2d0e6a5 100644 --- a/src/typings/management/address.ts +++ b/src/typings/management/address.ts @@ -12,85 +12,73 @@ export class Address { /** * The name of the city. */ - "city"?: string; + 'city'?: string; /** * The name of the company. */ - "companyName"?: string; + 'companyName'?: string; /** * The two-letter country code, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */ - "country"?: string; + 'country'?: string; /** * The postal code. */ - "postalCode"?: string; + 'postalCode'?: string; /** * The state or province as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Applicable for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States */ - "stateOrProvince"?: string; + 'stateOrProvince'?: string; /** * The name of the street, and the house or building number. */ - "streetAddress"?: string; + 'streetAddress'?: string; /** * Additional address details, if any. */ - "streetAddress2"?: string; + 'streetAddress2'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "city", "baseName": "city", - "type": "string", - "format": "" + "type": "string" }, { "name": "companyName", "baseName": "companyName", - "type": "string", - "format": "" + "type": "string" }, { "name": "country", "baseName": "country", - "type": "string", - "format": "" + "type": "string" }, { "name": "postalCode", "baseName": "postalCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "stateOrProvince", "baseName": "stateOrProvince", - "type": "string", - "format": "" + "type": "string" }, { "name": "streetAddress", "baseName": "streetAddress", - "type": "string", - "format": "" + "type": "string" }, { "name": "streetAddress2", "baseName": "streetAddress2", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Address.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/affirmInfo.ts b/src/typings/management/affirmInfo.ts index b64e42c38..856c58c97 100644 --- a/src/typings/management/affirmInfo.ts +++ b/src/typings/management/affirmInfo.ts @@ -12,25 +12,19 @@ export class AffirmInfo { /** * Merchant support email */ - "supportEmail": string; + 'supportEmail': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "supportEmail", "baseName": "supportEmail", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AffirmInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/afterpayTouchInfo.ts b/src/typings/management/afterpayTouchInfo.ts index f1c28b870..d209ac8a6 100644 --- a/src/typings/management/afterpayTouchInfo.ts +++ b/src/typings/management/afterpayTouchInfo.ts @@ -12,35 +12,28 @@ export class AfterpayTouchInfo { /** * Support Email */ - "supportEmail"?: string; + 'supportEmail'?: string; /** * Support Url */ - "supportUrl": string; + 'supportUrl': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "supportEmail", "baseName": "supportEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "supportUrl", "baseName": "supportUrl", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AfterpayTouchInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/alipayPlusInfo.ts b/src/typings/management/alipayPlusInfo.ts new file mode 100644 index 000000000..075b5ebc4 --- /dev/null +++ b/src/typings/management/alipayPlusInfo.ts @@ -0,0 +1,30 @@ +/* + * 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 AlipayPlusInfo { + /** + * currency used for settlement. Defaults to USD + */ + 'settlementCurrencyCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "settlementCurrencyCode", + "baseName": "settlementCurrencyCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AlipayPlusInfo.attributeTypeMap; + } +} + diff --git a/src/typings/management/allowedOrigin.ts b/src/typings/management/allowedOrigin.ts index 9460e64be..b16a7f1ba 100644 --- a/src/typings/management/allowedOrigin.ts +++ b/src/typings/management/allowedOrigin.ts @@ -7,49 +7,40 @@ * Do not edit this class manually. */ -import { Links } from "./links"; - +import { Links } from './links'; export class AllowedOrigin { - "_links"?: Links | null; + '_links'?: Links | null; /** * Domain of the allowed origin. */ - "domain": string; + 'domain': string; /** * Unique identifier of the allowed origin. */ - "id"?: string; - - static readonly discriminator: string | undefined = undefined; + 'id'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "_links", "baseName": "_links", - "type": "Links | null", - "format": "" + "type": "Links | null" }, { "name": "domain", "baseName": "domain", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AllowedOrigin.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/allowedOriginsResponse.ts b/src/typings/management/allowedOriginsResponse.ts index 095f3a88c..7ccd0f589 100644 --- a/src/typings/management/allowedOriginsResponse.ts +++ b/src/typings/management/allowedOriginsResponse.ts @@ -7,32 +7,25 @@ * Do not edit this class manually. */ -import { AllowedOrigin } from "./allowedOrigin"; - +import { AllowedOrigin } from './allowedOrigin'; export class AllowedOriginsResponse { /** * List of allowed origins. */ - "data"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'data'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return AllowedOriginsResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/amexInfo.ts b/src/typings/management/amexInfo.ts index b4ec9c156..6cab90b68 100644 --- a/src/typings/management/amexInfo.ts +++ b/src/typings/management/amexInfo.ts @@ -12,46 +12,38 @@ export class AmexInfo { /** * Merchant ID (MID) number. Format: 10 numeric characters. You must provide this field when you request `gatewayContract` or `paymentDesignatorContract` service levels. */ - "midNumber"?: string; + 'midNumber'?: string; /** * Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. This is only applicable for `gatewayContract` and `paymentDesignatorContract` service levels. The default value is **false**. */ - "reuseMidNumber"?: boolean; + 'reuseMidNumber'?: boolean; /** * Specifies the service level (settlement type) of this payment method. Possible values: * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes and payouts. */ - "serviceLevel": AmexInfo.ServiceLevelEnum; + 'serviceLevel': AmexInfo.ServiceLevelEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "midNumber", "baseName": "midNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "reuseMidNumber", "baseName": "reuseMidNumber", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "serviceLevel", "baseName": "serviceLevel", - "type": "AmexInfo.ServiceLevelEnum", - "format": "" + "type": "AmexInfo.ServiceLevelEnum" } ]; static getAttributeTypeMap() { return AmexInfo.attributeTypeMap; } - - public constructor() { - } } export namespace AmexInfo { diff --git a/src/typings/management/amount.ts b/src/typings/management/amount.ts index 064c4170a..ee96f63e9 100644 --- a/src/typings/management/amount.ts +++ b/src/typings/management/amount.ts @@ -12,35 +12,28 @@ export class Amount { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ - "currency": string; + 'currency': string; /** * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ - "value": number; + 'value': number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "number", - "format": "int64" + "type": "number" } ]; static getAttributeTypeMap() { return Amount.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/androidApp.ts b/src/typings/management/androidApp.ts index 9844f1781..9272d3978 100644 --- a/src/typings/management/androidApp.ts +++ b/src/typings/management/androidApp.ts @@ -7,116 +7,101 @@ * Do not edit this class manually. */ -import { AndroidAppError } from "./androidAppError"; - +import { AndroidAppError } from './androidAppError'; export class AndroidApp { /** * The description that was provided when uploading the app. The description is not shown on the terminal. */ - "description"?: string; + 'description'?: string; /** * The error code of the Android app with the `status` of either **error** or **invalid**. * * @deprecated since Management API v3 * Use `errors` instead. */ - "errorCode"?: string; + 'errorCode'?: string; /** * The list of errors of the Android app. */ - "errors"?: Array; + 'errors'?: Array; /** * The unique identifier of the app. */ - "id": string; + 'id': string; /** * The app name that is shown on the terminal. */ - "label"?: string; + 'label'?: string; /** * The package name that uniquely identifies the Android app. */ - "packageName"?: string; + 'packageName'?: string; /** * The status of the app. Possible values: * `processing`: the app is being signed and converted to a format that the terminal can handle. * `error`: something went wrong. Check that the app matches the [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * `invalid`: there is something wrong with the APK file of the app. * `ready`: the app has been signed and converted. * `archived`: the app is no longer available. */ - "status": AndroidApp.StatusEnum; + 'status': AndroidApp.StatusEnum; /** * The version number of the app. */ - "versionCode"?: number; + 'versionCode'?: number; /** * The app version number that is shown on the terminal. */ - "versionName"?: string; - - static readonly discriminator: string | undefined = undefined; + 'versionName'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "errorCode", "baseName": "errorCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "errors", "baseName": "errors", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "label", "baseName": "label", - "type": "string", - "format": "" + "type": "string" }, { "name": "packageName", "baseName": "packageName", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "AndroidApp.StatusEnum", - "format": "" + "type": "AndroidApp.StatusEnum" }, { "name": "versionCode", "baseName": "versionCode", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "versionName", "baseName": "versionName", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AndroidApp.attributeTypeMap; } - - public constructor() { - } } export namespace AndroidApp { diff --git a/src/typings/management/androidAppError.ts b/src/typings/management/androidAppError.ts index 27a7397ec..cc482a913 100644 --- a/src/typings/management/androidAppError.ts +++ b/src/typings/management/androidAppError.ts @@ -12,35 +12,28 @@ export class AndroidAppError { /** * The error code of the Android app with the `status` of either **error** or **invalid**. */ - "errorCode"?: string; + 'errorCode'?: string; /** * The list of payment terminal models to which the returned `errorCode` applies. */ - "terminalModels"?: Array; + 'terminalModels'?: Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "errorCode", "baseName": "errorCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "terminalModels", "baseName": "terminalModels", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return AndroidAppError.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/androidAppsResponse.ts b/src/typings/management/androidAppsResponse.ts index 884ff9e02..a030c21d8 100644 --- a/src/typings/management/androidAppsResponse.ts +++ b/src/typings/management/androidAppsResponse.ts @@ -7,32 +7,25 @@ * Do not edit this class manually. */ -import { AndroidApp } from "./androidApp"; - +import { AndroidApp } from './androidApp'; export class AndroidAppsResponse { /** * Apps uploaded for Android payment terminals. */ - "data"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'data'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return AndroidAppsResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/androidCertificate.ts b/src/typings/management/androidCertificate.ts index 99faa6cca..51952725b 100644 --- a/src/typings/management/androidCertificate.ts +++ b/src/typings/management/androidCertificate.ts @@ -12,85 +12,73 @@ export class AndroidCertificate { /** * The description that was provided when uploading the certificate. */ - "description"?: string; + 'description'?: string; /** * The file format of the certificate, as indicated by the file extension. For example, **.cert** or **.pem**. */ - "extension"?: string; + 'extension'?: string; /** * The unique identifier of the certificate. */ - "id": string; + 'id': string; /** * The file name of the certificate. For example, **mycert**. */ - "name"?: string; + 'name'?: string; /** * The date when the certificate stops to be valid. */ - "notAfter"?: Date; + 'notAfter'?: Date; /** * The date when the certificate starts to be valid. */ - "notBefore"?: Date; + 'notBefore'?: Date; /** * The status of the certificate. */ - "status"?: string; + 'status'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "extension", "baseName": "extension", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "notAfter", "baseName": "notAfter", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "notBefore", "baseName": "notBefore", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "status", "baseName": "status", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AndroidCertificate.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/androidCertificatesResponse.ts b/src/typings/management/androidCertificatesResponse.ts index 2e93f3740..2d634e890 100644 --- a/src/typings/management/androidCertificatesResponse.ts +++ b/src/typings/management/androidCertificatesResponse.ts @@ -7,32 +7,25 @@ * Do not edit this class manually. */ -import { AndroidCertificate } from "./androidCertificate"; - +import { AndroidCertificate } from './androidCertificate'; export class AndroidCertificatesResponse { /** * Uploaded Android certificates for Android payment terminals. */ - "data"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'data'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return AndroidCertificatesResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/apiCredential.ts b/src/typings/management/apiCredential.ts index 4a85416eb..be57a362c 100644 --- a/src/typings/management/apiCredential.ts +++ b/src/typings/management/apiCredential.ts @@ -7,110 +7,95 @@ * Do not edit this class manually. */ -import { AllowedOrigin } from "./allowedOrigin"; -import { ApiCredentialLinks } from "./apiCredentialLinks"; - +import { AllowedOrigin } from './allowedOrigin'; +import { ApiCredentialLinks } from './apiCredentialLinks'; export class ApiCredential { - "_links"?: ApiCredentialLinks | null; + '_links'?: ApiCredentialLinks | null; /** * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. */ - "active": boolean; + 'active': boolean; /** * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. */ - "allowedIpAddresses": Array; + 'allowedIpAddresses': Array; /** * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. */ - "allowedOrigins"?: Array; + 'allowedOrigins'?: Array; /** * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. */ - "clientKey": string; + 'clientKey': string; /** * Description of the API credential. */ - "description"?: string; + 'description'?: string; /** * Unique identifier of the API credential. */ - "id": string; + 'id': string; /** * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. */ - "roles": Array; + 'roles': Array; /** * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. */ - "username": string; - - static readonly discriminator: string | undefined = undefined; + 'username': string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "_links", "baseName": "_links", - "type": "ApiCredentialLinks | null", - "format": "" + "type": "ApiCredentialLinks | null" }, { "name": "active", "baseName": "active", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "allowedIpAddresses", "baseName": "allowedIpAddresses", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "allowedOrigins", "baseName": "allowedOrigins", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "clientKey", "baseName": "clientKey", - "type": "string", - "format": "" + "type": "string" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "roles", "baseName": "roles", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "username", "baseName": "username", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ApiCredential.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/apiCredentialLinks.ts b/src/typings/management/apiCredentialLinks.ts index 7eab5fc38..e45c2b6ea 100644 --- a/src/typings/management/apiCredentialLinks.ts +++ b/src/typings/management/apiCredentialLinks.ts @@ -7,64 +7,52 @@ * Do not edit this class manually. */ -import { LinksElement } from "./linksElement"; - +import { LinksElement } from './linksElement'; export class ApiCredentialLinks { - "allowedOrigins"?: LinksElement | null; - "company"?: LinksElement | null; - "generateApiKey"?: LinksElement | null; - "generateClientKey"?: LinksElement | null; - "merchant"?: LinksElement | null; - "self": LinksElement; - - static readonly discriminator: string | undefined = undefined; + 'allowedOrigins'?: LinksElement | null; + 'company'?: LinksElement | null; + 'generateApiKey'?: LinksElement | null; + 'generateClientKey'?: LinksElement | null; + 'merchant'?: LinksElement | null; + 'self': LinksElement; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "allowedOrigins", "baseName": "allowedOrigins", - "type": "LinksElement | null", - "format": "" + "type": "LinksElement | null" }, { "name": "company", "baseName": "company", - "type": "LinksElement | null", - "format": "" + "type": "LinksElement | null" }, { "name": "generateApiKey", "baseName": "generateApiKey", - "type": "LinksElement | null", - "format": "" + "type": "LinksElement | null" }, { "name": "generateClientKey", "baseName": "generateClientKey", - "type": "LinksElement | null", - "format": "" + "type": "LinksElement | null" }, { "name": "merchant", "baseName": "merchant", - "type": "LinksElement | null", - "format": "" + "type": "LinksElement | null" }, { "name": "self", "baseName": "self", - "type": "LinksElement", - "format": "" + "type": "LinksElement" } ]; static getAttributeTypeMap() { return ApiCredentialLinks.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/applePayInfo.ts b/src/typings/management/applePayInfo.ts index 2ac6a7d5a..9caed66f2 100644 --- a/src/typings/management/applePayInfo.ts +++ b/src/typings/management/applePayInfo.ts @@ -12,25 +12,19 @@ export class ApplePayInfo { /** * The list of merchant domains. Maximum: 99 domains per request. For more information, see [Apple Pay documentation](https://docs.adyen.com/payment-methods/apple-pay/web-drop-in?tab=adyen-certificate-live_1#going-live). */ - "domains": Array; + 'domains': Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "domains", "baseName": "domains", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return ApplePayInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/bcmcInfo.ts b/src/typings/management/bcmcInfo.ts index 7c9c0e222..bf0a5c243 100644 --- a/src/typings/management/bcmcInfo.ts +++ b/src/typings/management/bcmcInfo.ts @@ -12,25 +12,19 @@ export class BcmcInfo { /** * Indicates if [Bancontact mobile](https://docs.adyen.com/payment-methods/bancontact/bancontact-mobile) is enabled. */ - "enableBcmcMobile"?: boolean; + 'enableBcmcMobile'?: boolean; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "enableBcmcMobile", "baseName": "enableBcmcMobile", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return BcmcInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/billingEntitiesResponse.ts b/src/typings/management/billingEntitiesResponse.ts index 75c9f6713..ffb074add 100644 --- a/src/typings/management/billingEntitiesResponse.ts +++ b/src/typings/management/billingEntitiesResponse.ts @@ -7,32 +7,25 @@ * Do not edit this class manually. */ -import { BillingEntity } from "./billingEntity"; - +import { BillingEntity } from './billingEntity'; export class BillingEntitiesResponse { /** * List of legal entities that can be used for the billing of orders. */ - "data"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'data'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return BillingEntitiesResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/billingEntity.ts b/src/typings/management/billingEntity.ts index 2c7dfd084..1f2d1c1b7 100644 --- a/src/typings/management/billingEntity.ts +++ b/src/typings/management/billingEntity.ts @@ -7,69 +7,58 @@ * Do not edit this class manually. */ -import { Address } from "./address"; - +import { Address } from './address'; export class BillingEntity { - "address"?: Address | null; + 'address'?: Address | null; /** * The email address of the billing entity. */ - "email"?: string; + 'email'?: string; /** * The unique identifier of the billing entity, for use as `billingEntityId` when creating an order. */ - "id"?: string; + 'id'?: string; /** * The unique name of the billing entity. */ - "name"?: string; + 'name'?: string; /** * The tax number of the billing entity. */ - "taxId"?: string; - - static readonly discriminator: string | undefined = undefined; + 'taxId'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "address", "baseName": "address", - "type": "Address | null", - "format": "" + "type": "Address | null" }, { "name": "email", "baseName": "email", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "taxId", "baseName": "taxId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return BillingEntity.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/cardholderReceipt.ts b/src/typings/management/cardholderReceipt.ts index 12b669ab7..9e6eb72c6 100644 --- a/src/typings/management/cardholderReceipt.ts +++ b/src/typings/management/cardholderReceipt.ts @@ -12,25 +12,19 @@ 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` */ - "headerForAuthorizedReceipt"?: string; + 'headerForAuthorizedReceipt'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "headerForAuthorizedReceipt", "baseName": "headerForAuthorizedReceipt", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CardholderReceipt.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/cartesBancairesInfo.ts b/src/typings/management/cartesBancairesInfo.ts index 2ce8a2c52..800370114 100644 --- a/src/typings/management/cartesBancairesInfo.ts +++ b/src/typings/management/cartesBancairesInfo.ts @@ -7,39 +7,31 @@ * Do not edit this class manually. */ -import { TransactionDescriptionInfo } from "./transactionDescriptionInfo"; - +import { TransactionDescriptionInfo } from './transactionDescriptionInfo'; export class CartesBancairesInfo { /** * Cartes Bancaires SIRET. Format: 14 digits. */ - "siret": string; - "transactionDescription"?: TransactionDescriptionInfo | null; - - static readonly discriminator: string | undefined = undefined; + 'siret': string; + 'transactionDescription'?: TransactionDescriptionInfo | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "siret", "baseName": "siret", - "type": "string", - "format": "" + "type": "string" }, { "name": "transactionDescription", "baseName": "transactionDescription", - "type": "TransactionDescriptionInfo | null", - "format": "" + "type": "TransactionDescriptionInfo | null" } ]; static getAttributeTypeMap() { return CartesBancairesInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/clearpayInfo.ts b/src/typings/management/clearpayInfo.ts index ddef61ee3..246844b16 100644 --- a/src/typings/management/clearpayInfo.ts +++ b/src/typings/management/clearpayInfo.ts @@ -12,25 +12,19 @@ export class ClearpayInfo { /** * Support Url */ - "supportUrl": string; + 'supportUrl': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "supportUrl", "baseName": "supportUrl", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ClearpayInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/commission.ts b/src/typings/management/commission.ts index 2168ec448..394a3f3ac 100644 --- a/src/typings/management/commission.ts +++ b/src/typings/management/commission.ts @@ -12,35 +12,28 @@ export class Commission { /** * A fixed commission fee, in minor units. */ - "fixedAmount"?: number; + 'fixedAmount'?: number; /** * A variable commission fee, in basis points. */ - "variablePercentage"?: number; + 'variablePercentage'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "fixedAmount", "baseName": "fixedAmount", - "type": "number", - "format": "int64" + "type": "number" }, { "name": "variablePercentage", "baseName": "variablePercentage", - "type": "number", - "format": "int64" + "type": "number" } ]; static getAttributeTypeMap() { return Commission.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/company.ts b/src/typings/management/company.ts index 02f49f676..f6e418aec 100644 --- a/src/typings/management/company.ts +++ b/src/typings/management/company.ts @@ -7,90 +7,77 @@ * Do not edit this class manually. */ -import { CompanyLinks } from "./companyLinks"; -import { DataCenter } from "./dataCenter"; - +import { CompanyLinks } from './companyLinks'; +import { DataCenter } from './dataCenter'; export class Company { - "_links"?: CompanyLinks | null; + '_links'?: CompanyLinks | null; /** * List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers. */ - "dataCenters"?: Array; + 'dataCenters'?: Array; /** * Your description for the company account, maximum 300 characters */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the company account. */ - "id"?: string; + 'id'?: string; /** * The legal or trading name of the company. */ - "name"?: string; + 'name'?: string; /** * Your reference to the account */ - "reference"?: string; + 'reference'?: string; /** * The status of the company account. Possible values: * **Active**: Users can log in. Processing and payout capabilities depend on the status of the merchant account. * **Inactive**: Users can log in. Payment processing and payouts are disabled. * **Closed**: The company account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. */ - "status"?: string; - - static readonly discriminator: string | undefined = undefined; + 'status'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "_links", "baseName": "_links", - "type": "CompanyLinks | null", - "format": "" + "type": "CompanyLinks | null" }, { "name": "dataCenters", "baseName": "dataCenters", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Company.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/companyApiCredential.ts b/src/typings/management/companyApiCredential.ts index 106d594a9..c998a3e90 100644 --- a/src/typings/management/companyApiCredential.ts +++ b/src/typings/management/companyApiCredential.ts @@ -7,120 +7,104 @@ * Do not edit this class manually. */ -import { AllowedOrigin } from "./allowedOrigin"; -import { ApiCredentialLinks } from "./apiCredentialLinks"; - +import { AllowedOrigin } from './allowedOrigin'; +import { ApiCredentialLinks } from './apiCredentialLinks'; export class CompanyApiCredential { - "_links"?: ApiCredentialLinks | null; + '_links'?: ApiCredentialLinks | null; /** * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. */ - "active": boolean; + 'active': boolean; /** * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. */ - "allowedIpAddresses": Array; + 'allowedIpAddresses': Array; /** * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. */ - "allowedOrigins"?: Array; + 'allowedOrigins'?: Array; /** * List of merchant accounts that the API credential has explicit access to. If the credential has access to a company, this implies access to all merchant accounts and no merchants for that company will be included. */ - "associatedMerchantAccounts"?: Array; + 'associatedMerchantAccounts'?: Array; /** * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. */ - "clientKey": string; + 'clientKey': string; /** * Description of the API credential. */ - "description"?: string; + 'description'?: string; /** * Unique identifier of the API credential. */ - "id": string; + 'id': string; /** * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. */ - "roles": Array; + 'roles': Array; /** * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. */ - "username": string; - - static readonly discriminator: string | undefined = undefined; + 'username': string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "_links", "baseName": "_links", - "type": "ApiCredentialLinks | null", - "format": "" + "type": "ApiCredentialLinks | null" }, { "name": "active", "baseName": "active", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "allowedIpAddresses", "baseName": "allowedIpAddresses", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "allowedOrigins", "baseName": "allowedOrigins", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "associatedMerchantAccounts", "baseName": "associatedMerchantAccounts", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "clientKey", "baseName": "clientKey", - "type": "string", - "format": "" + "type": "string" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "roles", "baseName": "roles", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "username", "baseName": "username", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CompanyApiCredential.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/companyLinks.ts b/src/typings/management/companyLinks.ts index b7359b478..003248315 100644 --- a/src/typings/management/companyLinks.ts +++ b/src/typings/management/companyLinks.ts @@ -7,50 +7,40 @@ * Do not edit this class manually. */ -import { LinksElement } from "./linksElement"; - +import { LinksElement } from './linksElement'; export class CompanyLinks { - "apiCredentials"?: LinksElement | null; - "self": LinksElement; - "users"?: LinksElement | null; - "webhooks"?: LinksElement | null; - - static readonly discriminator: string | undefined = undefined; + 'apiCredentials'?: LinksElement | null; + 'self': LinksElement; + 'users'?: LinksElement | null; + 'webhooks'?: LinksElement | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "apiCredentials", "baseName": "apiCredentials", - "type": "LinksElement | null", - "format": "" + "type": "LinksElement | null" }, { "name": "self", "baseName": "self", - "type": "LinksElement", - "format": "" + "type": "LinksElement" }, { "name": "users", "baseName": "users", - "type": "LinksElement | null", - "format": "" + "type": "LinksElement | null" }, { "name": "webhooks", "baseName": "webhooks", - "type": "LinksElement | null", - "format": "" + "type": "LinksElement | null" } ]; static getAttributeTypeMap() { return CompanyLinks.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/companyUser.ts b/src/typings/management/companyUser.ts index 42dde3c0f..17b08e23c 100644 --- a/src/typings/management/companyUser.ts +++ b/src/typings/management/companyUser.ts @@ -7,127 +7,110 @@ * Do not edit this class manually. */ -import { Links } from "./links"; -import { Name } from "./name"; - +import { Links } from './links'; +import { Name } from './name'; export class CompanyUser { - "_links"?: Links | null; + '_links'?: Links | null; /** * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. */ - "accountGroups"?: Array; + 'accountGroups'?: Array; /** * Indicates whether this user is active. */ - "active"?: boolean; + 'active'?: boolean; /** * Set of apps available to this user */ - "apps"?: Array; + 'apps'?: Array; /** * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. */ - "associatedMerchantAccounts"?: Array; + 'associatedMerchantAccounts'?: Array; /** * The email address of the user. */ - "email": string; + 'email': string; /** * The unique identifier of the user. */ - "id": string; - "name"?: Name | null; + 'id': string; + 'name'?: Name | null; /** * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. */ - "roles": Array; + 'roles': Array; /** * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. */ - "timeZoneCode": string; + 'timeZoneCode': string; /** * The username for this user. */ - "username": string; - - static readonly discriminator: string | undefined = undefined; + 'username': string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "_links", "baseName": "_links", - "type": "Links | null", - "format": "" + "type": "Links | null" }, { "name": "accountGroups", "baseName": "accountGroups", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "active", "baseName": "active", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "apps", "baseName": "apps", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "associatedMerchantAccounts", "baseName": "associatedMerchantAccounts", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "email", "baseName": "email", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "Name | null", - "format": "" + "type": "Name | null" }, { "name": "roles", "baseName": "roles", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "timeZoneCode", "baseName": "timeZoneCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "username", "baseName": "username", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CompanyUser.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/configuration.ts b/src/typings/management/configuration.ts index 0f66ac398..0d1028879 100644 --- a/src/typings/management/configuration.ts +++ b/src/typings/management/configuration.ts @@ -7,72 +7,61 @@ * Do not edit this class manually. */ -import { Currency } from "./currency"; - +import { Currency } from './currency'; export class Configuration { /** * Payment method, like **eftpos_australia** or **mc**. See the [possible values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). */ - "brand": string; + 'brand': string; /** * Set to **true** to apply surcharges only to commercial/business cards. */ - "commercial"?: boolean; + 'commercial'?: boolean; /** * The country/region of the card issuer. If used, the surcharge settings only apply to the card issued in that country/region. */ - "country"?: Array; + 'country'?: Array; /** * Currency and percentage or amount of the surcharge. */ - "currencies": Array; + 'currencies': Array; /** * Funding source. Possible values: * **Credit** * **Debit** */ - "sources"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'sources'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "brand", "baseName": "brand", - "type": "string", - "format": "" + "type": "string" }, { "name": "commercial", "baseName": "commercial", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "country", "baseName": "country", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "currencies", "baseName": "currencies", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "sources", "baseName": "sources", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return Configuration.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/connectivity.ts b/src/typings/management/connectivity.ts index 3a156ee11..e172d6d33 100644 --- a/src/typings/management/connectivity.ts +++ b/src/typings/management/connectivity.ts @@ -7,40 +7,32 @@ * Do not edit this class manually. */ -import { EventUrl } from "./eventUrl"; - +import { EventUrl } from './eventUrl'; export class Connectivity { /** * Indicates the status of the SIM card in the payment terminal. Can be updated and received only at terminal level, and only for models that support cellular connectivity. Possible values: * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not activated. The terminal can\'t use cellular connectivity. */ - "simcardStatus"?: Connectivity.SimcardStatusEnum; - "terminalIPAddressURL"?: EventUrl | null; - - static readonly discriminator: string | undefined = undefined; + 'simcardStatus'?: Connectivity.SimcardStatusEnum; + 'terminalIPAddressURL'?: EventUrl | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "simcardStatus", "baseName": "simcardStatus", - "type": "Connectivity.SimcardStatusEnum", - "format": "" + "type": "Connectivity.SimcardStatusEnum" }, { "name": "terminalIPAddressURL", "baseName": "terminalIPAddressURL", - "type": "EventUrl | null", - "format": "" + "type": "EventUrl | null" } ]; static getAttributeTypeMap() { return Connectivity.attributeTypeMap; } - - public constructor() { - } } export namespace Connectivity { diff --git a/src/typings/management/contact.ts b/src/typings/management/contact.ts index f67afeef7..b2f1808fc 100644 --- a/src/typings/management/contact.ts +++ b/src/typings/management/contact.ts @@ -12,65 +12,55 @@ export class Contact { /** * The individual\'s email address. */ - "email"?: string; + 'email'?: string; /** * The individual\'s first name. */ - "firstName"?: string; + 'firstName'?: string; /** * The infix in the individual\'s name, if any. */ - "infix"?: string; + 'infix'?: string; /** * The individual\'s last name. */ - "lastName"?: string; + 'lastName'?: string; /** * The individual\'s phone number, specified as 10-14 digits with an optional `+` prefix. */ - "phoneNumber"?: string; + 'phoneNumber'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "email", "baseName": "email", - "type": "string", - "format": "" + "type": "string" }, { "name": "firstName", "baseName": "firstName", - "type": "string", - "format": "" + "type": "string" }, { "name": "infix", "baseName": "infix", - "type": "string", - "format": "" + "type": "string" }, { "name": "lastName", "baseName": "lastName", - "type": "string", - "format": "" + "type": "string" }, { "name": "phoneNumber", "baseName": "phoneNumber", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Contact.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/createAllowedOriginRequest.ts b/src/typings/management/createAllowedOriginRequest.ts index d95af1ee9..2fe0e9b13 100644 --- a/src/typings/management/createAllowedOriginRequest.ts +++ b/src/typings/management/createAllowedOriginRequest.ts @@ -7,49 +7,40 @@ * Do not edit this class manually. */ -import { Links } from "./links"; - +import { Links } from './links'; export class CreateAllowedOriginRequest { - "_links"?: Links | null; + '_links'?: Links | null; /** * Domain of the allowed origin. */ - "domain": string; + 'domain': string; /** * Unique identifier of the allowed origin. */ - "id"?: string; - - static readonly discriminator: string | undefined = undefined; + 'id'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "_links", "baseName": "_links", - "type": "Links | null", - "format": "" + "type": "Links | null" }, { "name": "domain", "baseName": "domain", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CreateAllowedOriginRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/createApiCredentialResponse.ts b/src/typings/management/createApiCredentialResponse.ts index cf00b0b7c..bbc0927d0 100644 --- a/src/typings/management/createApiCredentialResponse.ts +++ b/src/typings/management/createApiCredentialResponse.ts @@ -7,130 +7,113 @@ * Do not edit this class manually. */ -import { AllowedOrigin } from "./allowedOrigin"; -import { ApiCredentialLinks } from "./apiCredentialLinks"; - +import { AllowedOrigin } from './allowedOrigin'; +import { ApiCredentialLinks } from './apiCredentialLinks'; export class CreateApiCredentialResponse { - "_links"?: ApiCredentialLinks | null; + '_links'?: ApiCredentialLinks | null; /** * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. */ - "active": boolean; + 'active': boolean; /** * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. */ - "allowedIpAddresses": Array; + 'allowedIpAddresses': Array; /** * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. */ - "allowedOrigins"?: Array; + 'allowedOrigins'?: Array; /** * The API key for the API credential that was created. */ - "apiKey": string; + 'apiKey': string; /** * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. */ - "clientKey": string; + 'clientKey': string; /** * Description of the API credential. */ - "description"?: string; + 'description'?: string; /** * Unique identifier of the API credential. */ - "id": string; + 'id': string; /** * The password for the API credential that was created. */ - "password": string; + 'password': string; /** * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. */ - "roles": Array; + 'roles': Array; /** * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. */ - "username": string; - - static readonly discriminator: string | undefined = undefined; + 'username': string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "_links", "baseName": "_links", - "type": "ApiCredentialLinks | null", - "format": "" + "type": "ApiCredentialLinks | null" }, { "name": "active", "baseName": "active", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "allowedIpAddresses", "baseName": "allowedIpAddresses", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "allowedOrigins", "baseName": "allowedOrigins", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "apiKey", "baseName": "apiKey", - "type": "string", - "format": "" + "type": "string" }, { "name": "clientKey", "baseName": "clientKey", - "type": "string", - "format": "" + "type": "string" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "password", "baseName": "password", - "type": "string", - "format": "" + "type": "string" }, { "name": "roles", "baseName": "roles", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "username", "baseName": "username", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CreateApiCredentialResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/createCompanyApiCredentialRequest.ts b/src/typings/management/createCompanyApiCredentialRequest.ts index 408d052b5..063795f73 100644 --- a/src/typings/management/createCompanyApiCredentialRequest.ts +++ b/src/typings/management/createCompanyApiCredentialRequest.ts @@ -12,55 +12,46 @@ export class CreateCompanyApiCredentialRequest { /** * List of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential. */ - "allowedOrigins"?: Array; + 'allowedOrigins'?: Array; /** * List of merchant accounts that the API credential has access to. */ - "associatedMerchantAccounts"?: Array; + 'associatedMerchantAccounts'?: Array; /** * Description of the API credential. */ - "description"?: string; + 'description'?: string; /** * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to \'ws@Company.\' can be assigned to other API credentials. */ - "roles"?: Array; + 'roles'?: Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "allowedOrigins", "baseName": "allowedOrigins", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "associatedMerchantAccounts", "baseName": "associatedMerchantAccounts", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "roles", "baseName": "roles", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return CreateCompanyApiCredentialRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/createCompanyApiCredentialResponse.ts b/src/typings/management/createCompanyApiCredentialResponse.ts index 5cac5b3d3..0e9c27df8 100644 --- a/src/typings/management/createCompanyApiCredentialResponse.ts +++ b/src/typings/management/createCompanyApiCredentialResponse.ts @@ -7,140 +7,122 @@ * Do not edit this class manually. */ -import { AllowedOrigin } from "./allowedOrigin"; -import { ApiCredentialLinks } from "./apiCredentialLinks"; - +import { AllowedOrigin } from './allowedOrigin'; +import { ApiCredentialLinks } from './apiCredentialLinks'; export class CreateCompanyApiCredentialResponse { - "_links"?: ApiCredentialLinks | null; + '_links'?: ApiCredentialLinks | null; /** * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. */ - "active": boolean; + 'active': boolean; /** * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. */ - "allowedIpAddresses": Array; + 'allowedIpAddresses': Array; /** * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. */ - "allowedOrigins"?: Array; + 'allowedOrigins'?: Array; /** * The API key for the API credential that was created. */ - "apiKey": string; + 'apiKey': string; /** * List of merchant accounts that the API credential has access to. */ - "associatedMerchantAccounts": Array; + 'associatedMerchantAccounts': Array; /** * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. */ - "clientKey": string; + 'clientKey': string; /** * Description of the API credential. */ - "description"?: string; + 'description'?: string; /** * Unique identifier of the API credential. */ - "id": string; + 'id': string; /** * The password for the API credential that was created. */ - "password": string; + 'password': string; /** * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. */ - "roles": Array; + 'roles': Array; /** * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. */ - "username": string; - - static readonly discriminator: string | undefined = undefined; + 'username': string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "_links", "baseName": "_links", - "type": "ApiCredentialLinks | null", - "format": "" + "type": "ApiCredentialLinks | null" }, { "name": "active", "baseName": "active", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "allowedIpAddresses", "baseName": "allowedIpAddresses", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "allowedOrigins", "baseName": "allowedOrigins", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "apiKey", "baseName": "apiKey", - "type": "string", - "format": "" + "type": "string" }, { "name": "associatedMerchantAccounts", "baseName": "associatedMerchantAccounts", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "clientKey", "baseName": "clientKey", - "type": "string", - "format": "" + "type": "string" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "password", "baseName": "password", - "type": "string", - "format": "" + "type": "string" }, { "name": "roles", "baseName": "roles", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "username", "baseName": "username", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CreateCompanyApiCredentialResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/createCompanyUserRequest.ts b/src/typings/management/createCompanyUserRequest.ts index 58791f54b..eb6b14e21 100644 --- a/src/typings/management/createCompanyUserRequest.ts +++ b/src/typings/management/createCompanyUserRequest.ts @@ -7,99 +7,85 @@ * Do not edit this class manually. */ -import { Name } from "./name"; - +import { Name } from './name'; export class CreateCompanyUserRequest { /** * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. */ - "accountGroups"?: Array; + 'accountGroups'?: Array; /** * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. */ - "associatedMerchantAccounts"?: Array; + 'associatedMerchantAccounts'?: Array; /** * The email address of the user. */ - "email": string; + 'email': string; /** * The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** */ - "loginMethod"?: string; - "name": Name; + 'loginMethod'?: string; + 'name': Name; /** * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. */ - "roles"?: Array; + 'roles'?: Array; /** * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. */ - "timeZoneCode"?: string; + 'timeZoneCode'?: string; /** * The user\'s email address that will be their username. Must be the same as the one in the `email` field. */ - "username": string; - - static readonly discriminator: string | undefined = undefined; + 'username': string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountGroups", "baseName": "accountGroups", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "associatedMerchantAccounts", "baseName": "associatedMerchantAccounts", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "email", "baseName": "email", - "type": "string", - "format": "" + "type": "string" }, { "name": "loginMethod", "baseName": "loginMethod", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "Name", - "format": "" + "type": "Name" }, { "name": "roles", "baseName": "roles", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "timeZoneCode", "baseName": "timeZoneCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "username", "baseName": "username", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CreateCompanyUserRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/createCompanyUserResponse.ts b/src/typings/management/createCompanyUserResponse.ts index 350bbfa25..a6bf37299 100644 --- a/src/typings/management/createCompanyUserResponse.ts +++ b/src/typings/management/createCompanyUserResponse.ts @@ -7,127 +7,110 @@ * Do not edit this class manually. */ -import { Links } from "./links"; -import { Name } from "./name"; - +import { Links } from './links'; +import { Name } from './name'; export class CreateCompanyUserResponse { - "_links"?: Links | null; + '_links'?: Links | null; /** * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. */ - "accountGroups"?: Array; + 'accountGroups'?: Array; /** * Indicates whether this user is active. */ - "active"?: boolean; + 'active'?: boolean; /** * Set of apps available to this user */ - "apps"?: Array; + 'apps'?: Array; /** * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. */ - "associatedMerchantAccounts"?: Array; + 'associatedMerchantAccounts'?: Array; /** * The email address of the user. */ - "email": string; + 'email': string; /** * The unique identifier of the user. */ - "id": string; - "name"?: Name | null; + 'id': string; + 'name'?: Name | null; /** * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. */ - "roles": Array; + 'roles': Array; /** * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. */ - "timeZoneCode": string; + 'timeZoneCode': string; /** * The username for this user. */ - "username": string; - - static readonly discriminator: string | undefined = undefined; + 'username': string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "_links", "baseName": "_links", - "type": "Links | null", - "format": "" + "type": "Links | null" }, { "name": "accountGroups", "baseName": "accountGroups", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "active", "baseName": "active", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "apps", "baseName": "apps", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "associatedMerchantAccounts", "baseName": "associatedMerchantAccounts", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "email", "baseName": "email", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "Name | null", - "format": "" + "type": "Name | null" }, { "name": "roles", "baseName": "roles", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "timeZoneCode", "baseName": "timeZoneCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "username", "baseName": "username", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CreateCompanyUserResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/createCompanyWebhookRequest.ts b/src/typings/management/createCompanyWebhookRequest.ts index 223820349..df75f31b0 100644 --- a/src/typings/management/createCompanyWebhookRequest.ts +++ b/src/typings/management/createCompanyWebhookRequest.ts @@ -7,180 +7,158 @@ * Do not edit this class manually. */ -import { AdditionalSettings } from "./additionalSettings"; - +import { AdditionalSettings } from './additionalSettings'; export class CreateCompanyWebhookRequest { /** * Indicates if expired SSL certificates are accepted. Default value: **false**. */ - "acceptsExpiredCertificate"?: boolean; + 'acceptsExpiredCertificate'?: boolean; /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. */ - "acceptsSelfSignedCertificate"?: boolean; + 'acceptsSelfSignedCertificate'?: boolean; /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. */ - "acceptsUntrustedRootCertificate"?: boolean; + 'acceptsUntrustedRootCertificate'?: boolean; /** * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. */ - "active": boolean; - "additionalSettings"?: AdditionalSettings | null; + 'active': boolean; + 'additionalSettings'?: AdditionalSettings | null; /** * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** */ - "communicationFormat": CreateCompanyWebhookRequest.CommunicationFormatEnum; + 'communicationFormat': CreateCompanyWebhookRequest.CommunicationFormatEnum; /** * Your description for this webhook configuration. */ - "description"?: string; + 'description'?: string; /** * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. */ - "encryptionProtocol"?: CreateCompanyWebhookRequest.EncryptionProtocolEnum; + 'encryptionProtocol'?: CreateCompanyWebhookRequest.EncryptionProtocolEnum; /** * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **allAccounts** : Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. * **includeAccounts** : The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts** : The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. */ - "filterMerchantAccountType": CreateCompanyWebhookRequest.FilterMerchantAccountTypeEnum; + 'filterMerchantAccountType': CreateCompanyWebhookRequest.FilterMerchantAccountTypeEnum; /** * A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. */ - "filterMerchantAccounts": Array; + 'filterMerchantAccounts': Array; /** * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. */ - "networkType"?: CreateCompanyWebhookRequest.NetworkTypeEnum; + 'networkType'?: CreateCompanyWebhookRequest.NetworkTypeEnum; /** * Password to access the webhook URL. */ - "password"?: string; + 'password'?: string; /** * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. */ - "populateSoapActionHeader"?: boolean; + 'populateSoapActionHeader'?: boolean; /** * The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications). */ - "type": string; + 'type': string; /** * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. */ - "url": string; + 'url': string; /** * Username to access the webhook URL. */ - "username"?: string; - - static readonly discriminator: string | undefined = undefined; + 'username'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "acceptsExpiredCertificate", "baseName": "acceptsExpiredCertificate", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "acceptsSelfSignedCertificate", "baseName": "acceptsSelfSignedCertificate", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "acceptsUntrustedRootCertificate", "baseName": "acceptsUntrustedRootCertificate", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "active", "baseName": "active", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "additionalSettings", "baseName": "additionalSettings", - "type": "AdditionalSettings | null", - "format": "" + "type": "AdditionalSettings | null" }, { "name": "communicationFormat", "baseName": "communicationFormat", - "type": "CreateCompanyWebhookRequest.CommunicationFormatEnum", - "format": "" + "type": "CreateCompanyWebhookRequest.CommunicationFormatEnum" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "encryptionProtocol", "baseName": "encryptionProtocol", - "type": "CreateCompanyWebhookRequest.EncryptionProtocolEnum", - "format": "" + "type": "CreateCompanyWebhookRequest.EncryptionProtocolEnum" }, { "name": "filterMerchantAccountType", "baseName": "filterMerchantAccountType", - "type": "CreateCompanyWebhookRequest.FilterMerchantAccountTypeEnum", - "format": "" + "type": "CreateCompanyWebhookRequest.FilterMerchantAccountTypeEnum" }, { "name": "filterMerchantAccounts", "baseName": "filterMerchantAccounts", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "networkType", "baseName": "networkType", - "type": "CreateCompanyWebhookRequest.NetworkTypeEnum", - "format": "" + "type": "CreateCompanyWebhookRequest.NetworkTypeEnum" }, { "name": "password", "baseName": "password", - "type": "string", - "format": "" + "type": "string" }, { "name": "populateSoapActionHeader", "baseName": "populateSoapActionHeader", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" }, { "name": "url", "baseName": "url", - "type": "string", - "format": "" + "type": "string" }, { "name": "username", "baseName": "username", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CreateCompanyWebhookRequest.attributeTypeMap; } - - public constructor() { - } } export namespace CreateCompanyWebhookRequest { diff --git a/src/typings/management/createMerchantApiCredentialRequest.ts b/src/typings/management/createMerchantApiCredentialRequest.ts index a822590b1..b88ee7d81 100644 --- a/src/typings/management/createMerchantApiCredentialRequest.ts +++ b/src/typings/management/createMerchantApiCredentialRequest.ts @@ -12,45 +12,37 @@ export class CreateMerchantApiCredentialRequest { /** * The list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential. */ - "allowedOrigins"?: Array; + 'allowedOrigins'?: Array; /** * Description of the API credential. */ - "description"?: string; + 'description'?: string; /** * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to \'ws@Company.\' can be assigned to other API credentials. */ - "roles"?: Array; + 'roles'?: Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "allowedOrigins", "baseName": "allowedOrigins", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "roles", "baseName": "roles", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return CreateMerchantApiCredentialRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/createMerchantRequest.ts b/src/typings/management/createMerchantRequest.ts index c5b33edfc..6ac138772 100644 --- a/src/typings/management/createMerchantRequest.ts +++ b/src/typings/management/createMerchantRequest.ts @@ -12,85 +12,73 @@ export class CreateMerchantRequest { /** * The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). Required for an Adyen for Platforms Manage integration. */ - "businessLineId"?: string; + 'businessLineId'?: string; /** * The unique identifier of the company account. */ - "companyId": string; + 'companyId': string; /** * Your description for the merchant account, maximum 300 characters. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). Required for an Adyen for Platforms Manage integration. */ - "legalEntityId"?: string; + 'legalEntityId'?: string; /** * Sets the pricing plan for the merchant account. Required for an Adyen for Platforms Manage integration. Your Adyen contact will provide the values that you can use. */ - "pricingPlan"?: string; + 'pricingPlan'?: string; /** * Your reference for the merchant account. To make this reference the unique identifier of the merchant account, your Adyen contact can set up a template on your company account. The template can have 6 to 255 characters with upper- and lower-case letters, underscores, and numbers. When your company account has a template, then the `reference` is required and must be unique within the company account. */ - "reference"?: string; + 'reference'?: string; /** * List of sales channels that the merchant will process payments with */ - "salesChannels"?: Array; + 'salesChannels'?: Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "businessLineId", "baseName": "businessLineId", - "type": "string", - "format": "" + "type": "string" }, { "name": "companyId", "baseName": "companyId", - "type": "string", - "format": "" + "type": "string" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "legalEntityId", "baseName": "legalEntityId", - "type": "string", - "format": "" + "type": "string" }, { "name": "pricingPlan", "baseName": "pricingPlan", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "salesChannels", "baseName": "salesChannels", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return CreateMerchantRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/createMerchantResponse.ts b/src/typings/management/createMerchantResponse.ts index a80a30322..73094765e 100644 --- a/src/typings/management/createMerchantResponse.ts +++ b/src/typings/management/createMerchantResponse.ts @@ -12,85 +12,73 @@ export class CreateMerchantResponse { /** * The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). */ - "businessLineId"?: string; + 'businessLineId'?: string; /** * The unique identifier of the company account. */ - "companyId"?: string; + 'companyId'?: string; /** * Your description for the merchant account, maximum 300 characters. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the merchant account. If Adyen set up a template for the `reference`, then the `id` will have the same value as the `reference` that you sent in the request. Otherwise, the value is generated by Adyen. */ - "id"?: string; + 'id'?: string; /** * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). */ - "legalEntityId"?: string; + 'legalEntityId'?: string; /** * Partner pricing plan for the merchant, applicable for merchants under AfP managed company accounts. */ - "pricingPlan"?: string; + 'pricingPlan'?: string; /** * Your reference for the merchant account. */ - "reference"?: string; + 'reference'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "businessLineId", "baseName": "businessLineId", - "type": "string", - "format": "" + "type": "string" }, { "name": "companyId", "baseName": "companyId", - "type": "string", - "format": "" + "type": "string" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "legalEntityId", "baseName": "legalEntityId", - "type": "string", - "format": "" + "type": "string" }, { "name": "pricingPlan", "baseName": "pricingPlan", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CreateMerchantResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/createMerchantUserRequest.ts b/src/typings/management/createMerchantUserRequest.ts index 9ee7dbfa7..1b5e27eb3 100644 --- a/src/typings/management/createMerchantUserRequest.ts +++ b/src/typings/management/createMerchantUserRequest.ts @@ -7,89 +7,76 @@ * Do not edit this class manually. */ -import { Name } from "./name"; - +import { Name } from './name'; export class CreateMerchantUserRequest { /** * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. */ - "accountGroups"?: Array; + 'accountGroups'?: Array; /** * The email address of the user. */ - "email": string; + 'email': string; /** * The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** */ - "loginMethod"?: string; - "name": Name; + 'loginMethod'?: string; + 'name': Name; /** * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. */ - "roles"?: Array; + 'roles'?: Array; /** * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. */ - "timeZoneCode"?: string; + 'timeZoneCode'?: string; /** * The user\'s email address that will be their username. Must be the same as the one in the `email` field. */ - "username": string; - - static readonly discriminator: string | undefined = undefined; + 'username': string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountGroups", "baseName": "accountGroups", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "email", "baseName": "email", - "type": "string", - "format": "" + "type": "string" }, { "name": "loginMethod", "baseName": "loginMethod", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "Name", - "format": "" + "type": "Name" }, { "name": "roles", "baseName": "roles", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "timeZoneCode", "baseName": "timeZoneCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "username", "baseName": "username", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CreateMerchantUserRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/createMerchantWebhookRequest.ts b/src/typings/management/createMerchantWebhookRequest.ts index de90d2ce4..921882872 100644 --- a/src/typings/management/createMerchantWebhookRequest.ts +++ b/src/typings/management/createMerchantWebhookRequest.ts @@ -7,160 +7,140 @@ * Do not edit this class manually. */ -import { AdditionalSettings } from "./additionalSettings"; - +import { AdditionalSettings } from './additionalSettings'; export class CreateMerchantWebhookRequest { /** * Indicates if expired SSL certificates are accepted. Default value: **false**. */ - "acceptsExpiredCertificate"?: boolean; + 'acceptsExpiredCertificate'?: boolean; /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. */ - "acceptsSelfSignedCertificate"?: boolean; + 'acceptsSelfSignedCertificate'?: boolean; /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. */ - "acceptsUntrustedRootCertificate"?: boolean; + 'acceptsUntrustedRootCertificate'?: boolean; /** * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. */ - "active": boolean; - "additionalSettings"?: AdditionalSettings | null; + 'active': boolean; + 'additionalSettings'?: AdditionalSettings | null; /** * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** */ - "communicationFormat": CreateMerchantWebhookRequest.CommunicationFormatEnum; + 'communicationFormat': CreateMerchantWebhookRequest.CommunicationFormatEnum; /** * Your description for this webhook configuration. */ - "description"?: string; + 'description'?: string; /** * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. */ - "encryptionProtocol"?: CreateMerchantWebhookRequest.EncryptionProtocolEnum; + 'encryptionProtocol'?: CreateMerchantWebhookRequest.EncryptionProtocolEnum; /** * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. */ - "networkType"?: CreateMerchantWebhookRequest.NetworkTypeEnum; + 'networkType'?: CreateMerchantWebhookRequest.NetworkTypeEnum; /** * Password to access the webhook URL. */ - "password"?: string; + 'password'?: string; /** * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. */ - "populateSoapActionHeader"?: boolean; + 'populateSoapActionHeader'?: boolean; /** * The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications). */ - "type": string; + 'type': string; /** * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. */ - "url": string; + 'url': string; /** * Username to access the webhook URL. */ - "username"?: string; - - static readonly discriminator: string | undefined = undefined; + 'username'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "acceptsExpiredCertificate", "baseName": "acceptsExpiredCertificate", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "acceptsSelfSignedCertificate", "baseName": "acceptsSelfSignedCertificate", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "acceptsUntrustedRootCertificate", "baseName": "acceptsUntrustedRootCertificate", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "active", "baseName": "active", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "additionalSettings", "baseName": "additionalSettings", - "type": "AdditionalSettings | null", - "format": "" + "type": "AdditionalSettings | null" }, { "name": "communicationFormat", "baseName": "communicationFormat", - "type": "CreateMerchantWebhookRequest.CommunicationFormatEnum", - "format": "" + "type": "CreateMerchantWebhookRequest.CommunicationFormatEnum" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "encryptionProtocol", "baseName": "encryptionProtocol", - "type": "CreateMerchantWebhookRequest.EncryptionProtocolEnum", - "format": "" + "type": "CreateMerchantWebhookRequest.EncryptionProtocolEnum" }, { "name": "networkType", "baseName": "networkType", - "type": "CreateMerchantWebhookRequest.NetworkTypeEnum", - "format": "" + "type": "CreateMerchantWebhookRequest.NetworkTypeEnum" }, { "name": "password", "baseName": "password", - "type": "string", - "format": "" + "type": "string" }, { "name": "populateSoapActionHeader", "baseName": "populateSoapActionHeader", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" }, { "name": "url", "baseName": "url", - "type": "string", - "format": "" + "type": "string" }, { "name": "username", "baseName": "username", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CreateMerchantWebhookRequest.attributeTypeMap; } - - public constructor() { - } } export namespace CreateMerchantWebhookRequest { diff --git a/src/typings/management/createUserResponse.ts b/src/typings/management/createUserResponse.ts index 6c48ed8c7..d4c77ca15 100644 --- a/src/typings/management/createUserResponse.ts +++ b/src/typings/management/createUserResponse.ts @@ -7,117 +7,101 @@ * Do not edit this class manually. */ -import { Links } from "./links"; -import { Name } from "./name"; - +import { Links } from './links'; +import { Name } from './name'; export class CreateUserResponse { - "_links"?: Links | null; + '_links'?: Links | null; /** * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. */ - "accountGroups"?: Array; + 'accountGroups'?: Array; /** * Indicates whether this user is active. */ - "active"?: boolean; + 'active'?: boolean; /** * Set of apps available to this user */ - "apps"?: Array; + 'apps'?: Array; /** * The email address of the user. */ - "email": string; + 'email': string; /** * The unique identifier of the user. */ - "id": string; - "name"?: Name | null; + 'id': string; + 'name'?: Name | null; /** * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. */ - "roles": Array; + 'roles': Array; /** * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. */ - "timeZoneCode": string; + 'timeZoneCode': string; /** * The username for this user. */ - "username": string; - - static readonly discriminator: string | undefined = undefined; + 'username': string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "_links", "baseName": "_links", - "type": "Links | null", - "format": "" + "type": "Links | null" }, { "name": "accountGroups", "baseName": "accountGroups", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "active", "baseName": "active", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "apps", "baseName": "apps", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "email", "baseName": "email", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "Name | null", - "format": "" + "type": "Name | null" }, { "name": "roles", "baseName": "roles", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "timeZoneCode", "baseName": "timeZoneCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "username", "baseName": "username", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CreateUserResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/currency.ts b/src/typings/management/currency.ts index a169d1b8d..56d9a1328 100644 --- a/src/typings/management/currency.ts +++ b/src/typings/management/currency.ts @@ -12,55 +12,46 @@ export class Currency { /** * Surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ - "amount"?: number; + 'amount'?: number; /** * Three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, **AUD**. */ - "currencyCode": string; + 'currencyCode': string; /** * The maximum surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ - "maxAmount"?: number; + 'maxAmount'?: number; /** * Surcharge percentage per transaction. The maximum number of decimal places is two. For example, **1%** or **2.27%**. */ - "percentage"?: number; + 'percentage'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "currencyCode", "baseName": "currencyCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "maxAmount", "baseName": "maxAmount", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "percentage", "baseName": "percentage", - "type": "number", - "format": "double" + "type": "number" } ]; static getAttributeTypeMap() { return Currency.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/customNotification.ts b/src/typings/management/customNotification.ts index 35a21144b..478e8af21 100644 --- a/src/typings/management/customNotification.ts +++ b/src/typings/management/customNotification.ts @@ -7,89 +7,76 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class CustomNotification { - "amount"?: Amount | null; + 'amount'?: Amount | null; /** * The event that caused the notification to be sent.Currently supported values: * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** */ - "eventCode"?: string; + 'eventCode'?: string; /** * The time of the event. Format: [ISO 8601](http://www.w3.org/TR/NOTE-datetime), YYYY-MM-DDThh:mm:ssTZD. */ - "eventDate"?: Date; + 'eventDate'?: Date; /** * Your reference for the custom test notification. */ - "merchantReference"?: string; + 'merchantReference'?: string; /** * The payment method for the payment that the notification is about. Possible values: * **amex** * **visa** * **mc** * **maestro** * **bcmc** * **paypal** * **sms** * **bankTransfer_NL** * **bankTransfer_DE** * **bankTransfer_BE** * **ideal** * **elv** * **sepadirectdebit** */ - "paymentMethod"?: string; + 'paymentMethod'?: string; /** * A description of what caused the notification. */ - "reason"?: string; + 'reason'?: string; /** * The outcome of the event which the notification is about. Set to either **true** or **false**. */ - "success"?: boolean; - - static readonly discriminator: string | undefined = undefined; + 'success'?: boolean; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "eventCode", "baseName": "eventCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "eventDate", "baseName": "eventDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "merchantReference", "baseName": "merchantReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMethod", "baseName": "paymentMethod", - "type": "string", - "format": "" + "type": "string" }, { "name": "reason", "baseName": "reason", - "type": "string", - "format": "" + "type": "string" }, { "name": "success", "baseName": "success", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return CustomNotification.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/dataCenter.ts b/src/typings/management/dataCenter.ts index 524f63c0d..fd5f199a8 100644 --- a/src/typings/management/dataCenter.ts +++ b/src/typings/management/dataCenter.ts @@ -12,35 +12,28 @@ export class DataCenter { /** * The unique [live URL prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for your live endpoint. Each data center has its own live URL prefix. This field is empty for requests made in the test environment. */ - "livePrefix"?: string; + 'livePrefix'?: string; /** * The name assigned to a data center, for example **EU** for the European data center. Possible values are: * **default**: the European data center. This value is always returned in the test environment. * **AU** * **EU** * **US** */ - "name"?: string; + 'name'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "livePrefix", "baseName": "livePrefix", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return DataCenter.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/dinersInfo.ts b/src/typings/management/dinersInfo.ts index b1ca31f76..6f1557674 100644 --- a/src/typings/management/dinersInfo.ts +++ b/src/typings/management/dinersInfo.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { TransactionDescriptionInfo } from "./transactionDescriptionInfo"; - +import { TransactionDescriptionInfo } from './transactionDescriptionInfo'; export class DinersInfo { /** * MID (Merchant ID) number. Required for merchants operating in Japan. Format: 14 numeric characters. */ - "midNumber"?: string; + 'midNumber'?: string; /** * Indicates whether the JCB Merchant ID is reused from a previously configured JCB payment method. The default value is **false**. For merchants operating in Japan, this field is required and must be set to **true**. */ - "reuseMidNumber": boolean; + 'reuseMidNumber': boolean; /** * Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. */ - "serviceLevel"?: DinersInfo.ServiceLevelEnum; - "transactionDescription"?: TransactionDescriptionInfo | null; - - static readonly discriminator: string | undefined = undefined; + 'serviceLevel'?: DinersInfo.ServiceLevelEnum; + 'transactionDescription'?: TransactionDescriptionInfo | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "midNumber", "baseName": "midNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "reuseMidNumber", "baseName": "reuseMidNumber", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "serviceLevel", "baseName": "serviceLevel", - "type": "DinersInfo.ServiceLevelEnum", - "format": "" + "type": "DinersInfo.ServiceLevelEnum" }, { "name": "transactionDescription", "baseName": "transactionDescription", - "type": "TransactionDescriptionInfo | null", - "format": "" + "type": "TransactionDescriptionInfo | null" } ]; static getAttributeTypeMap() { return DinersInfo.attributeTypeMap; } - - public constructor() { - } } export namespace DinersInfo { diff --git a/src/typings/management/eventUrl.ts b/src/typings/management/eventUrl.ts index d26c435ad..88a0f1908 100644 --- a/src/typings/management/eventUrl.ts +++ b/src/typings/management/eventUrl.ts @@ -7,42 +7,34 @@ * Do not edit this class manually. */ -import { Url } from "./url"; - +import { Url } from './url'; export class EventUrl { /** * One or more local URLs to send event notifications to when using Terminal API. */ - "eventLocalUrls"?: Array; + 'eventLocalUrls'?: Array; /** * One or more public URLs to send event notifications to when using Terminal API. */ - "eventPublicUrls"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'eventPublicUrls'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "eventLocalUrls", "baseName": "eventLocalUrls", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "eventPublicUrls", "baseName": "eventPublicUrls", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return EventUrl.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/externalTerminalAction.ts b/src/typings/management/externalTerminalAction.ts index c96b04096..7116b125e 100644 --- a/src/typings/management/externalTerminalAction.ts +++ b/src/typings/management/externalTerminalAction.ts @@ -12,95 +12,82 @@ export class ExternalTerminalAction { /** * The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, **InstallAndroidCertificate**, or **UninstallAndroidCertificate**. */ - "actionType"?: string; + 'actionType'?: string; /** * Technical information about the terminal action. */ - "config"?: string; + 'config'?: string; /** * The date and time when the action was carried out. */ - "confirmedAt"?: Date; + 'confirmedAt'?: Date; /** * The unique ID of the terminal action. */ - "id"?: string; + 'id'?: string; /** * The result message for the action. */ - "result"?: string; + 'result'?: string; /** * The date and time when the action was scheduled to happen. */ - "scheduledAt"?: Date; + 'scheduledAt'?: Date; /** * The status of the terminal action: **pending**, **successful**, **failed**, **cancelled**, or **tryLater**. */ - "status"?: string; + 'status'?: string; /** * The unique ID of the terminal that the action applies to. */ - "terminalId"?: string; + 'terminalId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "actionType", "baseName": "actionType", - "type": "string", - "format": "" + "type": "string" }, { "name": "config", "baseName": "config", - "type": "string", - "format": "" + "type": "string" }, { "name": "confirmedAt", "baseName": "confirmedAt", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "result", "baseName": "result", - "type": "string", - "format": "" + "type": "string" }, { "name": "scheduledAt", "baseName": "scheduledAt", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "status", "baseName": "status", - "type": "string", - "format": "" + "type": "string" }, { "name": "terminalId", "baseName": "terminalId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ExternalTerminalAction.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/generateApiKeyResponse.ts b/src/typings/management/generateApiKeyResponse.ts index cb076d9ff..562f25ec8 100644 --- a/src/typings/management/generateApiKeyResponse.ts +++ b/src/typings/management/generateApiKeyResponse.ts @@ -12,25 +12,19 @@ export class GenerateApiKeyResponse { /** * The generated API key. */ - "apiKey": string; + 'apiKey': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "apiKey", "baseName": "apiKey", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return GenerateApiKeyResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/generateClientKeyResponse.ts b/src/typings/management/generateClientKeyResponse.ts index 2a24a31ae..3198d6df6 100644 --- a/src/typings/management/generateClientKeyResponse.ts +++ b/src/typings/management/generateClientKeyResponse.ts @@ -12,25 +12,19 @@ export class GenerateClientKeyResponse { /** * Generated client key */ - "clientKey": string; + 'clientKey': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "clientKey", "baseName": "clientKey", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return GenerateClientKeyResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/generateHmacKeyResponse.ts b/src/typings/management/generateHmacKeyResponse.ts index f1cff30da..c04fa3877 100644 --- a/src/typings/management/generateHmacKeyResponse.ts +++ b/src/typings/management/generateHmacKeyResponse.ts @@ -12,25 +12,19 @@ export class GenerateHmacKeyResponse { /** * The HMAC key generated for this webhook. */ - "hmacKey": string; + 'hmacKey': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "hmacKey", "baseName": "hmacKey", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return GenerateHmacKeyResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/genericPmWithTdiInfo.ts b/src/typings/management/genericPmWithTdiInfo.ts index a574507d9..6f7740b15 100644 --- a/src/typings/management/genericPmWithTdiInfo.ts +++ b/src/typings/management/genericPmWithTdiInfo.ts @@ -7,29 +7,22 @@ * Do not edit this class manually. */ -import { TransactionDescriptionInfo } from "./transactionDescriptionInfo"; - +import { TransactionDescriptionInfo } from './transactionDescriptionInfo'; export class GenericPmWithTdiInfo { - "transactionDescription"?: TransactionDescriptionInfo | null; - - static readonly discriminator: string | undefined = undefined; + 'transactionDescription'?: TransactionDescriptionInfo | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "transactionDescription", "baseName": "transactionDescription", - "type": "TransactionDescriptionInfo | null", - "format": "" + "type": "TransactionDescriptionInfo | null" } ]; static getAttributeTypeMap() { return GenericPmWithTdiInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/googlePayInfo.ts b/src/typings/management/googlePayInfo.ts index 224674b3d..776392913 100644 --- a/src/typings/management/googlePayInfo.ts +++ b/src/typings/management/googlePayInfo.ts @@ -12,35 +12,28 @@ export class GooglePayInfo { /** * Google Pay [Merchant ID](https://support.google.com/paymentscenter/answer/7163092?hl=en). Character length and limitations: 16 alphanumeric characters or 20 numeric characters. */ - "merchantId": string; + 'merchantId': string; /** * Indicates whether the Google Pay Merchant ID is used for several merchant accounts. Default value: **false**. */ - "reuseMerchantId"?: boolean; + 'reuseMerchantId'?: boolean; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "merchantId", "baseName": "merchantId", - "type": "string", - "format": "" + "type": "string" }, { "name": "reuseMerchantId", "baseName": "reuseMerchantId", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return GooglePayInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/gratuity.ts b/src/typings/management/gratuity.ts index a030e5a0e..1dddaf8bb 100644 --- a/src/typings/management/gratuity.ts +++ b/src/typings/management/gratuity.ts @@ -12,55 +12,46 @@ export class Gratuity { /** * Indicates whether one of the predefined tipping options is to let the shopper enter a custom tip. If **true**, only three of the other options defined in `predefinedTipEntries` are shown. */ - "allowCustomAmount"?: boolean; + 'allowCustomAmount'?: boolean; /** * The currency that the tipping settings apply to. */ - "currency"?: string; + 'currency'?: string; /** * Tipping options the shopper can choose from if `usePredefinedTipEntries` is **true**. The maximum number of predefined options is four, or three plus the option to enter a custom tip. The options can be a mix of: - A percentage of the transaction amount. Example: **5%** - A tip amount in [minor units](https://docs.adyen.com/development-resources/currency-codes). Example: **500** for a EUR 5 tip. */ - "predefinedTipEntries"?: Array; + 'predefinedTipEntries'?: Array; /** * Indicates whether the terminal shows a prompt to enter a tip (**false**), or predefined tipping options to choose from (**true**). */ - "usePredefinedTipEntries"?: boolean; + 'usePredefinedTipEntries'?: boolean; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "allowCustomAmount", "baseName": "allowCustomAmount", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "predefinedTipEntries", "baseName": "predefinedTipEntries", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "usePredefinedTipEntries", "baseName": "usePredefinedTipEntries", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return Gratuity.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/hardware.ts b/src/typings/management/hardware.ts index e9490ab15..7b4b3da43 100644 --- a/src/typings/management/hardware.ts +++ b/src/typings/management/hardware.ts @@ -12,45 +12,37 @@ export class Hardware { /** * The brightness of the display when the terminal is being used, expressed as a percentage. */ - "displayMaximumBackLight"?: number; + 'displayMaximumBackLight'?: number; /** * The hour of the day when the terminal is set to reset the Totals report. By default, the reset hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. */ - "resetTotalsHour"?: number; + 'resetTotalsHour'?: number; /** * The hour of the day when the terminal is set to reboot to apply the configuration and software updates. By default, the restart hour is at 6:00 AM in the timezone of the terminal. Minimum value: 0, maximum value: 23. */ - "restartHour"?: number; + 'restartHour'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "displayMaximumBackLight", "baseName": "displayMaximumBackLight", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "resetTotalsHour", "baseName": "resetTotalsHour", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "restartHour", "baseName": "restartHour", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return Hardware.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/idName.ts b/src/typings/management/idName.ts index 29e6dd811..9cd319e1e 100644 --- a/src/typings/management/idName.ts +++ b/src/typings/management/idName.ts @@ -12,35 +12,28 @@ export class IdName { /** * The identifier of the terminal model. */ - "id"?: string; + 'id'?: string; /** * The name of the terminal model. */ - "name"?: string; + 'name'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return IdName.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/installAndroidAppDetails.ts b/src/typings/management/installAndroidAppDetails.ts index e8cf4c70e..2b5b8467c 100644 --- a/src/typings/management/installAndroidAppDetails.ts +++ b/src/typings/management/installAndroidAppDetails.ts @@ -12,36 +12,29 @@ export class InstallAndroidAppDetails { /** * The unique identifier of the app to be installed. */ - "appId"?: string; + 'appId'?: string; /** * Type of terminal action: Install an Android app. */ - "type"?: InstallAndroidAppDetails.TypeEnum; + 'type'?: InstallAndroidAppDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "appId", "baseName": "appId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "InstallAndroidAppDetails.TypeEnum", - "format": "" + "type": "InstallAndroidAppDetails.TypeEnum" } ]; static getAttributeTypeMap() { return InstallAndroidAppDetails.attributeTypeMap; } - - public constructor() { - } } export namespace InstallAndroidAppDetails { diff --git a/src/typings/management/installAndroidCertificateDetails.ts b/src/typings/management/installAndroidCertificateDetails.ts index 7b089d5b6..0be4f6481 100644 --- a/src/typings/management/installAndroidCertificateDetails.ts +++ b/src/typings/management/installAndroidCertificateDetails.ts @@ -12,36 +12,29 @@ export class InstallAndroidCertificateDetails { /** * The unique identifier of the certificate to be installed. */ - "certificateId"?: string; + 'certificateId'?: string; /** * Type of terminal action: Install an Android certificate. */ - "type"?: InstallAndroidCertificateDetails.TypeEnum; + 'type'?: InstallAndroidCertificateDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "certificateId", "baseName": "certificateId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "InstallAndroidCertificateDetails.TypeEnum", - "format": "" + "type": "InstallAndroidCertificateDetails.TypeEnum" } ]; static getAttributeTypeMap() { return InstallAndroidCertificateDetails.attributeTypeMap; } - - public constructor() { - } } export namespace InstallAndroidCertificateDetails { diff --git a/src/typings/management/invalidField.ts b/src/typings/management/invalidField.ts index d6a245664..39aa20ab2 100644 --- a/src/typings/management/invalidField.ts +++ b/src/typings/management/invalidField.ts @@ -12,45 +12,37 @@ export class InvalidField { /** * Description of the validation error. */ - "message": string; + 'message': string; /** * The field that has an invalid value. */ - "name": string; + 'name': string; /** * The invalid value. */ - "value": string; + 'value': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "message", "baseName": "message", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return InvalidField.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/jCBInfo.ts b/src/typings/management/jCBInfo.ts index 78a4126bf..21d8b798b 100644 --- a/src/typings/management/jCBInfo.ts +++ b/src/typings/management/jCBInfo.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { TransactionDescriptionInfo } from "./transactionDescriptionInfo"; - +import { TransactionDescriptionInfo } from './transactionDescriptionInfo'; export class JCBInfo { /** * MID (Merchant ID) number. Required for merchants operating in Japan or merchants operating in Canada, Australia and New Zealand when requesting `gatewayContract` or `paymentDesignatorContract` service levels.Format: 14 numeric characters for Japan, 10 numeric characters for Canada, Australia and New Zealand. */ - "midNumber"?: string; + 'midNumber'?: string; /** * Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. The default value is **false**.For merchants operating in Japan, this field is required and must be set to **true**. */ - "reuseMidNumber"?: boolean; + 'reuseMidNumber'?: boolean; /** * Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB for merchants operating in Japan or American Express for merchants operating in Canada, Australia and New Zealand. * **gatewayContract**: JCB or American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Available only for merchants operating in Canada, Australia and New Zealand. Adyen receives the settlement, and handles disputes and payouts. */ - "serviceLevel"?: JCBInfo.ServiceLevelEnum; - "transactionDescription"?: TransactionDescriptionInfo | null; - - static readonly discriminator: string | undefined = undefined; + 'serviceLevel'?: JCBInfo.ServiceLevelEnum; + 'transactionDescription'?: TransactionDescriptionInfo | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "midNumber", "baseName": "midNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "reuseMidNumber", "baseName": "reuseMidNumber", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "serviceLevel", "baseName": "serviceLevel", - "type": "JCBInfo.ServiceLevelEnum", - "format": "" + "type": "JCBInfo.ServiceLevelEnum" }, { "name": "transactionDescription", "baseName": "transactionDescription", - "type": "TransactionDescriptionInfo | null", - "format": "" + "type": "TransactionDescriptionInfo | null" } ]; static getAttributeTypeMap() { return JCBInfo.attributeTypeMap; } - - public constructor() { - } } export namespace JCBInfo { diff --git a/src/typings/management/key.ts b/src/typings/management/key.ts index f5173f57f..18f052ea2 100644 --- a/src/typings/management/key.ts +++ b/src/typings/management/key.ts @@ -12,45 +12,37 @@ export class Key { /** * The unique identifier of the shared key. */ - "identifier"?: string; + '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: `~`, `@`, `$`, `%`, `^`, `&`, `*`, `(`, `)`, `_`, `+`, `=`, `}`, `{`, `]`, `[`, `;`, `:`, `?`, `.`, `,`, `>`, `<`. */ - "passphrase"?: string; + 'passphrase'?: string; /** * The version number of the shared key. */ - "version"?: number; + 'version'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "identifier", "baseName": "identifier", - "type": "string", - "format": "" + "type": "string" }, { "name": "passphrase", "baseName": "passphrase", - "type": "string", - "format": "" + "type": "string" }, { "name": "version", "baseName": "version", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return Key.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/klarnaInfo.ts b/src/typings/management/klarnaInfo.ts index 2e3ccaf97..06c9dcd7b 100644 --- a/src/typings/management/klarnaInfo.ts +++ b/src/typings/management/klarnaInfo.ts @@ -12,56 +12,47 @@ export class KlarnaInfo { /** * Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: **false**. */ - "autoCapture"?: boolean; + 'autoCapture'?: boolean; /** * The email address for disputes. */ - "disputeEmail": string; + 'disputeEmail': string; /** * The region of operation. For example, **NA**, **EU**, **CH**, **AU**. */ - "region": KlarnaInfo.RegionEnum; + 'region': KlarnaInfo.RegionEnum; /** * The email address of merchant support. */ - "supportEmail": string; + 'supportEmail': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "autoCapture", "baseName": "autoCapture", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "disputeEmail", "baseName": "disputeEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "region", "baseName": "region", - "type": "KlarnaInfo.RegionEnum", - "format": "" + "type": "KlarnaInfo.RegionEnum" }, { "name": "supportEmail", "baseName": "supportEmail", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return KlarnaInfo.attributeTypeMap; } - - public constructor() { - } } export namespace KlarnaInfo { diff --git a/src/typings/management/links.ts b/src/typings/management/links.ts index 0a289d9cb..37397c4e8 100644 --- a/src/typings/management/links.ts +++ b/src/typings/management/links.ts @@ -7,29 +7,22 @@ * Do not edit this class manually. */ -import { LinksElement } from "./linksElement"; - +import { LinksElement } from './linksElement'; export class Links { - "self": LinksElement; - - static readonly discriminator: string | undefined = undefined; + 'self': LinksElement; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "self", "baseName": "self", - "type": "LinksElement", - "format": "" + "type": "LinksElement" } ]; static getAttributeTypeMap() { return Links.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/linksElement.ts b/src/typings/management/linksElement.ts index d8a69e215..3cfe8d9a6 100644 --- a/src/typings/management/linksElement.ts +++ b/src/typings/management/linksElement.ts @@ -9,25 +9,19 @@ export class LinksElement { - "href"?: string; + 'href'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "href", "baseName": "href", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return LinksElement.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/listCompanyApiCredentialsResponse.ts b/src/typings/management/listCompanyApiCredentialsResponse.ts index 4daebf8e7..a8562ccde 100644 --- a/src/typings/management/listCompanyApiCredentialsResponse.ts +++ b/src/typings/management/listCompanyApiCredentialsResponse.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { CompanyApiCredential } from "./companyApiCredential"; -import { PaginationLinks } from "./paginationLinks"; - +import { CompanyApiCredential } from './companyApiCredential'; +import { PaginationLinks } from './paginationLinks'; export class ListCompanyApiCredentialsResponse { - "_links"?: PaginationLinks | null; + '_links'?: PaginationLinks | null; /** * The list of API credentials. */ - "data"?: Array; + 'data'?: Array; /** * Total number of items. */ - "itemsTotal": number; + 'itemsTotal': number; /** * Total number of pages. */ - "pagesTotal": number; - - static readonly discriminator: string | undefined = undefined; + 'pagesTotal': number; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "_links", "baseName": "_links", - "type": "PaginationLinks | null", - "format": "" + "type": "PaginationLinks | null" }, { "name": "data", "baseName": "data", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "itemsTotal", "baseName": "itemsTotal", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "pagesTotal", "baseName": "pagesTotal", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return ListCompanyApiCredentialsResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/listCompanyResponse.ts b/src/typings/management/listCompanyResponse.ts index c4a673fd3..fe147ba47 100644 --- a/src/typings/management/listCompanyResponse.ts +++ b/src/typings/management/listCompanyResponse.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { Company } from "./company"; -import { PaginationLinks } from "./paginationLinks"; - +import { Company } from './company'; +import { PaginationLinks } from './paginationLinks'; export class ListCompanyResponse { - "_links"?: PaginationLinks | null; + '_links'?: PaginationLinks | null; /** * The list of companies. */ - "data"?: Array; + 'data'?: Array; /** * Total number of items. */ - "itemsTotal": number; + 'itemsTotal': number; /** * Total number of pages. */ - "pagesTotal": number; - - static readonly discriminator: string | undefined = undefined; + 'pagesTotal': number; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "_links", "baseName": "_links", - "type": "PaginationLinks | null", - "format": "" + "type": "PaginationLinks | null" }, { "name": "data", "baseName": "data", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "itemsTotal", "baseName": "itemsTotal", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "pagesTotal", "baseName": "pagesTotal", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return ListCompanyResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/listCompanyUsersResponse.ts b/src/typings/management/listCompanyUsersResponse.ts index 81ace1293..fed47c694 100644 --- a/src/typings/management/listCompanyUsersResponse.ts +++ b/src/typings/management/listCompanyUsersResponse.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { CompanyUser } from "./companyUser"; -import { PaginationLinks } from "./paginationLinks"; - +import { CompanyUser } from './companyUser'; +import { PaginationLinks } from './paginationLinks'; export class ListCompanyUsersResponse { - "_links"?: PaginationLinks | null; + '_links'?: PaginationLinks | null; /** * The list of users. */ - "data"?: Array; + 'data'?: Array; /** * Total number of items. */ - "itemsTotal": number; + 'itemsTotal': number; /** * Total number of pages. */ - "pagesTotal": number; - - static readonly discriminator: string | undefined = undefined; + 'pagesTotal': number; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "_links", "baseName": "_links", - "type": "PaginationLinks | null", - "format": "" + "type": "PaginationLinks | null" }, { "name": "data", "baseName": "data", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "itemsTotal", "baseName": "itemsTotal", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "pagesTotal", "baseName": "pagesTotal", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return ListCompanyUsersResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/listExternalTerminalActionsResponse.ts b/src/typings/management/listExternalTerminalActionsResponse.ts index c7ff52b9b..c3b589ce2 100644 --- a/src/typings/management/listExternalTerminalActionsResponse.ts +++ b/src/typings/management/listExternalTerminalActionsResponse.ts @@ -7,32 +7,25 @@ * Do not edit this class manually. */ -import { ExternalTerminalAction } from "./externalTerminalAction"; - +import { ExternalTerminalAction } from './externalTerminalAction'; export class ListExternalTerminalActionsResponse { /** * The list of terminal actions. */ - "data"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'data'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return ListExternalTerminalActionsResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/listMerchantApiCredentialsResponse.ts b/src/typings/management/listMerchantApiCredentialsResponse.ts index 9c463d7df..63d680a61 100644 --- a/src/typings/management/listMerchantApiCredentialsResponse.ts +++ b/src/typings/management/listMerchantApiCredentialsResponse.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { ApiCredential } from "./apiCredential"; -import { PaginationLinks } from "./paginationLinks"; - +import { ApiCredential } from './apiCredential'; +import { PaginationLinks } from './paginationLinks'; export class ListMerchantApiCredentialsResponse { - "_links"?: PaginationLinks | null; + '_links'?: PaginationLinks | null; /** * The list of API credentials. */ - "data"?: Array; + 'data'?: Array; /** * Total number of items. */ - "itemsTotal": number; + 'itemsTotal': number; /** * Total number of pages. */ - "pagesTotal": number; - - static readonly discriminator: string | undefined = undefined; + 'pagesTotal': number; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "_links", "baseName": "_links", - "type": "PaginationLinks | null", - "format": "" + "type": "PaginationLinks | null" }, { "name": "data", "baseName": "data", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "itemsTotal", "baseName": "itemsTotal", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "pagesTotal", "baseName": "pagesTotal", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return ListMerchantApiCredentialsResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/listMerchantResponse.ts b/src/typings/management/listMerchantResponse.ts index 9f1b50956..4ba57815e 100644 --- a/src/typings/management/listMerchantResponse.ts +++ b/src/typings/management/listMerchantResponse.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { Merchant } from "./merchant"; -import { PaginationLinks } from "./paginationLinks"; - +import { Merchant } from './merchant'; +import { PaginationLinks } from './paginationLinks'; export class ListMerchantResponse { - "_links"?: PaginationLinks | null; + '_links'?: PaginationLinks | null; /** * The list of merchant accounts. */ - "data"?: Array; + 'data'?: Array; /** * Total number of items. */ - "itemsTotal": number; + 'itemsTotal': number; /** * Total number of pages. */ - "pagesTotal": number; - - static readonly discriminator: string | undefined = undefined; + 'pagesTotal': number; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "_links", "baseName": "_links", - "type": "PaginationLinks | null", - "format": "" + "type": "PaginationLinks | null" }, { "name": "data", "baseName": "data", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "itemsTotal", "baseName": "itemsTotal", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "pagesTotal", "baseName": "pagesTotal", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return ListMerchantResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/listMerchantUsersResponse.ts b/src/typings/management/listMerchantUsersResponse.ts index cf05c2e5b..ca66e7c28 100644 --- a/src/typings/management/listMerchantUsersResponse.ts +++ b/src/typings/management/listMerchantUsersResponse.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { PaginationLinks } from "./paginationLinks"; -import { User } from "./user"; - +import { PaginationLinks } from './paginationLinks'; +import { User } from './user'; export class ListMerchantUsersResponse { - "_links"?: PaginationLinks | null; + '_links'?: PaginationLinks | null; /** * The list of users. */ - "data"?: Array; + 'data'?: Array; /** * Total number of items. */ - "itemsTotal": number; + 'itemsTotal': number; /** * Total number of pages. */ - "pagesTotal": number; - - static readonly discriminator: string | undefined = undefined; + 'pagesTotal': number; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "_links", "baseName": "_links", - "type": "PaginationLinks | null", - "format": "" + "type": "PaginationLinks | null" }, { "name": "data", "baseName": "data", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "itemsTotal", "baseName": "itemsTotal", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "pagesTotal", "baseName": "pagesTotal", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return ListMerchantUsersResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/listStoresResponse.ts b/src/typings/management/listStoresResponse.ts index 8d035cfbe..6032b593c 100644 --- a/src/typings/management/listStoresResponse.ts +++ b/src/typings/management/listStoresResponse.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { PaginationLinks } from "./paginationLinks"; -import { Store } from "./store"; - +import { PaginationLinks } from './paginationLinks'; +import { Store } from './store'; export class ListStoresResponse { - "_links"?: PaginationLinks | null; + '_links'?: PaginationLinks | null; /** * List of stores */ - "data"?: Array; + 'data'?: Array; /** * Total number of items. */ - "itemsTotal": number; + 'itemsTotal': number; /** * Total number of pages. */ - "pagesTotal": number; - - static readonly discriminator: string | undefined = undefined; + 'pagesTotal': number; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "_links", "baseName": "_links", - "type": "PaginationLinks | null", - "format": "" + "type": "PaginationLinks | null" }, { "name": "data", "baseName": "data", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "itemsTotal", "baseName": "itemsTotal", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "pagesTotal", "baseName": "pagesTotal", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return ListStoresResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/listTerminalsResponse.ts b/src/typings/management/listTerminalsResponse.ts index 8bf7dd2ae..7b6891962 100644 --- a/src/typings/management/listTerminalsResponse.ts +++ b/src/typings/management/listTerminalsResponse.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { PaginationLinks } from "./paginationLinks"; -import { Terminal } from "./terminal"; - +import { PaginationLinks } from './paginationLinks'; +import { Terminal } from './terminal'; export class ListTerminalsResponse { - "_links"?: PaginationLinks | null; + '_links'?: PaginationLinks | null; /** * The list of terminals and their details. */ - "data"?: Array; + 'data'?: Array; /** * Total number of items. */ - "itemsTotal": number; + 'itemsTotal': number; /** * Total number of pages. */ - "pagesTotal": number; - - static readonly discriminator: string | undefined = undefined; + 'pagesTotal': number; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "_links", "baseName": "_links", - "type": "PaginationLinks | null", - "format": "" + "type": "PaginationLinks | null" }, { "name": "data", "baseName": "data", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "itemsTotal", "baseName": "itemsTotal", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "pagesTotal", "baseName": "pagesTotal", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return ListTerminalsResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/listWebhooksResponse.ts b/src/typings/management/listWebhooksResponse.ts index 6cecfbc19..a97480bb9 100644 --- a/src/typings/management/listWebhooksResponse.ts +++ b/src/typings/management/listWebhooksResponse.ts @@ -7,70 +7,59 @@ * Do not edit this class manually. */ -import { PaginationLinks } from "./paginationLinks"; -import { Webhook } from "./webhook"; - +import { PaginationLinks } from './paginationLinks'; +import { Webhook } from './webhook'; export class ListWebhooksResponse { - "_links"?: PaginationLinks | null; + '_links'?: PaginationLinks | null; /** * Reference to the account. */ - "accountReference"?: string; + 'accountReference'?: string; /** * The list of webhooks configured for this account. */ - "data"?: Array; + 'data'?: Array; /** * Total number of items. */ - "itemsTotal": number; + 'itemsTotal': number; /** * Total number of pages. */ - "pagesTotal": number; - - static readonly discriminator: string | undefined = undefined; + 'pagesTotal': number; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "_links", "baseName": "_links", - "type": "PaginationLinks | null", - "format": "" + "type": "PaginationLinks | null" }, { "name": "accountReference", "baseName": "accountReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "data", "baseName": "data", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "itemsTotal", "baseName": "itemsTotal", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "pagesTotal", "baseName": "pagesTotal", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return ListWebhooksResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/localization.ts b/src/typings/management/localization.ts index 671e17d89..e7ef0cbb4 100644 --- a/src/typings/management/localization.ts +++ b/src/typings/management/localization.ts @@ -12,45 +12,37 @@ export class Localization { /** * Language of the terminal. */ - "language"?: string; + 'language'?: string; /** * Secondary language of the terminal. */ - "secondaryLanguage"?: string; + 'secondaryLanguage'?: string; /** * The time zone of the terminal. */ - "timezone"?: string; + 'timezone'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "language", "baseName": "language", - "type": "string", - "format": "" + "type": "string" }, { "name": "secondaryLanguage", "baseName": "secondaryLanguage", - "type": "string", - "format": "" + "type": "string" }, { "name": "timezone", "baseName": "timezone", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Localization.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/logo.ts b/src/typings/management/logo.ts index 375f7ab9f..fa22a87b9 100644 --- a/src/typings/management/logo.ts +++ b/src/typings/management/logo.ts @@ -12,25 +12,19 @@ export class Logo { /** * The image file, converted to a Base64-encoded string, of the logo to be shown on the terminal. */ - "data"?: string; + 'data'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Logo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/meApiCredential.ts b/src/typings/management/meApiCredential.ts index 8b173362a..86128fe6d 100644 --- a/src/typings/management/meApiCredential.ts +++ b/src/typings/management/meApiCredential.ts @@ -7,120 +7,104 @@ * Do not edit this class manually. */ -import { AllowedOrigin } from "./allowedOrigin"; -import { ApiCredentialLinks } from "./apiCredentialLinks"; - +import { AllowedOrigin } from './allowedOrigin'; +import { ApiCredentialLinks } from './apiCredentialLinks'; export class MeApiCredential { - "_links"?: ApiCredentialLinks | null; + '_links'?: ApiCredentialLinks | null; /** * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. */ - "active": boolean; + 'active': boolean; /** * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. */ - "allowedIpAddresses": Array; + 'allowedIpAddresses': Array; /** * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. */ - "allowedOrigins"?: Array; + 'allowedOrigins'?: Array; /** * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. */ - "clientKey": string; + 'clientKey': string; /** * Name of the company linked to the API credential. */ - "companyName"?: string; + 'companyName'?: string; /** * Description of the API credential. */ - "description"?: string; + 'description'?: string; /** * Unique identifier of the API credential. */ - "id": string; + 'id': string; /** * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. */ - "roles": Array; + 'roles': Array; /** * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. */ - "username": string; - - static readonly discriminator: string | undefined = undefined; + 'username': string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "_links", "baseName": "_links", - "type": "ApiCredentialLinks | null", - "format": "" + "type": "ApiCredentialLinks | null" }, { "name": "active", "baseName": "active", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "allowedIpAddresses", "baseName": "allowedIpAddresses", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "allowedOrigins", "baseName": "allowedOrigins", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "clientKey", "baseName": "clientKey", - "type": "string", - "format": "" + "type": "string" }, { "name": "companyName", "baseName": "companyName", - "type": "string", - "format": "" + "type": "string" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "roles", "baseName": "roles", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "username", "baseName": "username", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return MeApiCredential.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/mealVoucherFRInfo.ts b/src/typings/management/mealVoucherFRInfo.ts index 0e50e7917..45707c8d1 100644 --- a/src/typings/management/mealVoucherFRInfo.ts +++ b/src/typings/management/mealVoucherFRInfo.ts @@ -12,45 +12,37 @@ export class MealVoucherFRInfo { /** * Meal Voucher conecsId. Format: digits only */ - "conecsId": string; + 'conecsId': string; /** * Meal Voucher siret. Format: 14 digits. */ - "siret": string; + 'siret': string; /** * The list of additional payment methods. Allowed values: **mealVoucher_FR_edenred**, **mealVoucher_FR_groupeup**, **mealVoucher_FR_natixis**, **mealVoucher_FR_sodexo**. */ - "subTypes": Array; + 'subTypes': Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "conecsId", "baseName": "conecsId", - "type": "string", - "format": "" + "type": "string" }, { "name": "siret", "baseName": "siret", - "type": "string", - "format": "" + "type": "string" }, { "name": "subTypes", "baseName": "subTypes", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return MealVoucherFRInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/merchant.ts b/src/typings/management/merchant.ts index 5a808b5fd..c4f13423c 100644 --- a/src/typings/management/merchant.ts +++ b/src/typings/management/merchant.ts @@ -7,160 +7,140 @@ * Do not edit this class manually. */ -import { DataCenter } from "./dataCenter"; -import { MerchantLinks } from "./merchantLinks"; - +import { DataCenter } from './dataCenter'; +import { MerchantLinks } from './merchantLinks'; export class Merchant { - "_links"?: MerchantLinks | null; + '_links'?: MerchantLinks | null; /** * The [capture delay](https://docs.adyen.com/online-payments/capture#capture-delay) set for the merchant account. Possible values: * **Immediate** * **Manual** * Number of days from **1** to **29** */ - "captureDelay"?: string; + 'captureDelay'?: string; /** * The unique identifier of the company account this merchant belongs to */ - "companyId"?: string; + 'companyId'?: string; /** * List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers. */ - "dataCenters"?: Array; + 'dataCenters'?: Array; /** * The default [`shopperInteraction`](https://docs.adyen.com/api-explorer/#/CheckoutService/v68/post/payments__reqParam_shopperInteraction) value used when processing payments through this merchant account. */ - "defaultShopperInteraction"?: string; + 'defaultShopperInteraction'?: string; /** * Your description for the merchant account, maximum 300 characters */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the merchant account. */ - "id"?: string; + 'id'?: string; /** * The city where the legal entity of this merchant account is registered. */ - "merchantCity"?: string; + 'merchantCity'?: string; /** * The name of the legal entity associated with the merchant account. */ - "name"?: string; + 'name'?: string; /** * Only applies to merchant accounts managed by Adyen\'s partners. The name of the pricing plan assigned to the merchant account. */ - "pricingPlan"?: string; + 'pricingPlan'?: string; /** * The currency of the country where the legal entity of this merchant account is registered. Format: [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, a legal entity based in the United States has USD as the primary settlement currency. */ - "primarySettlementCurrency"?: string; + 'primarySettlementCurrency'?: string; /** * Reference of the merchant account. */ - "reference"?: string; + 'reference'?: string; /** * The URL for the ecommerce website used with this merchant account. */ - "shopWebAddress"?: string; + 'shopWebAddress'?: string; /** * The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. You cannot process new payments but you can still modify payments, for example issue refunds. You can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. */ - "status"?: string; - - static readonly discriminator: string | undefined = undefined; + 'status'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "_links", "baseName": "_links", - "type": "MerchantLinks | null", - "format": "" + "type": "MerchantLinks | null" }, { "name": "captureDelay", "baseName": "captureDelay", - "type": "string", - "format": "" + "type": "string" }, { "name": "companyId", "baseName": "companyId", - "type": "string", - "format": "" + "type": "string" }, { "name": "dataCenters", "baseName": "dataCenters", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "defaultShopperInteraction", "baseName": "defaultShopperInteraction", - "type": "string", - "format": "" + "type": "string" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantCity", "baseName": "merchantCity", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "pricingPlan", "baseName": "pricingPlan", - "type": "string", - "format": "" + "type": "string" }, { "name": "primarySettlementCurrency", "baseName": "primarySettlementCurrency", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopWebAddress", "baseName": "shopWebAddress", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Merchant.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/merchantLinks.ts b/src/typings/management/merchantLinks.ts index 9c9624711..1ada791e1 100644 --- a/src/typings/management/merchantLinks.ts +++ b/src/typings/management/merchantLinks.ts @@ -7,50 +7,40 @@ * Do not edit this class manually. */ -import { LinksElement } from "./linksElement"; - +import { LinksElement } from './linksElement'; export class MerchantLinks { - "apiCredentials"?: LinksElement | null; - "self": LinksElement; - "users"?: LinksElement | null; - "webhooks"?: LinksElement | null; - - static readonly discriminator: string | undefined = undefined; + 'apiCredentials'?: LinksElement | null; + 'self': LinksElement; + 'users'?: LinksElement | null; + 'webhooks'?: LinksElement | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "apiCredentials", "baseName": "apiCredentials", - "type": "LinksElement | null", - "format": "" + "type": "LinksElement | null" }, { "name": "self", "baseName": "self", - "type": "LinksElement", - "format": "" + "type": "LinksElement" }, { "name": "users", "baseName": "users", - "type": "LinksElement | null", - "format": "" + "type": "LinksElement | null" }, { "name": "webhooks", "baseName": "webhooks", - "type": "LinksElement | null", - "format": "" + "type": "LinksElement | null" } ]; static getAttributeTypeMap() { return MerchantLinks.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/minorUnitsMonetaryValue.ts b/src/typings/management/minorUnitsMonetaryValue.ts index 70f0110ca..3ac0db880 100644 --- a/src/typings/management/minorUnitsMonetaryValue.ts +++ b/src/typings/management/minorUnitsMonetaryValue.ts @@ -12,35 +12,28 @@ export class MinorUnitsMonetaryValue { /** * The transaction amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ - "amount"?: number; + 'amount'?: number; /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ - "currencyCode"?: string; + 'currencyCode'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "currencyCode", "baseName": "currencyCode", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return MinorUnitsMonetaryValue.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/modelFile.ts b/src/typings/management/modelFile.ts index a60004010..80a1270e8 100644 --- a/src/typings/management/modelFile.ts +++ b/src/typings/management/modelFile.ts @@ -12,35 +12,28 @@ export class ModelFile { /** * The certificate content converted to a Base64-encoded string. */ - "data": string; + 'data': string; /** * The name of the certificate. Must be unique across Wi-Fi profiles. */ - "name": string; + 'name': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ModelFile.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/models.ts b/src/typings/management/models.ts index db08de3d5..99ce0f311 100644 --- a/src/typings/management/models.ts +++ b/src/typings/management/models.ts @@ -1,200 +1,812 @@ -export * from "./accelInfo" -export * from "./additionalCommission" -export * from "./additionalSettings" -export * from "./additionalSettingsResponse" -export * from "./address" -export * from "./affirmInfo" -export * from "./afterpayTouchInfo" -export * from "./allowedOrigin" -export * from "./allowedOriginsResponse" -export * from "./amexInfo" -export * from "./amount" -export * from "./androidApp" -export * from "./androidAppError" -export * from "./androidAppsResponse" -export * from "./androidCertificate" -export * from "./androidCertificatesResponse" -export * from "./apiCredential" -export * from "./apiCredentialLinks" -export * from "./applePayInfo" -export * from "./bcmcInfo" -export * from "./billingEntitiesResponse" -export * from "./billingEntity" -export * from "./cardholderReceipt" -export * from "./cartesBancairesInfo" -export * from "./clearpayInfo" -export * from "./commission" -export * from "./company" -export * from "./companyApiCredential" -export * from "./companyLinks" -export * from "./companyUser" -export * from "./configuration" -export * from "./connectivity" -export * from "./contact" -export * from "./createAllowedOriginRequest" -export * from "./createApiCredentialResponse" -export * from "./createCompanyApiCredentialRequest" -export * from "./createCompanyApiCredentialResponse" -export * from "./createCompanyUserRequest" -export * from "./createCompanyUserResponse" -export * from "./createCompanyWebhookRequest" -export * from "./createMerchantApiCredentialRequest" -export * from "./createMerchantRequest" -export * from "./createMerchantResponse" -export * from "./createMerchantUserRequest" -export * from "./createMerchantWebhookRequest" -export * from "./createUserResponse" -export * from "./currency" -export * from "./customNotification" -export * from "./dataCenter" -export * from "./dinersInfo" -export * from "./eventUrl" -export * from "./externalTerminalAction" -export * from "./generateApiKeyResponse" -export * from "./generateClientKeyResponse" -export * from "./generateHmacKeyResponse" -export * from "./genericPmWithTdiInfo" -export * from "./googlePayInfo" -export * from "./gratuity" -export * from "./hardware" -export * from "./idName" -export * from "./installAndroidAppDetails" -export * from "./installAndroidCertificateDetails" -export * from "./invalidField" -export * from "./jCBInfo" -export * from "./key" -export * from "./klarnaInfo" -export * from "./links" -export * from "./linksElement" -export * from "./listCompanyApiCredentialsResponse" -export * from "./listCompanyResponse" -export * from "./listCompanyUsersResponse" -export * from "./listExternalTerminalActionsResponse" -export * from "./listMerchantApiCredentialsResponse" -export * from "./listMerchantResponse" -export * from "./listMerchantUsersResponse" -export * from "./listStoresResponse" -export * from "./listTerminalsResponse" -export * from "./listWebhooksResponse" -export * from "./localization" -export * from "./logo" -export * from "./meApiCredential" -export * from "./mealVoucherFRInfo" -export * from "./merchant" -export * from "./merchantLinks" -export * from "./minorUnitsMonetaryValue" -export * from "./modelFile" -export * from "./name" -export * from "./name2" -export * from "./nexo" -export * from "./notification" -export * from "./notificationUrl" -export * from "./nyceInfo" -export * from "./offlineProcessing" -export * from "./opi" -export * from "./orderItem" -export * from "./paginationLinks" -export * from "./passcodes" -export * from "./payAtTable" -export * from "./payByBankPlaidInfo" -export * from "./payMeInfo" -export * from "./payPalInfo" -export * from "./payToInfo" -export * from "./payment" -export * from "./paymentMethod" -export * from "./paymentMethodResponse" -export * from "./paymentMethodSetupInfo" -export * from "./payoutSettings" -export * from "./payoutSettingsRequest" -export * from "./payoutSettingsResponse" -export * from "./profile" -export * from "./pulseInfo" -export * from "./receiptOptions" -export * from "./receiptPrinting" -export * from "./referenced" -export * from "./refunds" -export * from "./releaseUpdateDetails" -export * from "./reprocessAndroidAppResponse" -export * from "./requestActivationResponse" -export * from "./restServiceError" -export * from "./scheduleTerminalActionsRequest" -export * from "./scheduleTerminalActionsRequestActionDetails" -export * from "./scheduleTerminalActionsResponse" -export * from "./settings" -export * from "./shippingLocation" -export * from "./shippingLocationsResponse" -export * from "./signature" -export * from "./sodexoInfo" -export * from "./sofortInfo" -export * from "./splitConfiguration" -export * from "./splitConfigurationList" -export * from "./splitConfigurationLogic" -export * from "./splitConfigurationRule" -export * from "./standalone" -export * from "./starInfo" -export * from "./store" -export * from "./storeAndForward" -export * from "./storeCreationRequest" -export * from "./storeCreationWithMerchantCodeRequest" -export * from "./storeLocation" -export * from "./storeSplitConfiguration" -export * from "./subMerchantData" -export * from "./supportedCardTypes" -export * from "./surcharge" -export * from "./swishInfo" -export * from "./tapToPay" -export * from "./terminal" -export * from "./terminalActionScheduleDetail" -export * from "./terminalAssignment" -export * from "./terminalConnectivity" -export * from "./terminalConnectivityBluetooth" -export * from "./terminalConnectivityCellular" -export * from "./terminalConnectivityEthernet" -export * from "./terminalConnectivityWifi" -export * from "./terminalInstructions" -export * from "./terminalModelsResponse" -export * from "./terminalOrder" -export * from "./terminalOrderRequest" -export * from "./terminalOrdersResponse" -export * from "./terminalProduct" -export * from "./terminalProductPrice" -export * from "./terminalProductsResponse" -export * from "./terminalReassignmentRequest" -export * from "./terminalReassignmentTarget" -export * from "./terminalSettings" -export * from "./testCompanyWebhookRequest" -export * from "./testOutput" -export * from "./testWebhookRequest" -export * from "./testWebhookResponse" -export * from "./ticketInfo" -export * from "./timeouts" -export * from "./transactionDescriptionInfo" -export * from "./twintInfo" -export * from "./uninstallAndroidAppDetails" -export * from "./uninstallAndroidCertificateDetails" -export * from "./updatableAddress" -export * from "./updateCompanyApiCredentialRequest" -export * from "./updateCompanyUserRequest" -export * from "./updateCompanyWebhookRequest" -export * from "./updateMerchantApiCredentialRequest" -export * from "./updateMerchantUserRequest" -export * from "./updateMerchantWebhookRequest" -export * from "./updatePaymentMethodInfo" -export * from "./updatePayoutSettingsRequest" -export * from "./updateSplitConfigurationLogicRequest" -export * from "./updateSplitConfigurationRequest" -export * from "./updateSplitConfigurationRuleRequest" -export * from "./updateStoreRequest" -export * from "./uploadAndroidAppResponse" -export * from "./uploadAndroidCertificateResponse" -export * from "./url" -export * from "./user" -export * from "./vippsInfo" -export * from "./weChatPayInfo" -export * from "./weChatPayPosInfo" -export * from "./webhook" -export * from "./webhookLinks" -export * from "./wifiProfiles" +/* + * 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. + */ -// serializing and deserializing typed objects -export * from "./objectSerializer" \ No newline at end of file + +export * from './accelInfo'; +export * from './additionalCommission'; +export * from './additionalSettings'; +export * from './additionalSettingsResponse'; +export * from './address'; +export * from './affirmInfo'; +export * from './afterpayTouchInfo'; +export * from './alipayPlusInfo'; +export * from './allowedOrigin'; +export * from './allowedOriginsResponse'; +export * from './amexInfo'; +export * from './amount'; +export * from './androidApp'; +export * from './androidAppError'; +export * from './androidAppsResponse'; +export * from './androidCertificate'; +export * from './androidCertificatesResponse'; +export * from './apiCredential'; +export * from './apiCredentialLinks'; +export * from './applePayInfo'; +export * from './bcmcInfo'; +export * from './billingEntitiesResponse'; +export * from './billingEntity'; +export * from './cardholderReceipt'; +export * from './cartesBancairesInfo'; +export * from './clearpayInfo'; +export * from './commission'; +export * from './company'; +export * from './companyApiCredential'; +export * from './companyLinks'; +export * from './companyUser'; +export * from './configuration'; +export * from './connectivity'; +export * from './contact'; +export * from './createAllowedOriginRequest'; +export * from './createApiCredentialResponse'; +export * from './createCompanyApiCredentialRequest'; +export * from './createCompanyApiCredentialResponse'; +export * from './createCompanyUserRequest'; +export * from './createCompanyUserResponse'; +export * from './createCompanyWebhookRequest'; +export * from './createMerchantApiCredentialRequest'; +export * from './createMerchantRequest'; +export * from './createMerchantResponse'; +export * from './createMerchantUserRequest'; +export * from './createMerchantWebhookRequest'; +export * from './createUserResponse'; +export * from './currency'; +export * from './customNotification'; +export * from './dataCenter'; +export * from './dinersInfo'; +export * from './eventUrl'; +export * from './externalTerminalAction'; +export * from './generateApiKeyResponse'; +export * from './generateClientKeyResponse'; +export * from './generateHmacKeyResponse'; +export * from './genericPmWithTdiInfo'; +export * from './googlePayInfo'; +export * from './gratuity'; +export * from './hardware'; +export * from './idName'; +export * from './installAndroidAppDetails'; +export * from './installAndroidCertificateDetails'; +export * from './invalidField'; +export * from './jCBInfo'; +export * from './key'; +export * from './klarnaInfo'; +export * from './links'; +export * from './linksElement'; +export * from './listCompanyApiCredentialsResponse'; +export * from './listCompanyResponse'; +export * from './listCompanyUsersResponse'; +export * from './listExternalTerminalActionsResponse'; +export * from './listMerchantApiCredentialsResponse'; +export * from './listMerchantResponse'; +export * from './listMerchantUsersResponse'; +export * from './listStoresResponse'; +export * from './listTerminalsResponse'; +export * from './listWebhooksResponse'; +export * from './localization'; +export * from './logo'; +export * from './meApiCredential'; +export * from './mealVoucherFRInfo'; +export * from './merchant'; +export * from './merchantLinks'; +export * from './minorUnitsMonetaryValue'; +export * from './modelFile'; +export * from './name'; +export * from './name2'; +export * from './nexo'; +export * from './notification'; +export * from './notificationUrl'; +export * from './nyceInfo'; +export * from './offlineProcessing'; +export * from './opi'; +export * from './orderItem'; +export * from './paginationLinks'; +export * from './passcodes'; +export * from './payAtTable'; +export * from './payByBankPlaidInfo'; +export * from './payMeInfo'; +export * from './payPalInfo'; +export * from './payToInfo'; +export * from './payment'; +export * from './paymentMethod'; +export * from './paymentMethodResponse'; +export * from './paymentMethodSetupInfo'; +export * from './payoutSettings'; +export * from './payoutSettingsRequest'; +export * from './payoutSettingsResponse'; +export * from './profile'; +export * from './pulseInfo'; +export * from './receiptOptions'; +export * from './receiptPrinting'; +export * from './referenced'; +export * from './refunds'; +export * from './releaseUpdateDetails'; +export * from './reprocessAndroidAppResponse'; +export * from './requestActivationResponse'; +export * from './restServiceError'; +export * from './scheduleTerminalActionsRequest'; +export * from './scheduleTerminalActionsResponse'; +export * from './settings'; +export * from './shippingLocation'; +export * from './shippingLocationsResponse'; +export * from './signature'; +export * from './sodexoInfo'; +export * from './sofortInfo'; +export * from './splitConfiguration'; +export * from './splitConfigurationList'; +export * from './splitConfigurationLogic'; +export * from './splitConfigurationRule'; +export * from './standalone'; +export * from './starInfo'; +export * from './store'; +export * from './storeAndForward'; +export * from './storeCreationRequest'; +export * from './storeCreationWithMerchantCodeRequest'; +export * from './storeLocation'; +export * from './storeSplitConfiguration'; +export * from './subMerchantData'; +export * from './supportedCardTypes'; +export * from './surcharge'; +export * from './swishInfo'; +export * from './tapToPay'; +export * from './terminal'; +export * from './terminalActionScheduleDetail'; +export * from './terminalAssignment'; +export * from './terminalConnectivity'; +export * from './terminalConnectivityBluetooth'; +export * from './terminalConnectivityCellular'; +export * from './terminalConnectivityEthernet'; +export * from './terminalConnectivityWifi'; +export * from './terminalInstructions'; +export * from './terminalModelsResponse'; +export * from './terminalOrder'; +export * from './terminalOrderRequest'; +export * from './terminalOrdersResponse'; +export * from './terminalProduct'; +export * from './terminalProductPrice'; +export * from './terminalProductsResponse'; +export * from './terminalReassignmentRequest'; +export * from './terminalReassignmentTarget'; +export * from './terminalSettings'; +export * from './testCompanyWebhookRequest'; +export * from './testOutput'; +export * from './testWebhookRequest'; +export * from './testWebhookResponse'; +export * from './ticketInfo'; +export * from './timeouts'; +export * from './transactionDescriptionInfo'; +export * from './twintInfo'; +export * from './uninstallAndroidAppDetails'; +export * from './uninstallAndroidCertificateDetails'; +export * from './updatableAddress'; +export * from './updateCompanyApiCredentialRequest'; +export * from './updateCompanyUserRequest'; +export * from './updateCompanyWebhookRequest'; +export * from './updateMerchantApiCredentialRequest'; +export * from './updateMerchantUserRequest'; +export * from './updateMerchantWebhookRequest'; +export * from './updatePaymentMethodInfo'; +export * from './updatePayoutSettingsRequest'; +export * from './updateSplitConfigurationLogicRequest'; +export * from './updateSplitConfigurationRequest'; +export * from './updateSplitConfigurationRuleRequest'; +export * from './updateStoreRequest'; +export * from './uploadAndroidAppResponse'; +export * from './uploadAndroidCertificateResponse'; +export * from './url'; +export * from './user'; +export * from './vippsInfo'; +export * from './weChatPayInfo'; +export * from './weChatPayPosInfo'; +export * from './webhook'; +export * from './webhookLinks'; +export * from './wifiProfiles'; + + +import { AccelInfo } from './accelInfo'; +import { AdditionalCommission } from './additionalCommission'; +import { AdditionalSettings } from './additionalSettings'; +import { AdditionalSettingsResponse } from './additionalSettingsResponse'; +import { Address } from './address'; +import { AffirmInfo } from './affirmInfo'; +import { AfterpayTouchInfo } from './afterpayTouchInfo'; +import { AlipayPlusInfo } from './alipayPlusInfo'; +import { AllowedOrigin } from './allowedOrigin'; +import { AllowedOriginsResponse } from './allowedOriginsResponse'; +import { AmexInfo } from './amexInfo'; +import { Amount } from './amount'; +import { AndroidApp } from './androidApp'; +import { AndroidAppError } from './androidAppError'; +import { AndroidAppsResponse } from './androidAppsResponse'; +import { AndroidCertificate } from './androidCertificate'; +import { AndroidCertificatesResponse } from './androidCertificatesResponse'; +import { ApiCredential } from './apiCredential'; +import { ApiCredentialLinks } from './apiCredentialLinks'; +import { ApplePayInfo } from './applePayInfo'; +import { BcmcInfo } from './bcmcInfo'; +import { BillingEntitiesResponse } from './billingEntitiesResponse'; +import { BillingEntity } from './billingEntity'; +import { CardholderReceipt } from './cardholderReceipt'; +import { CartesBancairesInfo } from './cartesBancairesInfo'; +import { ClearpayInfo } from './clearpayInfo'; +import { Commission } from './commission'; +import { Company } from './company'; +import { CompanyApiCredential } from './companyApiCredential'; +import { CompanyLinks } from './companyLinks'; +import { CompanyUser } from './companyUser'; +import { Configuration } from './configuration'; +import { Connectivity } from './connectivity'; +import { Contact } from './contact'; +import { CreateAllowedOriginRequest } from './createAllowedOriginRequest'; +import { CreateApiCredentialResponse } from './createApiCredentialResponse'; +import { CreateCompanyApiCredentialRequest } from './createCompanyApiCredentialRequest'; +import { CreateCompanyApiCredentialResponse } from './createCompanyApiCredentialResponse'; +import { CreateCompanyUserRequest } from './createCompanyUserRequest'; +import { CreateCompanyUserResponse } from './createCompanyUserResponse'; +import { CreateCompanyWebhookRequest } from './createCompanyWebhookRequest'; +import { CreateMerchantApiCredentialRequest } from './createMerchantApiCredentialRequest'; +import { CreateMerchantRequest } from './createMerchantRequest'; +import { CreateMerchantResponse } from './createMerchantResponse'; +import { CreateMerchantUserRequest } from './createMerchantUserRequest'; +import { CreateMerchantWebhookRequest } from './createMerchantWebhookRequest'; +import { CreateUserResponse } from './createUserResponse'; +import { Currency } from './currency'; +import { CustomNotification } from './customNotification'; +import { DataCenter } from './dataCenter'; +import { DinersInfo } from './dinersInfo'; +import { EventUrl } from './eventUrl'; +import { ExternalTerminalAction } from './externalTerminalAction'; +import { GenerateApiKeyResponse } from './generateApiKeyResponse'; +import { GenerateClientKeyResponse } from './generateClientKeyResponse'; +import { GenerateHmacKeyResponse } from './generateHmacKeyResponse'; +import { GenericPmWithTdiInfo } from './genericPmWithTdiInfo'; +import { GooglePayInfo } from './googlePayInfo'; +import { Gratuity } from './gratuity'; +import { Hardware } from './hardware'; +import { IdName } from './idName'; +import { InstallAndroidAppDetails } from './installAndroidAppDetails'; +import { InstallAndroidCertificateDetails } from './installAndroidCertificateDetails'; +import { InvalidField } from './invalidField'; +import { JCBInfo } from './jCBInfo'; +import { Key } from './key'; +import { KlarnaInfo } from './klarnaInfo'; +import { Links } from './links'; +import { LinksElement } from './linksElement'; +import { ListCompanyApiCredentialsResponse } from './listCompanyApiCredentialsResponse'; +import { ListCompanyResponse } from './listCompanyResponse'; +import { ListCompanyUsersResponse } from './listCompanyUsersResponse'; +import { ListExternalTerminalActionsResponse } from './listExternalTerminalActionsResponse'; +import { ListMerchantApiCredentialsResponse } from './listMerchantApiCredentialsResponse'; +import { ListMerchantResponse } from './listMerchantResponse'; +import { ListMerchantUsersResponse } from './listMerchantUsersResponse'; +import { ListStoresResponse } from './listStoresResponse'; +import { ListTerminalsResponse } from './listTerminalsResponse'; +import { ListWebhooksResponse } from './listWebhooksResponse'; +import { Localization } from './localization'; +import { Logo } from './logo'; +import { MeApiCredential } from './meApiCredential'; +import { MealVoucherFRInfo } from './mealVoucherFRInfo'; +import { Merchant } from './merchant'; +import { MerchantLinks } from './merchantLinks'; +import { MinorUnitsMonetaryValue } from './minorUnitsMonetaryValue'; +import { ModelFile } from './modelFile'; +import { Name } from './name'; +import { Name2 } from './name2'; +import { Nexo } from './nexo'; +import { Notification } from './notification'; +import { NotificationUrl } from './notificationUrl'; +import { NyceInfo } from './nyceInfo'; +import { OfflineProcessing } from './offlineProcessing'; +import { Opi } from './opi'; +import { OrderItem } from './orderItem'; +import { PaginationLinks } from './paginationLinks'; +import { Passcodes } from './passcodes'; +import { PayAtTable } from './payAtTable'; +import { PayByBankPlaidInfo } from './payByBankPlaidInfo'; +import { PayMeInfo } from './payMeInfo'; +import { PayPalInfo } from './payPalInfo'; +import { PayToInfo } from './payToInfo'; +import { Payment } from './payment'; +import { PaymentMethod } from './paymentMethod'; +import { PaymentMethodResponse } from './paymentMethodResponse'; +import { PaymentMethodSetupInfo } from './paymentMethodSetupInfo'; +import { PayoutSettings } from './payoutSettings'; +import { PayoutSettingsRequest } from './payoutSettingsRequest'; +import { PayoutSettingsResponse } from './payoutSettingsResponse'; +import { Profile } from './profile'; +import { PulseInfo } from './pulseInfo'; +import { ReceiptOptions } from './receiptOptions'; +import { ReceiptPrinting } from './receiptPrinting'; +import { Referenced } from './referenced'; +import { Refunds } from './refunds'; +import { ReleaseUpdateDetails } from './releaseUpdateDetails'; +import { ReprocessAndroidAppResponse } from './reprocessAndroidAppResponse'; +import { RequestActivationResponse } from './requestActivationResponse'; +import { RestServiceError } from './restServiceError'; +import { ScheduleTerminalActionsRequest } from './scheduleTerminalActionsRequest'; +import { ScheduleTerminalActionsResponse } from './scheduleTerminalActionsResponse'; +import { Settings } from './settings'; +import { ShippingLocation } from './shippingLocation'; +import { ShippingLocationsResponse } from './shippingLocationsResponse'; +import { Signature } from './signature'; +import { SodexoInfo } from './sodexoInfo'; +import { SofortInfo } from './sofortInfo'; +import { SplitConfiguration } from './splitConfiguration'; +import { SplitConfigurationList } from './splitConfigurationList'; +import { SplitConfigurationLogic } from './splitConfigurationLogic'; +import { SplitConfigurationRule } from './splitConfigurationRule'; +import { Standalone } from './standalone'; +import { StarInfo } from './starInfo'; +import { Store } from './store'; +import { StoreAndForward } from './storeAndForward'; +import { StoreCreationRequest } from './storeCreationRequest'; +import { StoreCreationWithMerchantCodeRequest } from './storeCreationWithMerchantCodeRequest'; +import { StoreLocation } from './storeLocation'; +import { StoreSplitConfiguration } from './storeSplitConfiguration'; +import { SubMerchantData } from './subMerchantData'; +import { SupportedCardTypes } from './supportedCardTypes'; +import { Surcharge } from './surcharge'; +import { SwishInfo } from './swishInfo'; +import { TapToPay } from './tapToPay'; +import { Terminal } from './terminal'; +import { TerminalActionScheduleDetail } from './terminalActionScheduleDetail'; +import { TerminalAssignment } from './terminalAssignment'; +import { TerminalConnectivity } from './terminalConnectivity'; +import { TerminalConnectivityBluetooth } from './terminalConnectivityBluetooth'; +import { TerminalConnectivityCellular } from './terminalConnectivityCellular'; +import { TerminalConnectivityEthernet } from './terminalConnectivityEthernet'; +import { TerminalConnectivityWifi } from './terminalConnectivityWifi'; +import { TerminalInstructions } from './terminalInstructions'; +import { TerminalModelsResponse } from './terminalModelsResponse'; +import { TerminalOrder } from './terminalOrder'; +import { TerminalOrderRequest } from './terminalOrderRequest'; +import { TerminalOrdersResponse } from './terminalOrdersResponse'; +import { TerminalProduct } from './terminalProduct'; +import { TerminalProductPrice } from './terminalProductPrice'; +import { TerminalProductsResponse } from './terminalProductsResponse'; +import { TerminalReassignmentRequest } from './terminalReassignmentRequest'; +import { TerminalReassignmentTarget } from './terminalReassignmentTarget'; +import { TerminalSettings } from './terminalSettings'; +import { TestCompanyWebhookRequest } from './testCompanyWebhookRequest'; +import { TestOutput } from './testOutput'; +import { TestWebhookRequest } from './testWebhookRequest'; +import { TestWebhookResponse } from './testWebhookResponse'; +import { TicketInfo } from './ticketInfo'; +import { Timeouts } from './timeouts'; +import { TransactionDescriptionInfo } from './transactionDescriptionInfo'; +import { TwintInfo } from './twintInfo'; +import { UninstallAndroidAppDetails } from './uninstallAndroidAppDetails'; +import { UninstallAndroidCertificateDetails } from './uninstallAndroidCertificateDetails'; +import { UpdatableAddress } from './updatableAddress'; +import { UpdateCompanyApiCredentialRequest } from './updateCompanyApiCredentialRequest'; +import { UpdateCompanyUserRequest } from './updateCompanyUserRequest'; +import { UpdateCompanyWebhookRequest } from './updateCompanyWebhookRequest'; +import { UpdateMerchantApiCredentialRequest } from './updateMerchantApiCredentialRequest'; +import { UpdateMerchantUserRequest } from './updateMerchantUserRequest'; +import { UpdateMerchantWebhookRequest } from './updateMerchantWebhookRequest'; +import { UpdatePaymentMethodInfo } from './updatePaymentMethodInfo'; +import { UpdatePayoutSettingsRequest } from './updatePayoutSettingsRequest'; +import { UpdateSplitConfigurationLogicRequest } from './updateSplitConfigurationLogicRequest'; +import { UpdateSplitConfigurationRequest } from './updateSplitConfigurationRequest'; +import { UpdateSplitConfigurationRuleRequest } from './updateSplitConfigurationRuleRequest'; +import { UpdateStoreRequest } from './updateStoreRequest'; +import { UploadAndroidAppResponse } from './uploadAndroidAppResponse'; +import { UploadAndroidCertificateResponse } from './uploadAndroidCertificateResponse'; +import { Url } from './url'; +import { User } from './user'; +import { VippsInfo } from './vippsInfo'; +import { WeChatPayInfo } from './weChatPayInfo'; +import { WeChatPayPosInfo } from './weChatPayPosInfo'; +import { Webhook } from './webhook'; +import { WebhookLinks } from './webhookLinks'; +import { WifiProfiles } from './wifiProfiles'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "AccelInfo.ProcessingTypeEnum": AccelInfo.ProcessingTypeEnum, + "AmexInfo.ServiceLevelEnum": AmexInfo.ServiceLevelEnum, + "AndroidApp.StatusEnum": AndroidApp.StatusEnum, + "Connectivity.SimcardStatusEnum": Connectivity.SimcardStatusEnum, + "CreateCompanyWebhookRequest.CommunicationFormatEnum": CreateCompanyWebhookRequest.CommunicationFormatEnum, + "CreateCompanyWebhookRequest.EncryptionProtocolEnum": CreateCompanyWebhookRequest.EncryptionProtocolEnum, + "CreateCompanyWebhookRequest.FilterMerchantAccountTypeEnum": CreateCompanyWebhookRequest.FilterMerchantAccountTypeEnum, + "CreateCompanyWebhookRequest.NetworkTypeEnum": CreateCompanyWebhookRequest.NetworkTypeEnum, + "CreateMerchantWebhookRequest.CommunicationFormatEnum": CreateMerchantWebhookRequest.CommunicationFormatEnum, + "CreateMerchantWebhookRequest.EncryptionProtocolEnum": CreateMerchantWebhookRequest.EncryptionProtocolEnum, + "CreateMerchantWebhookRequest.NetworkTypeEnum": CreateMerchantWebhookRequest.NetworkTypeEnum, + "DinersInfo.ServiceLevelEnum": DinersInfo.ServiceLevelEnum, + "InstallAndroidAppDetails.TypeEnum": InstallAndroidAppDetails.TypeEnum, + "InstallAndroidCertificateDetails.TypeEnum": InstallAndroidCertificateDetails.TypeEnum, + "JCBInfo.ServiceLevelEnum": JCBInfo.ServiceLevelEnum, + "KlarnaInfo.RegionEnum": KlarnaInfo.RegionEnum, + "Notification.CategoryEnum": Notification.CategoryEnum, + "NyceInfo.ProcessingTypeEnum": NyceInfo.ProcessingTypeEnum, + "PayAtTable.AuthenticationMethodEnum": PayAtTable.AuthenticationMethodEnum, + "PayAtTable.PaymentInstrumentEnum": PayAtTable.PaymentInstrumentEnum, + "PaymentMethod.VerificationStatusEnum": PaymentMethod.VerificationStatusEnum, + "PaymentMethodResponse.TypesWithErrorsEnum": PaymentMethodResponse.TypesWithErrorsEnum, + "PaymentMethodSetupInfo.ShopperInteractionEnum": PaymentMethodSetupInfo.ShopperInteractionEnum, + "PaymentMethodSetupInfo.TypeEnum": PaymentMethodSetupInfo.TypeEnum, + "PayoutSettings.PriorityEnum": PayoutSettings.PriorityEnum, + "PayoutSettings.VerificationStatusEnum": PayoutSettings.VerificationStatusEnum, + "PulseInfo.ProcessingTypeEnum": PulseInfo.ProcessingTypeEnum, + "ReleaseUpdateDetails.TypeEnum": ReleaseUpdateDetails.TypeEnum, + "SplitConfigurationLogic.AcquiringFeesEnum": SplitConfigurationLogic.AcquiringFeesEnum, + "SplitConfigurationLogic.AdyenCommissionEnum": SplitConfigurationLogic.AdyenCommissionEnum, + "SplitConfigurationLogic.AdyenFeesEnum": SplitConfigurationLogic.AdyenFeesEnum, + "SplitConfigurationLogic.AdyenMarkupEnum": SplitConfigurationLogic.AdyenMarkupEnum, + "SplitConfigurationLogic.ChargebackEnum": SplitConfigurationLogic.ChargebackEnum, + "SplitConfigurationLogic.ChargebackCostAllocationEnum": SplitConfigurationLogic.ChargebackCostAllocationEnum, + "SplitConfigurationLogic.InterchangeEnum": SplitConfigurationLogic.InterchangeEnum, + "SplitConfigurationLogic.PaymentFeeEnum": SplitConfigurationLogic.PaymentFeeEnum, + "SplitConfigurationLogic.RefundEnum": SplitConfigurationLogic.RefundEnum, + "SplitConfigurationLogic.RefundCostAllocationEnum": SplitConfigurationLogic.RefundCostAllocationEnum, + "SplitConfigurationLogic.RemainderEnum": SplitConfigurationLogic.RemainderEnum, + "SplitConfigurationLogic.SchemeFeeEnum": SplitConfigurationLogic.SchemeFeeEnum, + "SplitConfigurationLogic.SurchargeEnum": SplitConfigurationLogic.SurchargeEnum, + "SplitConfigurationLogic.TipEnum": SplitConfigurationLogic.TipEnum, + "SplitConfigurationRule.FundingSourceEnum": SplitConfigurationRule.FundingSourceEnum, + "SplitConfigurationRule.ShopperInteractionEnum": SplitConfigurationRule.ShopperInteractionEnum, + "StarInfo.ProcessingTypeEnum": StarInfo.ProcessingTypeEnum, + "Store.StatusEnum": Store.StatusEnum, + "TerminalAssignment.StatusEnum": TerminalAssignment.StatusEnum, + "TerminalConnectivityCellular.StatusEnum": TerminalConnectivityCellular.StatusEnum, + "TransactionDescriptionInfo.TypeEnum": TransactionDescriptionInfo.TypeEnum, + "UninstallAndroidAppDetails.TypeEnum": UninstallAndroidAppDetails.TypeEnum, + "UninstallAndroidCertificateDetails.TypeEnum": UninstallAndroidCertificateDetails.TypeEnum, + "UpdateCompanyWebhookRequest.CommunicationFormatEnum": UpdateCompanyWebhookRequest.CommunicationFormatEnum, + "UpdateCompanyWebhookRequest.EncryptionProtocolEnum": UpdateCompanyWebhookRequest.EncryptionProtocolEnum, + "UpdateCompanyWebhookRequest.FilterMerchantAccountTypeEnum": UpdateCompanyWebhookRequest.FilterMerchantAccountTypeEnum, + "UpdateCompanyWebhookRequest.NetworkTypeEnum": UpdateCompanyWebhookRequest.NetworkTypeEnum, + "UpdateMerchantWebhookRequest.CommunicationFormatEnum": UpdateMerchantWebhookRequest.CommunicationFormatEnum, + "UpdateMerchantWebhookRequest.EncryptionProtocolEnum": UpdateMerchantWebhookRequest.EncryptionProtocolEnum, + "UpdateMerchantWebhookRequest.NetworkTypeEnum": UpdateMerchantWebhookRequest.NetworkTypeEnum, + "UpdateSplitConfigurationLogicRequest.AcquiringFeesEnum": UpdateSplitConfigurationLogicRequest.AcquiringFeesEnum, + "UpdateSplitConfigurationLogicRequest.AdyenCommissionEnum": UpdateSplitConfigurationLogicRequest.AdyenCommissionEnum, + "UpdateSplitConfigurationLogicRequest.AdyenFeesEnum": UpdateSplitConfigurationLogicRequest.AdyenFeesEnum, + "UpdateSplitConfigurationLogicRequest.AdyenMarkupEnum": UpdateSplitConfigurationLogicRequest.AdyenMarkupEnum, + "UpdateSplitConfigurationLogicRequest.ChargebackEnum": UpdateSplitConfigurationLogicRequest.ChargebackEnum, + "UpdateSplitConfigurationLogicRequest.ChargebackCostAllocationEnum": UpdateSplitConfigurationLogicRequest.ChargebackCostAllocationEnum, + "UpdateSplitConfigurationLogicRequest.InterchangeEnum": UpdateSplitConfigurationLogicRequest.InterchangeEnum, + "UpdateSplitConfigurationLogicRequest.PaymentFeeEnum": UpdateSplitConfigurationLogicRequest.PaymentFeeEnum, + "UpdateSplitConfigurationLogicRequest.RefundEnum": UpdateSplitConfigurationLogicRequest.RefundEnum, + "UpdateSplitConfigurationLogicRequest.RefundCostAllocationEnum": UpdateSplitConfigurationLogicRequest.RefundCostAllocationEnum, + "UpdateSplitConfigurationLogicRequest.RemainderEnum": UpdateSplitConfigurationLogicRequest.RemainderEnum, + "UpdateSplitConfigurationLogicRequest.SchemeFeeEnum": UpdateSplitConfigurationLogicRequest.SchemeFeeEnum, + "UpdateSplitConfigurationLogicRequest.SurchargeEnum": UpdateSplitConfigurationLogicRequest.SurchargeEnum, + "UpdateSplitConfigurationLogicRequest.TipEnum": UpdateSplitConfigurationLogicRequest.TipEnum, + "UpdateStoreRequest.StatusEnum": UpdateStoreRequest.StatusEnum, + "Webhook.CommunicationFormatEnum": Webhook.CommunicationFormatEnum, + "Webhook.EncryptionProtocolEnum": Webhook.EncryptionProtocolEnum, + "Webhook.FilterMerchantAccountTypeEnum": Webhook.FilterMerchantAccountTypeEnum, + "Webhook.NetworkTypeEnum": Webhook.NetworkTypeEnum, +} + +let typeMap: {[index: string]: any} = { + "AccelInfo": AccelInfo, + "AdditionalCommission": AdditionalCommission, + "AdditionalSettings": AdditionalSettings, + "AdditionalSettingsResponse": AdditionalSettingsResponse, + "Address": Address, + "AffirmInfo": AffirmInfo, + "AfterpayTouchInfo": AfterpayTouchInfo, + "AlipayPlusInfo": AlipayPlusInfo, + "AllowedOrigin": AllowedOrigin, + "AllowedOriginsResponse": AllowedOriginsResponse, + "AmexInfo": AmexInfo, + "Amount": Amount, + "AndroidApp": AndroidApp, + "AndroidAppError": AndroidAppError, + "AndroidAppsResponse": AndroidAppsResponse, + "AndroidCertificate": AndroidCertificate, + "AndroidCertificatesResponse": AndroidCertificatesResponse, + "ApiCredential": ApiCredential, + "ApiCredentialLinks": ApiCredentialLinks, + "ApplePayInfo": ApplePayInfo, + "BcmcInfo": BcmcInfo, + "BillingEntitiesResponse": BillingEntitiesResponse, + "BillingEntity": BillingEntity, + "CardholderReceipt": CardholderReceipt, + "CartesBancairesInfo": CartesBancairesInfo, + "ClearpayInfo": ClearpayInfo, + "Commission": Commission, + "Company": Company, + "CompanyApiCredential": CompanyApiCredential, + "CompanyLinks": CompanyLinks, + "CompanyUser": CompanyUser, + "Configuration": Configuration, + "Connectivity": Connectivity, + "Contact": Contact, + "CreateAllowedOriginRequest": CreateAllowedOriginRequest, + "CreateApiCredentialResponse": CreateApiCredentialResponse, + "CreateCompanyApiCredentialRequest": CreateCompanyApiCredentialRequest, + "CreateCompanyApiCredentialResponse": CreateCompanyApiCredentialResponse, + "CreateCompanyUserRequest": CreateCompanyUserRequest, + "CreateCompanyUserResponse": CreateCompanyUserResponse, + "CreateCompanyWebhookRequest": CreateCompanyWebhookRequest, + "CreateMerchantApiCredentialRequest": CreateMerchantApiCredentialRequest, + "CreateMerchantRequest": CreateMerchantRequest, + "CreateMerchantResponse": CreateMerchantResponse, + "CreateMerchantUserRequest": CreateMerchantUserRequest, + "CreateMerchantWebhookRequest": CreateMerchantWebhookRequest, + "CreateUserResponse": CreateUserResponse, + "Currency": Currency, + "CustomNotification": CustomNotification, + "DataCenter": DataCenter, + "DinersInfo": DinersInfo, + "EventUrl": EventUrl, + "ExternalTerminalAction": ExternalTerminalAction, + "GenerateApiKeyResponse": GenerateApiKeyResponse, + "GenerateClientKeyResponse": GenerateClientKeyResponse, + "GenerateHmacKeyResponse": GenerateHmacKeyResponse, + "GenericPmWithTdiInfo": GenericPmWithTdiInfo, + "GooglePayInfo": GooglePayInfo, + "Gratuity": Gratuity, + "Hardware": Hardware, + "IdName": IdName, + "InstallAndroidAppDetails": InstallAndroidAppDetails, + "InstallAndroidCertificateDetails": InstallAndroidCertificateDetails, + "InvalidField": InvalidField, + "JCBInfo": JCBInfo, + "Key": Key, + "KlarnaInfo": KlarnaInfo, + "Links": Links, + "LinksElement": LinksElement, + "ListCompanyApiCredentialsResponse": ListCompanyApiCredentialsResponse, + "ListCompanyResponse": ListCompanyResponse, + "ListCompanyUsersResponse": ListCompanyUsersResponse, + "ListExternalTerminalActionsResponse": ListExternalTerminalActionsResponse, + "ListMerchantApiCredentialsResponse": ListMerchantApiCredentialsResponse, + "ListMerchantResponse": ListMerchantResponse, + "ListMerchantUsersResponse": ListMerchantUsersResponse, + "ListStoresResponse": ListStoresResponse, + "ListTerminalsResponse": ListTerminalsResponse, + "ListWebhooksResponse": ListWebhooksResponse, + "Localization": Localization, + "Logo": Logo, + "MeApiCredential": MeApiCredential, + "MealVoucherFRInfo": MealVoucherFRInfo, + "Merchant": Merchant, + "MerchantLinks": MerchantLinks, + "MinorUnitsMonetaryValue": MinorUnitsMonetaryValue, + "ModelFile": ModelFile, + "Name": Name, + "Name2": Name2, + "Nexo": Nexo, + "Notification": Notification, + "NotificationUrl": NotificationUrl, + "NyceInfo": NyceInfo, + "OfflineProcessing": OfflineProcessing, + "Opi": Opi, + "OrderItem": OrderItem, + "PaginationLinks": PaginationLinks, + "Passcodes": Passcodes, + "PayAtTable": PayAtTable, + "PayByBankPlaidInfo": PayByBankPlaidInfo, + "PayMeInfo": PayMeInfo, + "PayPalInfo": PayPalInfo, + "PayToInfo": PayToInfo, + "Payment": Payment, + "PaymentMethod": PaymentMethod, + "PaymentMethodResponse": PaymentMethodResponse, + "PaymentMethodSetupInfo": PaymentMethodSetupInfo, + "PayoutSettings": PayoutSettings, + "PayoutSettingsRequest": PayoutSettingsRequest, + "PayoutSettingsResponse": PayoutSettingsResponse, + "Profile": Profile, + "PulseInfo": PulseInfo, + "ReceiptOptions": ReceiptOptions, + "ReceiptPrinting": ReceiptPrinting, + "Referenced": Referenced, + "Refunds": Refunds, + "ReleaseUpdateDetails": ReleaseUpdateDetails, + "ReprocessAndroidAppResponse": ReprocessAndroidAppResponse, + "RequestActivationResponse": RequestActivationResponse, + "RestServiceError": RestServiceError, + "ScheduleTerminalActionsRequest": ScheduleTerminalActionsRequest, + "ScheduleTerminalActionsResponse": ScheduleTerminalActionsResponse, + "Settings": Settings, + "ShippingLocation": ShippingLocation, + "ShippingLocationsResponse": ShippingLocationsResponse, + "Signature": Signature, + "SodexoInfo": SodexoInfo, + "SofortInfo": SofortInfo, + "SplitConfiguration": SplitConfiguration, + "SplitConfigurationList": SplitConfigurationList, + "SplitConfigurationLogic": SplitConfigurationLogic, + "SplitConfigurationRule": SplitConfigurationRule, + "Standalone": Standalone, + "StarInfo": StarInfo, + "Store": Store, + "StoreAndForward": StoreAndForward, + "StoreCreationRequest": StoreCreationRequest, + "StoreCreationWithMerchantCodeRequest": StoreCreationWithMerchantCodeRequest, + "StoreLocation": StoreLocation, + "StoreSplitConfiguration": StoreSplitConfiguration, + "SubMerchantData": SubMerchantData, + "SupportedCardTypes": SupportedCardTypes, + "Surcharge": Surcharge, + "SwishInfo": SwishInfo, + "TapToPay": TapToPay, + "Terminal": Terminal, + "TerminalActionScheduleDetail": TerminalActionScheduleDetail, + "TerminalAssignment": TerminalAssignment, + "TerminalConnectivity": TerminalConnectivity, + "TerminalConnectivityBluetooth": TerminalConnectivityBluetooth, + "TerminalConnectivityCellular": TerminalConnectivityCellular, + "TerminalConnectivityEthernet": TerminalConnectivityEthernet, + "TerminalConnectivityWifi": TerminalConnectivityWifi, + "TerminalInstructions": TerminalInstructions, + "TerminalModelsResponse": TerminalModelsResponse, + "TerminalOrder": TerminalOrder, + "TerminalOrderRequest": TerminalOrderRequest, + "TerminalOrdersResponse": TerminalOrdersResponse, + "TerminalProduct": TerminalProduct, + "TerminalProductPrice": TerminalProductPrice, + "TerminalProductsResponse": TerminalProductsResponse, + "TerminalReassignmentRequest": TerminalReassignmentRequest, + "TerminalReassignmentTarget": TerminalReassignmentTarget, + "TerminalSettings": TerminalSettings, + "TestCompanyWebhookRequest": TestCompanyWebhookRequest, + "TestOutput": TestOutput, + "TestWebhookRequest": TestWebhookRequest, + "TestWebhookResponse": TestWebhookResponse, + "TicketInfo": TicketInfo, + "Timeouts": Timeouts, + "TransactionDescriptionInfo": TransactionDescriptionInfo, + "TwintInfo": TwintInfo, + "UninstallAndroidAppDetails": UninstallAndroidAppDetails, + "UninstallAndroidCertificateDetails": UninstallAndroidCertificateDetails, + "UpdatableAddress": UpdatableAddress, + "UpdateCompanyApiCredentialRequest": UpdateCompanyApiCredentialRequest, + "UpdateCompanyUserRequest": UpdateCompanyUserRequest, + "UpdateCompanyWebhookRequest": UpdateCompanyWebhookRequest, + "UpdateMerchantApiCredentialRequest": UpdateMerchantApiCredentialRequest, + "UpdateMerchantUserRequest": UpdateMerchantUserRequest, + "UpdateMerchantWebhookRequest": UpdateMerchantWebhookRequest, + "UpdatePaymentMethodInfo": UpdatePaymentMethodInfo, + "UpdatePayoutSettingsRequest": UpdatePayoutSettingsRequest, + "UpdateSplitConfigurationLogicRequest": UpdateSplitConfigurationLogicRequest, + "UpdateSplitConfigurationRequest": UpdateSplitConfigurationRequest, + "UpdateSplitConfigurationRuleRequest": UpdateSplitConfigurationRuleRequest, + "UpdateStoreRequest": UpdateStoreRequest, + "UploadAndroidAppResponse": UploadAndroidAppResponse, + "UploadAndroidCertificateResponse": UploadAndroidCertificateResponse, + "Url": Url, + "User": User, + "VippsInfo": VippsInfo, + "WeChatPayInfo": WeChatPayInfo, + "WeChatPayPosInfo": WeChatPayPosInfo, + "Webhook": Webhook, + "WebhookLinks": WebhookLinks, + "WifiProfiles": WifiProfiles, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/management/name.ts b/src/typings/management/name.ts index ef7d41ce3..fb8c911bb 100644 --- a/src/typings/management/name.ts +++ b/src/typings/management/name.ts @@ -12,35 +12,28 @@ export class Name { /** * The first name. */ - "firstName": string; + 'firstName': string; /** * The last name. */ - "lastName": string; + 'lastName': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "firstName", "baseName": "firstName", - "type": "string", - "format": "" + "type": "string" }, { "name": "lastName", "baseName": "lastName", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Name.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/name2.ts b/src/typings/management/name2.ts index 505d42b00..a2024957c 100644 --- a/src/typings/management/name2.ts +++ b/src/typings/management/name2.ts @@ -12,35 +12,28 @@ export class Name2 { /** * The first name. */ - "firstName"?: string; + 'firstName'?: string; /** * The last name. */ - "lastName"?: string; + 'lastName'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "firstName", "baseName": "firstName", - "type": "string", - "format": "" + "type": "string" }, { "name": "lastName", "baseName": "lastName", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Name2.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/nexo.ts b/src/typings/management/nexo.ts index 60a9c84d4..c9864f38e 100644 --- a/src/typings/management/nexo.ts +++ b/src/typings/management/nexo.ts @@ -7,66 +7,55 @@ * Do not edit this class manually. */ -import { EventUrl } from "./eventUrl"; -import { Key } from "./key"; -import { Notification } from "./notification"; -import { NotificationUrl } from "./notificationUrl"; - +import { EventUrl } from './eventUrl'; +import { Key } from './key'; +import { Notification } from './notification'; +import { NotificationUrl } from './notificationUrl'; export class Nexo { - "displayUrls"?: NotificationUrl | null; - "encryptionKey"?: Key | null; - "eventUrls"?: EventUrl | null; + 'displayUrls'?: NotificationUrl | null; + 'encryptionKey'?: Key | null; + 'eventUrls'?: EventUrl | null; /** * One or more URLs to send event messages to when using Terminal API. * * @deprecated since Management API v1 * Use `eventUrls` instead. */ - "nexoEventUrls"?: Array; - "notification"?: Notification | null; - - static readonly discriminator: string | undefined = undefined; + 'nexoEventUrls'?: Array; + 'notification'?: Notification | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "displayUrls", "baseName": "displayUrls", - "type": "NotificationUrl | null", - "format": "" + "type": "NotificationUrl | null" }, { "name": "encryptionKey", "baseName": "encryptionKey", - "type": "Key | null", - "format": "" + "type": "Key | null" }, { "name": "eventUrls", "baseName": "eventUrls", - "type": "EventUrl | null", - "format": "" + "type": "EventUrl | null" }, { "name": "nexoEventUrls", "baseName": "nexoEventUrls", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "notification", "baseName": "notification", - "type": "Notification | null", - "format": "" + "type": "Notification | null" } ]; static getAttributeTypeMap() { return Nexo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/notification.ts b/src/typings/management/notification.ts index a02bbfe7e..df873eb11 100644 --- a/src/typings/management/notification.ts +++ b/src/typings/management/notification.ts @@ -12,66 +12,56 @@ export class Notification { /** * The type of event notification sent when you select the notification button. */ - "category"?: Notification.CategoryEnum; + 'category'?: Notification.CategoryEnum; /** * The text shown in the prompt which opens when you select the notification button. For example, the description of the input box for pay-at-table. */ - "details"?: string; + 'details'?: string; /** * Enables sending event notifications either by pressing the Confirm key on terminals with a keypad or by tapping the event notification button on the terminal screen. */ - "enabled"?: boolean; + 'enabled'?: boolean; /** * Shows or hides the event notification button on the screen of terminal models that have a keypad. */ - "showButton"?: boolean; + 'showButton'?: boolean; /** * The name of the notification button on the terminal screen. */ - "title"?: string; + 'title'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "category", "baseName": "category", - "type": "Notification.CategoryEnum", - "format": "" + "type": "Notification.CategoryEnum" }, { "name": "details", "baseName": "details", - "type": "string", - "format": "" + "type": "string" }, { "name": "enabled", "baseName": "enabled", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "showButton", "baseName": "showButton", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "title", "baseName": "title", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Notification.attributeTypeMap; } - - public constructor() { - } } export namespace Notification { diff --git a/src/typings/management/notificationUrl.ts b/src/typings/management/notificationUrl.ts index f8640fcdb..3464dcdd7 100644 --- a/src/typings/management/notificationUrl.ts +++ b/src/typings/management/notificationUrl.ts @@ -7,42 +7,34 @@ * Do not edit this class manually. */ -import { Url } from "./url"; - +import { Url } from './url'; export class NotificationUrl { /** * One or more local URLs to send notifications to when using Terminal API. */ - "localUrls"?: Array; + 'localUrls'?: Array; /** * One or more public URLs to send notifications to when using Terminal API. */ - "publicUrls"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'publicUrls'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "localUrls", "baseName": "localUrls", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "publicUrls", "baseName": "publicUrls", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return NotificationUrl.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/nyceInfo.ts b/src/typings/management/nyceInfo.ts index 2fd188349..72bcd1f1e 100644 --- a/src/typings/management/nyceInfo.ts +++ b/src/typings/management/nyceInfo.ts @@ -7,40 +7,32 @@ * Do not edit this class manually. */ -import { TransactionDescriptionInfo } from "./transactionDescriptionInfo"; - +import { TransactionDescriptionInfo } from './transactionDescriptionInfo'; export class NyceInfo { /** * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. */ - "processingType": NyceInfo.ProcessingTypeEnum; - "transactionDescription"?: TransactionDescriptionInfo | null; - - static readonly discriminator: string | undefined = undefined; + 'processingType': NyceInfo.ProcessingTypeEnum; + 'transactionDescription'?: TransactionDescriptionInfo | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "processingType", "baseName": "processingType", - "type": "NyceInfo.ProcessingTypeEnum", - "format": "" + "type": "NyceInfo.ProcessingTypeEnum" }, { "name": "transactionDescription", "baseName": "transactionDescription", - "type": "TransactionDescriptionInfo | null", - "format": "" + "type": "TransactionDescriptionInfo | null" } ]; static getAttributeTypeMap() { return NyceInfo.attributeTypeMap; } - - public constructor() { - } } export namespace NyceInfo { diff --git a/src/typings/management/objectSerializer.ts b/src/typings/management/objectSerializer.ts deleted file mode 100644 index 77debe619..000000000 --- a/src/typings/management/objectSerializer.ts +++ /dev/null @@ -1,816 +0,0 @@ -export * from "./models"; - -import { AccelInfo } from "./accelInfo"; -import { AdditionalCommission } from "./additionalCommission"; -import { AdditionalSettings } from "./additionalSettings"; -import { AdditionalSettingsResponse } from "./additionalSettingsResponse"; -import { Address } from "./address"; -import { AffirmInfo } from "./affirmInfo"; -import { AfterpayTouchInfo } from "./afterpayTouchInfo"; -import { AllowedOrigin } from "./allowedOrigin"; -import { AllowedOriginsResponse } from "./allowedOriginsResponse"; -import { AmexInfo } from "./amexInfo"; -import { Amount } from "./amount"; -import { AndroidApp } from "./androidApp"; -import { AndroidAppError } from "./androidAppError"; -import { AndroidAppsResponse } from "./androidAppsResponse"; -import { AndroidCertificate } from "./androidCertificate"; -import { AndroidCertificatesResponse } from "./androidCertificatesResponse"; -import { ApiCredential } from "./apiCredential"; -import { ApiCredentialLinks } from "./apiCredentialLinks"; -import { ApplePayInfo } from "./applePayInfo"; -import { BcmcInfo } from "./bcmcInfo"; -import { BillingEntitiesResponse } from "./billingEntitiesResponse"; -import { BillingEntity } from "./billingEntity"; -import { CardholderReceipt } from "./cardholderReceipt"; -import { CartesBancairesInfo } from "./cartesBancairesInfo"; -import { ClearpayInfo } from "./clearpayInfo"; -import { Commission } from "./commission"; -import { Company } from "./company"; -import { CompanyApiCredential } from "./companyApiCredential"; -import { CompanyLinks } from "./companyLinks"; -import { CompanyUser } from "./companyUser"; -import { Configuration } from "./configuration"; -import { Connectivity } from "./connectivity"; -import { Contact } from "./contact"; -import { CreateAllowedOriginRequest } from "./createAllowedOriginRequest"; -import { CreateApiCredentialResponse } from "./createApiCredentialResponse"; -import { CreateCompanyApiCredentialRequest } from "./createCompanyApiCredentialRequest"; -import { CreateCompanyApiCredentialResponse } from "./createCompanyApiCredentialResponse"; -import { CreateCompanyUserRequest } from "./createCompanyUserRequest"; -import { CreateCompanyUserResponse } from "./createCompanyUserResponse"; -import { CreateCompanyWebhookRequest } from "./createCompanyWebhookRequest"; -import { CreateMerchantApiCredentialRequest } from "./createMerchantApiCredentialRequest"; -import { CreateMerchantRequest } from "./createMerchantRequest"; -import { CreateMerchantResponse } from "./createMerchantResponse"; -import { CreateMerchantUserRequest } from "./createMerchantUserRequest"; -import { CreateMerchantWebhookRequest } from "./createMerchantWebhookRequest"; -import { CreateUserResponse } from "./createUserResponse"; -import { Currency } from "./currency"; -import { CustomNotification } from "./customNotification"; -import { DataCenter } from "./dataCenter"; -import { DinersInfo } from "./dinersInfo"; -import { EventUrl } from "./eventUrl"; -import { ExternalTerminalAction } from "./externalTerminalAction"; -import { GenerateApiKeyResponse } from "./generateApiKeyResponse"; -import { GenerateClientKeyResponse } from "./generateClientKeyResponse"; -import { GenerateHmacKeyResponse } from "./generateHmacKeyResponse"; -import { GenericPmWithTdiInfo } from "./genericPmWithTdiInfo"; -import { GooglePayInfo } from "./googlePayInfo"; -import { Gratuity } from "./gratuity"; -import { Hardware } from "./hardware"; -import { IdName } from "./idName"; -import { InstallAndroidAppDetails } from "./installAndroidAppDetails"; -import { InstallAndroidCertificateDetails } from "./installAndroidCertificateDetails"; -import { InvalidField } from "./invalidField"; -import { JCBInfo } from "./jCBInfo"; -import { Key } from "./key"; -import { KlarnaInfo } from "./klarnaInfo"; -import { Links } from "./links"; -import { LinksElement } from "./linksElement"; -import { ListCompanyApiCredentialsResponse } from "./listCompanyApiCredentialsResponse"; -import { ListCompanyResponse } from "./listCompanyResponse"; -import { ListCompanyUsersResponse } from "./listCompanyUsersResponse"; -import { ListExternalTerminalActionsResponse } from "./listExternalTerminalActionsResponse"; -import { ListMerchantApiCredentialsResponse } from "./listMerchantApiCredentialsResponse"; -import { ListMerchantResponse } from "./listMerchantResponse"; -import { ListMerchantUsersResponse } from "./listMerchantUsersResponse"; -import { ListStoresResponse } from "./listStoresResponse"; -import { ListTerminalsResponse } from "./listTerminalsResponse"; -import { ListWebhooksResponse } from "./listWebhooksResponse"; -import { Localization } from "./localization"; -import { Logo } from "./logo"; -import { MeApiCredential } from "./meApiCredential"; -import { MealVoucherFRInfo } from "./mealVoucherFRInfo"; -import { Merchant } from "./merchant"; -import { MerchantLinks } from "./merchantLinks"; -import { MinorUnitsMonetaryValue } from "./minorUnitsMonetaryValue"; -import { ModelFile } from "./modelFile"; -import { Name } from "./name"; -import { Name2 } from "./name2"; -import { Nexo } from "./nexo"; -import { Notification } from "./notification"; -import { NotificationUrl } from "./notificationUrl"; -import { NyceInfo } from "./nyceInfo"; -import { OfflineProcessing } from "./offlineProcessing"; -import { Opi } from "./opi"; -import { OrderItem } from "./orderItem"; -import { PaginationLinks } from "./paginationLinks"; -import { Passcodes } from "./passcodes"; -import { PayAtTable } from "./payAtTable"; -import { PayByBankPlaidInfo } from "./payByBankPlaidInfo"; -import { PayMeInfo } from "./payMeInfo"; -import { PayPalInfo } from "./payPalInfo"; -import { PayToInfo } from "./payToInfo"; -import { Payment } from "./payment"; -import { PaymentMethod } from "./paymentMethod"; -import { PaymentMethodResponse } from "./paymentMethodResponse"; -import { PaymentMethodSetupInfo } from "./paymentMethodSetupInfo"; -import { PayoutSettings } from "./payoutSettings"; -import { PayoutSettingsRequest } from "./payoutSettingsRequest"; -import { PayoutSettingsResponse } from "./payoutSettingsResponse"; -import { Profile } from "./profile"; -import { PulseInfo } from "./pulseInfo"; -import { ReceiptOptions } from "./receiptOptions"; -import { ReceiptPrinting } from "./receiptPrinting"; -import { Referenced } from "./referenced"; -import { Refunds } from "./refunds"; -import { ReleaseUpdateDetails } from "./releaseUpdateDetails"; -import { ReprocessAndroidAppResponse } from "./reprocessAndroidAppResponse"; -import { RequestActivationResponse } from "./requestActivationResponse"; -import { RestServiceError } from "./restServiceError"; -import { ScheduleTerminalActionsRequest } from "./scheduleTerminalActionsRequest"; -import { ScheduleTerminalActionsRequestActionDetailsClass } from "./scheduleTerminalActionsRequestActionDetails"; -import { ScheduleTerminalActionsResponse } from "./scheduleTerminalActionsResponse"; -import { Settings } from "./settings"; -import { ShippingLocation } from "./shippingLocation"; -import { ShippingLocationsResponse } from "./shippingLocationsResponse"; -import { Signature } from "./signature"; -import { SodexoInfo } from "./sodexoInfo"; -import { SofortInfo } from "./sofortInfo"; -import { SplitConfiguration } from "./splitConfiguration"; -import { SplitConfigurationList } from "./splitConfigurationList"; -import { SplitConfigurationLogic } from "./splitConfigurationLogic"; -import { SplitConfigurationRule } from "./splitConfigurationRule"; -import { Standalone } from "./standalone"; -import { StarInfo } from "./starInfo"; -import { Store } from "./store"; -import { StoreAndForward } from "./storeAndForward"; -import { StoreCreationRequest } from "./storeCreationRequest"; -import { StoreCreationWithMerchantCodeRequest } from "./storeCreationWithMerchantCodeRequest"; -import { StoreLocation } from "./storeLocation"; -import { StoreSplitConfiguration } from "./storeSplitConfiguration"; -import { SubMerchantData } from "./subMerchantData"; -import { SupportedCardTypes } from "./supportedCardTypes"; -import { Surcharge } from "./surcharge"; -import { SwishInfo } from "./swishInfo"; -import { TapToPay } from "./tapToPay"; -import { Terminal } from "./terminal"; -import { TerminalActionScheduleDetail } from "./terminalActionScheduleDetail"; -import { TerminalAssignment } from "./terminalAssignment"; -import { TerminalConnectivity } from "./terminalConnectivity"; -import { TerminalConnectivityBluetooth } from "./terminalConnectivityBluetooth"; -import { TerminalConnectivityCellular } from "./terminalConnectivityCellular"; -import { TerminalConnectivityEthernet } from "./terminalConnectivityEthernet"; -import { TerminalConnectivityWifi } from "./terminalConnectivityWifi"; -import { TerminalInstructions } from "./terminalInstructions"; -import { TerminalModelsResponse } from "./terminalModelsResponse"; -import { TerminalOrder } from "./terminalOrder"; -import { TerminalOrderRequest } from "./terminalOrderRequest"; -import { TerminalOrdersResponse } from "./terminalOrdersResponse"; -import { TerminalProduct } from "./terminalProduct"; -import { TerminalProductPrice } from "./terminalProductPrice"; -import { TerminalProductsResponse } from "./terminalProductsResponse"; -import { TerminalReassignmentRequest } from "./terminalReassignmentRequest"; -import { TerminalReassignmentTarget } from "./terminalReassignmentTarget"; -import { TerminalSettings } from "./terminalSettings"; -import { TestCompanyWebhookRequest } from "./testCompanyWebhookRequest"; -import { TestOutput } from "./testOutput"; -import { TestWebhookRequest } from "./testWebhookRequest"; -import { TestWebhookResponse } from "./testWebhookResponse"; -import { TicketInfo } from "./ticketInfo"; -import { Timeouts } from "./timeouts"; -import { TransactionDescriptionInfo } from "./transactionDescriptionInfo"; -import { TwintInfo } from "./twintInfo"; -import { UninstallAndroidAppDetails } from "./uninstallAndroidAppDetails"; -import { UninstallAndroidCertificateDetails } from "./uninstallAndroidCertificateDetails"; -import { UpdatableAddress } from "./updatableAddress"; -import { UpdateCompanyApiCredentialRequest } from "./updateCompanyApiCredentialRequest"; -import { UpdateCompanyUserRequest } from "./updateCompanyUserRequest"; -import { UpdateCompanyWebhookRequest } from "./updateCompanyWebhookRequest"; -import { UpdateMerchantApiCredentialRequest } from "./updateMerchantApiCredentialRequest"; -import { UpdateMerchantUserRequest } from "./updateMerchantUserRequest"; -import { UpdateMerchantWebhookRequest } from "./updateMerchantWebhookRequest"; -import { UpdatePaymentMethodInfo } from "./updatePaymentMethodInfo"; -import { UpdatePayoutSettingsRequest } from "./updatePayoutSettingsRequest"; -import { UpdateSplitConfigurationLogicRequest } from "./updateSplitConfigurationLogicRequest"; -import { UpdateSplitConfigurationRequest } from "./updateSplitConfigurationRequest"; -import { UpdateSplitConfigurationRuleRequest } from "./updateSplitConfigurationRuleRequest"; -import { UpdateStoreRequest } from "./updateStoreRequest"; -import { UploadAndroidAppResponse } from "./uploadAndroidAppResponse"; -import { UploadAndroidCertificateResponse } from "./uploadAndroidCertificateResponse"; -import { Url } from "./url"; -import { User } from "./user"; -import { VippsInfo } from "./vippsInfo"; -import { WeChatPayInfo } from "./weChatPayInfo"; -import { WeChatPayPosInfo } from "./weChatPayPosInfo"; -import { Webhook } from "./webhook"; -import { WebhookLinks } from "./webhookLinks"; -import { WifiProfiles } from "./wifiProfiles"; - -/* tslint:disable:no-unused-variable */ -let primitives = [ - "string", - "boolean", - "double", - "integer", - "long", - "float", - "number", - "any" - ]; - -let enumsMap: Set = new Set([ - "AccelInfo.ProcessingTypeEnum", - "AmexInfo.ServiceLevelEnum", - "AndroidApp.StatusEnum", - "Connectivity.SimcardStatusEnum", - "CreateCompanyWebhookRequest.CommunicationFormatEnum", - "CreateCompanyWebhookRequest.EncryptionProtocolEnum", - "CreateCompanyWebhookRequest.FilterMerchantAccountTypeEnum", - "CreateCompanyWebhookRequest.NetworkTypeEnum", - "CreateMerchantWebhookRequest.CommunicationFormatEnum", - "CreateMerchantWebhookRequest.EncryptionProtocolEnum", - "CreateMerchantWebhookRequest.NetworkTypeEnum", - "DinersInfo.ServiceLevelEnum", - "InstallAndroidAppDetails.TypeEnum", - "InstallAndroidCertificateDetails.TypeEnum", - "JCBInfo.ServiceLevelEnum", - "KlarnaInfo.RegionEnum", - "Notification.CategoryEnum", - "NyceInfo.ProcessingTypeEnum", - "PayAtTable.AuthenticationMethodEnum", - "PayAtTable.PaymentInstrumentEnum", - "PaymentMethod.VerificationStatusEnum", - "PaymentMethodResponse.TypesWithErrorsEnum", - "PaymentMethodSetupInfo.ShopperInteractionEnum", - "PaymentMethodSetupInfo.TypeEnum", - "PayoutSettings.PriorityEnum", - "PayoutSettings.VerificationStatusEnum", - "PulseInfo.ProcessingTypeEnum", - "ReleaseUpdateDetails.TypeEnum", - "ScheduleTerminalActionsRequestActionDetails.TypeEnum", - "SplitConfigurationLogic.AcquiringFeesEnum", - "SplitConfigurationLogic.AdyenCommissionEnum", - "SplitConfigurationLogic.AdyenFeesEnum", - "SplitConfigurationLogic.AdyenMarkupEnum", - "SplitConfigurationLogic.ChargebackEnum", - "SplitConfigurationLogic.ChargebackCostAllocationEnum", - "SplitConfigurationLogic.InterchangeEnum", - "SplitConfigurationLogic.PaymentFeeEnum", - "SplitConfigurationLogic.RefundEnum", - "SplitConfigurationLogic.RefundCostAllocationEnum", - "SplitConfigurationLogic.RemainderEnum", - "SplitConfigurationLogic.SchemeFeeEnum", - "SplitConfigurationLogic.SurchargeEnum", - "SplitConfigurationLogic.TipEnum", - "SplitConfigurationRule.FundingSourceEnum", - "SplitConfigurationRule.RegionalityEnum", - "SplitConfigurationRule.ShopperInteractionEnum", - "StarInfo.ProcessingTypeEnum", - "Store.StatusEnum", - "TerminalAssignment.StatusEnum", - "TerminalConnectivityCellular.StatusEnum", - "TransactionDescriptionInfo.TypeEnum", - "UninstallAndroidAppDetails.TypeEnum", - "UninstallAndroidCertificateDetails.TypeEnum", - "UpdateCompanyWebhookRequest.CommunicationFormatEnum", - "UpdateCompanyWebhookRequest.EncryptionProtocolEnum", - "UpdateCompanyWebhookRequest.FilterMerchantAccountTypeEnum", - "UpdateCompanyWebhookRequest.NetworkTypeEnum", - "UpdateMerchantWebhookRequest.CommunicationFormatEnum", - "UpdateMerchantWebhookRequest.EncryptionProtocolEnum", - "UpdateMerchantWebhookRequest.NetworkTypeEnum", - "UpdateSplitConfigurationLogicRequest.AcquiringFeesEnum", - "UpdateSplitConfigurationLogicRequest.AdyenCommissionEnum", - "UpdateSplitConfigurationLogicRequest.AdyenFeesEnum", - "UpdateSplitConfigurationLogicRequest.AdyenMarkupEnum", - "UpdateSplitConfigurationLogicRequest.ChargebackEnum", - "UpdateSplitConfigurationLogicRequest.ChargebackCostAllocationEnum", - "UpdateSplitConfigurationLogicRequest.InterchangeEnum", - "UpdateSplitConfigurationLogicRequest.PaymentFeeEnum", - "UpdateSplitConfigurationLogicRequest.RefundEnum", - "UpdateSplitConfigurationLogicRequest.RefundCostAllocationEnum", - "UpdateSplitConfigurationLogicRequest.RemainderEnum", - "UpdateSplitConfigurationLogicRequest.SchemeFeeEnum", - "UpdateSplitConfigurationLogicRequest.SurchargeEnum", - "UpdateSplitConfigurationLogicRequest.TipEnum", - "UpdateStoreRequest.StatusEnum", - "Webhook.CommunicationFormatEnum", - "Webhook.EncryptionProtocolEnum", - "Webhook.FilterMerchantAccountTypeEnum", - "Webhook.NetworkTypeEnum", -]); - -let typeMap: {[index: string]: any} = { - "AccelInfo": AccelInfo, - "AdditionalCommission": AdditionalCommission, - "AdditionalSettings": AdditionalSettings, - "AdditionalSettingsResponse": AdditionalSettingsResponse, - "Address": Address, - "AffirmInfo": AffirmInfo, - "AfterpayTouchInfo": AfterpayTouchInfo, - "AllowedOrigin": AllowedOrigin, - "AllowedOriginsResponse": AllowedOriginsResponse, - "AmexInfo": AmexInfo, - "Amount": Amount, - "AndroidApp": AndroidApp, - "AndroidAppError": AndroidAppError, - "AndroidAppsResponse": AndroidAppsResponse, - "AndroidCertificate": AndroidCertificate, - "AndroidCertificatesResponse": AndroidCertificatesResponse, - "ApiCredential": ApiCredential, - "ApiCredentialLinks": ApiCredentialLinks, - "ApplePayInfo": ApplePayInfo, - "BcmcInfo": BcmcInfo, - "BillingEntitiesResponse": BillingEntitiesResponse, - "BillingEntity": BillingEntity, - "CardholderReceipt": CardholderReceipt, - "CartesBancairesInfo": CartesBancairesInfo, - "ClearpayInfo": ClearpayInfo, - "Commission": Commission, - "Company": Company, - "CompanyApiCredential": CompanyApiCredential, - "CompanyLinks": CompanyLinks, - "CompanyUser": CompanyUser, - "Configuration": Configuration, - "Connectivity": Connectivity, - "Contact": Contact, - "CreateAllowedOriginRequest": CreateAllowedOriginRequest, - "CreateApiCredentialResponse": CreateApiCredentialResponse, - "CreateCompanyApiCredentialRequest": CreateCompanyApiCredentialRequest, - "CreateCompanyApiCredentialResponse": CreateCompanyApiCredentialResponse, - "CreateCompanyUserRequest": CreateCompanyUserRequest, - "CreateCompanyUserResponse": CreateCompanyUserResponse, - "CreateCompanyWebhookRequest": CreateCompanyWebhookRequest, - "CreateMerchantApiCredentialRequest": CreateMerchantApiCredentialRequest, - "CreateMerchantRequest": CreateMerchantRequest, - "CreateMerchantResponse": CreateMerchantResponse, - "CreateMerchantUserRequest": CreateMerchantUserRequest, - "CreateMerchantWebhookRequest": CreateMerchantWebhookRequest, - "CreateUserResponse": CreateUserResponse, - "Currency": Currency, - "CustomNotification": CustomNotification, - "DataCenter": DataCenter, - "DinersInfo": DinersInfo, - "EventUrl": EventUrl, - "ExternalTerminalAction": ExternalTerminalAction, - "GenerateApiKeyResponse": GenerateApiKeyResponse, - "GenerateClientKeyResponse": GenerateClientKeyResponse, - "GenerateHmacKeyResponse": GenerateHmacKeyResponse, - "GenericPmWithTdiInfo": GenericPmWithTdiInfo, - "GooglePayInfo": GooglePayInfo, - "Gratuity": Gratuity, - "Hardware": Hardware, - "IdName": IdName, - "InstallAndroidAppDetails": InstallAndroidAppDetails, - "InstallAndroidCertificateDetails": InstallAndroidCertificateDetails, - "InvalidField": InvalidField, - "JCBInfo": JCBInfo, - "Key": Key, - "KlarnaInfo": KlarnaInfo, - "Links": Links, - "LinksElement": LinksElement, - "ListCompanyApiCredentialsResponse": ListCompanyApiCredentialsResponse, - "ListCompanyResponse": ListCompanyResponse, - "ListCompanyUsersResponse": ListCompanyUsersResponse, - "ListExternalTerminalActionsResponse": ListExternalTerminalActionsResponse, - "ListMerchantApiCredentialsResponse": ListMerchantApiCredentialsResponse, - "ListMerchantResponse": ListMerchantResponse, - "ListMerchantUsersResponse": ListMerchantUsersResponse, - "ListStoresResponse": ListStoresResponse, - "ListTerminalsResponse": ListTerminalsResponse, - "ListWebhooksResponse": ListWebhooksResponse, - "Localization": Localization, - "Logo": Logo, - "MeApiCredential": MeApiCredential, - "MealVoucherFRInfo": MealVoucherFRInfo, - "Merchant": Merchant, - "MerchantLinks": MerchantLinks, - "MinorUnitsMonetaryValue": MinorUnitsMonetaryValue, - "ModelFile": ModelFile, - "Name": Name, - "Name2": Name2, - "Nexo": Nexo, - "Notification": Notification, - "NotificationUrl": NotificationUrl, - "NyceInfo": NyceInfo, - "OfflineProcessing": OfflineProcessing, - "Opi": Opi, - "OrderItem": OrderItem, - "PaginationLinks": PaginationLinks, - "Passcodes": Passcodes, - "PayAtTable": PayAtTable, - "PayByBankPlaidInfo": PayByBankPlaidInfo, - "PayMeInfo": PayMeInfo, - "PayPalInfo": PayPalInfo, - "PayToInfo": PayToInfo, - "Payment": Payment, - "PaymentMethod": PaymentMethod, - "PaymentMethodResponse": PaymentMethodResponse, - "PaymentMethodSetupInfo": PaymentMethodSetupInfo, - "PayoutSettings": PayoutSettings, - "PayoutSettingsRequest": PayoutSettingsRequest, - "PayoutSettingsResponse": PayoutSettingsResponse, - "Profile": Profile, - "PulseInfo": PulseInfo, - "ReceiptOptions": ReceiptOptions, - "ReceiptPrinting": ReceiptPrinting, - "Referenced": Referenced, - "Refunds": Refunds, - "ReleaseUpdateDetails": ReleaseUpdateDetails, - "ReprocessAndroidAppResponse": ReprocessAndroidAppResponse, - "RequestActivationResponse": RequestActivationResponse, - "RestServiceError": RestServiceError, - "ScheduleTerminalActionsRequest": ScheduleTerminalActionsRequest, - "ScheduleTerminalActionsRequestActionDetails": ScheduleTerminalActionsRequestActionDetailsClass, - "ScheduleTerminalActionsResponse": ScheduleTerminalActionsResponse, - "Settings": Settings, - "ShippingLocation": ShippingLocation, - "ShippingLocationsResponse": ShippingLocationsResponse, - "Signature": Signature, - "SodexoInfo": SodexoInfo, - "SofortInfo": SofortInfo, - "SplitConfiguration": SplitConfiguration, - "SplitConfigurationList": SplitConfigurationList, - "SplitConfigurationLogic": SplitConfigurationLogic, - "SplitConfigurationRule": SplitConfigurationRule, - "Standalone": Standalone, - "StarInfo": StarInfo, - "Store": Store, - "StoreAndForward": StoreAndForward, - "StoreCreationRequest": StoreCreationRequest, - "StoreCreationWithMerchantCodeRequest": StoreCreationWithMerchantCodeRequest, - "StoreLocation": StoreLocation, - "StoreSplitConfiguration": StoreSplitConfiguration, - "SubMerchantData": SubMerchantData, - "SupportedCardTypes": SupportedCardTypes, - "Surcharge": Surcharge, - "SwishInfo": SwishInfo, - "TapToPay": TapToPay, - "Terminal": Terminal, - "TerminalActionScheduleDetail": TerminalActionScheduleDetail, - "TerminalAssignment": TerminalAssignment, - "TerminalConnectivity": TerminalConnectivity, - "TerminalConnectivityBluetooth": TerminalConnectivityBluetooth, - "TerminalConnectivityCellular": TerminalConnectivityCellular, - "TerminalConnectivityEthernet": TerminalConnectivityEthernet, - "TerminalConnectivityWifi": TerminalConnectivityWifi, - "TerminalInstructions": TerminalInstructions, - "TerminalModelsResponse": TerminalModelsResponse, - "TerminalOrder": TerminalOrder, - "TerminalOrderRequest": TerminalOrderRequest, - "TerminalOrdersResponse": TerminalOrdersResponse, - "TerminalProduct": TerminalProduct, - "TerminalProductPrice": TerminalProductPrice, - "TerminalProductsResponse": TerminalProductsResponse, - "TerminalReassignmentRequest": TerminalReassignmentRequest, - "TerminalReassignmentTarget": TerminalReassignmentTarget, - "TerminalSettings": TerminalSettings, - "TestCompanyWebhookRequest": TestCompanyWebhookRequest, - "TestOutput": TestOutput, - "TestWebhookRequest": TestWebhookRequest, - "TestWebhookResponse": TestWebhookResponse, - "TicketInfo": TicketInfo, - "Timeouts": Timeouts, - "TransactionDescriptionInfo": TransactionDescriptionInfo, - "TwintInfo": TwintInfo, - "UninstallAndroidAppDetails": UninstallAndroidAppDetails, - "UninstallAndroidCertificateDetails": UninstallAndroidCertificateDetails, - "UpdatableAddress": UpdatableAddress, - "UpdateCompanyApiCredentialRequest": UpdateCompanyApiCredentialRequest, - "UpdateCompanyUserRequest": UpdateCompanyUserRequest, - "UpdateCompanyWebhookRequest": UpdateCompanyWebhookRequest, - "UpdateMerchantApiCredentialRequest": UpdateMerchantApiCredentialRequest, - "UpdateMerchantUserRequest": UpdateMerchantUserRequest, - "UpdateMerchantWebhookRequest": UpdateMerchantWebhookRequest, - "UpdatePaymentMethodInfo": UpdatePaymentMethodInfo, - "UpdatePayoutSettingsRequest": UpdatePayoutSettingsRequest, - "UpdateSplitConfigurationLogicRequest": UpdateSplitConfigurationLogicRequest, - "UpdateSplitConfigurationRequest": UpdateSplitConfigurationRequest, - "UpdateSplitConfigurationRuleRequest": UpdateSplitConfigurationRuleRequest, - "UpdateStoreRequest": UpdateStoreRequest, - "UploadAndroidAppResponse": UploadAndroidAppResponse, - "UploadAndroidCertificateResponse": UploadAndroidCertificateResponse, - "Url": Url, - "User": User, - "VippsInfo": VippsInfo, - "WeChatPayInfo": WeChatPayInfo, - "WeChatPayPosInfo": WeChatPayPosInfo, - "Webhook": Webhook, - "WebhookLinks": WebhookLinks, - "WifiProfiles": WifiProfiles, -} - -type MimeTypeDescriptor = { - type: string; - subtype: string; - subtypeTokens: string[]; -}; - -/** - * Every mime-type consists of a type, subtype, and optional parameters. - * The subtype can be composite, including information about the content format. - * For example: `application/json-patch+json`, `application/merge-patch+json`. - * - * This helper transforms a string mime-type into an internal representation. - * This simplifies the implementation of predicates that in turn define common rules for parsing or stringifying - * the payload. - */ -const parseMimeType = (mimeType: string): MimeTypeDescriptor => { - const [type = '', subtype = ''] = mimeType.split('/'); - return { - type, - subtype, - subtypeTokens: subtype.split('+'), - }; -}; - -type MimeTypePredicate = (mimeType: string) => boolean; - -// This factory creates a predicate function that checks a string mime-type against defined rules. -const mimeTypePredicateFactory = (predicate: (descriptor: MimeTypeDescriptor) => boolean): MimeTypePredicate => (mimeType) => predicate(parseMimeType(mimeType)); - -// Use this factory when you need to define a simple predicate based only on type and, if applicable, subtype. -const mimeTypeSimplePredicateFactory = (type: string, subtype?: string): MimeTypePredicate => mimeTypePredicateFactory((descriptor) => { - if (descriptor.type !== type) return false; - if (subtype != null && descriptor.subtype !== subtype) return false; - return true; -}); - -// Creating a set of named predicates that will help us determine how to handle different mime-types -const isTextLikeMimeType = mimeTypeSimplePredicateFactory('text'); -const isJsonMimeType = mimeTypeSimplePredicateFactory('application', 'json'); -const isJsonLikeMimeType = mimeTypePredicateFactory((descriptor) => descriptor.type === 'application' && descriptor.subtypeTokens.some((item) => item === 'json')); -const isOctetStreamMimeType = mimeTypeSimplePredicateFactory('application', 'octet-stream'); -const isFormUrlencodedMimeType = mimeTypeSimplePredicateFactory('application', 'x-www-form-urlencoded'); - -// Defining a list of mime-types in the order of prioritization for handling. -const supportedMimeTypePredicatesWithPriority: MimeTypePredicate[] = [ - isJsonMimeType, - isJsonLikeMimeType, - isTextLikeMimeType, - isOctetStreamMimeType, - isFormUrlencodedMimeType, -]; - -const nullableSuffix = " | null"; -const optionalSuffix = " | undefined"; -const arrayPrefix = "Array<"; -const arraySuffix = ">"; -const mapPrefix = "{ [key: string]: "; -const mapSuffix = "; }"; - -export class ObjectSerializer { - public static findCorrectType(data: any, expectedType: string) { - if (data == undefined) { - return expectedType; - } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { - return expectedType; - } else if (expectedType === "Date") { - return expectedType; - } else { - if (enumsMap.has(expectedType)) { - return expectedType; - } - - if (!typeMap[expectedType]) { - return expectedType; // w/e we don't know the type - } - - // Check the discriminator - let discriminatorProperty = typeMap[expectedType].discriminator; - if (discriminatorProperty == null) { - return expectedType; // the type does not have a discriminator. use it. - } else { - if (data[discriminatorProperty]) { - var discriminatorType = data[discriminatorProperty]; - let mapping = typeMap[expectedType].mapping; - if (mapping != undefined && mapping[discriminatorType]) { - return mapping[discriminatorType]; // use the type given in the discriminator - } else if(typeMap[discriminatorType]) { - return discriminatorType; - } else { - return expectedType; // discriminator did not map to a type - } - } else { - return expectedType; // discriminator was not present (or an empty string) - } - } - } - } - - /** - * Serializes a value into a plain JSON-compatible object based on its type. - * - * Supports primitives, arrays, maps, dates, enums, and classes defined in `typeMap`. - * Falls back to raw data if type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The value to serialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A JSON-compatible representation of `data`. - */ - public static serialize(data: any, type: string, format: string = ""): any { - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.serialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.serialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - if (format == "date") { - let month = data.getMonth()+1 - month = month < 10 ? "0" + month.toString() : month.toString() - let day = data.getDate(); - day = day < 10 ? "0" + day.toString() : day.toString(); - - return data.getFullYear() + "-" + month + "-" + day; - } else { - return data.toISOString(); - } - } else { - if (enumsMap.has(type)) { - return data; - } - if (!typeMap[type]) { // in case we dont know the type - return data; - } - - // Get the actual type of this object - type = this.findCorrectType(data, type); - - const clazz = typeMap[type]; - - // Safe check for getAttributeTypeMap - if (typeof clazz.getAttributeTypeMap !== "function") { - return { ...data }; // fallback: shallow copy - } - - // get the map for the correct type. - let attributeTypes = typeMap[type].getAttributeTypeMap(); - let instance: {[index: string]: any} = {}; - for (let attributeType of attributeTypes) { - instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format); - } - return instance; - } - } - - /** - * Deserializes a plain JSON-compatible object into a typed instance. - * - * Handles primitives, arrays, maps, dates, enums, and known classes from `typeMap`. - * Uses discriminators when available to resolve polymorphic types. - * Falls back to raw data if the type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The raw input to deserialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A deserialized instance or value of `data`. - */ - public static deserialize(data: any, type: string, format: string = ""): any { - // polymorphism may change the actual type. - type = ObjectSerializer.findCorrectType(data, type); - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.deserialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.deserialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - return new Date(data); - } else { - if (enumsMap.has(type)) {// is Enum - return data; - } - - if (!typeMap[type]) { // dont know the type - return data; - } - let instance = new typeMap[type](); - - // Safe check for getAttributeTypeMap - if (typeof typeMap[type].getAttributeTypeMap !== "function") { - Object.assign(instance, data); // fallback: shallow copy - return instance; - } - - let attributeTypes = typeMap[type].getAttributeTypeMap(); - for (let attributeType of attributeTypes) { - let value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format); - if (value !== undefined) { - instance[attributeType.name] = value; - } - } - return instance; - } - } - - - /** - * Normalize media type - * - * We currently do not handle any media types attributes, i.e. anything - * after a semicolon. All content is assumed to be UTF-8 compatible. - */ - public static normalizeMediaType(mediaType: string | undefined): string | undefined { - if (mediaType === undefined) { - return undefined; - } - return (mediaType.split(";")[0] ?? '').trim().toLowerCase(); - } - - /** - * From a list of possible media types, choose the one we can handle best. - * - * The order of the given media types does not have any impact on the choice - * made. - */ - public static getPreferredMediaType(mediaTypes: Array): string { - /** According to OAS 3 we should default to json */ - if (mediaTypes.length === 0) { - return "application/json"; - } - - const normalMediaTypes = mediaTypes.map(ObjectSerializer.normalizeMediaType); - - for (const predicate of supportedMimeTypePredicatesWithPriority) { - for (const mediaType of normalMediaTypes) { - if (mediaType != null && predicate(mediaType)) { - return mediaType; - } - } - } - - throw new Error("None of the given media types are supported: " + mediaTypes.join(", ")); - } - - /** - * Convert data to a string according the given media type - */ - public static stringify(data: any, mediaType: string): string { - if (isTextLikeMimeType(mediaType)) { - return String(data); - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.stringify(data); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify."); - } - - /** - * Parse data from a string according to the given media type - */ - public static parse(rawData: string, mediaType: string | undefined) { - if (mediaType === undefined) { - throw new Error("Cannot parse content. No Content-Type defined."); - } - - if (isTextLikeMimeType(mediaType)) { - return rawData; - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.parse(rawData); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse."); - } -} diff --git a/src/typings/management/offlineProcessing.ts b/src/typings/management/offlineProcessing.ts index 8533681de..150578d07 100644 --- a/src/typings/management/offlineProcessing.ts +++ b/src/typings/management/offlineProcessing.ts @@ -7,42 +7,34 @@ * Do not edit this class manually. */ -import { MinorUnitsMonetaryValue } from "./minorUnitsMonetaryValue"; - +import { MinorUnitsMonetaryValue } from './minorUnitsMonetaryValue'; export class OfflineProcessing { /** * The maximum offline transaction amount for chip cards, in the processing currency and specified in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ - "chipFloorLimit"?: number; + 'chipFloorLimit'?: number; /** * The maximum offline transaction amount for swiped cards, in the specified currency. */ - "offlineSwipeLimits"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'offlineSwipeLimits'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "chipFloorLimit", "baseName": "chipFloorLimit", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "offlineSwipeLimits", "baseName": "offlineSwipeLimits", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return OfflineProcessing.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/opi.ts b/src/typings/management/opi.ts index a4d95ed98..f8fd74c8c 100644 --- a/src/typings/management/opi.ts +++ b/src/typings/management/opi.ts @@ -12,45 +12,37 @@ export class Opi { /** * Indicates if Pay at table is enabled. */ - "enablePayAtTable"?: boolean; + 'enablePayAtTable'?: boolean; /** * The store number to use for Pay at Table. */ - "payAtTableStoreNumber"?: string; + 'payAtTableStoreNumber'?: string; /** * The URL and port number used for Pay at Table communication. */ - "payAtTableURL"?: string; + 'payAtTableURL'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "enablePayAtTable", "baseName": "enablePayAtTable", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "payAtTableStoreNumber", "baseName": "payAtTableStoreNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "payAtTableURL", "baseName": "payAtTableURL", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Opi.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/orderItem.ts b/src/typings/management/orderItem.ts index 956bed5d8..6f62ecb3e 100644 --- a/src/typings/management/orderItem.ts +++ b/src/typings/management/orderItem.ts @@ -12,55 +12,46 @@ export class OrderItem { /** * The unique identifier of the product. */ - "id"?: string; + 'id'?: string; /** * The number of installments for the specified product `id`. */ - "installments"?: number; + 'installments'?: number; /** * The name of the product. */ - "name"?: string; + 'name'?: string; /** * The number of items with the specified product `id` included in the order. */ - "quantity"?: number; + 'quantity'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "installments", "baseName": "installments", - "type": "number", - "format": "int64" + "type": "number" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "quantity", "baseName": "quantity", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return OrderItem.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/paginationLinks.ts b/src/typings/management/paginationLinks.ts index 4e28df925..e03974928 100644 --- a/src/typings/management/paginationLinks.ts +++ b/src/typings/management/paginationLinks.ts @@ -7,57 +7,46 @@ * Do not edit this class manually. */ -import { LinksElement } from "./linksElement"; - +import { LinksElement } from './linksElement'; export class PaginationLinks { - "first": LinksElement; - "last": LinksElement; - "next"?: LinksElement | null; - "prev"?: LinksElement | null; - "self": LinksElement; - - static readonly discriminator: string | undefined = undefined; + 'first': LinksElement; + 'last': LinksElement; + 'next'?: LinksElement | null; + 'prev'?: LinksElement | null; + 'self': LinksElement; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "first", "baseName": "first", - "type": "LinksElement", - "format": "" + "type": "LinksElement" }, { "name": "last", "baseName": "last", - "type": "LinksElement", - "format": "" + "type": "LinksElement" }, { "name": "next", "baseName": "next", - "type": "LinksElement | null", - "format": "" + "type": "LinksElement | null" }, { "name": "prev", "baseName": "prev", - "type": "LinksElement | null", - "format": "" + "type": "LinksElement | null" }, { "name": "self", "baseName": "self", - "type": "LinksElement", - "format": "" + "type": "LinksElement" } ]; static getAttributeTypeMap() { return PaginationLinks.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/passcodes.ts b/src/typings/management/passcodes.ts index 3edae1b84..4e65f6fdf 100644 --- a/src/typings/management/passcodes.ts +++ b/src/typings/management/passcodes.ts @@ -12,55 +12,46 @@ export class Passcodes { /** * The passcode for the Admin menu and the Settings menu. */ - "adminMenuPin"?: string; + 'adminMenuPin'?: string; /** * The passcode for referenced and unreferenced refunds on standalone terminals. */ - "refundPin"?: string; + 'refundPin'?: string; /** * The passcode to unlock the terminal screen after a timeout. */ - "screenLockPin"?: string; + 'screenLockPin'?: string; /** * The passcode for the Transactions menu. */ - "txMenuPin"?: string; + 'txMenuPin'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "adminMenuPin", "baseName": "adminMenuPin", - "type": "string", - "format": "" + "type": "string" }, { "name": "refundPin", "baseName": "refundPin", - "type": "string", - "format": "" + "type": "string" }, { "name": "screenLockPin", "baseName": "screenLockPin", - "type": "string", - "format": "" + "type": "string" }, { "name": "txMenuPin", "baseName": "txMenuPin", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Passcodes.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/payAtTable.ts b/src/typings/management/payAtTable.ts index 2fbdad153..fd9984f50 100644 --- a/src/typings/management/payAtTable.ts +++ b/src/typings/management/payAtTable.ts @@ -12,46 +12,38 @@ export class PayAtTable { /** * Allowed authentication methods: Magswipe, Manual Entry. */ - "authenticationMethod"?: PayAtTable.AuthenticationMethodEnum; + 'authenticationMethod'?: PayAtTable.AuthenticationMethodEnum; /** * Enable Pay at table. */ - "enablePayAtTable"?: boolean; + 'enablePayAtTable'?: boolean; /** * Sets the allowed payment instrument for Pay at table transactions. Can be: **cash** or **card**. If not set, the terminal presents both options. */ - "paymentInstrument"?: PayAtTable.PaymentInstrumentEnum | null; + 'paymentInstrument'?: PayAtTable.PaymentInstrumentEnum | null; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "authenticationMethod", "baseName": "authenticationMethod", - "type": "PayAtTable.AuthenticationMethodEnum", - "format": "" + "type": "PayAtTable.AuthenticationMethodEnum" }, { "name": "enablePayAtTable", "baseName": "enablePayAtTable", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "paymentInstrument", "baseName": "paymentInstrument", - "type": "PayAtTable.PaymentInstrumentEnum | null", - "format": "" + "type": "PayAtTable.PaymentInstrumentEnum | null" } ]; static getAttributeTypeMap() { return PayAtTable.attributeTypeMap; } - - public constructor() { - } } export namespace PayAtTable { diff --git a/src/typings/management/payByBankPlaidInfo.ts b/src/typings/management/payByBankPlaidInfo.ts index 15385e16f..a20fe8da7 100644 --- a/src/typings/management/payByBankPlaidInfo.ts +++ b/src/typings/management/payByBankPlaidInfo.ts @@ -7,109 +7,94 @@ * Do not edit this class manually. */ -import { TransactionDescriptionInfo } from "./transactionDescriptionInfo"; - +import { TransactionDescriptionInfo } from './transactionDescriptionInfo'; export class PayByBankPlaidInfo { /** * Country Code. */ - "countryCode"?: string; + 'countryCode'?: string; /** * Merchant logo (max. size 150kB). Format: Base64-encoded string. */ - "logo"?: string; + 'logo'?: string; /** * The city the merchant is doing business in. */ - "merchantCity"?: string; + 'merchantCity'?: string; /** * Legal Business Name of the Merchant. */ - "merchantLegalName"?: string; + 'merchantLegalName'?: string; /** * Merchant shop url. */ - "merchantShopUrl"?: string; + 'merchantShopUrl'?: string; /** * The state/province of the merchant. */ - "merchantStateProvince"?: string; + 'merchantStateProvince'?: string; /** * The street address of the merchant. */ - "merchantStreetAddress"?: string; - "transactionDescription"?: TransactionDescriptionInfo | null; + 'merchantStreetAddress'?: string; + 'transactionDescription'?: TransactionDescriptionInfo | null; /** * The zip code of the account. */ - "zipCode"?: string; - - static readonly discriminator: string | undefined = undefined; + 'zipCode'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "countryCode", "baseName": "countryCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "logo", "baseName": "logo", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantCity", "baseName": "merchantCity", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantLegalName", "baseName": "merchantLegalName", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantShopUrl", "baseName": "merchantShopUrl", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantStateProvince", "baseName": "merchantStateProvince", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantStreetAddress", "baseName": "merchantStreetAddress", - "type": "string", - "format": "" + "type": "string" }, { "name": "transactionDescription", "baseName": "transactionDescription", - "type": "TransactionDescriptionInfo | null", - "format": "" + "type": "TransactionDescriptionInfo | null" }, { "name": "zipCode", "baseName": "zipCode", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PayByBankPlaidInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/payMeInfo.ts b/src/typings/management/payMeInfo.ts index 2708ed863..7c6005249 100644 --- a/src/typings/management/payMeInfo.ts +++ b/src/typings/management/payMeInfo.ts @@ -12,45 +12,37 @@ export class PayMeInfo { /** * Merchant display name */ - "displayName": string; + 'displayName': string; /** * Merchant logo. Format: Base64-encoded string. */ - "logo": string; + 'logo': string; /** * The email address of merchant support. */ - "supportEmail": string; + 'supportEmail': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "displayName", "baseName": "displayName", - "type": "string", - "format": "" + "type": "string" }, { "name": "logo", "baseName": "logo", - "type": "string", - "format": "" + "type": "string" }, { "name": "supportEmail", "baseName": "supportEmail", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PayMeInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/payPalInfo.ts b/src/typings/management/payPalInfo.ts index 8da075063..8e54e4cec 100644 --- a/src/typings/management/payPalInfo.ts +++ b/src/typings/management/payPalInfo.ts @@ -12,45 +12,37 @@ export class PayPalInfo { /** * Indicates if direct (immediate) capture for PayPal is enabled. If set to **true**, this setting overrides the [capture](https://docs.adyen.com/online-payments/capture) settings of your merchant account. Default value: **true**. */ - "directCapture"?: boolean; + 'directCapture'?: boolean; /** * PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters. */ - "payerId": string; + 'payerId': string; /** * Your business email address. */ - "subject": string; + 'subject': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "directCapture", "baseName": "directCapture", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "payerId", "baseName": "payerId", - "type": "string", - "format": "" + "type": "string" }, { "name": "subject", "baseName": "subject", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PayPalInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/payToInfo.ts b/src/typings/management/payToInfo.ts index 9a7a1f6d5..7fdfc09c3 100644 --- a/src/typings/management/payToInfo.ts +++ b/src/typings/management/payToInfo.ts @@ -12,35 +12,28 @@ export class PayToInfo { /** * Merchant name displayed to the shopper in the Agreements */ - "merchantName": string; + 'merchantName': string; /** * Represents the purpose of the Agreements created, it relates to the business type **Allowed values**: mortgage, utility, loan, gambling, retail, salary, personal, government, pension, tax, other */ - "payToPurpose": string; + 'payToPurpose': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "merchantName", "baseName": "merchantName", - "type": "string", - "format": "" + "type": "string" }, { "name": "payToPurpose", "baseName": "payToPurpose", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PayToInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/payment.ts b/src/typings/management/payment.ts index 264914c76..81200eaae 100644 --- a/src/typings/management/payment.ts +++ b/src/typings/management/payment.ts @@ -12,35 +12,28 @@ export class Payment { /** * The default currency for contactless payments on the payment terminal, as the three-letter [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. */ - "contactlessCurrency"?: string; + 'contactlessCurrency'?: string; /** * Hides the minor units for the listed [ISO currency codes](https://en.wikipedia.org/wiki/ISO_4217). */ - "hideMinorUnitsInCurrencies"?: Array; + 'hideMinorUnitsInCurrencies'?: Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "contactlessCurrency", "baseName": "contactlessCurrency", - "type": "string", - "format": "" + "type": "string" }, { "name": "hideMinorUnitsInCurrencies", "baseName": "hideMinorUnitsInCurrencies", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return Payment.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/paymentMethod.ts b/src/typings/management/paymentMethod.ts index 64b2d8f9d..cde6e7016 100644 --- a/src/typings/management/paymentMethod.ts +++ b/src/typings/management/paymentMethod.ts @@ -7,437 +7,394 @@ * Do not edit this class manually. */ -import { AccelInfo } from "./accelInfo"; -import { AffirmInfo } from "./affirmInfo"; -import { AfterpayTouchInfo } from "./afterpayTouchInfo"; -import { AmexInfo } from "./amexInfo"; -import { ApplePayInfo } from "./applePayInfo"; -import { BcmcInfo } from "./bcmcInfo"; -import { CartesBancairesInfo } from "./cartesBancairesInfo"; -import { ClearpayInfo } from "./clearpayInfo"; -import { DinersInfo } from "./dinersInfo"; -import { GenericPmWithTdiInfo } from "./genericPmWithTdiInfo"; -import { GooglePayInfo } from "./googlePayInfo"; -import { JCBInfo } from "./jCBInfo"; -import { KlarnaInfo } from "./klarnaInfo"; -import { MealVoucherFRInfo } from "./mealVoucherFRInfo"; -import { NyceInfo } from "./nyceInfo"; -import { PayByBankPlaidInfo } from "./payByBankPlaidInfo"; -import { PayMeInfo } from "./payMeInfo"; -import { PayPalInfo } from "./payPalInfo"; -import { PayToInfo } from "./payToInfo"; -import { PulseInfo } from "./pulseInfo"; -import { SodexoInfo } from "./sodexoInfo"; -import { SofortInfo } from "./sofortInfo"; -import { StarInfo } from "./starInfo"; -import { SwishInfo } from "./swishInfo"; -import { TicketInfo } from "./ticketInfo"; -import { TwintInfo } from "./twintInfo"; -import { VippsInfo } from "./vippsInfo"; -import { WeChatPayInfo } from "./weChatPayInfo"; -import { WeChatPayPosInfo } from "./weChatPayPosInfo"; - +import { AccelInfo } from './accelInfo'; +import { AffirmInfo } from './affirmInfo'; +import { AfterpayTouchInfo } from './afterpayTouchInfo'; +import { AlipayPlusInfo } from './alipayPlusInfo'; +import { AmexInfo } from './amexInfo'; +import { ApplePayInfo } from './applePayInfo'; +import { BcmcInfo } from './bcmcInfo'; +import { CartesBancairesInfo } from './cartesBancairesInfo'; +import { ClearpayInfo } from './clearpayInfo'; +import { DinersInfo } from './dinersInfo'; +import { GenericPmWithTdiInfo } from './genericPmWithTdiInfo'; +import { GooglePayInfo } from './googlePayInfo'; +import { JCBInfo } from './jCBInfo'; +import { KlarnaInfo } from './klarnaInfo'; +import { MealVoucherFRInfo } from './mealVoucherFRInfo'; +import { NyceInfo } from './nyceInfo'; +import { PayByBankPlaidInfo } from './payByBankPlaidInfo'; +import { PayMeInfo } from './payMeInfo'; +import { PayPalInfo } from './payPalInfo'; +import { PayToInfo } from './payToInfo'; +import { PulseInfo } from './pulseInfo'; +import { SodexoInfo } from './sodexoInfo'; +import { SofortInfo } from './sofortInfo'; +import { StarInfo } from './starInfo'; +import { SwishInfo } from './swishInfo'; +import { TicketInfo } from './ticketInfo'; +import { TwintInfo } from './twintInfo'; +import { VippsInfo } from './vippsInfo'; +import { WeChatPayInfo } from './weChatPayInfo'; +import { WeChatPayPosInfo } from './weChatPayPosInfo'; export class PaymentMethod { - "accel"?: AccelInfo | null; - "affirm"?: AffirmInfo | null; - "afterpayTouch"?: AfterpayTouchInfo | null; + 'accel'?: AccelInfo | null; + 'affirm'?: AffirmInfo | null; + 'afterpayTouch'?: AfterpayTouchInfo | null; + 'alipayPlus'?: AlipayPlusInfo | null; /** * Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account. */ - "allowed"?: boolean; - "amex"?: AmexInfo | null; - "applePay"?: ApplePayInfo | null; - "bcmc"?: BcmcInfo | null; + 'allowed'?: boolean; + 'amex'?: AmexInfo | null; + 'applePay'?: ApplePayInfo | null; + 'bcmc'?: BcmcInfo | null; /** * The unique identifier of the business line. Required if you are a [platform model](https://docs.adyen.com/platforms). */ - "businessLineId"?: string; - "cartesBancaires"?: CartesBancairesInfo | null; - "clearpay"?: ClearpayInfo | null; + 'businessLineId'?: string; + 'cartesBancaires'?: CartesBancairesInfo | null; + 'clearpay'?: ClearpayInfo | null; /** * The list of countries where a payment method is available. By default, all countries supported by the payment method. */ - "countries"?: Array; - "cup"?: GenericPmWithTdiInfo | null; + 'countries'?: Array; + 'cup'?: GenericPmWithTdiInfo | null; /** * The list of currencies that a payment method supports. By default, all currencies supported by the payment method. */ - "currencies"?: Array; + 'currencies'?: Array; /** * The list of custom routing flags to route payment to the intended acquirer. */ - "customRoutingFlags"?: Array; - "diners"?: DinersInfo | null; - "discover"?: GenericPmWithTdiInfo | null; - "eft_directdebit_CA"?: GenericPmWithTdiInfo | null; - "eftpos_australia"?: GenericPmWithTdiInfo | null; + 'customRoutingFlags'?: Array; + 'diners'?: DinersInfo | null; + 'discover'?: GenericPmWithTdiInfo | null; + 'eft_directdebit_CA'?: GenericPmWithTdiInfo | null; + 'eftpos_australia'?: GenericPmWithTdiInfo | null; /** * Indicates whether the payment method is enabled (**true**) or disabled (**false**). */ - "enabled"?: boolean; - "girocard"?: GenericPmWithTdiInfo | null; - "googlePay"?: GooglePayInfo | null; + 'enabled'?: boolean; + 'girocard'?: GenericPmWithTdiInfo | null; + 'googlePay'?: GooglePayInfo | null; /** * The identifier of the resource. */ - "id": string; - "ideal"?: GenericPmWithTdiInfo | null; - "interac_card"?: GenericPmWithTdiInfo | null; - "jcb"?: JCBInfo | null; - "klarna"?: KlarnaInfo | null; - "maestro"?: GenericPmWithTdiInfo | null; - "mc"?: GenericPmWithTdiInfo | null; - "mealVoucher_FR"?: MealVoucherFRInfo | null; - "nyce"?: NyceInfo | null; - "paybybank_plaid"?: PayByBankPlaidInfo | null; - "payme"?: PayMeInfo | null; - "paypal"?: PayPalInfo | null; - "payto"?: PayToInfo | null; - "pulse"?: PulseInfo | null; + 'id': string; + 'ideal'?: GenericPmWithTdiInfo | null; + 'interac_card'?: GenericPmWithTdiInfo | null; + 'jcb'?: JCBInfo | null; + 'klarna'?: KlarnaInfo | null; + 'maestro'?: GenericPmWithTdiInfo | null; + 'maestro_usa'?: GenericPmWithTdiInfo | null; + 'mc'?: GenericPmWithTdiInfo | null; + 'mealVoucher_FR'?: MealVoucherFRInfo | null; + 'nyce'?: NyceInfo | null; + 'paybybank_plaid'?: PayByBankPlaidInfo | null; + 'payme'?: PayMeInfo | null; + 'paypal'?: PayPalInfo | null; + 'payto'?: PayToInfo | null; + 'pulse'?: PulseInfo | null; /** * Your reference for the payment method. Supported characters a-z, A-Z, 0-9. */ - "reference"?: string; + 'reference'?: string; /** * The sales channel. */ - "shopperInteraction"?: string; - "sodexo"?: SodexoInfo | null; - "sofort"?: SofortInfo | null; - "star"?: StarInfo | null; + 'shopperInteraction'?: string; + 'sodexo'?: SodexoInfo | null; + 'sofort'?: SofortInfo | null; + 'star'?: StarInfo | null; /** * The unique identifier of the store for which to configure the payment method, if any. */ - "storeIds"?: Array; - "swish"?: SwishInfo | null; - "ticket"?: TicketInfo | null; - "twint"?: TwintInfo | null; + 'storeIds'?: Array; + 'swish'?: SwishInfo | null; + 'ticket'?: TicketInfo | null; + 'twint'?: TwintInfo | null; /** * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). */ - "type"?: string; + 'type'?: string; /** * Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** */ - "verificationStatus"?: PaymentMethod.VerificationStatusEnum; - "vipps"?: VippsInfo | null; - "visa"?: GenericPmWithTdiInfo | null; - "wechatpay"?: WeChatPayInfo | null; - "wechatpay_pos"?: WeChatPayPosInfo | null; - - static readonly discriminator: string | undefined = undefined; + 'verificationStatus'?: PaymentMethod.VerificationStatusEnum; + 'vipps'?: VippsInfo | null; + 'visa'?: GenericPmWithTdiInfo | null; + 'wechatpay'?: WeChatPayInfo | null; + 'wechatpay_pos'?: WeChatPayPosInfo | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accel", "baseName": "accel", - "type": "AccelInfo | null", - "format": "" + "type": "AccelInfo | null" }, { "name": "affirm", "baseName": "affirm", - "type": "AffirmInfo | null", - "format": "" + "type": "AffirmInfo | null" }, { "name": "afterpayTouch", "baseName": "afterpayTouch", - "type": "AfterpayTouchInfo | null", - "format": "" + "type": "AfterpayTouchInfo | null" + }, + { + "name": "alipayPlus", + "baseName": "alipayPlus", + "type": "AlipayPlusInfo | null" }, { "name": "allowed", "baseName": "allowed", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "amex", "baseName": "amex", - "type": "AmexInfo | null", - "format": "" + "type": "AmexInfo | null" }, { "name": "applePay", "baseName": "applePay", - "type": "ApplePayInfo | null", - "format": "" + "type": "ApplePayInfo | null" }, { "name": "bcmc", "baseName": "bcmc", - "type": "BcmcInfo | null", - "format": "" + "type": "BcmcInfo | null" }, { "name": "businessLineId", "baseName": "businessLineId", - "type": "string", - "format": "" + "type": "string" }, { "name": "cartesBancaires", "baseName": "cartesBancaires", - "type": "CartesBancairesInfo | null", - "format": "" + "type": "CartesBancairesInfo | null" }, { "name": "clearpay", "baseName": "clearpay", - "type": "ClearpayInfo | null", - "format": "" + "type": "ClearpayInfo | null" }, { "name": "countries", "baseName": "countries", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "cup", "baseName": "cup", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" }, { "name": "currencies", "baseName": "currencies", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "customRoutingFlags", "baseName": "customRoutingFlags", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "diners", "baseName": "diners", - "type": "DinersInfo | null", - "format": "" + "type": "DinersInfo | null" }, { "name": "discover", "baseName": "discover", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" }, { "name": "eft_directdebit_CA", "baseName": "eft_directdebit_CA", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" }, { "name": "eftpos_australia", "baseName": "eftpos_australia", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" }, { "name": "enabled", "baseName": "enabled", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "girocard", "baseName": "girocard", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" }, { "name": "googlePay", "baseName": "googlePay", - "type": "GooglePayInfo | null", - "format": "" + "type": "GooglePayInfo | null" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "ideal", "baseName": "ideal", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" }, { "name": "interac_card", "baseName": "interac_card", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" }, { "name": "jcb", "baseName": "jcb", - "type": "JCBInfo | null", - "format": "" + "type": "JCBInfo | null" }, { "name": "klarna", "baseName": "klarna", - "type": "KlarnaInfo | null", - "format": "" + "type": "KlarnaInfo | null" }, { "name": "maestro", "baseName": "maestro", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" + }, + { + "name": "maestro_usa", + "baseName": "maestro_usa", + "type": "GenericPmWithTdiInfo | null" }, { "name": "mc", "baseName": "mc", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" }, { "name": "mealVoucher_FR", "baseName": "mealVoucher_FR", - "type": "MealVoucherFRInfo | null", - "format": "" + "type": "MealVoucherFRInfo | null" }, { "name": "nyce", "baseName": "nyce", - "type": "NyceInfo | null", - "format": "" + "type": "NyceInfo | null" }, { "name": "paybybank_plaid", "baseName": "paybybank_plaid", - "type": "PayByBankPlaidInfo | null", - "format": "" + "type": "PayByBankPlaidInfo | null" }, { "name": "payme", "baseName": "payme", - "type": "PayMeInfo | null", - "format": "" + "type": "PayMeInfo | null" }, { "name": "paypal", "baseName": "paypal", - "type": "PayPalInfo | null", - "format": "" + "type": "PayPalInfo | null" }, { "name": "payto", "baseName": "payto", - "type": "PayToInfo | null", - "format": "" + "type": "PayToInfo | null" }, { "name": "pulse", "baseName": "pulse", - "type": "PulseInfo | null", - "format": "" + "type": "PulseInfo | null" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperInteraction", "baseName": "shopperInteraction", - "type": "string", - "format": "" + "type": "string" }, { "name": "sodexo", "baseName": "sodexo", - "type": "SodexoInfo | null", - "format": "" + "type": "SodexoInfo | null" }, { "name": "sofort", "baseName": "sofort", - "type": "SofortInfo | null", - "format": "" + "type": "SofortInfo | null" }, { "name": "star", "baseName": "star", - "type": "StarInfo | null", - "format": "" + "type": "StarInfo | null" }, { "name": "storeIds", "baseName": "storeIds", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "swish", "baseName": "swish", - "type": "SwishInfo | null", - "format": "" + "type": "SwishInfo | null" }, { "name": "ticket", "baseName": "ticket", - "type": "TicketInfo | null", - "format": "" + "type": "TicketInfo | null" }, { "name": "twint", "baseName": "twint", - "type": "TwintInfo | null", - "format": "" + "type": "TwintInfo | null" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" }, { "name": "verificationStatus", "baseName": "verificationStatus", - "type": "PaymentMethod.VerificationStatusEnum", - "format": "" + "type": "PaymentMethod.VerificationStatusEnum" }, { "name": "vipps", "baseName": "vipps", - "type": "VippsInfo | null", - "format": "" + "type": "VippsInfo | null" }, { "name": "visa", "baseName": "visa", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" }, { "name": "wechatpay", "baseName": "wechatpay", - "type": "WeChatPayInfo | null", - "format": "" + "type": "WeChatPayInfo | null" }, { "name": "wechatpay_pos", "baseName": "wechatpay_pos", - "type": "WeChatPayPosInfo | null", - "format": "" + "type": "WeChatPayPosInfo | null" } ]; static getAttributeTypeMap() { return PaymentMethod.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentMethod { diff --git a/src/typings/management/paymentMethodResponse.ts b/src/typings/management/paymentMethodResponse.ts index 270c2a677..355321c22 100644 --- a/src/typings/management/paymentMethodResponse.ts +++ b/src/typings/management/paymentMethodResponse.ts @@ -7,71 +7,60 @@ * Do not edit this class manually. */ -import { PaginationLinks } from "./paginationLinks"; -import { PaymentMethod } from "./paymentMethod"; - +import { PaginationLinks } from './paginationLinks'; +import { PaymentMethod } from './paymentMethod'; export class PaymentMethodResponse { - "_links"?: PaginationLinks | null; + '_links'?: PaginationLinks | null; /** * The list of supported payment methods and their details. */ - "data"?: Array; + 'data'?: Array; /** * Total number of items. */ - "itemsTotal": number; + 'itemsTotal': number; /** * Total number of pages. */ - "pagesTotal": number; + 'pagesTotal': number; /** * Payment method types with errors. */ - "typesWithErrors"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'typesWithErrors'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "_links", "baseName": "_links", - "type": "PaginationLinks | null", - "format": "" + "type": "PaginationLinks | null" }, { "name": "data", "baseName": "data", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "itemsTotal", "baseName": "itemsTotal", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "pagesTotal", "baseName": "pagesTotal", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "typesWithErrors", "baseName": "typesWithErrors", - "type": "PaymentMethodResponse.TypesWithErrorsEnum", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return PaymentMethodResponse.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentMethodResponse { @@ -83,9 +72,13 @@ export namespace PaymentMethodResponse { Alelo = 'alelo', Alipay = 'alipay', AlipayHk = 'alipay_hk', + AlipayPlus = 'alipay_plus', AlipayWap = 'alipay_wap', Amex = 'amex', Applepay = 'applepay', + Avancard = 'avancard', + AvancardCredit = 'avancard_credit', + AvancardDebit = 'avancard_debit', BaneseCard = 'banese_card', BaneseCardCredit = 'banese_card_credit', BaneseCardDebit = 'banese_card_debit', @@ -95,6 +88,14 @@ export namespace PaymentMethodResponse { Cartebancaire = 'cartebancaire', Clearpay = 'clearpay', Clicktopay = 'clicktopay', + Cooper = 'cooper', + CooperCredit = 'cooper_credit', + CooperDebit = 'cooper_debit', + CooperFoodDebit = 'cooper_food_debit', + CooperMealDebit = 'cooper_meal_debit', + CooperPrepaid = 'cooper_prepaid', + CooperPrivateCredit = 'cooper_private_credit', + CooperRetailCredit = 'cooper_retail_credit', Credtodos = 'credtodos', CredtodosPrivateCredit = 'credtodos_private_credit', CredtodosPrivateDebit = 'credtodos_private_debit', @@ -110,6 +111,12 @@ export namespace PaymentMethodResponse { Elodebit = 'elodebit', Girocard = 'girocard', Googlepay = 'googlepay', + GreenCard = 'green_card', + GreenCardCredit = 'green_card_credit', + GreenCardDebit = 'green_card_debit', + GreenCardFoodPrepaid = 'green_card_food_prepaid', + GreenCardMealPrepaid = 'green_card_meal_prepaid', + GreenCardPrepaid = 'green_card_prepaid', Hiper = 'hiper', Hipercard = 'hipercard', Ideal = 'ideal', @@ -118,13 +125,24 @@ export namespace PaymentMethodResponse { Klarna = 'klarna', KlarnaAccount = 'klarna_account', KlarnaPaynow = 'klarna_paynow', + LeCard = 'le_card', + LeCardCredit = 'le_card_credit', + LeCardDebit = 'le_card_debit', Maestro = 'maestro', + MaestroUsa = 'maestro_usa', + Maxifrota = 'maxifrota', + MaxifrotaPrepaid = 'maxifrota_prepaid', Mbway = 'mbway', Mc = 'mc', Mcdebit = 'mcdebit', MealVoucherFr = 'mealVoucher_FR', + Megaleve = 'megaleve', + MegaleveCredit = 'megaleve_credit', + MegaleveDebit = 'megaleve_debit', Mobilepay = 'mobilepay', Multibanco = 'multibanco', + Nutricash = 'nutricash', + NutricashPrepaid = 'nutricash_prepaid', Nyce = 'nyce', OnlineBankingPl = 'onlineBanking_PL', Paybybank = 'paybybank', @@ -135,7 +153,12 @@ export namespace PaymentMethodResponse { PaynowPos = 'paynow_pos', Paypal = 'paypal', Payto = 'payto', + PersonalCard = 'personal_card', + PersonalCardCredit = 'personal_card_credit', + PersonalCardDebit = 'personal_card_debit', Pulse = 'pulse', + Senff = 'senff', + SenffCredit = 'senff_credit', Sodexo = 'sodexo', Star = 'star', Swish = 'swish', @@ -144,9 +167,19 @@ export namespace PaymentMethodResponse { Trustly = 'trustly', Twint = 'twint', TwintPos = 'twint_pos', + UpBrazil = 'up_brazil', UpBrazilCredit = 'up_brazil_credit', + UpBrazilDebit = 'up_brazil_debit', + UpBrazilPrepaid = 'up_brazil_prepaid', ValeRefeicao = 'vale_refeicao', ValeRefeicaoPrepaid = 'vale_refeicao_prepaid', + VegasCard = 'vegas_card', + VegasCardCredit = 'vegas_card_credit', + VegasCardDebit = 'vegas_card_debit', + VeroCard = 'vero_card', + VeroCardCredit = 'vero_card_credit', + VeroCardDebit = 'vero_card_debit', + VeroCardPrepaid = 'vero_card_prepaid', Vipps = 'vipps', Visa = 'visa', Visadebit = 'visadebit', diff --git a/src/typings/management/paymentMethodSetupInfo.ts b/src/typings/management/paymentMethodSetupInfo.ts index 1af18c1c6..624b61452 100644 --- a/src/typings/management/paymentMethodSetupInfo.ts +++ b/src/typings/management/paymentMethodSetupInfo.ts @@ -7,397 +7,358 @@ * Do not edit this class manually. */ -import { AccelInfo } from "./accelInfo"; -import { AffirmInfo } from "./affirmInfo"; -import { AfterpayTouchInfo } from "./afterpayTouchInfo"; -import { AmexInfo } from "./amexInfo"; -import { ApplePayInfo } from "./applePayInfo"; -import { BcmcInfo } from "./bcmcInfo"; -import { CartesBancairesInfo } from "./cartesBancairesInfo"; -import { ClearpayInfo } from "./clearpayInfo"; -import { DinersInfo } from "./dinersInfo"; -import { GenericPmWithTdiInfo } from "./genericPmWithTdiInfo"; -import { GooglePayInfo } from "./googlePayInfo"; -import { JCBInfo } from "./jCBInfo"; -import { KlarnaInfo } from "./klarnaInfo"; -import { MealVoucherFRInfo } from "./mealVoucherFRInfo"; -import { NyceInfo } from "./nyceInfo"; -import { PayByBankPlaidInfo } from "./payByBankPlaidInfo"; -import { PayMeInfo } from "./payMeInfo"; -import { PayPalInfo } from "./payPalInfo"; -import { PayToInfo } from "./payToInfo"; -import { PulseInfo } from "./pulseInfo"; -import { SodexoInfo } from "./sodexoInfo"; -import { SofortInfo } from "./sofortInfo"; -import { StarInfo } from "./starInfo"; -import { SwishInfo } from "./swishInfo"; -import { TicketInfo } from "./ticketInfo"; -import { TwintInfo } from "./twintInfo"; -import { VippsInfo } from "./vippsInfo"; -import { WeChatPayInfo } from "./weChatPayInfo"; -import { WeChatPayPosInfo } from "./weChatPayPosInfo"; - +import { AccelInfo } from './accelInfo'; +import { AffirmInfo } from './affirmInfo'; +import { AfterpayTouchInfo } from './afterpayTouchInfo'; +import { AlipayPlusInfo } from './alipayPlusInfo'; +import { AmexInfo } from './amexInfo'; +import { ApplePayInfo } from './applePayInfo'; +import { BcmcInfo } from './bcmcInfo'; +import { CartesBancairesInfo } from './cartesBancairesInfo'; +import { ClearpayInfo } from './clearpayInfo'; +import { DinersInfo } from './dinersInfo'; +import { GenericPmWithTdiInfo } from './genericPmWithTdiInfo'; +import { GooglePayInfo } from './googlePayInfo'; +import { JCBInfo } from './jCBInfo'; +import { KlarnaInfo } from './klarnaInfo'; +import { MealVoucherFRInfo } from './mealVoucherFRInfo'; +import { NyceInfo } from './nyceInfo'; +import { PayByBankPlaidInfo } from './payByBankPlaidInfo'; +import { PayMeInfo } from './payMeInfo'; +import { PayPalInfo } from './payPalInfo'; +import { PayToInfo } from './payToInfo'; +import { PulseInfo } from './pulseInfo'; +import { SodexoInfo } from './sodexoInfo'; +import { SofortInfo } from './sofortInfo'; +import { StarInfo } from './starInfo'; +import { SwishInfo } from './swishInfo'; +import { TicketInfo } from './ticketInfo'; +import { TwintInfo } from './twintInfo'; +import { VippsInfo } from './vippsInfo'; +import { WeChatPayInfo } from './weChatPayInfo'; +import { WeChatPayPosInfo } from './weChatPayPosInfo'; export class PaymentMethodSetupInfo { - "accel"?: AccelInfo | null; - "affirm"?: AffirmInfo | null; - "afterpayTouch"?: AfterpayTouchInfo | null; - "amex"?: AmexInfo | null; - "applePay"?: ApplePayInfo | null; - "bcmc"?: BcmcInfo | null; + 'accel'?: AccelInfo | null; + 'affirm'?: AffirmInfo | null; + 'afterpayTouch'?: AfterpayTouchInfo | null; + 'alipayPlus'?: AlipayPlusInfo | null; + 'amex'?: AmexInfo | null; + 'applePay'?: ApplePayInfo | null; + 'bcmc'?: BcmcInfo | null; /** * The unique identifier of the business line. Required if you are a [platform model](https://docs.adyen.com/platforms). */ - "businessLineId"?: string; - "cartesBancaires"?: CartesBancairesInfo | null; - "clearpay"?: ClearpayInfo | null; + 'businessLineId'?: string; + 'cartesBancaires'?: CartesBancairesInfo | null; + 'clearpay'?: ClearpayInfo | null; /** * The list of countries where a payment method is available. By default, all countries supported by the payment method. */ - "countries"?: Array; - "cup"?: GenericPmWithTdiInfo | null; + 'countries'?: Array; + 'cup'?: GenericPmWithTdiInfo | null; /** * The list of currencies that a payment method supports. By default, all currencies supported by the payment method. */ - "currencies"?: Array; + 'currencies'?: Array; /** * The list of custom routing flags to route payment to the intended acquirer. */ - "customRoutingFlags"?: Array; - "diners"?: DinersInfo | null; - "discover"?: GenericPmWithTdiInfo | null; - "eft_directdebit_CA"?: GenericPmWithTdiInfo | null; - "eftpos_australia"?: GenericPmWithTdiInfo | null; - "girocard"?: GenericPmWithTdiInfo | null; - "googlePay"?: GooglePayInfo | null; - "ideal"?: GenericPmWithTdiInfo | null; - "interac_card"?: GenericPmWithTdiInfo | null; - "jcb"?: JCBInfo | null; - "klarna"?: KlarnaInfo | null; - "maestro"?: GenericPmWithTdiInfo | null; - "mc"?: GenericPmWithTdiInfo | null; - "mealVoucher_FR"?: MealVoucherFRInfo | null; - "nyce"?: NyceInfo | null; - "paybybank_plaid"?: PayByBankPlaidInfo | null; - "payme"?: PayMeInfo | null; - "paypal"?: PayPalInfo | null; - "payto"?: PayToInfo | null; - "pulse"?: PulseInfo | null; + 'customRoutingFlags'?: Array; + 'diners'?: DinersInfo | null; + 'discover'?: GenericPmWithTdiInfo | null; + 'eft_directdebit_CA'?: GenericPmWithTdiInfo | null; + 'eftpos_australia'?: GenericPmWithTdiInfo | null; + 'girocard'?: GenericPmWithTdiInfo | null; + 'googlePay'?: GooglePayInfo | null; + 'ideal'?: GenericPmWithTdiInfo | null; + 'interac_card'?: GenericPmWithTdiInfo | null; + 'jcb'?: JCBInfo | null; + 'klarna'?: KlarnaInfo | null; + 'maestro'?: GenericPmWithTdiInfo | null; + 'maestro_usa'?: GenericPmWithTdiInfo | null; + 'mc'?: GenericPmWithTdiInfo | null; + 'mealVoucher_FR'?: MealVoucherFRInfo | null; + 'nyce'?: NyceInfo | null; + 'paybybank_plaid'?: PayByBankPlaidInfo | null; + 'payme'?: PayMeInfo | null; + 'paypal'?: PayPalInfo | null; + 'payto'?: PayToInfo | null; + 'pulse'?: PulseInfo | null; /** * Your reference for the payment method. Supported characters a-z, A-Z, 0-9. */ - "reference"?: string; + 'reference'?: string; /** * The sales channel. Required if the merchant account does not have a sales channel. When you provide this field, it overrides the default sales channel set on the merchant account. Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. */ - "shopperInteraction"?: PaymentMethodSetupInfo.ShopperInteractionEnum; - "sodexo"?: SodexoInfo | null; - "sofort"?: SofortInfo | null; - "star"?: StarInfo | null; + 'shopperInteraction'?: PaymentMethodSetupInfo.ShopperInteractionEnum; + 'sodexo'?: SodexoInfo | null; + 'sofort'?: SofortInfo | null; + 'star'?: StarInfo | null; /** * The unique identifier of the store for which to configure the payment method, if any. */ - "storeIds"?: Array; - "swish"?: SwishInfo | null; - "ticket"?: TicketInfo | null; - "twint"?: TwintInfo | null; + 'storeIds'?: Array; + 'swish'?: SwishInfo | null; + 'ticket'?: TicketInfo | null; + 'twint'?: TwintInfo | null; /** * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). */ - "type": PaymentMethodSetupInfo.TypeEnum; - "vipps"?: VippsInfo | null; - "visa"?: GenericPmWithTdiInfo | null; - "wechatpay"?: WeChatPayInfo | null; - "wechatpay_pos"?: WeChatPayPosInfo | null; - - static readonly discriminator: string | undefined = undefined; + 'type': PaymentMethodSetupInfo.TypeEnum; + 'vipps'?: VippsInfo | null; + 'visa'?: GenericPmWithTdiInfo | null; + 'wechatpay'?: WeChatPayInfo | null; + 'wechatpay_pos'?: WeChatPayPosInfo | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accel", "baseName": "accel", - "type": "AccelInfo | null", - "format": "" + "type": "AccelInfo | null" }, { "name": "affirm", "baseName": "affirm", - "type": "AffirmInfo | null", - "format": "" + "type": "AffirmInfo | null" }, { "name": "afterpayTouch", "baseName": "afterpayTouch", - "type": "AfterpayTouchInfo | null", - "format": "" + "type": "AfterpayTouchInfo | null" + }, + { + "name": "alipayPlus", + "baseName": "alipayPlus", + "type": "AlipayPlusInfo | null" }, { "name": "amex", "baseName": "amex", - "type": "AmexInfo | null", - "format": "" + "type": "AmexInfo | null" }, { "name": "applePay", "baseName": "applePay", - "type": "ApplePayInfo | null", - "format": "" + "type": "ApplePayInfo | null" }, { "name": "bcmc", "baseName": "bcmc", - "type": "BcmcInfo | null", - "format": "" + "type": "BcmcInfo | null" }, { "name": "businessLineId", "baseName": "businessLineId", - "type": "string", - "format": "" + "type": "string" }, { "name": "cartesBancaires", "baseName": "cartesBancaires", - "type": "CartesBancairesInfo | null", - "format": "" + "type": "CartesBancairesInfo | null" }, { "name": "clearpay", "baseName": "clearpay", - "type": "ClearpayInfo | null", - "format": "" + "type": "ClearpayInfo | null" }, { "name": "countries", "baseName": "countries", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "cup", "baseName": "cup", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" }, { "name": "currencies", "baseName": "currencies", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "customRoutingFlags", "baseName": "customRoutingFlags", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "diners", "baseName": "diners", - "type": "DinersInfo | null", - "format": "" + "type": "DinersInfo | null" }, { "name": "discover", "baseName": "discover", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" }, { "name": "eft_directdebit_CA", "baseName": "eft_directdebit_CA", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" }, { "name": "eftpos_australia", "baseName": "eftpos_australia", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" }, { "name": "girocard", "baseName": "girocard", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" }, { "name": "googlePay", "baseName": "googlePay", - "type": "GooglePayInfo | null", - "format": "" + "type": "GooglePayInfo | null" }, { "name": "ideal", "baseName": "ideal", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" }, { "name": "interac_card", "baseName": "interac_card", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" }, { "name": "jcb", "baseName": "jcb", - "type": "JCBInfo | null", - "format": "" + "type": "JCBInfo | null" }, { "name": "klarna", "baseName": "klarna", - "type": "KlarnaInfo | null", - "format": "" + "type": "KlarnaInfo | null" }, { "name": "maestro", "baseName": "maestro", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" + }, + { + "name": "maestro_usa", + "baseName": "maestro_usa", + "type": "GenericPmWithTdiInfo | null" }, { "name": "mc", "baseName": "mc", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" }, { "name": "mealVoucher_FR", "baseName": "mealVoucher_FR", - "type": "MealVoucherFRInfo | null", - "format": "" + "type": "MealVoucherFRInfo | null" }, { "name": "nyce", "baseName": "nyce", - "type": "NyceInfo | null", - "format": "" + "type": "NyceInfo | null" }, { "name": "paybybank_plaid", "baseName": "paybybank_plaid", - "type": "PayByBankPlaidInfo | null", - "format": "" + "type": "PayByBankPlaidInfo | null" }, { "name": "payme", "baseName": "payme", - "type": "PayMeInfo | null", - "format": "" + "type": "PayMeInfo | null" }, { "name": "paypal", "baseName": "paypal", - "type": "PayPalInfo | null", - "format": "" + "type": "PayPalInfo | null" }, { "name": "payto", "baseName": "payto", - "type": "PayToInfo | null", - "format": "" + "type": "PayToInfo | null" }, { "name": "pulse", "baseName": "pulse", - "type": "PulseInfo | null", - "format": "" + "type": "PulseInfo | null" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperInteraction", "baseName": "shopperInteraction", - "type": "PaymentMethodSetupInfo.ShopperInteractionEnum", - "format": "" + "type": "PaymentMethodSetupInfo.ShopperInteractionEnum" }, { "name": "sodexo", "baseName": "sodexo", - "type": "SodexoInfo | null", - "format": "" + "type": "SodexoInfo | null" }, { "name": "sofort", "baseName": "sofort", - "type": "SofortInfo | null", - "format": "" + "type": "SofortInfo | null" }, { "name": "star", "baseName": "star", - "type": "StarInfo | null", - "format": "" + "type": "StarInfo | null" }, { "name": "storeIds", "baseName": "storeIds", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "swish", "baseName": "swish", - "type": "SwishInfo | null", - "format": "" + "type": "SwishInfo | null" }, { "name": "ticket", "baseName": "ticket", - "type": "TicketInfo | null", - "format": "" + "type": "TicketInfo | null" }, { "name": "twint", "baseName": "twint", - "type": "TwintInfo | null", - "format": "" + "type": "TwintInfo | null" }, { "name": "type", "baseName": "type", - "type": "PaymentMethodSetupInfo.TypeEnum", - "format": "" + "type": "PaymentMethodSetupInfo.TypeEnum" }, { "name": "vipps", "baseName": "vipps", - "type": "VippsInfo | null", - "format": "" + "type": "VippsInfo | null" }, { "name": "visa", "baseName": "visa", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" }, { "name": "wechatpay", "baseName": "wechatpay", - "type": "WeChatPayInfo | null", - "format": "" + "type": "WeChatPayInfo | null" }, { "name": "wechatpay_pos", "baseName": "wechatpay_pos", - "type": "WeChatPayPosInfo | null", - "format": "" + "type": "WeChatPayPosInfo | null" } ]; static getAttributeTypeMap() { return PaymentMethodSetupInfo.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentMethodSetupInfo { @@ -415,9 +376,13 @@ export namespace PaymentMethodSetupInfo { Alelo = 'alelo', Alipay = 'alipay', AlipayHk = 'alipay_hk', + AlipayPlus = 'alipay_plus', AlipayWap = 'alipay_wap', Amex = 'amex', Applepay = 'applepay', + Avancard = 'avancard', + AvancardCredit = 'avancard_credit', + AvancardDebit = 'avancard_debit', BaneseCard = 'banese_card', BaneseCardCredit = 'banese_card_credit', BaneseCardDebit = 'banese_card_debit', @@ -427,6 +392,14 @@ export namespace PaymentMethodSetupInfo { Cartebancaire = 'cartebancaire', Clearpay = 'clearpay', Clicktopay = 'clicktopay', + Cooper = 'cooper', + CooperCredit = 'cooper_credit', + CooperDebit = 'cooper_debit', + CooperFoodDebit = 'cooper_food_debit', + CooperMealDebit = 'cooper_meal_debit', + CooperPrepaid = 'cooper_prepaid', + CooperPrivateCredit = 'cooper_private_credit', + CooperRetailCredit = 'cooper_retail_credit', Credtodos = 'credtodos', CredtodosPrivateCredit = 'credtodos_private_credit', CredtodosPrivateDebit = 'credtodos_private_debit', @@ -442,6 +415,12 @@ export namespace PaymentMethodSetupInfo { Elodebit = 'elodebit', Girocard = 'girocard', Googlepay = 'googlepay', + GreenCard = 'green_card', + GreenCardCredit = 'green_card_credit', + GreenCardDebit = 'green_card_debit', + GreenCardFoodPrepaid = 'green_card_food_prepaid', + GreenCardMealPrepaid = 'green_card_meal_prepaid', + GreenCardPrepaid = 'green_card_prepaid', Hiper = 'hiper', Hipercard = 'hipercard', Ideal = 'ideal', @@ -450,13 +429,24 @@ export namespace PaymentMethodSetupInfo { Klarna = 'klarna', KlarnaAccount = 'klarna_account', KlarnaPaynow = 'klarna_paynow', + LeCard = 'le_card', + LeCardCredit = 'le_card_credit', + LeCardDebit = 'le_card_debit', Maestro = 'maestro', + MaestroUsa = 'maestro_usa', + Maxifrota = 'maxifrota', + MaxifrotaPrepaid = 'maxifrota_prepaid', Mbway = 'mbway', Mc = 'mc', Mcdebit = 'mcdebit', MealVoucherFr = 'mealVoucher_FR', + Megaleve = 'megaleve', + MegaleveCredit = 'megaleve_credit', + MegaleveDebit = 'megaleve_debit', Mobilepay = 'mobilepay', Multibanco = 'multibanco', + Nutricash = 'nutricash', + NutricashPrepaid = 'nutricash_prepaid', Nyce = 'nyce', OnlineBankingPl = 'onlineBanking_PL', Paybybank = 'paybybank', @@ -467,7 +457,12 @@ export namespace PaymentMethodSetupInfo { PaynowPos = 'paynow_pos', Paypal = 'paypal', Payto = 'payto', + PersonalCard = 'personal_card', + PersonalCardCredit = 'personal_card_credit', + PersonalCardDebit = 'personal_card_debit', Pulse = 'pulse', + Senff = 'senff', + SenffCredit = 'senff_credit', Sodexo = 'sodexo', Star = 'star', Swish = 'swish', @@ -476,9 +471,19 @@ export namespace PaymentMethodSetupInfo { Trustly = 'trustly', Twint = 'twint', TwintPos = 'twint_pos', + UpBrazil = 'up_brazil', UpBrazilCredit = 'up_brazil_credit', + UpBrazilDebit = 'up_brazil_debit', + UpBrazilPrepaid = 'up_brazil_prepaid', ValeRefeicao = 'vale_refeicao', ValeRefeicaoPrepaid = 'vale_refeicao_prepaid', + VegasCard = 'vegas_card', + VegasCardCredit = 'vegas_card_credit', + VegasCardDebit = 'vegas_card_debit', + VeroCard = 'vero_card', + VeroCardCredit = 'vero_card_credit', + VeroCardDebit = 'vero_card_debit', + VeroCardPrepaid = 'vero_card_prepaid', Vipps = 'vipps', Visa = 'visa', Visadebit = 'visadebit', diff --git a/src/typings/management/payoutSettings.ts b/src/typings/management/payoutSettings.ts index 701102648..ef6fd0df3 100644 --- a/src/typings/management/payoutSettings.ts +++ b/src/typings/management/payoutSettings.ts @@ -12,86 +12,74 @@ export class PayoutSettings { /** * Indicates if payouts to the bank account are allowed. This value is set automatically based on the status of the verification process. The value is: * **true** if `verificationStatus` is **valid**. * **false** for all other values. */ - "allowed"?: boolean; + 'allowed'?: boolean; /** * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. */ - "enabled"?: boolean; + 'enabled'?: boolean; /** * The date when Adyen starts paying out to this bank account. Format: [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if payouts are enabled for this bank account. If a date is specified and: * `enabled`: **true**, payouts are enabled starting the specified date. * `enabled`: **false**, payouts are disabled until the specified date. On the specified date, `enabled` changes to **true** and this field is reset to **null**. */ - "enabledFromDate"?: string; + 'enabledFromDate'?: string; /** * The unique identifier of the payout setting. */ - "id": string; + 'id': string; /** * Determines how long it takes for the funds to reach the bank account. Adyen pays out based on the [payout frequency](https://docs.adyen.com/account/getting-paid#payout-frequency). Depending on the currencies and banks involved in transferring the money, it may take up to three days for the payout funds to arrive in the bank account. Possible values: * **first**: same day. * **urgent**: the next day. * **normal**: between 1 and 3 days. */ - "priority"?: PayoutSettings.PriorityEnum; + 'priority'?: PayoutSettings.PriorityEnum; /** * The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) that contains the details of the bank account. */ - "transferInstrumentId": string; + 'transferInstrumentId': string; /** * The status of the verification process for the bank account. Possible values: * **valid**: the verification was successful. * **pending**: the verification is in progress. * **invalid**: the information provided is not complete. * **rejected**: there are reasons to refuse working with this entity. */ - "verificationStatus"?: PayoutSettings.VerificationStatusEnum; + 'verificationStatus'?: PayoutSettings.VerificationStatusEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "allowed", "baseName": "allowed", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "enabled", "baseName": "enabled", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "enabledFromDate", "baseName": "enabledFromDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "priority", "baseName": "priority", - "type": "PayoutSettings.PriorityEnum", - "format": "" + "type": "PayoutSettings.PriorityEnum" }, { "name": "transferInstrumentId", "baseName": "transferInstrumentId", - "type": "string", - "format": "" + "type": "string" }, { "name": "verificationStatus", "baseName": "verificationStatus", - "type": "PayoutSettings.VerificationStatusEnum", - "format": "" + "type": "PayoutSettings.VerificationStatusEnum" } ]; static getAttributeTypeMap() { return PayoutSettings.attributeTypeMap; } - - public constructor() { - } } export namespace PayoutSettings { diff --git a/src/typings/management/payoutSettingsRequest.ts b/src/typings/management/payoutSettingsRequest.ts index 863d05714..41e437124 100644 --- a/src/typings/management/payoutSettingsRequest.ts +++ b/src/typings/management/payoutSettingsRequest.ts @@ -12,45 +12,37 @@ export class PayoutSettingsRequest { /** * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. */ - "enabled"?: boolean; + 'enabled'?: boolean; /** * The date when Adyen starts paying out to this bank account. Format: [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if payouts are enabled for this bank account. If a date is specified and: * `enabled`: **true**, payouts are enabled starting the specified date. * `enabled`: **false**, payouts are disabled until the specified date. On the specified date, `enabled` changes to **true** and this field is reset to **null**. */ - "enabledFromDate"?: string; + 'enabledFromDate'?: string; /** * The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) that contains the details of the bank account. */ - "transferInstrumentId": string; + 'transferInstrumentId': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "enabled", "baseName": "enabled", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "enabledFromDate", "baseName": "enabledFromDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "transferInstrumentId", "baseName": "transferInstrumentId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PayoutSettingsRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/payoutSettingsResponse.ts b/src/typings/management/payoutSettingsResponse.ts index a63a94536..20926085d 100644 --- a/src/typings/management/payoutSettingsResponse.ts +++ b/src/typings/management/payoutSettingsResponse.ts @@ -7,32 +7,25 @@ * Do not edit this class manually. */ -import { PayoutSettings } from "./payoutSettings"; - +import { PayoutSettings } from './payoutSettings'; export class PayoutSettingsResponse { /** * The list of payout accounts. */ - "data"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'data'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return PayoutSettingsResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/profile.ts b/src/typings/management/profile.ts index 03d27f0aa..25a1a290c 100644 --- a/src/typings/management/profile.ts +++ b/src/typings/management/profile.ts @@ -12,193 +12,169 @@ export class Profile { /** * The type of Wi-Fi network. Possible values: **wpa-psk**, **wpa2-psk**, **wpa-eap**, **wpa2-eap**. */ - "authType": string; + 'authType': string; /** * Indicates whether to automatically select the best authentication method available. Does not work on older terminal models. */ - "autoWifi"?: boolean; + 'autoWifi'?: boolean; /** * Use **infra** for infrastructure-based networks. This applies to most networks. Use **adhoc** only if the communication is p2p-based between base stations. */ - "bssType": string; + 'bssType': string; /** * The channel number of the Wi-Fi network. The recommended setting is **0** for automatic channel selection. */ - "channel"?: number; + 'channel'?: number; /** * Indicates whether this is your preferred wireless network. If **true**, the terminal will try connecting to this network first. */ - "defaultProfile"?: boolean; + 'defaultProfile'?: boolean; /** * Specifies the server domain name for EAP-TLS and EAP-PEAP WiFi profiles on Android 11 and above. */ - "domainSuffix"?: string; + 'domainSuffix'?: string; /** * For `authType` **wpa-eap** or **wpa2-eap**. Possible values: **tls**, **peap**, **leap**, **fast** */ - "eap"?: string; - "eapCaCert"?: any | null; - "eapClientCert"?: any | null; - "eapClientKey"?: any | null; + 'eap'?: string; + 'eapCaCert'?: any | null; + 'eapClientCert'?: any | null; + 'eapClientKey'?: any | null; /** * For `eap` **tls**. The password of the RSA key file, if that file is password-protected. */ - "eapClientPwd"?: string; + 'eapClientPwd'?: string; /** * For `authType` **wpa-eap** or **wpa2-eap**. The EAP-PEAP username from your MS-CHAP account. Must match the configuration of your RADIUS server. */ - "eapIdentity"?: string; - "eapIntermediateCert"?: any | null; + 'eapIdentity'?: string; + 'eapIntermediateCert'?: any | null; /** * For `eap` **peap**. The EAP-PEAP password from your MS-CHAP account. Must match the configuration of your RADIUS server. */ - "eapPwd"?: string; + 'eapPwd'?: string; /** * Indicates if the network doesn\'t broadcast its SSID. Mandatory for Android terminals, because these terminals rely on this setting to be able to connect to any network. */ - "hiddenSsid"?: boolean; + 'hiddenSsid'?: boolean; /** * Your name for the Wi-Fi profile. */ - "name"?: string; + 'name'?: string; /** * For `authType` **wpa-psk or **wpa2-psk**. The password to the wireless network. */ - "psk"?: string; + 'psk'?: string; /** * The name of the wireless network. */ - "ssid": string; + 'ssid': string; /** * The type of encryption. Possible values: **auto**, **ccmp** (recommended), **tkip** */ - "wsec": string; + 'wsec': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "authType", "baseName": "authType", - "type": "string", - "format": "" + "type": "string" }, { "name": "autoWifi", "baseName": "autoWifi", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "bssType", "baseName": "bssType", - "type": "string", - "format": "" + "type": "string" }, { "name": "channel", "baseName": "channel", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "defaultProfile", "baseName": "defaultProfile", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "domainSuffix", "baseName": "domainSuffix", - "type": "string", - "format": "" + "type": "string" }, { "name": "eap", "baseName": "eap", - "type": "string", - "format": "" + "type": "string" }, { "name": "eapCaCert", "baseName": "eapCaCert", - "type": "any | null", - "format": "" + "type": "any | null" }, { "name": "eapClientCert", "baseName": "eapClientCert", - "type": "any | null", - "format": "" + "type": "any | null" }, { "name": "eapClientKey", "baseName": "eapClientKey", - "type": "any | null", - "format": "" + "type": "any | null" }, { "name": "eapClientPwd", "baseName": "eapClientPwd", - "type": "string", - "format": "" + "type": "string" }, { "name": "eapIdentity", "baseName": "eapIdentity", - "type": "string", - "format": "" + "type": "string" }, { "name": "eapIntermediateCert", "baseName": "eapIntermediateCert", - "type": "any | null", - "format": "" + "type": "any | null" }, { "name": "eapPwd", "baseName": "eapPwd", - "type": "string", - "format": "" + "type": "string" }, { "name": "hiddenSsid", "baseName": "hiddenSsid", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "psk", "baseName": "psk", - "type": "string", - "format": "" + "type": "string" }, { "name": "ssid", "baseName": "ssid", - "type": "string", - "format": "" + "type": "string" }, { "name": "wsec", "baseName": "wsec", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Profile.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/pulseInfo.ts b/src/typings/management/pulseInfo.ts index 8e9748975..174f19211 100644 --- a/src/typings/management/pulseInfo.ts +++ b/src/typings/management/pulseInfo.ts @@ -7,40 +7,32 @@ * Do not edit this class manually. */ -import { TransactionDescriptionInfo } from "./transactionDescriptionInfo"; - +import { TransactionDescriptionInfo } from './transactionDescriptionInfo'; export class PulseInfo { /** * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. */ - "processingType": PulseInfo.ProcessingTypeEnum; - "transactionDescription"?: TransactionDescriptionInfo | null; - - static readonly discriminator: string | undefined = undefined; + 'processingType': PulseInfo.ProcessingTypeEnum; + 'transactionDescription'?: TransactionDescriptionInfo | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "processingType", "baseName": "processingType", - "type": "PulseInfo.ProcessingTypeEnum", - "format": "" + "type": "PulseInfo.ProcessingTypeEnum" }, { "name": "transactionDescription", "baseName": "transactionDescription", - "type": "TransactionDescriptionInfo | null", - "format": "" + "type": "TransactionDescriptionInfo | null" } ]; static getAttributeTypeMap() { return PulseInfo.attributeTypeMap; } - - public constructor() { - } } export namespace PulseInfo { diff --git a/src/typings/management/receiptOptions.ts b/src/typings/management/receiptOptions.ts index e6da39f7e..ce64dfd81 100644 --- a/src/typings/management/receiptOptions.ts +++ b/src/typings/management/receiptOptions.ts @@ -12,45 +12,37 @@ export class ReceiptOptions { /** * The receipt logo converted to a Base64-encoded string. The image must be a .bmp file of < 256 KB, dimensions 240 (H) x 384 (W) px. */ - "logo"?: string; + 'logo'?: string; /** * Indicates whether a screen appears asking if you want to print the shopper receipt. */ - "promptBeforePrinting"?: boolean; + 'promptBeforePrinting'?: boolean; /** * Data to print on the receipt as a QR code. This can include static text and the following variables: - `${merchantreference}`: the merchant reference of the transaction. - `${pspreference}`: the PSP reference of the transaction. For example, **http://www.example.com/order/${pspreference}/${merchantreference}**. */ - "qrCodeData"?: string; + 'qrCodeData'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "logo", "baseName": "logo", - "type": "string", - "format": "" + "type": "string" }, { "name": "promptBeforePrinting", "baseName": "promptBeforePrinting", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "qrCodeData", "baseName": "qrCodeData", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ReceiptOptions.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/receiptPrinting.ts b/src/typings/management/receiptPrinting.ts index 67f9ecbeb..56e6ef5ac 100644 --- a/src/typings/management/receiptPrinting.ts +++ b/src/typings/management/receiptPrinting.ts @@ -12,175 +12,154 @@ export class ReceiptPrinting { /** * Print a merchant receipt when the payment is approved. */ - "merchantApproved"?: boolean; + 'merchantApproved'?: boolean; /** * Print a merchant receipt when the transaction is cancelled. */ - "merchantCancelled"?: boolean; + 'merchantCancelled'?: boolean; /** * Print a merchant receipt when capturing the payment is approved. */ - "merchantCaptureApproved"?: boolean; + 'merchantCaptureApproved'?: boolean; /** * Print a merchant receipt when capturing the payment is refused. */ - "merchantCaptureRefused"?: boolean; + 'merchantCaptureRefused'?: boolean; /** * Print a merchant receipt when the refund is approved. */ - "merchantRefundApproved"?: boolean; + 'merchantRefundApproved'?: boolean; /** * Print a merchant receipt when the refund is refused. */ - "merchantRefundRefused"?: boolean; + 'merchantRefundRefused'?: boolean; /** * Print a merchant receipt when the payment is refused. */ - "merchantRefused"?: boolean; + 'merchantRefused'?: boolean; /** * Print a merchant receipt when a previous transaction is voided. */ - "merchantVoid"?: boolean; + 'merchantVoid'?: boolean; /** * Print a shopper receipt when the payment is approved. */ - "shopperApproved"?: boolean; + 'shopperApproved'?: boolean; /** * Print a shopper receipt when the transaction is cancelled. */ - "shopperCancelled"?: boolean; + 'shopperCancelled'?: boolean; /** * Print a shopper receipt when capturing the payment is approved. */ - "shopperCaptureApproved"?: boolean; + 'shopperCaptureApproved'?: boolean; /** * Print a shopper receipt when capturing the payment is refused. */ - "shopperCaptureRefused"?: boolean; + 'shopperCaptureRefused'?: boolean; /** * Print a shopper receipt when the refund is approved. */ - "shopperRefundApproved"?: boolean; + 'shopperRefundApproved'?: boolean; /** * Print a shopper receipt when the refund is refused. */ - "shopperRefundRefused"?: boolean; + 'shopperRefundRefused'?: boolean; /** * Print a shopper receipt when the payment is refused. */ - "shopperRefused"?: boolean; + 'shopperRefused'?: boolean; /** * Print a shopper receipt when a previous transaction is voided. */ - "shopperVoid"?: boolean; + 'shopperVoid'?: boolean; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "merchantApproved", "baseName": "merchantApproved", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "merchantCancelled", "baseName": "merchantCancelled", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "merchantCaptureApproved", "baseName": "merchantCaptureApproved", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "merchantCaptureRefused", "baseName": "merchantCaptureRefused", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "merchantRefundApproved", "baseName": "merchantRefundApproved", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "merchantRefundRefused", "baseName": "merchantRefundRefused", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "merchantRefused", "baseName": "merchantRefused", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "merchantVoid", "baseName": "merchantVoid", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "shopperApproved", "baseName": "shopperApproved", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "shopperCancelled", "baseName": "shopperCancelled", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "shopperCaptureApproved", "baseName": "shopperCaptureApproved", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "shopperCaptureRefused", "baseName": "shopperCaptureRefused", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "shopperRefundApproved", "baseName": "shopperRefundApproved", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "shopperRefundRefused", "baseName": "shopperRefundRefused", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "shopperRefused", "baseName": "shopperRefused", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "shopperVoid", "baseName": "shopperVoid", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return ReceiptPrinting.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/referenced.ts b/src/typings/management/referenced.ts index de47a15a9..576166d7b 100644 --- a/src/typings/management/referenced.ts +++ b/src/typings/management/referenced.ts @@ -12,25 +12,19 @@ export class Referenced { /** * Indicates whether referenced refunds are enabled on the standalone terminal. */ - "enableStandaloneRefunds"?: boolean; + 'enableStandaloneRefunds'?: boolean; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "enableStandaloneRefunds", "baseName": "enableStandaloneRefunds", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return Referenced.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/refunds.ts b/src/typings/management/refunds.ts index b52b03f12..f3391271d 100644 --- a/src/typings/management/refunds.ts +++ b/src/typings/management/refunds.ts @@ -7,29 +7,22 @@ * Do not edit this class manually. */ -import { Referenced } from "./referenced"; - +import { Referenced } from './referenced'; export class Refunds { - "referenced"?: Referenced | null; - - static readonly discriminator: string | undefined = undefined; + 'referenced'?: Referenced | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "referenced", "baseName": "referenced", - "type": "Referenced | null", - "format": "" + "type": "Referenced | null" } ]; static getAttributeTypeMap() { return Refunds.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/releaseUpdateDetails.ts b/src/typings/management/releaseUpdateDetails.ts index 18168904f..9a4396e68 100644 --- a/src/typings/management/releaseUpdateDetails.ts +++ b/src/typings/management/releaseUpdateDetails.ts @@ -12,36 +12,29 @@ export class ReleaseUpdateDetails { /** * Type of terminal action: Update Release. */ - "type"?: ReleaseUpdateDetails.TypeEnum; + 'type'?: ReleaseUpdateDetails.TypeEnum; /** * Boolean flag that tells if the terminal should update at the first next maintenance call. If false, terminal will update on its configured reboot time. */ - "updateAtFirstMaintenanceCall"?: boolean; + 'updateAtFirstMaintenanceCall'?: boolean; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "type", "baseName": "type", - "type": "ReleaseUpdateDetails.TypeEnum", - "format": "" + "type": "ReleaseUpdateDetails.TypeEnum" }, { "name": "updateAtFirstMaintenanceCall", "baseName": "updateAtFirstMaintenanceCall", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return ReleaseUpdateDetails.attributeTypeMap; } - - public constructor() { - } } export namespace ReleaseUpdateDetails { diff --git a/src/typings/management/reprocessAndroidAppResponse.ts b/src/typings/management/reprocessAndroidAppResponse.ts index ca4910436..fec888d46 100644 --- a/src/typings/management/reprocessAndroidAppResponse.ts +++ b/src/typings/management/reprocessAndroidAppResponse.ts @@ -12,25 +12,19 @@ export class ReprocessAndroidAppResponse { /** * The result of the reprocess. */ - "Message"?: string; + 'Message'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "Message", "baseName": "Message", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ReprocessAndroidAppResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/requestActivationResponse.ts b/src/typings/management/requestActivationResponse.ts index 4b13f3e2c..7df55fd60 100644 --- a/src/typings/management/requestActivationResponse.ts +++ b/src/typings/management/requestActivationResponse.ts @@ -12,35 +12,28 @@ export class RequestActivationResponse { /** * The unique identifier of the company account. */ - "companyId"?: string; + 'companyId'?: string; /** * The unique identifier of the merchant account you requested to activate. */ - "merchantId"?: string; + 'merchantId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "companyId", "baseName": "companyId", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantId", "baseName": "merchantId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return RequestActivationResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/restServiceError.ts b/src/typings/management/restServiceError.ts index cf7bf90f6..14566fb2c 100644 --- a/src/typings/management/restServiceError.ts +++ b/src/typings/management/restServiceError.ts @@ -7,109 +7,94 @@ * Do not edit this class manually. */ -import { InvalidField } from "./invalidField"; - +import { InvalidField } from './invalidField'; export class RestServiceError { /** * A human-readable explanation specific to this occurrence of the problem. */ - "detail": string; + 'detail': string; /** * A code that identifies the problem type. */ - "errorCode": string; + 'errorCode': string; /** * A unique URI that identifies the specific occurrence of the problem. */ - "instance"?: string; + 'instance'?: string; /** * Detailed explanation of each validation error, when applicable. */ - "invalidFields"?: Array; + 'invalidFields'?: Array; /** * A unique reference for the request, essentially the same as `pspReference`. */ - "requestId"?: string; - "response"?: any; + 'requestId'?: string; + 'response'?: object; /** * The HTTP status code. */ - "status": number; + 'status': number; /** * A short, human-readable summary of the problem type. */ - "title": string; + 'title': string; /** * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. */ - "type": string; - - static readonly discriminator: string | undefined = undefined; + 'type': string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "detail", "baseName": "detail", - "type": "string", - "format": "" + "type": "string" }, { "name": "errorCode", "baseName": "errorCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "instance", "baseName": "instance", - "type": "string", - "format": "" + "type": "string" }, { "name": "invalidFields", "baseName": "invalidFields", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "requestId", "baseName": "requestId", - "type": "string", - "format": "" + "type": "string" }, { "name": "response", "baseName": "response", - "type": "any", - "format": "" + "type": "object" }, { "name": "status", "baseName": "status", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "title", "baseName": "title", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return RestServiceError.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/scheduleTerminalActionsRequest.ts b/src/typings/management/scheduleTerminalActionsRequest.ts index 646d20ec6..0e535f180 100644 --- a/src/typings/management/scheduleTerminalActionsRequest.ts +++ b/src/typings/management/scheduleTerminalActionsRequest.ts @@ -7,59 +7,56 @@ * Do not edit this class manually. */ -import { ScheduleTerminalActionsRequestActionDetails } from "./scheduleTerminalActionsRequestActionDetails"; - +import { InstallAndroidAppDetails } from './installAndroidAppDetails'; +import { InstallAndroidCertificateDetails } from './installAndroidCertificateDetails'; +import { ReleaseUpdateDetails } from './releaseUpdateDetails'; +import { UninstallAndroidAppDetails } from './uninstallAndroidAppDetails'; +import { UninstallAndroidCertificateDetails } from './uninstallAndroidCertificateDetails'; export class ScheduleTerminalActionsRequest { - "actionDetails"?: ScheduleTerminalActionsRequestActionDetails | null; + /** + * Information about the action to take. + */ + 'actionDetails'?: InstallAndroidAppDetails | InstallAndroidCertificateDetails | ReleaseUpdateDetails | UninstallAndroidAppDetails | UninstallAndroidCertificateDetails | null; /** * The date and time when the action should happen. Format: [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) after the specified date and time in the time zone of the terminal. An empty value causes the action to be sent as soon as possible: at the next maintenance call. */ - "scheduledAt"?: string; + 'scheduledAt'?: string; /** * The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store. */ - "storeId"?: string; + 'storeId'?: string; /** * A list of unique IDs of the terminals to apply the action to. You can extract the IDs from the [GET `/terminals`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/terminals) response. Maximum length: 100 IDs. */ - "terminalIds"?: Array; + 'terminalIds'?: Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "actionDetails", "baseName": "actionDetails", - "type": "ScheduleTerminalActionsRequestActionDetails | null", - "format": "" + "type": "InstallAndroidAppDetails | InstallAndroidCertificateDetails | ReleaseUpdateDetails | UninstallAndroidAppDetails | UninstallAndroidCertificateDetails | null" }, { "name": "scheduledAt", "baseName": "scheduledAt", - "type": "string", - "format": "" + "type": "string" }, { "name": "storeId", "baseName": "storeId", - "type": "string", - "format": "" + "type": "string" }, { "name": "terminalIds", "baseName": "terminalIds", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return ScheduleTerminalActionsRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/scheduleTerminalActionsRequestActionDetails.ts b/src/typings/management/scheduleTerminalActionsRequestActionDetails.ts deleted file mode 100644 index 8346a15cf..000000000 --- a/src/typings/management/scheduleTerminalActionsRequestActionDetails.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. - */ - -import { InstallAndroidAppDetails } from "./installAndroidAppDetails"; -import { InstallAndroidCertificateDetails } from "./installAndroidCertificateDetails"; -import { ReleaseUpdateDetails } from "./releaseUpdateDetails"; -import { UninstallAndroidAppDetails } from "./uninstallAndroidAppDetails"; -import { UninstallAndroidCertificateDetails } from "./uninstallAndroidCertificateDetails"; - -/** -* Information about the action to take. -*/ - - -/** - * @type ScheduleTerminalActionsRequestActionDetails - * Type - * @export - */ -export type ScheduleTerminalActionsRequestActionDetails = InstallAndroidAppDetails | InstallAndroidCertificateDetails | ReleaseUpdateDetails | UninstallAndroidAppDetails | UninstallAndroidCertificateDetails; - -/** -* @type ScheduleTerminalActionsRequestActionDetailsClass - * Information about the action to take. -* @export -*/ -export class ScheduleTerminalActionsRequestActionDetailsClass { - - static readonly discriminator: string = "type"; - - static readonly mapping: {[index: string]: string} | undefined = undefined; -} diff --git a/src/typings/management/scheduleTerminalActionsResponse.ts b/src/typings/management/scheduleTerminalActionsResponse.ts index 16ef9b7d4..2e9222322 100644 --- a/src/typings/management/scheduleTerminalActionsResponse.ts +++ b/src/typings/management/scheduleTerminalActionsResponse.ts @@ -7,90 +7,84 @@ * Do not edit this class manually. */ -import { ScheduleTerminalActionsRequestActionDetails } from "./scheduleTerminalActionsRequestActionDetails"; -import { TerminalActionScheduleDetail } from "./terminalActionScheduleDetail"; - +import { InstallAndroidAppDetails } from './installAndroidAppDetails'; +import { InstallAndroidCertificateDetails } from './installAndroidCertificateDetails'; +import { ReleaseUpdateDetails } from './releaseUpdateDetails'; +import { TerminalActionScheduleDetail } from './terminalActionScheduleDetail'; +import { UninstallAndroidAppDetails } from './uninstallAndroidAppDetails'; +import { UninstallAndroidCertificateDetails } from './uninstallAndroidCertificateDetails'; export class ScheduleTerminalActionsResponse { - "actionDetails"?: ScheduleTerminalActionsRequestActionDetails | null; + /** + * Information about the action to take. + */ + 'actionDetails'?: InstallAndroidAppDetails | InstallAndroidCertificateDetails | ReleaseUpdateDetails | UninstallAndroidAppDetails | UninstallAndroidCertificateDetails | null; /** * A list containing a terminal ID and an action ID for each terminal that the action was scheduled for. */ - "items"?: Array; + 'items'?: Array; /** * The date and time when the action should happen. Format: [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. For example, **2021-11-15T12:16:21+0100** The action is sent with the first [maintenance call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) after the specified date and time in the time zone of the terminal. An empty value causes the action to be sent as soon as possible: at the next maintenance call. */ - "scheduledAt"?: string; + 'scheduledAt'?: string; /** * The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store. */ - "storeId"?: string; + 'storeId'?: string; /** * The validation errors that occurred in the list of terminals, and for each error the IDs of the terminals that the error applies to. */ - "terminalsWithErrors"?: { [key: string]: Array; }; + 'terminalsWithErrors'?: { [key: string]: Array; }; /** * The number of terminals for which scheduling the action failed. */ - "totalErrors"?: number; + 'totalErrors'?: number; /** * The number of terminals for which the action was successfully scheduled. This doesn\'t mean the action has happened yet. */ - "totalScheduled"?: number; + 'totalScheduled'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "actionDetails", "baseName": "actionDetails", - "type": "ScheduleTerminalActionsRequestActionDetails | null", - "format": "" + "type": "InstallAndroidAppDetails | InstallAndroidCertificateDetails | ReleaseUpdateDetails | UninstallAndroidAppDetails | UninstallAndroidCertificateDetails | null" }, { "name": "items", "baseName": "items", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "scheduledAt", "baseName": "scheduledAt", - "type": "string", - "format": "" + "type": "string" }, { "name": "storeId", "baseName": "storeId", - "type": "string", - "format": "" + "type": "string" }, { "name": "terminalsWithErrors", "baseName": "terminalsWithErrors", - "type": "{ [key: string]: Array; }", - "format": "" + "type": "{ [key: string]: Array; }" }, { "name": "totalErrors", "baseName": "totalErrors", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "totalScheduled", "baseName": "totalScheduled", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return ScheduleTerminalActionsResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/settings.ts b/src/typings/management/settings.ts index c7ddc9be3..db0591c4f 100644 --- a/src/typings/management/settings.ts +++ b/src/typings/management/settings.ts @@ -12,45 +12,37 @@ export class Settings { /** * The preferred Wi-Fi band, for use if the terminals support multiple bands. Possible values: All, 2.4GHz, 5GHz. */ - "band"?: string; + 'band'?: string; /** * Indicates whether roaming is enabled on the terminals. */ - "roaming"?: boolean; + 'roaming'?: boolean; /** * The connection time-out in seconds. Minimum value: 0. */ - "timeout"?: number; + 'timeout'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "band", "baseName": "band", - "type": "string", - "format": "" + "type": "string" }, { "name": "roaming", "baseName": "roaming", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "timeout", "baseName": "timeout", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return Settings.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/shippingLocation.ts b/src/typings/management/shippingLocation.ts index e9742da64..909eaf6c9 100644 --- a/src/typings/management/shippingLocation.ts +++ b/src/typings/management/shippingLocation.ts @@ -7,57 +7,47 @@ * Do not edit this class manually. */ -import { Address } from "./address"; -import { Contact } from "./contact"; - +import { Address } from './address'; +import { Contact } from './contact'; export class ShippingLocation { - "address"?: Address | null; - "contact"?: Contact | null; + 'address'?: Address | null; + 'contact'?: Contact | null; /** * The unique identifier of the shipping location, for use as `shippingLocationId` when creating an order. */ - "id"?: string; + 'id'?: string; /** * The unique name of the shipping location. */ - "name"?: string; - - static readonly discriminator: string | undefined = undefined; + 'name'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "address", "baseName": "address", - "type": "Address | null", - "format": "" + "type": "Address | null" }, { "name": "contact", "baseName": "contact", - "type": "Contact | null", - "format": "" + "type": "Contact | null" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ShippingLocation.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/shippingLocationsResponse.ts b/src/typings/management/shippingLocationsResponse.ts index 9507a5be0..e95918730 100644 --- a/src/typings/management/shippingLocationsResponse.ts +++ b/src/typings/management/shippingLocationsResponse.ts @@ -7,32 +7,25 @@ * Do not edit this class manually. */ -import { ShippingLocation } from "./shippingLocation"; - +import { ShippingLocation } from './shippingLocation'; export class ShippingLocationsResponse { /** * Physical locations where orders can be shipped to. */ - "data"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'data'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return ShippingLocationsResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/signature.ts b/src/typings/management/signature.ts index f071e06f0..686e21e30 100644 --- a/src/typings/management/signature.ts +++ b/src/typings/management/signature.ts @@ -12,55 +12,46 @@ export class Signature { /** * If `skipSignature` is false, indicates whether the shopper should provide a signature on the display (**true**) or on the merchant receipt (**false**). */ - "askSignatureOnScreen"?: boolean; + 'askSignatureOnScreen'?: boolean; /** * Name that identifies the terminal. */ - "deviceName"?: string; + 'deviceName'?: string; /** * Slogan shown on the start screen of the device. */ - "deviceSlogan"?: string; + 'deviceSlogan'?: string; /** * Skip asking for a signature. This is possible because all global card schemes (American Express, Diners, Discover, JCB, MasterCard, VISA, and UnionPay) regard a signature as optional. */ - "skipSignature"?: boolean; + 'skipSignature'?: boolean; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "askSignatureOnScreen", "baseName": "askSignatureOnScreen", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "deviceName", "baseName": "deviceName", - "type": "string", - "format": "" + "type": "string" }, { "name": "deviceSlogan", "baseName": "deviceSlogan", - "type": "string", - "format": "" + "type": "string" }, { "name": "skipSignature", "baseName": "skipSignature", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return Signature.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/sodexoInfo.ts b/src/typings/management/sodexoInfo.ts index 11d31d644..8823cda92 100644 --- a/src/typings/management/sodexoInfo.ts +++ b/src/typings/management/sodexoInfo.ts @@ -12,25 +12,19 @@ export class SodexoInfo { /** * Sodexo merchantContactPhone */ - "merchantContactPhone": string; + 'merchantContactPhone': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "merchantContactPhone", "baseName": "merchantContactPhone", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return SodexoInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/sofortInfo.ts b/src/typings/management/sofortInfo.ts index 9f1e7dda4..4243507ab 100644 --- a/src/typings/management/sofortInfo.ts +++ b/src/typings/management/sofortInfo.ts @@ -12,35 +12,28 @@ export class SofortInfo { /** * Sofort currency code. For example, **EUR**. */ - "currencyCode": string; + 'currencyCode': string; /** * Sofort logo. Format: Base64-encoded string. */ - "logo": string; + 'logo': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currencyCode", "baseName": "currencyCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "logo", "baseName": "logo", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return SofortInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/splitConfiguration.ts b/src/typings/management/splitConfiguration.ts index f9ed3c989..7fd834331 100644 --- a/src/typings/management/splitConfiguration.ts +++ b/src/typings/management/splitConfiguration.ts @@ -7,52 +7,43 @@ * Do not edit this class manually. */ -import { SplitConfigurationRule } from "./splitConfigurationRule"; - +import { SplitConfigurationRule } from './splitConfigurationRule'; export class SplitConfiguration { /** * Your description for the split configuration. */ - "description": string; + 'description': string; /** * Array of rules that define the split configuration behavior. */ - "rules": Array; + 'rules': Array; /** * Unique identifier of the split configuration. */ - "splitConfigurationId"?: string; - - static readonly discriminator: string | undefined = undefined; + 'splitConfigurationId'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "rules", "baseName": "rules", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "splitConfigurationId", "baseName": "splitConfigurationId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return SplitConfiguration.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/splitConfigurationList.ts b/src/typings/management/splitConfigurationList.ts index 95faced22..cbecb7245 100644 --- a/src/typings/management/splitConfigurationList.ts +++ b/src/typings/management/splitConfigurationList.ts @@ -7,32 +7,25 @@ * Do not edit this class manually. */ -import { SplitConfiguration } from "./splitConfiguration"; - +import { SplitConfiguration } from './splitConfiguration'; export class SplitConfigurationList { /** * List of split configurations applied to the stores under the merchant account. */ - "data"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'data'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return SplitConfigurationList.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/splitConfigurationLogic.ts b/src/typings/management/splitConfigurationLogic.ts index 881b2df86..200bfd63f 100644 --- a/src/typings/management/splitConfigurationLogic.ts +++ b/src/typings/management/splitConfigurationLogic.ts @@ -7,188 +7,165 @@ * Do not edit this class manually. */ -import { AdditionalCommission } from "./additionalCommission"; -import { Commission } from "./commission"; - +import { AdditionalCommission } from './additionalCommission'; +import { Commission } from './commission'; export class SplitConfigurationLogic { /** * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ - "acquiringFees"?: SplitConfigurationLogic.AcquiringFeesEnum; - "additionalCommission"?: AdditionalCommission | null; + 'acquiringFees'?: SplitConfigurationLogic.AcquiringFeesEnum; + 'additionalCommission'?: AdditionalCommission | null; /** * Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ - "adyenCommission"?: SplitConfigurationLogic.AdyenCommissionEnum; + 'adyenCommission'?: SplitConfigurationLogic.AdyenCommissionEnum; /** * Deducts the fees due to Adyen (markup or commission) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ - "adyenFees"?: SplitConfigurationLogic.AdyenFeesEnum; + 'adyenFees'?: SplitConfigurationLogic.AdyenFeesEnum; /** * Deducts the transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ - "adyenMarkup"?: SplitConfigurationLogic.AdyenMarkupEnum; + 'adyenMarkup'?: SplitConfigurationLogic.AdyenMarkupEnum; /** * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. */ - "chargeback"?: SplitConfigurationLogic.ChargebackEnum; + 'chargeback'?: SplitConfigurationLogic.ChargebackEnum; /** * Deducts the chargeback costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** */ - "chargebackCostAllocation"?: SplitConfigurationLogic.ChargebackCostAllocationEnum; - "commission": Commission; + 'chargebackCostAllocation'?: SplitConfigurationLogic.ChargebackCostAllocationEnum; + 'commission': Commission; /** * Deducts the interchange fee from specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ - "interchange"?: SplitConfigurationLogic.InterchangeEnum; + 'interchange'?: SplitConfigurationLogic.InterchangeEnum; /** * Deducts all transaction fees incurred by the payment from the specified balance account. The transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to Adyen (markup or commission). You can book any and all these fees to different balance account by specifying other transaction fee parameters in your split configuration profile: - [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): The transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): The fee paid to the card scheme for using their network. - [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): The fee paid to the issuer for each payment transaction made with the card network. - [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): The aggregated amount of Adyen\'s commission and markup. - [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): The aggregated amount of the interchange and scheme fees. If you don\'t include at least one transaction fee type in the `splitLogic` object, Adyen updates the payment request with the `paymentFee` parameter, booking all transaction fees to your platform\'s liable balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ - "paymentFee"?: SplitConfigurationLogic.PaymentFeeEnum; + 'paymentFee'?: SplitConfigurationLogic.PaymentFeeEnum; /** * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** */ - "refund"?: SplitConfigurationLogic.RefundEnum; + 'refund'?: SplitConfigurationLogic.RefundEnum; /** * Deducts the refund costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** */ - "refundCostAllocation"?: SplitConfigurationLogic.RefundCostAllocationEnum; + 'refundCostAllocation'?: SplitConfigurationLogic.RefundCostAllocationEnum; /** * Books the amount left over after currency conversion to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. */ - "remainder"?: SplitConfigurationLogic.RemainderEnum; + 'remainder'?: SplitConfigurationLogic.RemainderEnum; /** * Deducts the scheme fee from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ - "schemeFee"?: SplitConfigurationLogic.SchemeFeeEnum; + 'schemeFee'?: SplitConfigurationLogic.SchemeFeeEnum; /** * Unique identifier of the collection of split instructions that are applied when the rule conditions are met. */ - "splitLogicId"?: string; + 'splitLogicId'?: string; /** * Books the surcharge amount to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** */ - "surcharge"?: SplitConfigurationLogic.SurchargeEnum; + 'surcharge'?: SplitConfigurationLogic.SurchargeEnum; /** * Books the tips (gratuity) to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. */ - "tip"?: SplitConfigurationLogic.TipEnum; - - static readonly discriminator: string | undefined = undefined; + 'tip'?: SplitConfigurationLogic.TipEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "acquiringFees", "baseName": "acquiringFees", - "type": "SplitConfigurationLogic.AcquiringFeesEnum", - "format": "" + "type": "SplitConfigurationLogic.AcquiringFeesEnum" }, { "name": "additionalCommission", "baseName": "additionalCommission", - "type": "AdditionalCommission | null", - "format": "" + "type": "AdditionalCommission | null" }, { "name": "adyenCommission", "baseName": "adyenCommission", - "type": "SplitConfigurationLogic.AdyenCommissionEnum", - "format": "" + "type": "SplitConfigurationLogic.AdyenCommissionEnum" }, { "name": "adyenFees", "baseName": "adyenFees", - "type": "SplitConfigurationLogic.AdyenFeesEnum", - "format": "" + "type": "SplitConfigurationLogic.AdyenFeesEnum" }, { "name": "adyenMarkup", "baseName": "adyenMarkup", - "type": "SplitConfigurationLogic.AdyenMarkupEnum", - "format": "" + "type": "SplitConfigurationLogic.AdyenMarkupEnum" }, { "name": "chargeback", "baseName": "chargeback", - "type": "SplitConfigurationLogic.ChargebackEnum", - "format": "" + "type": "SplitConfigurationLogic.ChargebackEnum" }, { "name": "chargebackCostAllocation", "baseName": "chargebackCostAllocation", - "type": "SplitConfigurationLogic.ChargebackCostAllocationEnum", - "format": "" + "type": "SplitConfigurationLogic.ChargebackCostAllocationEnum" }, { "name": "commission", "baseName": "commission", - "type": "Commission", - "format": "" + "type": "Commission" }, { "name": "interchange", "baseName": "interchange", - "type": "SplitConfigurationLogic.InterchangeEnum", - "format": "" + "type": "SplitConfigurationLogic.InterchangeEnum" }, { "name": "paymentFee", "baseName": "paymentFee", - "type": "SplitConfigurationLogic.PaymentFeeEnum", - "format": "" + "type": "SplitConfigurationLogic.PaymentFeeEnum" }, { "name": "refund", "baseName": "refund", - "type": "SplitConfigurationLogic.RefundEnum", - "format": "" + "type": "SplitConfigurationLogic.RefundEnum" }, { "name": "refundCostAllocation", "baseName": "refundCostAllocation", - "type": "SplitConfigurationLogic.RefundCostAllocationEnum", - "format": "" + "type": "SplitConfigurationLogic.RefundCostAllocationEnum" }, { "name": "remainder", "baseName": "remainder", - "type": "SplitConfigurationLogic.RemainderEnum", - "format": "" + "type": "SplitConfigurationLogic.RemainderEnum" }, { "name": "schemeFee", "baseName": "schemeFee", - "type": "SplitConfigurationLogic.SchemeFeeEnum", - "format": "" + "type": "SplitConfigurationLogic.SchemeFeeEnum" }, { "name": "splitLogicId", "baseName": "splitLogicId", - "type": "string", - "format": "" + "type": "string" }, { "name": "surcharge", "baseName": "surcharge", - "type": "SplitConfigurationLogic.SurchargeEnum", - "format": "" + "type": "SplitConfigurationLogic.SurchargeEnum" }, { "name": "tip", "baseName": "tip", - "type": "SplitConfigurationLogic.TipEnum", - "format": "" + "type": "SplitConfigurationLogic.TipEnum" } ]; static getAttributeTypeMap() { return SplitConfigurationLogic.attributeTypeMap; } - - public constructor() { - } } export namespace SplitConfigurationLogic { diff --git a/src/typings/management/splitConfigurationRule.ts b/src/typings/management/splitConfigurationRule.ts index 61fd5651d..2e29b4475 100644 --- a/src/typings/management/splitConfigurationRule.ts +++ b/src/typings/management/splitConfigurationRule.ts @@ -7,90 +7,68 @@ * Do not edit this class manually. */ -import { SplitConfigurationLogic } from "./splitConfigurationLogic"; - +import { SplitConfigurationLogic } from './splitConfigurationLogic'; export class SplitConfigurationRule { /** * The currency condition that defines whether the split logic applies. Its value must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). */ - "currency": string; + 'currency': string; /** * The funding source of the payment method. This only applies to card transactions. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** */ - "fundingSource"?: SplitConfigurationRule.FundingSourceEnum; + 'fundingSource'?: SplitConfigurationRule.FundingSourceEnum; /** * The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods. */ - "paymentMethod": string; - /** - * - */ - "regionality"?: SplitConfigurationRule.RegionalityEnum; + 'paymentMethod': string; /** * The unique identifier of the split configuration rule. */ - "ruleId"?: string; + 'ruleId'?: string; /** * The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels. */ - "shopperInteraction": SplitConfigurationRule.ShopperInteractionEnum; - "splitLogic": SplitConfigurationLogic; + 'shopperInteraction': SplitConfigurationRule.ShopperInteractionEnum; + 'splitLogic': SplitConfigurationLogic; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "fundingSource", "baseName": "fundingSource", - "type": "SplitConfigurationRule.FundingSourceEnum", - "format": "" + "type": "SplitConfigurationRule.FundingSourceEnum" }, { "name": "paymentMethod", "baseName": "paymentMethod", - "type": "string", - "format": "" - }, - { - "name": "regionality", - "baseName": "regionality", - "type": "SplitConfigurationRule.RegionalityEnum", - "format": "" + "type": "string" }, { "name": "ruleId", "baseName": "ruleId", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperInteraction", "baseName": "shopperInteraction", - "type": "SplitConfigurationRule.ShopperInteractionEnum", - "format": "" + "type": "SplitConfigurationRule.ShopperInteractionEnum" }, { "name": "splitLogic", "baseName": "splitLogic", - "type": "SplitConfigurationLogic", - "format": "" + "type": "SplitConfigurationLogic" } ]; static getAttributeTypeMap() { return SplitConfigurationRule.attributeTypeMap; } - - public constructor() { - } } export namespace SplitConfigurationRule { @@ -102,12 +80,6 @@ export namespace SplitConfigurationRule { Prepaid = 'prepaid', Any = 'ANY' } - export enum RegionalityEnum { - International = 'international', - IntraRegional = 'intraRegional', - InterRegional = 'interRegional', - Any = 'ANY' - } export enum ShopperInteractionEnum { Ecommerce = 'Ecommerce', ContAuth = 'ContAuth', diff --git a/src/typings/management/standalone.ts b/src/typings/management/standalone.ts index d50ab2245..5e74d3320 100644 --- a/src/typings/management/standalone.ts +++ b/src/typings/management/standalone.ts @@ -12,45 +12,37 @@ export class Standalone { /** * The default currency of the standalone payment terminal as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. */ - "currencyCode"?: string; + 'currencyCode'?: string; /** * Indicates whether the tipping options specified in `gratuities` are enabled on the standalone terminal. */ - "enableGratuities"?: boolean; + 'enableGratuities'?: boolean; /** * Enable standalone mode. */ - "enableStandalone"?: boolean; + 'enableStandalone'?: boolean; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currencyCode", "baseName": "currencyCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "enableGratuities", "baseName": "enableGratuities", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "enableStandalone", "baseName": "enableStandalone", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return Standalone.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/starInfo.ts b/src/typings/management/starInfo.ts index c504d6a4e..2478771f2 100644 --- a/src/typings/management/starInfo.ts +++ b/src/typings/management/starInfo.ts @@ -7,40 +7,32 @@ * Do not edit this class manually. */ -import { TransactionDescriptionInfo } from "./transactionDescriptionInfo"; - +import { TransactionDescriptionInfo } from './transactionDescriptionInfo'; export class StarInfo { /** * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. */ - "processingType": StarInfo.ProcessingTypeEnum; - "transactionDescription"?: TransactionDescriptionInfo | null; - - static readonly discriminator: string | undefined = undefined; + 'processingType': StarInfo.ProcessingTypeEnum; + 'transactionDescription'?: TransactionDescriptionInfo | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "processingType", "baseName": "processingType", - "type": "StarInfo.ProcessingTypeEnum", - "format": "" + "type": "StarInfo.ProcessingTypeEnum" }, { "name": "transactionDescription", "baseName": "transactionDescription", - "type": "TransactionDescriptionInfo | null", - "format": "" + "type": "TransactionDescriptionInfo | null" } ]; static getAttributeTypeMap() { return StarInfo.attributeTypeMap; } - - public constructor() { - } } export namespace StarInfo { diff --git a/src/typings/management/store.ts b/src/typings/management/store.ts index 978b3a480..2ee8b0046 100644 --- a/src/typings/management/store.ts +++ b/src/typings/management/store.ts @@ -7,144 +7,125 @@ * Do not edit this class manually. */ -import { Links } from "./links"; -import { StoreLocation } from "./storeLocation"; -import { StoreSplitConfiguration } from "./storeSplitConfiguration"; -import { SubMerchantData } from "./subMerchantData"; - +import { Links } from './links'; +import { StoreLocation } from './storeLocation'; +import { StoreSplitConfiguration } from './storeSplitConfiguration'; +import { SubMerchantData } from './subMerchantData'; export class Store { - "_links"?: Links | null; - "address"?: StoreLocation | null; + '_links'?: Links | null; + 'address'?: StoreLocation | null; /** * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. */ - "businessLineIds"?: Array; + 'businessLineIds'?: Array; /** * The description of the store. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. */ - "externalReferenceId"?: string; + 'externalReferenceId'?: string; /** * The unique identifier of the store. This value is generated by Adyen. */ - "id"?: string; + 'id'?: string; /** * The unique identifier of the merchant account that the store belongs to. */ - "merchantId"?: string; + 'merchantId'?: string; /** * The phone number of the store, including \'+\' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. */ - "phoneNumber"?: string; + 'phoneNumber'?: string; /** * A reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_) */ - "reference"?: string; + 'reference'?: string; /** * The store name shown on the shopper\'s bank or credit card statement and on the shopper receipt. */ - "shopperStatement"?: string; - "splitConfiguration"?: StoreSplitConfiguration | null; + 'shopperStatement'?: string; + 'splitConfiguration'?: StoreSplitConfiguration | null; /** * The status of the store. Possible values are: - **active**. This value is assigned automatically when a store is created. - **inactive**. The terminals under the store are blocked from accepting new transactions, but capturing outstanding transactions is still possible. - **closed**. This status is irreversible. The terminals under the store are reassigned to the merchant inventory. */ - "status"?: Store.StatusEnum; - "subMerchantData"?: SubMerchantData | null; - - static readonly discriminator: string | undefined = undefined; + 'status'?: Store.StatusEnum; + 'subMerchantData'?: SubMerchantData | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "_links", "baseName": "_links", - "type": "Links | null", - "format": "" + "type": "Links | null" }, { "name": "address", "baseName": "address", - "type": "StoreLocation | null", - "format": "" + "type": "StoreLocation | null" }, { "name": "businessLineIds", "baseName": "businessLineIds", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "externalReferenceId", "baseName": "externalReferenceId", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantId", "baseName": "merchantId", - "type": "string", - "format": "" + "type": "string" }, { "name": "phoneNumber", "baseName": "phoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperStatement", "baseName": "shopperStatement", - "type": "string", - "format": "" + "type": "string" }, { "name": "splitConfiguration", "baseName": "splitConfiguration", - "type": "StoreSplitConfiguration | null", - "format": "" + "type": "StoreSplitConfiguration | null" }, { "name": "status", "baseName": "status", - "type": "Store.StatusEnum", - "format": "" + "type": "Store.StatusEnum" }, { "name": "subMerchantData", "baseName": "subMerchantData", - "type": "SubMerchantData | null", - "format": "" + "type": "SubMerchantData | null" } ]; static getAttributeTypeMap() { return Store.attributeTypeMap; } - - public constructor() { - } } export namespace Store { diff --git a/src/typings/management/storeAndForward.ts b/src/typings/management/storeAndForward.ts index 9176f225a..35e5a6536 100644 --- a/src/typings/management/storeAndForward.ts +++ b/src/typings/management/storeAndForward.ts @@ -7,50 +7,41 @@ * Do not edit this class manually. */ -import { MinorUnitsMonetaryValue } from "./minorUnitsMonetaryValue"; -import { SupportedCardTypes } from "./supportedCardTypes"; - +import { MinorUnitsMonetaryValue } from './minorUnitsMonetaryValue'; +import { SupportedCardTypes } from './supportedCardTypes'; export class StoreAndForward { /** * The maximum amount that the terminal accepts for a single store-and-forward payment. */ - "maxAmount"?: Array; + 'maxAmount'?: Array; /** * The maximum number of store-and-forward transactions per terminal that you can process while offline. */ - "maxPayments"?: number; - "supportedCardTypes"?: SupportedCardTypes | null; - - static readonly discriminator: string | undefined = undefined; + 'maxPayments'?: number; + 'supportedCardTypes'?: SupportedCardTypes | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "maxAmount", "baseName": "maxAmount", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "maxPayments", "baseName": "maxPayments", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "supportedCardTypes", "baseName": "supportedCardTypes", - "type": "SupportedCardTypes | null", - "format": "" + "type": "SupportedCardTypes | null" } ]; static getAttributeTypeMap() { return StoreAndForward.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/storeCreationRequest.ts b/src/typings/management/storeCreationRequest.ts index 40c534133..f9a875363 100644 --- a/src/typings/management/storeCreationRequest.ts +++ b/src/typings/management/storeCreationRequest.ts @@ -7,105 +7,90 @@ * Do not edit this class manually. */ -import { StoreLocation } from "./storeLocation"; -import { StoreSplitConfiguration } from "./storeSplitConfiguration"; -import { SubMerchantData } from "./subMerchantData"; - +import { StoreLocation } from './storeLocation'; +import { StoreSplitConfiguration } from './storeSplitConfiguration'; +import { SubMerchantData } from './subMerchantData'; export class StoreCreationRequest { - "address": StoreLocation; + 'address': StoreLocation; /** * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. */ - "businessLineIds"?: Array; + 'businessLineIds'?: Array; /** * Your description of the store. */ - "description": string; + 'description': string; /** * The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. */ - "externalReferenceId"?: string; + 'externalReferenceId'?: string; /** * The phone number of the store, including \'+\' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. */ - "phoneNumber": string; + 'phoneNumber': string; /** * Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). */ - "reference"?: string; + 'reference'?: string; /** * The store name to be shown on the shopper\'s bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can\'t be all numbers. */ - "shopperStatement": string; - "splitConfiguration"?: StoreSplitConfiguration | null; - "subMerchantData"?: SubMerchantData | null; - - static readonly discriminator: string | undefined = undefined; + 'shopperStatement': string; + 'splitConfiguration'?: StoreSplitConfiguration | null; + 'subMerchantData'?: SubMerchantData | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "address", "baseName": "address", - "type": "StoreLocation", - "format": "" + "type": "StoreLocation" }, { "name": "businessLineIds", "baseName": "businessLineIds", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "externalReferenceId", "baseName": "externalReferenceId", - "type": "string", - "format": "" + "type": "string" }, { "name": "phoneNumber", "baseName": "phoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperStatement", "baseName": "shopperStatement", - "type": "string", - "format": "" + "type": "string" }, { "name": "splitConfiguration", "baseName": "splitConfiguration", - "type": "StoreSplitConfiguration | null", - "format": "" + "type": "StoreSplitConfiguration | null" }, { "name": "subMerchantData", "baseName": "subMerchantData", - "type": "SubMerchantData | null", - "format": "" + "type": "SubMerchantData | null" } ]; static getAttributeTypeMap() { return StoreCreationRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/storeCreationWithMerchantCodeRequest.ts b/src/typings/management/storeCreationWithMerchantCodeRequest.ts index abc5de05b..981f72c4f 100644 --- a/src/typings/management/storeCreationWithMerchantCodeRequest.ts +++ b/src/typings/management/storeCreationWithMerchantCodeRequest.ts @@ -7,115 +7,99 @@ * Do not edit this class manually. */ -import { StoreLocation } from "./storeLocation"; -import { StoreSplitConfiguration } from "./storeSplitConfiguration"; -import { SubMerchantData } from "./subMerchantData"; - +import { StoreLocation } from './storeLocation'; +import { StoreSplitConfiguration } from './storeSplitConfiguration'; +import { SubMerchantData } from './subMerchantData'; export class StoreCreationWithMerchantCodeRequest { - "address": StoreLocation; + 'address': StoreLocation; /** * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. */ - "businessLineIds"?: Array; + 'businessLineIds'?: Array; /** * Your description of the store. */ - "description": string; + 'description': string; /** * The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. */ - "externalReferenceId"?: string; + 'externalReferenceId'?: string; /** * The unique identifier of the merchant account that the store belongs to. */ - "merchantId": string; + 'merchantId': string; /** * The phone number of the store, including \'+\' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. */ - "phoneNumber": string; + 'phoneNumber': string; /** * Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). */ - "reference"?: string; + 'reference'?: string; /** * The store name to be shown on the shopper\'s bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can\'t be all numbers. */ - "shopperStatement": string; - "splitConfiguration"?: StoreSplitConfiguration | null; - "subMerchantData"?: SubMerchantData | null; - - static readonly discriminator: string | undefined = undefined; + 'shopperStatement': string; + 'splitConfiguration'?: StoreSplitConfiguration | null; + 'subMerchantData'?: SubMerchantData | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "address", "baseName": "address", - "type": "StoreLocation", - "format": "" + "type": "StoreLocation" }, { "name": "businessLineIds", "baseName": "businessLineIds", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "externalReferenceId", "baseName": "externalReferenceId", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantId", "baseName": "merchantId", - "type": "string", - "format": "" + "type": "string" }, { "name": "phoneNumber", "baseName": "phoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperStatement", "baseName": "shopperStatement", - "type": "string", - "format": "" + "type": "string" }, { "name": "splitConfiguration", "baseName": "splitConfiguration", - "type": "StoreSplitConfiguration | null", - "format": "" + "type": "StoreSplitConfiguration | null" }, { "name": "subMerchantData", "baseName": "subMerchantData", - "type": "SubMerchantData | null", - "format": "" + "type": "SubMerchantData | null" } ]; static getAttributeTypeMap() { return StoreCreationWithMerchantCodeRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/storeLocation.ts b/src/typings/management/storeLocation.ts index 8fefabf6e..95b050cb4 100644 --- a/src/typings/management/storeLocation.ts +++ b/src/typings/management/storeLocation.ts @@ -12,85 +12,73 @@ export class StoreLocation { /** * The name of the city. */ - "city"?: string; + 'city'?: string; /** * The two-letter country code in [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */ - "country": string; + 'country': string; /** * The street address. */ - "line1"?: string; + 'line1'?: string; /** * Second address line. */ - "line2"?: string; + 'line2'?: string; /** * Third address line. */ - "line3"?: string; + 'line3'?: string; /** * The postal code. */ - "postalCode"?: string; + 'postalCode'?: string; /** * The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States */ - "stateOrProvince"?: string; + 'stateOrProvince'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "city", "baseName": "city", - "type": "string", - "format": "" + "type": "string" }, { "name": "country", "baseName": "country", - "type": "string", - "format": "" + "type": "string" }, { "name": "line1", "baseName": "line1", - "type": "string", - "format": "" + "type": "string" }, { "name": "line2", "baseName": "line2", - "type": "string", - "format": "" + "type": "string" }, { "name": "line3", "baseName": "line3", - "type": "string", - "format": "" + "type": "string" }, { "name": "postalCode", "baseName": "postalCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "stateOrProvince", "baseName": "stateOrProvince", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return StoreLocation.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/storeSplitConfiguration.ts b/src/typings/management/storeSplitConfiguration.ts index 75234276c..f38faa534 100644 --- a/src/typings/management/storeSplitConfiguration.ts +++ b/src/typings/management/storeSplitConfiguration.ts @@ -12,35 +12,28 @@ export class StoreSplitConfiguration { /** * The [unique identifier of the balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id) to which the split amount must be booked, depending on the defined [split logic](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/_merchantId_/splitConfigurations#request-rules-splitLogic). */ - "balanceAccountId"?: string; + 'balanceAccountId'?: string; /** * The unique identifier of the [split configuration profile](https://docs.adyen.com/platforms/automatic-split-configuration/create-split-configuration/). */ - "splitConfigurationId"?: string; + 'splitConfigurationId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balanceAccountId", "baseName": "balanceAccountId", - "type": "string", - "format": "" + "type": "string" }, { "name": "splitConfigurationId", "baseName": "splitConfigurationId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return StoreSplitConfiguration.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/subMerchantData.ts b/src/typings/management/subMerchantData.ts index aaf583f3c..0c35bc731 100644 --- a/src/typings/management/subMerchantData.ts +++ b/src/typings/management/subMerchantData.ts @@ -12,55 +12,46 @@ export class SubMerchantData { /** * The email associated with the sub-merchant\'s account. */ - "email": string; + 'email': string; /** * A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters */ - "id": string; + 'id': string; /** * The sub-merchant\'s 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits */ - "mcc": string; + 'mcc': string; /** * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters */ - "name": string; + 'name': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "email", "baseName": "email", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "mcc", "baseName": "mcc", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return SubMerchantData.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/supportedCardTypes.ts b/src/typings/management/supportedCardTypes.ts index 2c5403791..941740e9f 100644 --- a/src/typings/management/supportedCardTypes.ts +++ b/src/typings/management/supportedCardTypes.ts @@ -12,65 +12,55 @@ export class SupportedCardTypes { /** * Set to **true** to accept credit cards. */ - "credit"?: boolean; + 'credit'?: boolean; /** * Set to **true** to accept debit cards. */ - "debit"?: boolean; + 'debit'?: boolean; /** * Set to **true** to accept cards that allow deferred debit. */ - "deferredDebit"?: boolean; + 'deferredDebit'?: boolean; /** * Set to **true** to accept prepaid cards. */ - "prepaid"?: boolean; + 'prepaid'?: boolean; /** * Set to **true** to accept card types for which the terminal can\'t determine the funding source while offline. */ - "unknown"?: boolean; + 'unknown'?: boolean; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "credit", "baseName": "credit", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "debit", "baseName": "debit", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "deferredDebit", "baseName": "deferredDebit", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "prepaid", "baseName": "prepaid", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "unknown", "baseName": "unknown", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return SupportedCardTypes.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/surcharge.ts b/src/typings/management/surcharge.ts index 758a1398e..3643a9a4b 100644 --- a/src/typings/management/surcharge.ts +++ b/src/typings/management/surcharge.ts @@ -7,52 +7,43 @@ * Do not edit this class manually. */ -import { Configuration } from "./configuration"; - +import { Configuration } from './configuration'; export class Surcharge { /** * Show the surcharge details on the terminal, so the shopper can confirm. */ - "askConfirmation"?: boolean; + 'askConfirmation'?: boolean; /** * Surcharge fees or percentages for specific cards, funding sources (credit or debit), and currencies. */ - "configurations"?: Array; + 'configurations'?: Array; /** * Exclude the tip amount from the surcharge calculation. */ - "excludeGratuityFromSurcharge"?: boolean; - - static readonly discriminator: string | undefined = undefined; + 'excludeGratuityFromSurcharge'?: boolean; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "askConfirmation", "baseName": "askConfirmation", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "configurations", "baseName": "configurations", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "excludeGratuityFromSurcharge", "baseName": "excludeGratuityFromSurcharge", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return Surcharge.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/swishInfo.ts b/src/typings/management/swishInfo.ts index a31097a18..e0131a40f 100644 --- a/src/typings/management/swishInfo.ts +++ b/src/typings/management/swishInfo.ts @@ -12,25 +12,19 @@ export class SwishInfo { /** * Swish number. Format: 10 digits without spaces. For example, **1231111111**. */ - "swishNumber": string; + 'swishNumber': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "swishNumber", "baseName": "swishNumber", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return SwishInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/tapToPay.ts b/src/typings/management/tapToPay.ts index f19a5a94b..eab0bc0a7 100644 --- a/src/typings/management/tapToPay.ts +++ b/src/typings/management/tapToPay.ts @@ -12,25 +12,19 @@ export class TapToPay { /** * The text shown on the screen during the Tap to Pay transaction. */ - "merchantDisplayName"?: string; + 'merchantDisplayName'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "merchantDisplayName", "baseName": "merchantDisplayName", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TapToPay.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/terminal.ts b/src/typings/management/terminal.ts index 76d6b1422..915e061f3 100644 --- a/src/typings/management/terminal.ts +++ b/src/typings/management/terminal.ts @@ -7,107 +7,92 @@ * Do not edit this class manually. */ -import { TerminalAssignment } from "./terminalAssignment"; -import { TerminalConnectivity } from "./terminalConnectivity"; - +import { TerminalAssignment } from './terminalAssignment'; +import { TerminalConnectivity } from './terminalConnectivity'; export class Terminal { - "assignment"?: TerminalAssignment | null; - "connectivity"?: TerminalConnectivity | null; + 'assignment'?: TerminalAssignment | null; + 'connectivity'?: TerminalConnectivity | null; /** * The software release currently in use on the terminal. */ - "firmwareVersion"?: string; + 'firmwareVersion'?: string; /** * The unique identifier of the terminal. */ - "id"?: string; + 'id'?: string; /** * Date and time of the last activity on the terminal. Not included when the last activity was more than 14 days ago. */ - "lastActivityAt"?: Date; + 'lastActivityAt'?: Date; /** * Date and time of the last transaction on the terminal. Not included when the last transaction was more than 14 days ago. */ - "lastTransactionAt"?: Date; + 'lastTransactionAt'?: Date; /** * The model name of the terminal. */ - "model"?: string; + 'model'?: string; /** * The exact time of the terminal reboot, in the timezone of the terminal in **HH:mm** format. */ - "restartLocalTime"?: string; + 'restartLocalTime'?: string; /** * The serial number of the terminal. */ - "serialNumber"?: string; - - static readonly discriminator: string | undefined = undefined; + 'serialNumber'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "assignment", "baseName": "assignment", - "type": "TerminalAssignment | null", - "format": "" + "type": "TerminalAssignment | null" }, { "name": "connectivity", "baseName": "connectivity", - "type": "TerminalConnectivity | null", - "format": "" + "type": "TerminalConnectivity | null" }, { "name": "firmwareVersion", "baseName": "firmwareVersion", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "lastActivityAt", "baseName": "lastActivityAt", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "lastTransactionAt", "baseName": "lastTransactionAt", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "model", "baseName": "model", - "type": "string", - "format": "" + "type": "string" }, { "name": "restartLocalTime", "baseName": "restartLocalTime", - "type": "string", - "format": "" + "type": "string" }, { "name": "serialNumber", "baseName": "serialNumber", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Terminal.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/terminalActionScheduleDetail.ts b/src/typings/management/terminalActionScheduleDetail.ts index 068dfad9f..fd27b60a0 100644 --- a/src/typings/management/terminalActionScheduleDetail.ts +++ b/src/typings/management/terminalActionScheduleDetail.ts @@ -12,35 +12,28 @@ export class TerminalActionScheduleDetail { /** * The ID of the action on the specified terminal. */ - "id"?: string; + 'id'?: string; /** * The unique ID of the terminal that the action applies to. */ - "terminalId"?: string; + 'terminalId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "terminalId", "baseName": "terminalId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TerminalActionScheduleDetail.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/terminalAssignment.ts b/src/typings/management/terminalAssignment.ts index 195efcddd..246904d4e 100644 --- a/src/typings/management/terminalAssignment.ts +++ b/src/typings/management/terminalAssignment.ts @@ -7,70 +7,59 @@ * Do not edit this class manually. */ -import { TerminalReassignmentTarget } from "./terminalReassignmentTarget"; - +import { TerminalReassignmentTarget } from './terminalReassignmentTarget'; export class TerminalAssignment { /** * The unique identifier of the company account to which terminal is assigned. */ - "companyId": string; + 'companyId': string; /** * The unique identifier of the merchant account to which terminal is assigned. */ - "merchantId"?: string; - "reassignmentTarget"?: TerminalReassignmentTarget | null; + 'merchantId'?: string; + 'reassignmentTarget'?: TerminalReassignmentTarget | null; /** * The status of the reassignment. Possible values: * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to synchronize with the Adyen platform. * `deployed`: the terminal is deployed and reassigned. * `inventory`: the terminal is in inventory and cannot process transactions. * `boarded`: the terminal is boarded to a store, or a merchant account representing a store, and can process transactions. */ - "status": TerminalAssignment.StatusEnum; + 'status': TerminalAssignment.StatusEnum; /** * The unique identifier of the store to which terminal is assigned. */ - "storeId"?: string; - - static readonly discriminator: string | undefined = undefined; + 'storeId'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "companyId", "baseName": "companyId", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantId", "baseName": "merchantId", - "type": "string", - "format": "" + "type": "string" }, { "name": "reassignmentTarget", "baseName": "reassignmentTarget", - "type": "TerminalReassignmentTarget | null", - "format": "" + "type": "TerminalReassignmentTarget | null" }, { "name": "status", "baseName": "status", - "type": "TerminalAssignment.StatusEnum", - "format": "" + "type": "TerminalAssignment.StatusEnum" }, { "name": "storeId", "baseName": "storeId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TerminalAssignment.attributeTypeMap; } - - public constructor() { - } } export namespace TerminalAssignment { diff --git a/src/typings/management/terminalConnectivity.ts b/src/typings/management/terminalConnectivity.ts index d151f3377..1f476bcfd 100644 --- a/src/typings/management/terminalConnectivity.ts +++ b/src/typings/management/terminalConnectivity.ts @@ -7,53 +7,43 @@ * Do not edit this class manually. */ -import { TerminalConnectivityBluetooth } from "./terminalConnectivityBluetooth"; -import { TerminalConnectivityCellular } from "./terminalConnectivityCellular"; -import { TerminalConnectivityEthernet } from "./terminalConnectivityEthernet"; -import { TerminalConnectivityWifi } from "./terminalConnectivityWifi"; - +import { TerminalConnectivityBluetooth } from './terminalConnectivityBluetooth'; +import { TerminalConnectivityCellular } from './terminalConnectivityCellular'; +import { TerminalConnectivityEthernet } from './terminalConnectivityEthernet'; +import { TerminalConnectivityWifi } from './terminalConnectivityWifi'; export class TerminalConnectivity { - "bluetooth"?: TerminalConnectivityBluetooth | null; - "cellular"?: TerminalConnectivityCellular | null; - "ethernet"?: TerminalConnectivityEthernet | null; - "wifi"?: TerminalConnectivityWifi | null; - - static readonly discriminator: string | undefined = undefined; + 'bluetooth'?: TerminalConnectivityBluetooth | null; + 'cellular'?: TerminalConnectivityCellular | null; + 'ethernet'?: TerminalConnectivityEthernet | null; + 'wifi'?: TerminalConnectivityWifi | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "bluetooth", "baseName": "bluetooth", - "type": "TerminalConnectivityBluetooth | null", - "format": "" + "type": "TerminalConnectivityBluetooth | null" }, { "name": "cellular", "baseName": "cellular", - "type": "TerminalConnectivityCellular | null", - "format": "" + "type": "TerminalConnectivityCellular | null" }, { "name": "ethernet", "baseName": "ethernet", - "type": "TerminalConnectivityEthernet | null", - "format": "" + "type": "TerminalConnectivityEthernet | null" }, { "name": "wifi", "baseName": "wifi", - "type": "TerminalConnectivityWifi | null", - "format": "" + "type": "TerminalConnectivityWifi | null" } ]; static getAttributeTypeMap() { return TerminalConnectivity.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/terminalConnectivityBluetooth.ts b/src/typings/management/terminalConnectivityBluetooth.ts index e438a69e5..ac756c58d 100644 --- a/src/typings/management/terminalConnectivityBluetooth.ts +++ b/src/typings/management/terminalConnectivityBluetooth.ts @@ -12,35 +12,28 @@ export class TerminalConnectivityBluetooth { /** * The terminal\'s Bluetooth IP address. */ - "ipAddress"?: string; + 'ipAddress'?: string; /** * The terminal\'s Bluetooth MAC address. */ - "macAddress"?: string; + 'macAddress'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "ipAddress", "baseName": "ipAddress", - "type": "string", - "format": "" + "type": "string" }, { "name": "macAddress", "baseName": "macAddress", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TerminalConnectivityBluetooth.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/terminalConnectivityCellular.ts b/src/typings/management/terminalConnectivityCellular.ts index 1bb9bf91f..0c52e9f7c 100644 --- a/src/typings/management/terminalConnectivityCellular.ts +++ b/src/typings/management/terminalConnectivityCellular.ts @@ -12,46 +12,38 @@ export class TerminalConnectivityCellular { /** * The integrated circuit card identifier (ICCID) of the primary SIM card in the terminal. */ - "iccid"?: string; + 'iccid'?: string; /** * The integrated circuit card identifier (ICCID) of the secondary SIM card in the terminal, typically used for a [third-party SIM card](https://docs.adyen.com/point-of-sale/design-your-integration/network-and-connectivity/cellular-failover/#using-a-third-party-sim-card). */ - "iccid2"?: string; + 'iccid2'?: string; /** * On a terminal that supports 3G or 4G connectivity, indicates the status of the primary SIM card in the terminal. */ - "status"?: TerminalConnectivityCellular.StatusEnum; + 'status'?: TerminalConnectivityCellular.StatusEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "iccid", "baseName": "iccid", - "type": "string", - "format": "" + "type": "string" }, { "name": "iccid2", "baseName": "iccid2", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "TerminalConnectivityCellular.StatusEnum", - "format": "" + "type": "TerminalConnectivityCellular.StatusEnum" } ]; static getAttributeTypeMap() { return TerminalConnectivityCellular.attributeTypeMap; } - - public constructor() { - } } export namespace TerminalConnectivityCellular { diff --git a/src/typings/management/terminalConnectivityEthernet.ts b/src/typings/management/terminalConnectivityEthernet.ts index 355c33fd4..86fbadb95 100644 --- a/src/typings/management/terminalConnectivityEthernet.ts +++ b/src/typings/management/terminalConnectivityEthernet.ts @@ -12,45 +12,37 @@ export class TerminalConnectivityEthernet { /** * The terminal\'s ethernet IP address. */ - "ipAddress"?: string; + 'ipAddress'?: string; /** * The ethernet link negotiation that the terminal uses. */ - "linkNegotiation"?: string; + 'linkNegotiation'?: string; /** * The terminal\'s ethernet MAC address. */ - "macAddress"?: string; + 'macAddress'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "ipAddress", "baseName": "ipAddress", - "type": "string", - "format": "" + "type": "string" }, { "name": "linkNegotiation", "baseName": "linkNegotiation", - "type": "string", - "format": "" + "type": "string" }, { "name": "macAddress", "baseName": "macAddress", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TerminalConnectivityEthernet.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/terminalConnectivityWifi.ts b/src/typings/management/terminalConnectivityWifi.ts index 4e9d7f0f2..7025aad53 100644 --- a/src/typings/management/terminalConnectivityWifi.ts +++ b/src/typings/management/terminalConnectivityWifi.ts @@ -12,45 +12,37 @@ export class TerminalConnectivityWifi { /** * The terminal\'s IP address in the Wi-Fi network. */ - "ipAddress"?: string; + 'ipAddress'?: string; /** * The terminal\'s MAC address in the Wi-Fi network. */ - "macAddress"?: string; + 'macAddress'?: string; /** * The SSID of the Wi-Fi network that the terminal is connected to. */ - "ssid"?: string; + 'ssid'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "ipAddress", "baseName": "ipAddress", - "type": "string", - "format": "" + "type": "string" }, { "name": "macAddress", "baseName": "macAddress", - "type": "string", - "format": "" + "type": "string" }, { "name": "ssid", "baseName": "ssid", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TerminalConnectivityWifi.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/terminalInstructions.ts b/src/typings/management/terminalInstructions.ts index 398ea84df..37b886d1c 100644 --- a/src/typings/management/terminalInstructions.ts +++ b/src/typings/management/terminalInstructions.ts @@ -12,25 +12,19 @@ export class TerminalInstructions { /** * Indicates whether the Adyen app on the payment terminal restarts automatically when the configuration is updated. */ - "adyenAppRestart"?: boolean; + 'adyenAppRestart'?: boolean; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "adyenAppRestart", "baseName": "adyenAppRestart", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return TerminalInstructions.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/terminalModelsResponse.ts b/src/typings/management/terminalModelsResponse.ts index 22e41464a..ddfd10ab5 100644 --- a/src/typings/management/terminalModelsResponse.ts +++ b/src/typings/management/terminalModelsResponse.ts @@ -7,32 +7,25 @@ * Do not edit this class manually. */ -import { IdName } from "./idName"; - +import { IdName } from './idName'; export class TerminalModelsResponse { /** * The terminal models that the API credential has access to. */ - "data"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'data'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return TerminalModelsResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/terminalOrder.ts b/src/typings/management/terminalOrder.ts index 4c76ae63c..91acf7edd 100644 --- a/src/typings/management/terminalOrder.ts +++ b/src/typings/management/terminalOrder.ts @@ -7,98 +7,84 @@ * Do not edit this class manually. */ -import { BillingEntity } from "./billingEntity"; -import { OrderItem } from "./orderItem"; -import { ShippingLocation } from "./shippingLocation"; - +import { BillingEntity } from './billingEntity'; +import { OrderItem } from './orderItem'; +import { ShippingLocation } from './shippingLocation'; export class TerminalOrder { - "billingEntity"?: BillingEntity | null; + 'billingEntity'?: BillingEntity | null; /** * The merchant-defined purchase order number. This will be printed on the packing list. */ - "customerOrderReference"?: string; + 'customerOrderReference'?: string; /** * The unique identifier of the order. */ - "id"?: string; + 'id'?: string; /** * The products included in the order. */ - "items"?: Array; + 'items'?: Array; /** * The date and time that the order was placed, in UTC ISO 8601 format. For example, \"2011-12-03T10:15:30Z\". */ - "orderDate"?: string; - "shippingLocation"?: ShippingLocation | null; + 'orderDate'?: string; + 'shippingLocation'?: ShippingLocation | null; /** * The processing status of the order. */ - "status"?: string; + 'status'?: string; /** * The URL, provided by the carrier company, where the shipment can be tracked. */ - "trackingUrl"?: string; - - static readonly discriminator: string | undefined = undefined; + 'trackingUrl'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "billingEntity", "baseName": "billingEntity", - "type": "BillingEntity | null", - "format": "" + "type": "BillingEntity | null" }, { "name": "customerOrderReference", "baseName": "customerOrderReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "items", "baseName": "items", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "orderDate", "baseName": "orderDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "shippingLocation", "baseName": "shippingLocation", - "type": "ShippingLocation | null", - "format": "" + "type": "ShippingLocation | null" }, { "name": "status", "baseName": "status", - "type": "string", - "format": "" + "type": "string" }, { "name": "trackingUrl", "baseName": "trackingUrl", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TerminalOrder.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/terminalOrderRequest.ts b/src/typings/management/terminalOrderRequest.ts index 72e2b7dc4..bee9ebe02 100644 --- a/src/typings/management/terminalOrderRequest.ts +++ b/src/typings/management/terminalOrderRequest.ts @@ -7,82 +7,70 @@ * Do not edit this class manually. */ -import { OrderItem } from "./orderItem"; - +import { OrderItem } from './orderItem'; export class TerminalOrderRequest { /** * The identification of the billing entity to use for the order. > When ordering products in Brazil, you do not need to include the `billingEntityId` in the request. */ - "billingEntityId"?: string; + 'billingEntityId'?: string; /** * The merchant-defined purchase order reference. */ - "customerOrderReference"?: string; + 'customerOrderReference'?: string; /** * The products included in the order. */ - "items"?: Array; + 'items'?: Array; /** * Type of order */ - "orderType"?: string; + 'orderType'?: string; /** * The identification of the shipping location to use for the order. */ - "shippingLocationId"?: string; + 'shippingLocationId'?: string; /** * The tax number of the billing entity. */ - "taxId"?: string; - - static readonly discriminator: string | undefined = undefined; + 'taxId'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "billingEntityId", "baseName": "billingEntityId", - "type": "string", - "format": "" + "type": "string" }, { "name": "customerOrderReference", "baseName": "customerOrderReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "items", "baseName": "items", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "orderType", "baseName": "orderType", - "type": "string", - "format": "" + "type": "string" }, { "name": "shippingLocationId", "baseName": "shippingLocationId", - "type": "string", - "format": "" + "type": "string" }, { "name": "taxId", "baseName": "taxId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TerminalOrderRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/terminalOrdersResponse.ts b/src/typings/management/terminalOrdersResponse.ts index e8e750573..f229cb157 100644 --- a/src/typings/management/terminalOrdersResponse.ts +++ b/src/typings/management/terminalOrdersResponse.ts @@ -7,32 +7,25 @@ * Do not edit this class manually. */ -import { TerminalOrder } from "./terminalOrder"; - +import { TerminalOrder } from './terminalOrder'; export class TerminalOrdersResponse { /** * List of orders for payment terminal packages and parts. */ - "data"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'data'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return TerminalOrdersResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/terminalProduct.ts b/src/typings/management/terminalProduct.ts index fbf9cb435..7457d17dd 100644 --- a/src/typings/management/terminalProduct.ts +++ b/src/typings/management/terminalProduct.ts @@ -7,69 +7,58 @@ * Do not edit this class manually. */ -import { TerminalProductPrice } from "./terminalProductPrice"; - +import { TerminalProductPrice } from './terminalProductPrice'; export class TerminalProduct { /** * Information about items included and integration options. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the product. */ - "id"?: string; + 'id'?: string; /** * A list of parts included in the terminal package. */ - "itemsIncluded"?: Array; + 'itemsIncluded'?: Array; /** * The descriptive name of the product. */ - "name"?: string; - "price"?: TerminalProductPrice | null; - - static readonly discriminator: string | undefined = undefined; + 'name'?: string; + 'price'?: TerminalProductPrice | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "itemsIncluded", "baseName": "itemsIncluded", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "price", "baseName": "price", - "type": "TerminalProductPrice | null", - "format": "" + "type": "TerminalProductPrice | null" } ]; static getAttributeTypeMap() { return TerminalProduct.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/terminalProductPrice.ts b/src/typings/management/terminalProductPrice.ts index 16c4f4d6a..f7ad0f191 100644 --- a/src/typings/management/terminalProductPrice.ts +++ b/src/typings/management/terminalProductPrice.ts @@ -12,35 +12,28 @@ export class TerminalProductPrice { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ - "currency"?: string; + 'currency'?: string; /** * The price of the item. */ - "value"?: number; + 'value'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "number", - "format": "double" + "type": "number" } ]; static getAttributeTypeMap() { return TerminalProductPrice.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/terminalProductsResponse.ts b/src/typings/management/terminalProductsResponse.ts index 30615e746..879e00aa0 100644 --- a/src/typings/management/terminalProductsResponse.ts +++ b/src/typings/management/terminalProductsResponse.ts @@ -7,32 +7,25 @@ * Do not edit this class manually. */ -import { TerminalProduct } from "./terminalProduct"; - +import { TerminalProduct } from './terminalProduct'; export class TerminalProductsResponse { /** * Terminal products that can be ordered. */ - "data"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'data'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return TerminalProductsResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/terminalReassignmentRequest.ts b/src/typings/management/terminalReassignmentRequest.ts index 3d83c5326..c7259d779 100644 --- a/src/typings/management/terminalReassignmentRequest.ts +++ b/src/typings/management/terminalReassignmentRequest.ts @@ -12,55 +12,46 @@ export class TerminalReassignmentRequest { /** * The unique identifier of the company account to which the terminal is reassigned. */ - "companyId"?: string; + 'companyId'?: string; /** * Must be specified when reassigning terminals to a merchant account: - If set to **true**, reassigns terminals to the inventory of the merchant account and the terminals cannot process transactions. - If set to **false**, reassigns terminals directly to the merchant account and the terminals can process transactions. */ - "inventory"?: boolean; + 'inventory'?: boolean; /** * The unique identifier of the merchant account to which the terminal is reassigned. When reassigning terminals to a merchant account, you must specify the `inventory` field. */ - "merchantId"?: string; + 'merchantId'?: string; /** * The unique identifier of the store to which the terminal is reassigned. */ - "storeId"?: string; + 'storeId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "companyId", "baseName": "companyId", - "type": "string", - "format": "" + "type": "string" }, { "name": "inventory", "baseName": "inventory", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "merchantId", "baseName": "merchantId", - "type": "string", - "format": "" + "type": "string" }, { "name": "storeId", "baseName": "storeId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TerminalReassignmentRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/terminalReassignmentTarget.ts b/src/typings/management/terminalReassignmentTarget.ts index 97528c0e2..f71968589 100644 --- a/src/typings/management/terminalReassignmentTarget.ts +++ b/src/typings/management/terminalReassignmentTarget.ts @@ -12,55 +12,46 @@ export class TerminalReassignmentTarget { /** * The unique identifier of the company account to which the terminal is reassigned. */ - "companyId"?: string; + 'companyId'?: string; /** * Indicates if the terminal is reassigned to the inventory of the merchant account. - If **true**, the terminal is in the inventory of the merchant account and cannot process transactions. - If **false**, the terminal is reassigned directly to the merchant account and can process transactions. */ - "inventory": boolean; + 'inventory': boolean; /** * The unique identifier of the merchant account to which the terminal is reassigned. */ - "merchantId"?: string; + 'merchantId'?: string; /** * The unique identifier of the store to which the terminal is reassigned. */ - "storeId"?: string; + 'storeId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "companyId", "baseName": "companyId", - "type": "string", - "format": "" + "type": "string" }, { "name": "inventory", "baseName": "inventory", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "merchantId", "baseName": "merchantId", - "type": "string", - "format": "" + "type": "string" }, { "name": "storeId", "baseName": "storeId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TerminalReassignmentTarget.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/terminalSettings.ts b/src/typings/management/terminalSettings.ts index ad1111744..35c17b19e 100644 --- a/src/typings/management/terminalSettings.ts +++ b/src/typings/management/terminalSettings.ts @@ -7,200 +7,172 @@ * Do not edit this class manually. */ -import { CardholderReceipt } from "./cardholderReceipt"; -import { Connectivity } from "./connectivity"; -import { Gratuity } from "./gratuity"; -import { Hardware } from "./hardware"; -import { Localization } from "./localization"; -import { Nexo } from "./nexo"; -import { OfflineProcessing } from "./offlineProcessing"; -import { Opi } from "./opi"; -import { Passcodes } from "./passcodes"; -import { PayAtTable } from "./payAtTable"; -import { Payment } from "./payment"; -import { ReceiptOptions } from "./receiptOptions"; -import { ReceiptPrinting } from "./receiptPrinting"; -import { Refunds } from "./refunds"; -import { Signature } from "./signature"; -import { Standalone } from "./standalone"; -import { StoreAndForward } from "./storeAndForward"; -import { Surcharge } from "./surcharge"; -import { TapToPay } from "./tapToPay"; -import { TerminalInstructions } from "./terminalInstructions"; -import { Timeouts } from "./timeouts"; -import { WifiProfiles } from "./wifiProfiles"; - +import { CardholderReceipt } from './cardholderReceipt'; +import { Connectivity } from './connectivity'; +import { Gratuity } from './gratuity'; +import { Hardware } from './hardware'; +import { Localization } from './localization'; +import { Nexo } from './nexo'; +import { OfflineProcessing } from './offlineProcessing'; +import { Opi } from './opi'; +import { Passcodes } from './passcodes'; +import { PayAtTable } from './payAtTable'; +import { Payment } from './payment'; +import { ReceiptOptions } from './receiptOptions'; +import { ReceiptPrinting } from './receiptPrinting'; +import { Refunds } from './refunds'; +import { Signature } from './signature'; +import { Standalone } from './standalone'; +import { StoreAndForward } from './storeAndForward'; +import { Surcharge } from './surcharge'; +import { TapToPay } from './tapToPay'; +import { TerminalInstructions } from './terminalInstructions'; +import { Timeouts } from './timeouts'; +import { WifiProfiles } from './wifiProfiles'; export class TerminalSettings { - "cardholderReceipt"?: CardholderReceipt | null; - "connectivity"?: Connectivity | null; + 'cardholderReceipt'?: CardholderReceipt | null; + 'connectivity'?: Connectivity | null; /** * Settings for tipping with or without predefined options to choose from. The maximum number of predefined options is four, or three plus the option to enter a custom tip. */ - "gratuities"?: Array | null; - "hardware"?: Hardware | null; - "localization"?: Localization | null; - "nexo"?: Nexo | null; - "offlineProcessing"?: OfflineProcessing | null; - "opi"?: Opi | null; - "passcodes"?: Passcodes | null; - "payAtTable"?: PayAtTable | null; - "payment"?: Payment | null; - "receiptOptions"?: ReceiptOptions | null; - "receiptPrinting"?: ReceiptPrinting | null; - "refunds"?: Refunds | null; - "signature"?: Signature | null; - "standalone"?: Standalone | null; - "storeAndForward"?: StoreAndForward | null; - "surcharge"?: Surcharge | null; - "tapToPay"?: TapToPay | null; - "terminalInstructions"?: TerminalInstructions | null; - "timeouts"?: Timeouts | null; - "wifiProfiles"?: WifiProfiles | null; - - static readonly discriminator: string | undefined = undefined; + 'gratuities'?: Array | null; + 'hardware'?: Hardware | null; + 'localization'?: Localization | null; + 'nexo'?: Nexo | null; + 'offlineProcessing'?: OfflineProcessing | null; + 'opi'?: Opi | null; + 'passcodes'?: Passcodes | null; + 'payAtTable'?: PayAtTable | null; + 'payment'?: Payment | null; + 'receiptOptions'?: ReceiptOptions | null; + 'receiptPrinting'?: ReceiptPrinting | null; + 'refunds'?: Refunds | null; + 'signature'?: Signature | null; + 'standalone'?: Standalone | null; + 'storeAndForward'?: StoreAndForward | null; + 'surcharge'?: Surcharge | null; + 'tapToPay'?: TapToPay | null; + 'terminalInstructions'?: TerminalInstructions | null; + 'timeouts'?: Timeouts | null; + 'wifiProfiles'?: WifiProfiles | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "cardholderReceipt", "baseName": "cardholderReceipt", - "type": "CardholderReceipt | null", - "format": "" + "type": "CardholderReceipt | null" }, { "name": "connectivity", "baseName": "connectivity", - "type": "Connectivity | null", - "format": "" + "type": "Connectivity | null" }, { "name": "gratuities", "baseName": "gratuities", - "type": "Array | null", - "format": "" + "type": "Array | null" }, { "name": "hardware", "baseName": "hardware", - "type": "Hardware | null", - "format": "" + "type": "Hardware | null" }, { "name": "localization", "baseName": "localization", - "type": "Localization | null", - "format": "" + "type": "Localization | null" }, { "name": "nexo", "baseName": "nexo", - "type": "Nexo | null", - "format": "" + "type": "Nexo | null" }, { "name": "offlineProcessing", "baseName": "offlineProcessing", - "type": "OfflineProcessing | null", - "format": "" + "type": "OfflineProcessing | null" }, { "name": "opi", "baseName": "opi", - "type": "Opi | null", - "format": "" + "type": "Opi | null" }, { "name": "passcodes", "baseName": "passcodes", - "type": "Passcodes | null", - "format": "" + "type": "Passcodes | null" }, { "name": "payAtTable", "baseName": "payAtTable", - "type": "PayAtTable | null", - "format": "" + "type": "PayAtTable | null" }, { "name": "payment", "baseName": "payment", - "type": "Payment | null", - "format": "" + "type": "Payment | null" }, { "name": "receiptOptions", "baseName": "receiptOptions", - "type": "ReceiptOptions | null", - "format": "" + "type": "ReceiptOptions | null" }, { "name": "receiptPrinting", "baseName": "receiptPrinting", - "type": "ReceiptPrinting | null", - "format": "" + "type": "ReceiptPrinting | null" }, { "name": "refunds", "baseName": "refunds", - "type": "Refunds | null", - "format": "" + "type": "Refunds | null" }, { "name": "signature", "baseName": "signature", - "type": "Signature | null", - "format": "" + "type": "Signature | null" }, { "name": "standalone", "baseName": "standalone", - "type": "Standalone | null", - "format": "" + "type": "Standalone | null" }, { "name": "storeAndForward", "baseName": "storeAndForward", - "type": "StoreAndForward | null", - "format": "" + "type": "StoreAndForward | null" }, { "name": "surcharge", "baseName": "surcharge", - "type": "Surcharge | null", - "format": "" + "type": "Surcharge | null" }, { "name": "tapToPay", "baseName": "tapToPay", - "type": "TapToPay | null", - "format": "" + "type": "TapToPay | null" }, { "name": "terminalInstructions", "baseName": "terminalInstructions", - "type": "TerminalInstructions | null", - "format": "" + "type": "TerminalInstructions | null" }, { "name": "timeouts", "baseName": "timeouts", - "type": "Timeouts | null", - "format": "" + "type": "Timeouts | null" }, { "name": "wifiProfiles", "baseName": "wifiProfiles", - "type": "WifiProfiles | null", - "format": "" + "type": "WifiProfiles | null" } ]; static getAttributeTypeMap() { return TerminalSettings.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/testCompanyWebhookRequest.ts b/src/typings/management/testCompanyWebhookRequest.ts index 2a0b73829..972e1a129 100644 --- a/src/typings/management/testCompanyWebhookRequest.ts +++ b/src/typings/management/testCompanyWebhookRequest.ts @@ -7,49 +7,40 @@ * Do not edit this class manually. */ -import { CustomNotification } from "./customNotification"; - +import { CustomNotification } from './customNotification'; export class TestCompanyWebhookRequest { /** * List of `merchantId` values for which test webhooks will be sent. The list can have a maximum of 20 `merchantId` values. If not specified, we send sample notifications to all the merchant accounts that the webhook is configured for. If this is more than 20 merchant accounts, use this list to specify a subset of the merchant accounts for which to send test notifications. */ - "merchantIds"?: Array; - "notification"?: CustomNotification | null; + 'merchantIds'?: Array; + 'notification'?: CustomNotification | null; /** * List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING** */ - "types"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'types'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "merchantIds", "baseName": "merchantIds", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "notification", "baseName": "notification", - "type": "CustomNotification | null", - "format": "" + "type": "CustomNotification | null" }, { "name": "types", "baseName": "types", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return TestCompanyWebhookRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/testOutput.ts b/src/typings/management/testOutput.ts index d3fa8d9c7..6e5ef1c85 100644 --- a/src/typings/management/testOutput.ts +++ b/src/typings/management/testOutput.ts @@ -12,75 +12,64 @@ export class TestOutput { /** * Unique identifier of the merchant account that the notification is about. */ - "merchantId"?: string; + 'merchantId'?: string; /** * A short, human-readable explanation of the test result. Your server must respond with **HTTP 2xx* for the test webhook to be successful (`data.status`: **success**). Find out more about [accepting notifications](https://docs.adyen.com/development-resources/webhooks#accept-notifications) You can use the value of this field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot unsuccessful test webhooks. */ - "output"?: string; + 'output'?: string; /** * The [body of the notification webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) that was sent to your server. */ - "requestSent"?: string; + 'requestSent'?: string; /** * The HTTP response code for your server\'s response to the test webhook. You can use the value of this field together with the the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field value to troubleshoot failed test webhooks. */ - "responseCode"?: string; + 'responseCode'?: string; /** * The time between sending the test webhook and receiving the response from your server. You can use it as an indication of how long your server takes to process a webhook notification. Measured in milliseconds, for example **304 ms**. */ - "responseTime"?: string; + 'responseTime'?: string; /** * The status of the test request. Possible values are: * **success**, `data.responseCode`: **2xx**. * **failed**, in all other cases. You can use the value of the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot failed test webhooks. */ - "status": string; + 'status': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "merchantId", "baseName": "merchantId", - "type": "string", - "format": "" + "type": "string" }, { "name": "output", "baseName": "output", - "type": "string", - "format": "" + "type": "string" }, { "name": "requestSent", "baseName": "requestSent", - "type": "string", - "format": "" + "type": "string" }, { "name": "responseCode", "baseName": "responseCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "responseTime", "baseName": "responseTime", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TestOutput.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/testWebhookRequest.ts b/src/typings/management/testWebhookRequest.ts index f582c91e2..9f0349a44 100644 --- a/src/typings/management/testWebhookRequest.ts +++ b/src/typings/management/testWebhookRequest.ts @@ -7,39 +7,31 @@ * Do not edit this class manually. */ -import { CustomNotification } from "./customNotification"; - +import { CustomNotification } from './customNotification'; export class TestWebhookRequest { - "notification"?: CustomNotification | null; + 'notification'?: CustomNotification | null; /** * List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING** */ - "types"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'types'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "notification", "baseName": "notification", - "type": "CustomNotification | null", - "format": "" + "type": "CustomNotification | null" }, { "name": "types", "baseName": "types", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return TestWebhookRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/testWebhookResponse.ts b/src/typings/management/testWebhookResponse.ts index 758080bfd..768b2c073 100644 --- a/src/typings/management/testWebhookResponse.ts +++ b/src/typings/management/testWebhookResponse.ts @@ -7,32 +7,25 @@ * Do not edit this class manually. */ -import { TestOutput } from "./testOutput"; - +import { TestOutput } from './testOutput'; export class TestWebhookResponse { /** * List with test results. Each test webhook we send has a list element with the result. */ - "data"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'data'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return TestWebhookResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/ticketInfo.ts b/src/typings/management/ticketInfo.ts index 372449208..39727a823 100644 --- a/src/typings/management/ticketInfo.ts +++ b/src/typings/management/ticketInfo.ts @@ -12,25 +12,19 @@ export class TicketInfo { /** * Ticket requestorId */ - "requestorId"?: string; + 'requestorId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "requestorId", "baseName": "requestorId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TicketInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/timeouts.ts b/src/typings/management/timeouts.ts index 9357d58cb..2b8d31df7 100644 --- a/src/typings/management/timeouts.ts +++ b/src/typings/management/timeouts.ts @@ -12,25 +12,19 @@ export class Timeouts { /** * Indicates the number of seconds of inactivity after which the terminal display goes into sleep mode. */ - "fromActiveToSleep"?: number; + 'fromActiveToSleep'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "fromActiveToSleep", "baseName": "fromActiveToSleep", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return Timeouts.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/transactionDescriptionInfo.ts b/src/typings/management/transactionDescriptionInfo.ts index 9223e7193..6c571914f 100644 --- a/src/typings/management/transactionDescriptionInfo.ts +++ b/src/typings/management/transactionDescriptionInfo.ts @@ -12,36 +12,29 @@ export class TransactionDescriptionInfo { /** * The text to be shown on the shopper\'s bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , \' _ - ? + * /_**. */ - "doingBusinessAsName"?: string; + 'doingBusinessAsName'?: string; /** * The type of transaction description you want to use: - **fixed**: The transaction description set in this request is used for all payments with this payment method. - **append**: The transaction description set in this request is used as a base for all payments with this payment method. The [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is appended to this base description. Note that if the combined length exceeds 22 characters, banks may truncate the string. - **dynamic**: Only the [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is used for payments with this payment method. */ - "type"?: TransactionDescriptionInfo.TypeEnum; + 'type'?: TransactionDescriptionInfo.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "doingBusinessAsName", "baseName": "doingBusinessAsName", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "TransactionDescriptionInfo.TypeEnum", - "format": "" + "type": "TransactionDescriptionInfo.TypeEnum" } ]; static getAttributeTypeMap() { return TransactionDescriptionInfo.attributeTypeMap; } - - public constructor() { - } } export namespace TransactionDescriptionInfo { diff --git a/src/typings/management/twintInfo.ts b/src/typings/management/twintInfo.ts index 2a152ab22..e0d87ab23 100644 --- a/src/typings/management/twintInfo.ts +++ b/src/typings/management/twintInfo.ts @@ -12,25 +12,19 @@ export class TwintInfo { /** * Twint logo. Format: Base64-encoded string. */ - "logo": string; + 'logo': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "logo", "baseName": "logo", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TwintInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/uninstallAndroidAppDetails.ts b/src/typings/management/uninstallAndroidAppDetails.ts index 9a379cbe0..2279217f9 100644 --- a/src/typings/management/uninstallAndroidAppDetails.ts +++ b/src/typings/management/uninstallAndroidAppDetails.ts @@ -12,36 +12,29 @@ export class UninstallAndroidAppDetails { /** * The unique identifier of the app to be uninstalled. */ - "appId"?: string; + 'appId'?: string; /** * Type of terminal action: Uninstall an Android app. */ - "type"?: UninstallAndroidAppDetails.TypeEnum; + 'type'?: UninstallAndroidAppDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "appId", "baseName": "appId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "UninstallAndroidAppDetails.TypeEnum", - "format": "" + "type": "UninstallAndroidAppDetails.TypeEnum" } ]; static getAttributeTypeMap() { return UninstallAndroidAppDetails.attributeTypeMap; } - - public constructor() { - } } export namespace UninstallAndroidAppDetails { diff --git a/src/typings/management/uninstallAndroidCertificateDetails.ts b/src/typings/management/uninstallAndroidCertificateDetails.ts index b5c959478..429058201 100644 --- a/src/typings/management/uninstallAndroidCertificateDetails.ts +++ b/src/typings/management/uninstallAndroidCertificateDetails.ts @@ -12,36 +12,29 @@ export class UninstallAndroidCertificateDetails { /** * The unique identifier of the certificate to be uninstalled. */ - "certificateId"?: string; + 'certificateId'?: string; /** * Type of terminal action: Uninstall an Android certificate. */ - "type"?: UninstallAndroidCertificateDetails.TypeEnum; + 'type'?: UninstallAndroidCertificateDetails.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "certificateId", "baseName": "certificateId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "UninstallAndroidCertificateDetails.TypeEnum", - "format": "" + "type": "UninstallAndroidCertificateDetails.TypeEnum" } ]; static getAttributeTypeMap() { return UninstallAndroidCertificateDetails.attributeTypeMap; } - - public constructor() { - } } export namespace UninstallAndroidCertificateDetails { diff --git a/src/typings/management/updatableAddress.ts b/src/typings/management/updatableAddress.ts index 866809d03..ba62dc7fe 100644 --- a/src/typings/management/updatableAddress.ts +++ b/src/typings/management/updatableAddress.ts @@ -12,75 +12,64 @@ export class UpdatableAddress { /** * The name of the city. */ - "city"?: string; + 'city'?: string; /** * The street address. */ - "line1"?: string; + 'line1'?: string; /** * Second address line. */ - "line2"?: string; + 'line2'?: string; /** * Third address line. */ - "line3"?: string; + 'line3'?: string; /** * The postal code. */ - "postalCode"?: string; + 'postalCode'?: string; /** * The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States */ - "stateOrProvince"?: string; + 'stateOrProvince'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "city", "baseName": "city", - "type": "string", - "format": "" + "type": "string" }, { "name": "line1", "baseName": "line1", - "type": "string", - "format": "" + "type": "string" }, { "name": "line2", "baseName": "line2", - "type": "string", - "format": "" + "type": "string" }, { "name": "line3", "baseName": "line3", - "type": "string", - "format": "" + "type": "string" }, { "name": "postalCode", "baseName": "postalCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "stateOrProvince", "baseName": "stateOrProvince", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return UpdatableAddress.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/updateCompanyApiCredentialRequest.ts b/src/typings/management/updateCompanyApiCredentialRequest.ts index 0b42986b5..2f9988af7 100644 --- a/src/typings/management/updateCompanyApiCredentialRequest.ts +++ b/src/typings/management/updateCompanyApiCredentialRequest.ts @@ -12,65 +12,55 @@ export class UpdateCompanyApiCredentialRequest { /** * Indicates if the API credential is enabled. */ - "active"?: boolean; + 'active'?: boolean; /** * The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential. */ - "allowedOrigins"?: Array; + 'allowedOrigins'?: Array; /** * List of merchant accounts that the API credential has access to. */ - "associatedMerchantAccounts"?: Array; + 'associatedMerchantAccounts'?: Array; /** * Description of the API credential. */ - "description"?: string; + 'description'?: string; /** * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to \'ws@Company.\' can be assigned to other API credentials. */ - "roles"?: Array; + 'roles'?: Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "active", "baseName": "active", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "allowedOrigins", "baseName": "allowedOrigins", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "associatedMerchantAccounts", "baseName": "associatedMerchantAccounts", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "roles", "baseName": "roles", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return UpdateCompanyApiCredentialRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/updateCompanyUserRequest.ts b/src/typings/management/updateCompanyUserRequest.ts index 8446d328e..6139d9912 100644 --- a/src/typings/management/updateCompanyUserRequest.ts +++ b/src/typings/management/updateCompanyUserRequest.ts @@ -7,99 +7,85 @@ * Do not edit this class manually. */ -import { Name2 } from "./name2"; - +import { Name2 } from './name2'; export class UpdateCompanyUserRequest { /** * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. */ - "accountGroups"?: Array; + 'accountGroups'?: Array; /** * Indicates whether this user is active. */ - "active"?: boolean; + 'active'?: boolean; /** * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) to associate the user with. */ - "associatedMerchantAccounts"?: Array; + 'associatedMerchantAccounts'?: Array; /** * The email address of the user. */ - "email"?: string; + 'email'?: string; /** * The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** */ - "loginMethod"?: string; - "name"?: Name2 | null; + 'loginMethod'?: string; + 'name'?: Name2 | null; /** * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. */ - "roles"?: Array; + 'roles'?: Array; /** * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. */ - "timeZoneCode"?: string; - - static readonly discriminator: string | undefined = undefined; + 'timeZoneCode'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountGroups", "baseName": "accountGroups", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "active", "baseName": "active", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "associatedMerchantAccounts", "baseName": "associatedMerchantAccounts", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "email", "baseName": "email", - "type": "string", - "format": "" + "type": "string" }, { "name": "loginMethod", "baseName": "loginMethod", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "Name2 | null", - "format": "" + "type": "Name2 | null" }, { "name": "roles", "baseName": "roles", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "timeZoneCode", "baseName": "timeZoneCode", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return UpdateCompanyUserRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/updateCompanyWebhookRequest.ts b/src/typings/management/updateCompanyWebhookRequest.ts index 0d27c8486..9b128a088 100644 --- a/src/typings/management/updateCompanyWebhookRequest.ts +++ b/src/typings/management/updateCompanyWebhookRequest.ts @@ -7,170 +7,149 @@ * Do not edit this class manually. */ -import { AdditionalSettings } from "./additionalSettings"; - +import { AdditionalSettings } from './additionalSettings'; export class UpdateCompanyWebhookRequest { /** * Indicates if expired SSL certificates are accepted. Default value: **false**. */ - "acceptsExpiredCertificate"?: boolean; + 'acceptsExpiredCertificate'?: boolean; /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. */ - "acceptsSelfSignedCertificate"?: boolean; + 'acceptsSelfSignedCertificate'?: boolean; /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. */ - "acceptsUntrustedRootCertificate"?: boolean; + 'acceptsUntrustedRootCertificate'?: boolean; /** * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. */ - "active"?: boolean; - "additionalSettings"?: AdditionalSettings | null; + 'active'?: boolean; + 'additionalSettings'?: AdditionalSettings | null; /** * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** */ - "communicationFormat"?: UpdateCompanyWebhookRequest.CommunicationFormatEnum; + 'communicationFormat'?: UpdateCompanyWebhookRequest.CommunicationFormatEnum; /** * Your description for this webhook configuration. */ - "description"?: string; + 'description'?: string; /** * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. */ - "encryptionProtocol"?: UpdateCompanyWebhookRequest.EncryptionProtocolEnum; + 'encryptionProtocol'?: UpdateCompanyWebhookRequest.EncryptionProtocolEnum; /** * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **includeAccounts**: The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts**: The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. */ - "filterMerchantAccountType"?: UpdateCompanyWebhookRequest.FilterMerchantAccountTypeEnum; + 'filterMerchantAccountType'?: UpdateCompanyWebhookRequest.FilterMerchantAccountTypeEnum; /** * A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. */ - "filterMerchantAccounts"?: Array; + 'filterMerchantAccounts'?: Array; /** * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. */ - "networkType"?: UpdateCompanyWebhookRequest.NetworkTypeEnum; + 'networkType'?: UpdateCompanyWebhookRequest.NetworkTypeEnum; /** * Password to access the webhook URL. */ - "password"?: string; + 'password'?: string; /** * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. */ - "populateSoapActionHeader"?: boolean; + 'populateSoapActionHeader'?: boolean; /** * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. */ - "url"?: string; + 'url'?: string; /** * Username to access the webhook URL. */ - "username"?: string; - - static readonly discriminator: string | undefined = undefined; + 'username'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "acceptsExpiredCertificate", "baseName": "acceptsExpiredCertificate", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "acceptsSelfSignedCertificate", "baseName": "acceptsSelfSignedCertificate", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "acceptsUntrustedRootCertificate", "baseName": "acceptsUntrustedRootCertificate", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "active", "baseName": "active", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "additionalSettings", "baseName": "additionalSettings", - "type": "AdditionalSettings | null", - "format": "" + "type": "AdditionalSettings | null" }, { "name": "communicationFormat", "baseName": "communicationFormat", - "type": "UpdateCompanyWebhookRequest.CommunicationFormatEnum", - "format": "" + "type": "UpdateCompanyWebhookRequest.CommunicationFormatEnum" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "encryptionProtocol", "baseName": "encryptionProtocol", - "type": "UpdateCompanyWebhookRequest.EncryptionProtocolEnum", - "format": "" + "type": "UpdateCompanyWebhookRequest.EncryptionProtocolEnum" }, { "name": "filterMerchantAccountType", "baseName": "filterMerchantAccountType", - "type": "UpdateCompanyWebhookRequest.FilterMerchantAccountTypeEnum", - "format": "" + "type": "UpdateCompanyWebhookRequest.FilterMerchantAccountTypeEnum" }, { "name": "filterMerchantAccounts", "baseName": "filterMerchantAccounts", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "networkType", "baseName": "networkType", - "type": "UpdateCompanyWebhookRequest.NetworkTypeEnum", - "format": "" + "type": "UpdateCompanyWebhookRequest.NetworkTypeEnum" }, { "name": "password", "baseName": "password", - "type": "string", - "format": "" + "type": "string" }, { "name": "populateSoapActionHeader", "baseName": "populateSoapActionHeader", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "url", "baseName": "url", - "type": "string", - "format": "" + "type": "string" }, { "name": "username", "baseName": "username", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return UpdateCompanyWebhookRequest.attributeTypeMap; } - - public constructor() { - } } export namespace UpdateCompanyWebhookRequest { diff --git a/src/typings/management/updateMerchantApiCredentialRequest.ts b/src/typings/management/updateMerchantApiCredentialRequest.ts index 644241e6d..784fcdfd5 100644 --- a/src/typings/management/updateMerchantApiCredentialRequest.ts +++ b/src/typings/management/updateMerchantApiCredentialRequest.ts @@ -12,55 +12,46 @@ export class UpdateMerchantApiCredentialRequest { /** * Indicates if the API credential is enabled. */ - "active"?: boolean; + 'active'?: boolean; /** * The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential. */ - "allowedOrigins"?: Array; + 'allowedOrigins'?: Array; /** * Description of the API credential. */ - "description"?: string; + 'description'?: string; /** * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to \'ws@Company.\' can be assigned to other API credentials. */ - "roles"?: Array; + 'roles'?: Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "active", "baseName": "active", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "allowedOrigins", "baseName": "allowedOrigins", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "roles", "baseName": "roles", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return UpdateMerchantApiCredentialRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/updateMerchantUserRequest.ts b/src/typings/management/updateMerchantUserRequest.ts index 9785ab314..4ab1c66f0 100644 --- a/src/typings/management/updateMerchantUserRequest.ts +++ b/src/typings/management/updateMerchantUserRequest.ts @@ -7,89 +7,76 @@ * Do not edit this class manually. */ -import { Name2 } from "./name2"; - +import { Name2 } from './name2'; export class UpdateMerchantUserRequest { /** * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. */ - "accountGroups"?: Array; + 'accountGroups'?: Array; /** * Sets the status of the user to active (**true**) or inactive (**false**). */ - "active"?: boolean; + 'active'?: boolean; /** * The email address of the user. */ - "email"?: string; + 'email'?: string; /** * The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** */ - "loginMethod"?: string; - "name"?: Name2 | null; + 'loginMethod'?: string; + 'name'?: Name2 | null; /** * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. */ - "roles"?: Array; + 'roles'?: Array; /** * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. */ - "timeZoneCode"?: string; - - static readonly discriminator: string | undefined = undefined; + 'timeZoneCode'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountGroups", "baseName": "accountGroups", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "active", "baseName": "active", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "email", "baseName": "email", - "type": "string", - "format": "" + "type": "string" }, { "name": "loginMethod", "baseName": "loginMethod", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "Name2 | null", - "format": "" + "type": "Name2 | null" }, { "name": "roles", "baseName": "roles", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "timeZoneCode", "baseName": "timeZoneCode", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return UpdateMerchantUserRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/updateMerchantWebhookRequest.ts b/src/typings/management/updateMerchantWebhookRequest.ts index cd7f96d2c..ed3e6eeb6 100644 --- a/src/typings/management/updateMerchantWebhookRequest.ts +++ b/src/typings/management/updateMerchantWebhookRequest.ts @@ -7,150 +7,131 @@ * Do not edit this class manually. */ -import { AdditionalSettings } from "./additionalSettings"; - +import { AdditionalSettings } from './additionalSettings'; export class UpdateMerchantWebhookRequest { /** * Indicates if expired SSL certificates are accepted. Default value: **false**. */ - "acceptsExpiredCertificate"?: boolean; + 'acceptsExpiredCertificate'?: boolean; /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. */ - "acceptsSelfSignedCertificate"?: boolean; + 'acceptsSelfSignedCertificate'?: boolean; /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. */ - "acceptsUntrustedRootCertificate"?: boolean; + 'acceptsUntrustedRootCertificate'?: boolean; /** * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. */ - "active"?: boolean; - "additionalSettings"?: AdditionalSettings | null; + 'active'?: boolean; + 'additionalSettings'?: AdditionalSettings | null; /** * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** */ - "communicationFormat"?: UpdateMerchantWebhookRequest.CommunicationFormatEnum; + 'communicationFormat'?: UpdateMerchantWebhookRequest.CommunicationFormatEnum; /** * Your description for this webhook configuration. */ - "description"?: string; + 'description'?: string; /** * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. */ - "encryptionProtocol"?: UpdateMerchantWebhookRequest.EncryptionProtocolEnum; + 'encryptionProtocol'?: UpdateMerchantWebhookRequest.EncryptionProtocolEnum; /** * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. */ - "networkType"?: UpdateMerchantWebhookRequest.NetworkTypeEnum; + 'networkType'?: UpdateMerchantWebhookRequest.NetworkTypeEnum; /** * Password to access the webhook URL. */ - "password"?: string; + 'password'?: string; /** * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. */ - "populateSoapActionHeader"?: boolean; + 'populateSoapActionHeader'?: boolean; /** * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. */ - "url"?: string; + 'url'?: string; /** * Username to access the webhook URL. */ - "username"?: string; - - static readonly discriminator: string | undefined = undefined; + 'username'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "acceptsExpiredCertificate", "baseName": "acceptsExpiredCertificate", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "acceptsSelfSignedCertificate", "baseName": "acceptsSelfSignedCertificate", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "acceptsUntrustedRootCertificate", "baseName": "acceptsUntrustedRootCertificate", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "active", "baseName": "active", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "additionalSettings", "baseName": "additionalSettings", - "type": "AdditionalSettings | null", - "format": "" + "type": "AdditionalSettings | null" }, { "name": "communicationFormat", "baseName": "communicationFormat", - "type": "UpdateMerchantWebhookRequest.CommunicationFormatEnum", - "format": "" + "type": "UpdateMerchantWebhookRequest.CommunicationFormatEnum" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "encryptionProtocol", "baseName": "encryptionProtocol", - "type": "UpdateMerchantWebhookRequest.EncryptionProtocolEnum", - "format": "" + "type": "UpdateMerchantWebhookRequest.EncryptionProtocolEnum" }, { "name": "networkType", "baseName": "networkType", - "type": "UpdateMerchantWebhookRequest.NetworkTypeEnum", - "format": "" + "type": "UpdateMerchantWebhookRequest.NetworkTypeEnum" }, { "name": "password", "baseName": "password", - "type": "string", - "format": "" + "type": "string" }, { "name": "populateSoapActionHeader", "baseName": "populateSoapActionHeader", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "url", "baseName": "url", - "type": "string", - "format": "" + "type": "string" }, { "name": "username", "baseName": "username", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return UpdateMerchantWebhookRequest.attributeTypeMap; } - - public constructor() { - } } export namespace UpdateMerchantWebhookRequest { diff --git a/src/typings/management/updatePaymentMethodInfo.ts b/src/typings/management/updatePaymentMethodInfo.ts index 8ff958cd6..c9e582ace 100644 --- a/src/typings/management/updatePaymentMethodInfo.ts +++ b/src/typings/management/updatePaymentMethodInfo.ts @@ -7,225 +7,200 @@ * Do not edit this class manually. */ -import { AccelInfo } from "./accelInfo"; -import { BcmcInfo } from "./bcmcInfo"; -import { CartesBancairesInfo } from "./cartesBancairesInfo"; -import { GenericPmWithTdiInfo } from "./genericPmWithTdiInfo"; -import { NyceInfo } from "./nyceInfo"; -import { PayByBankPlaidInfo } from "./payByBankPlaidInfo"; -import { PulseInfo } from "./pulseInfo"; -import { StarInfo } from "./starInfo"; - +import { AccelInfo } from './accelInfo'; +import { BcmcInfo } from './bcmcInfo'; +import { CartesBancairesInfo } from './cartesBancairesInfo'; +import { GenericPmWithTdiInfo } from './genericPmWithTdiInfo'; +import { NyceInfo } from './nyceInfo'; +import { PayByBankPlaidInfo } from './payByBankPlaidInfo'; +import { PulseInfo } from './pulseInfo'; +import { StarInfo } from './starInfo'; export class UpdatePaymentMethodInfo { - "accel"?: AccelInfo | null; - "bcmc"?: BcmcInfo | null; - "cartesBancaires"?: CartesBancairesInfo | null; + 'accel'?: AccelInfo | null; + 'bcmc'?: BcmcInfo | null; + 'cartesBancaires'?: CartesBancairesInfo | null; /** * The list of countries where a payment method is available. By default, all countries supported by the payment method. */ - "countries"?: Array; - "cup"?: GenericPmWithTdiInfo | null; + 'countries'?: Array; + 'cup'?: GenericPmWithTdiInfo | null; /** * The list of currencies that a payment method supports. By default, all currencies supported by the payment method. */ - "currencies"?: Array; + 'currencies'?: Array; /** * Custom routing flags for acquirer routing. */ - "customRoutingFlags"?: Array; - "diners"?: GenericPmWithTdiInfo | null; - "discover"?: GenericPmWithTdiInfo | null; - "eft_directdebit_CA"?: GenericPmWithTdiInfo | null; - "eftpos_australia"?: GenericPmWithTdiInfo | null; + 'customRoutingFlags'?: Array; + 'diners'?: GenericPmWithTdiInfo | null; + 'discover'?: GenericPmWithTdiInfo | null; + 'eft_directdebit_CA'?: GenericPmWithTdiInfo | null; + 'eftpos_australia'?: GenericPmWithTdiInfo | null; /** * Indicates whether the payment method is enabled (**true**) or disabled (**false**). */ - "enabled"?: boolean; - "girocard"?: GenericPmWithTdiInfo | null; - "ideal"?: GenericPmWithTdiInfo | null; - "interac_card"?: GenericPmWithTdiInfo | null; - "jcb"?: GenericPmWithTdiInfo | null; - "maestro"?: GenericPmWithTdiInfo | null; - "mc"?: GenericPmWithTdiInfo | null; - "nyce"?: NyceInfo | null; - "paybybank_plaid"?: PayByBankPlaidInfo | null; - "pulse"?: PulseInfo | null; - "star"?: StarInfo | null; + 'enabled'?: boolean; + 'girocard'?: GenericPmWithTdiInfo | null; + 'ideal'?: GenericPmWithTdiInfo | null; + 'interac_card'?: GenericPmWithTdiInfo | null; + 'jcb'?: GenericPmWithTdiInfo | null; + 'maestro'?: GenericPmWithTdiInfo | null; + 'maestro_usa'?: GenericPmWithTdiInfo | null; + 'mc'?: GenericPmWithTdiInfo | null; + 'nyce'?: NyceInfo | null; + 'paybybank_plaid'?: PayByBankPlaidInfo | null; + 'pulse'?: PulseInfo | null; + 'star'?: StarInfo | null; /** * The store for this payment method */ - "storeId"?: string; + 'storeId'?: string; /** * The list of stores for this payment method * * @deprecated since Management API v3 * Use `storeId` instead. Only one store per payment method is allowed. */ - "storeIds"?: Array; - "visa"?: GenericPmWithTdiInfo | null; - - static readonly discriminator: string | undefined = undefined; + 'storeIds'?: Array; + 'visa'?: GenericPmWithTdiInfo | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accel", "baseName": "accel", - "type": "AccelInfo | null", - "format": "" + "type": "AccelInfo | null" }, { "name": "bcmc", "baseName": "bcmc", - "type": "BcmcInfo | null", - "format": "" + "type": "BcmcInfo | null" }, { "name": "cartesBancaires", "baseName": "cartesBancaires", - "type": "CartesBancairesInfo | null", - "format": "" + "type": "CartesBancairesInfo | null" }, { "name": "countries", "baseName": "countries", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "cup", "baseName": "cup", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" }, { "name": "currencies", "baseName": "currencies", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "customRoutingFlags", "baseName": "customRoutingFlags", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "diners", "baseName": "diners", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" }, { "name": "discover", "baseName": "discover", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" }, { "name": "eft_directdebit_CA", "baseName": "eft_directdebit_CA", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" }, { "name": "eftpos_australia", "baseName": "eftpos_australia", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" }, { "name": "enabled", "baseName": "enabled", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "girocard", "baseName": "girocard", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" }, { "name": "ideal", "baseName": "ideal", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" }, { "name": "interac_card", "baseName": "interac_card", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" }, { "name": "jcb", "baseName": "jcb", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" }, { "name": "maestro", "baseName": "maestro", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" + }, + { + "name": "maestro_usa", + "baseName": "maestro_usa", + "type": "GenericPmWithTdiInfo | null" }, { "name": "mc", "baseName": "mc", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" }, { "name": "nyce", "baseName": "nyce", - "type": "NyceInfo | null", - "format": "" + "type": "NyceInfo | null" }, { "name": "paybybank_plaid", "baseName": "paybybank_plaid", - "type": "PayByBankPlaidInfo | null", - "format": "" + "type": "PayByBankPlaidInfo | null" }, { "name": "pulse", "baseName": "pulse", - "type": "PulseInfo | null", - "format": "" + "type": "PulseInfo | null" }, { "name": "star", "baseName": "star", - "type": "StarInfo | null", - "format": "" + "type": "StarInfo | null" }, { "name": "storeId", "baseName": "storeId", - "type": "string", - "format": "" + "type": "string" }, { "name": "storeIds", "baseName": "storeIds", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "visa", "baseName": "visa", - "type": "GenericPmWithTdiInfo | null", - "format": "" + "type": "GenericPmWithTdiInfo | null" } ]; static getAttributeTypeMap() { return UpdatePaymentMethodInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/updatePayoutSettingsRequest.ts b/src/typings/management/updatePayoutSettingsRequest.ts index cbf8e9bc3..20998936a 100644 --- a/src/typings/management/updatePayoutSettingsRequest.ts +++ b/src/typings/management/updatePayoutSettingsRequest.ts @@ -12,25 +12,19 @@ export class UpdatePayoutSettingsRequest { /** * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. */ - "enabled"?: boolean; + 'enabled'?: boolean; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "enabled", "baseName": "enabled", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return UpdatePayoutSettingsRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/updateSplitConfigurationLogicRequest.ts b/src/typings/management/updateSplitConfigurationLogicRequest.ts index e0041d068..c19006942 100644 --- a/src/typings/management/updateSplitConfigurationLogicRequest.ts +++ b/src/typings/management/updateSplitConfigurationLogicRequest.ts @@ -7,188 +7,165 @@ * Do not edit this class manually. */ -import { AdditionalCommission } from "./additionalCommission"; -import { Commission } from "./commission"; - +import { AdditionalCommission } from './additionalCommission'; +import { Commission } from './commission'; export class UpdateSplitConfigurationLogicRequest { /** * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ - "acquiringFees"?: UpdateSplitConfigurationLogicRequest.AcquiringFeesEnum; - "additionalCommission"?: AdditionalCommission | null; + 'acquiringFees'?: UpdateSplitConfigurationLogicRequest.AcquiringFeesEnum; + 'additionalCommission'?: AdditionalCommission | null; /** * Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ - "adyenCommission"?: UpdateSplitConfigurationLogicRequest.AdyenCommissionEnum; + 'adyenCommission'?: UpdateSplitConfigurationLogicRequest.AdyenCommissionEnum; /** * Deducts the fees due to Adyen (markup or commission) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ - "adyenFees"?: UpdateSplitConfigurationLogicRequest.AdyenFeesEnum; + 'adyenFees'?: UpdateSplitConfigurationLogicRequest.AdyenFeesEnum; /** * Deducts the transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/what-is-interchange) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ - "adyenMarkup"?: UpdateSplitConfigurationLogicRequest.AdyenMarkupEnum; + 'adyenMarkup'?: UpdateSplitConfigurationLogicRequest.AdyenMarkupEnum; /** * Specifies how and from which balance account(s) to deduct the chargeback amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. */ - "chargeback"?: UpdateSplitConfigurationLogicRequest.ChargebackEnum; + 'chargeback'?: UpdateSplitConfigurationLogicRequest.ChargebackEnum; /** * Deducts the chargeback costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** */ - "chargebackCostAllocation"?: UpdateSplitConfigurationLogicRequest.ChargebackCostAllocationEnum; - "commission": Commission; + 'chargebackCostAllocation'?: UpdateSplitConfigurationLogicRequest.ChargebackCostAllocationEnum; + 'commission': Commission; /** * Deducts the interchange fee from specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ - "interchange"?: UpdateSplitConfigurationLogicRequest.InterchangeEnum; + 'interchange'?: UpdateSplitConfigurationLogicRequest.InterchangeEnum; /** * Deducts all transaction fees incurred by the payment from the specified balance account. The transaction fees include the acquiring fees (interchange and scheme fee), and the fees due to Adyen (markup or commission). You can book any and all these fees to different balance account by specifying other transaction fee parameters in your split configuration profile: - [`adyenCommission`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenCommission): The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`adyenMarkup`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenMarkup): The transaction fee due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained#interchange-vs-blended). - [`schemeFee`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-schemeFee): The fee paid to the card scheme for using their network. - [`interchange`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-interchange): The fee paid to the issuer for each payment transaction made with the card network. - [`adyenFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-adyenFees): The aggregated amount of Adyen\'s commission and markup. - [`acquiringFees`](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/splitConfigurations#request-rules-splitLogic-acquiringFees): The aggregated amount of the interchange and scheme fees. If you don\'t include at least one transaction fee type in the `splitLogic` object, Adyen updates the payment request with the `paymentFee` parameter, booking all transaction fees to your platform\'s liable balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ - "paymentFee"?: UpdateSplitConfigurationLogicRequest.PaymentFeeEnum; + 'paymentFee'?: UpdateSplitConfigurationLogicRequest.PaymentFeeEnum; /** * Specifies how and from which balance account(s) to deduct the refund amount. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio** */ - "refund"?: UpdateSplitConfigurationLogicRequest.RefundEnum; + 'refund'?: UpdateSplitConfigurationLogicRequest.RefundEnum; /** * Deducts the refund costs from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount** */ - "refundCostAllocation"?: UpdateSplitConfigurationLogicRequest.RefundCostAllocationEnum; + 'refundCostAllocation'?: UpdateSplitConfigurationLogicRequest.RefundCostAllocationEnum; /** * Books the amount left over after currency conversion to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. */ - "remainder"?: UpdateSplitConfigurationLogicRequest.RemainderEnum; + 'remainder'?: UpdateSplitConfigurationLogicRequest.RemainderEnum; /** * Deducts the scheme fee from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ - "schemeFee"?: UpdateSplitConfigurationLogicRequest.SchemeFeeEnum; + 'schemeFee'?: UpdateSplitConfigurationLogicRequest.SchemeFeeEnum; /** * Unique identifier of the collection of split instructions that are applied when the rule conditions are met. */ - "splitLogicId"?: string; + 'splitLogicId'?: string; /** * Books the surcharge amount to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount** */ - "surcharge"?: UpdateSplitConfigurationLogicRequest.SurchargeEnum; + 'surcharge'?: UpdateSplitConfigurationLogicRequest.SurchargeEnum; /** * Books the tips (gratuity) to the specified balance account. Possible values: **addToLiableAccount**, **addToOneBalanceAccount**. */ - "tip"?: UpdateSplitConfigurationLogicRequest.TipEnum; - - static readonly discriminator: string | undefined = undefined; + 'tip'?: UpdateSplitConfigurationLogicRequest.TipEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "acquiringFees", "baseName": "acquiringFees", - "type": "UpdateSplitConfigurationLogicRequest.AcquiringFeesEnum", - "format": "" + "type": "UpdateSplitConfigurationLogicRequest.AcquiringFeesEnum" }, { "name": "additionalCommission", "baseName": "additionalCommission", - "type": "AdditionalCommission | null", - "format": "" + "type": "AdditionalCommission | null" }, { "name": "adyenCommission", "baseName": "adyenCommission", - "type": "UpdateSplitConfigurationLogicRequest.AdyenCommissionEnum", - "format": "" + "type": "UpdateSplitConfigurationLogicRequest.AdyenCommissionEnum" }, { "name": "adyenFees", "baseName": "adyenFees", - "type": "UpdateSplitConfigurationLogicRequest.AdyenFeesEnum", - "format": "" + "type": "UpdateSplitConfigurationLogicRequest.AdyenFeesEnum" }, { "name": "adyenMarkup", "baseName": "adyenMarkup", - "type": "UpdateSplitConfigurationLogicRequest.AdyenMarkupEnum", - "format": "" + "type": "UpdateSplitConfigurationLogicRequest.AdyenMarkupEnum" }, { "name": "chargeback", "baseName": "chargeback", - "type": "UpdateSplitConfigurationLogicRequest.ChargebackEnum", - "format": "" + "type": "UpdateSplitConfigurationLogicRequest.ChargebackEnum" }, { "name": "chargebackCostAllocation", "baseName": "chargebackCostAllocation", - "type": "UpdateSplitConfigurationLogicRequest.ChargebackCostAllocationEnum", - "format": "" + "type": "UpdateSplitConfigurationLogicRequest.ChargebackCostAllocationEnum" }, { "name": "commission", "baseName": "commission", - "type": "Commission", - "format": "" + "type": "Commission" }, { "name": "interchange", "baseName": "interchange", - "type": "UpdateSplitConfigurationLogicRequest.InterchangeEnum", - "format": "" + "type": "UpdateSplitConfigurationLogicRequest.InterchangeEnum" }, { "name": "paymentFee", "baseName": "paymentFee", - "type": "UpdateSplitConfigurationLogicRequest.PaymentFeeEnum", - "format": "" + "type": "UpdateSplitConfigurationLogicRequest.PaymentFeeEnum" }, { "name": "refund", "baseName": "refund", - "type": "UpdateSplitConfigurationLogicRequest.RefundEnum", - "format": "" + "type": "UpdateSplitConfigurationLogicRequest.RefundEnum" }, { "name": "refundCostAllocation", "baseName": "refundCostAllocation", - "type": "UpdateSplitConfigurationLogicRequest.RefundCostAllocationEnum", - "format": "" + "type": "UpdateSplitConfigurationLogicRequest.RefundCostAllocationEnum" }, { "name": "remainder", "baseName": "remainder", - "type": "UpdateSplitConfigurationLogicRequest.RemainderEnum", - "format": "" + "type": "UpdateSplitConfigurationLogicRequest.RemainderEnum" }, { "name": "schemeFee", "baseName": "schemeFee", - "type": "UpdateSplitConfigurationLogicRequest.SchemeFeeEnum", - "format": "" + "type": "UpdateSplitConfigurationLogicRequest.SchemeFeeEnum" }, { "name": "splitLogicId", "baseName": "splitLogicId", - "type": "string", - "format": "" + "type": "string" }, { "name": "surcharge", "baseName": "surcharge", - "type": "UpdateSplitConfigurationLogicRequest.SurchargeEnum", - "format": "" + "type": "UpdateSplitConfigurationLogicRequest.SurchargeEnum" }, { "name": "tip", "baseName": "tip", - "type": "UpdateSplitConfigurationLogicRequest.TipEnum", - "format": "" + "type": "UpdateSplitConfigurationLogicRequest.TipEnum" } ]; static getAttributeTypeMap() { return UpdateSplitConfigurationLogicRequest.attributeTypeMap; } - - public constructor() { - } } export namespace UpdateSplitConfigurationLogicRequest { diff --git a/src/typings/management/updateSplitConfigurationRequest.ts b/src/typings/management/updateSplitConfigurationRequest.ts index 0f3603817..bc51e7632 100644 --- a/src/typings/management/updateSplitConfigurationRequest.ts +++ b/src/typings/management/updateSplitConfigurationRequest.ts @@ -12,25 +12,19 @@ export class UpdateSplitConfigurationRequest { /** * Your description for the split configuration. */ - "description": string; + 'description': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return UpdateSplitConfigurationRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/updateSplitConfigurationRuleRequest.ts b/src/typings/management/updateSplitConfigurationRuleRequest.ts index 4b7fbe2f1..6ab0f22e9 100644 --- a/src/typings/management/updateSplitConfigurationRuleRequest.ts +++ b/src/typings/management/updateSplitConfigurationRuleRequest.ts @@ -12,65 +12,46 @@ export class UpdateSplitConfigurationRuleRequest { /** * The currency condition that defines whether the split logic applies. Its value must be a three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). */ - "currency": string; + 'currency': string; /** * The funding source of the payment method. This only applies to card transactions. Possible values: * **credit** * **debit** * **prepaid** * **deferred_debit** * **charged** * **ANY** */ - "fundingSource"?: string; + 'fundingSource'?: string; /** * The payment method condition that defines whether the split logic applies. Possible values: * [Payment method variant](https://docs.adyen.com/development-resources/paymentmethodvariant): Apply the split logic for a specific payment method. * **ANY**: Apply the split logic for all available payment methods. */ - "paymentMethod": string; - /** - * - */ - "regionality"?: string; + 'paymentMethod': string; /** * The sales channel condition that defines whether the split logic applies. Possible values: * **Ecommerce**: Online transactions where the cardholder is present. * **ContAuth**: Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). * **Moto**: Mail-order and telephone-order transactions where the customer is in contact with the merchant via email or telephone. * **POS**: Point-of-sale transactions where the customer is physically present to make a payment using a secure payment terminal. * **ANY**: All sales channels. */ - "shopperInteraction": string; + 'shopperInteraction': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "fundingSource", "baseName": "fundingSource", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMethod", "baseName": "paymentMethod", - "type": "string", - "format": "" - }, - { - "name": "regionality", - "baseName": "regionality", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperInteraction", "baseName": "shopperInteraction", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return UpdateSplitConfigurationRuleRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/updateStoreRequest.ts b/src/typings/management/updateStoreRequest.ts index c8576039a..29266acdf 100644 --- a/src/typings/management/updateStoreRequest.ts +++ b/src/typings/management/updateStoreRequest.ts @@ -7,96 +7,82 @@ * Do not edit this class manually. */ -import { StoreSplitConfiguration } from "./storeSplitConfiguration"; -import { SubMerchantData } from "./subMerchantData"; -import { UpdatableAddress } from "./updatableAddress"; - +import { StoreSplitConfiguration } from './storeSplitConfiguration'; +import { SubMerchantData } from './subMerchantData'; +import { UpdatableAddress } from './updatableAddress'; export class UpdateStoreRequest { - "address"?: UpdatableAddress | null; + 'address'?: UpdatableAddress | null; /** * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines__resParam_id) that the store is associated with. */ - "businessLineIds"?: Array; + 'businessLineIds'?: Array; /** * The description of the store. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits. */ - "externalReferenceId"?: string; + 'externalReferenceId'?: string; /** * The phone number of the store, including \'+\' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. */ - "phoneNumber"?: string; - "splitConfiguration"?: StoreSplitConfiguration | null; + 'phoneNumber'?: string; + 'splitConfiguration'?: StoreSplitConfiguration | null; /** * The status of the store. Possible values are: - **active**: This value is assigned automatically when a store is created. - **inactive**: The maximum [transaction limits and number of Store-and-Forward transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) for the store are set to 0. This blocks new transactions, but captures are still possible. - **closed**: The terminals of the store are reassigned to the merchant inventory, so they can\'t process payments. You can change the status from **active** to **inactive**, and from **inactive** to **active** or **closed**. Once **closed**, a store can\'t be reopened. */ - "status"?: UpdateStoreRequest.StatusEnum; - "subMerchantData"?: SubMerchantData | null; - - static readonly discriminator: string | undefined = undefined; + 'status'?: UpdateStoreRequest.StatusEnum; + 'subMerchantData'?: SubMerchantData | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "address", "baseName": "address", - "type": "UpdatableAddress | null", - "format": "" + "type": "UpdatableAddress | null" }, { "name": "businessLineIds", "baseName": "businessLineIds", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "externalReferenceId", "baseName": "externalReferenceId", - "type": "string", - "format": "" + "type": "string" }, { "name": "phoneNumber", "baseName": "phoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "splitConfiguration", "baseName": "splitConfiguration", - "type": "StoreSplitConfiguration | null", - "format": "" + "type": "StoreSplitConfiguration | null" }, { "name": "status", "baseName": "status", - "type": "UpdateStoreRequest.StatusEnum", - "format": "" + "type": "UpdateStoreRequest.StatusEnum" }, { "name": "subMerchantData", "baseName": "subMerchantData", - "type": "SubMerchantData | null", - "format": "" + "type": "SubMerchantData | null" } ]; static getAttributeTypeMap() { return UpdateStoreRequest.attributeTypeMap; } - - public constructor() { - } } export namespace UpdateStoreRequest { diff --git a/src/typings/management/uploadAndroidAppResponse.ts b/src/typings/management/uploadAndroidAppResponse.ts index 39d100a4b..0a2362cd4 100644 --- a/src/typings/management/uploadAndroidAppResponse.ts +++ b/src/typings/management/uploadAndroidAppResponse.ts @@ -12,25 +12,19 @@ export class UploadAndroidAppResponse { /** * The unique identifier of the uploaded Android app. */ - "id"?: string; + 'id'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return UploadAndroidAppResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/uploadAndroidCertificateResponse.ts b/src/typings/management/uploadAndroidCertificateResponse.ts index ba096caa6..077da3f00 100644 --- a/src/typings/management/uploadAndroidCertificateResponse.ts +++ b/src/typings/management/uploadAndroidCertificateResponse.ts @@ -12,25 +12,19 @@ export class UploadAndroidCertificateResponse { /** * The unique identifier of the uploaded Android certificate. */ - "id"?: string; + 'id'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return UploadAndroidCertificateResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/url.ts b/src/typings/management/url.ts index c767231ac..9446942e4 100644 --- a/src/typings/management/url.ts +++ b/src/typings/management/url.ts @@ -12,55 +12,46 @@ export class Url { /** * Indicates if the message sent to this URL should be encrypted. */ - "encrypted"?: boolean; + 'encrypted'?: boolean; /** * The password for authentication of the notifications. */ - "password"?: string; + 'password'?: string; /** * The URL in the format: http(s)://domain.com. */ - "url"?: string; + 'url'?: string; /** * The username for authentication of the notifications. */ - "username"?: string; + 'username'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "encrypted", "baseName": "encrypted", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "password", "baseName": "password", - "type": "string", - "format": "" + "type": "string" }, { "name": "url", "baseName": "url", - "type": "string", - "format": "" + "type": "string" }, { "name": "username", "baseName": "username", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Url.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/user.ts b/src/typings/management/user.ts index 3acbf22c5..2fe9210bf 100644 --- a/src/typings/management/user.ts +++ b/src/typings/management/user.ts @@ -7,117 +7,101 @@ * Do not edit this class manually. */ -import { Links } from "./links"; -import { Name } from "./name"; - +import { Links } from './links'; +import { Name } from './name'; export class User { - "_links"?: Links | null; + '_links'?: Links | null; /** * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. */ - "accountGroups"?: Array; + 'accountGroups'?: Array; /** * Indicates whether this user is active. */ - "active"?: boolean; + 'active'?: boolean; /** * Set of apps available to this user */ - "apps"?: Array; + 'apps'?: Array; /** * The email address of the user. */ - "email": string; + 'email': string; /** * The unique identifier of the user. */ - "id": string; - "name"?: Name | null; + 'id': string; + 'name'?: Name | null; /** * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. */ - "roles": Array; + 'roles': Array; /** * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. */ - "timeZoneCode": string; + 'timeZoneCode': string; /** * The username for this user. */ - "username": string; - - static readonly discriminator: string | undefined = undefined; + 'username': string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "_links", "baseName": "_links", - "type": "Links | null", - "format": "" + "type": "Links | null" }, { "name": "accountGroups", "baseName": "accountGroups", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "active", "baseName": "active", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "apps", "baseName": "apps", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "email", "baseName": "email", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "Name | null", - "format": "" + "type": "Name | null" }, { "name": "roles", "baseName": "roles", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "timeZoneCode", "baseName": "timeZoneCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "username", "baseName": "username", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return User.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/vippsInfo.ts b/src/typings/management/vippsInfo.ts index e0be26dd4..43584508e 100644 --- a/src/typings/management/vippsInfo.ts +++ b/src/typings/management/vippsInfo.ts @@ -12,35 +12,28 @@ export class VippsInfo { /** * Vipps logo. Format: Base64-encoded string. */ - "logo": string; + 'logo': string; /** * Vipps subscription cancel url (required in case of [recurring payments](https://docs.adyen.com/online-payments/tokenization)) */ - "subscriptionCancelUrl"?: string; + 'subscriptionCancelUrl'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "logo", "baseName": "logo", - "type": "string", - "format": "" + "type": "string" }, { "name": "subscriptionCancelUrl", "baseName": "subscriptionCancelUrl", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return VippsInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/weChatPayInfo.ts b/src/typings/management/weChatPayInfo.ts index cf946623b..ae14a524f 100644 --- a/src/typings/management/weChatPayInfo.ts +++ b/src/typings/management/weChatPayInfo.ts @@ -12,35 +12,28 @@ export class WeChatPayInfo { /** * The name of the contact person from merchant support. */ - "contactPersonName": string; + 'contactPersonName': string; /** * The email address of merchant support. */ - "email": string; + 'email': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "contactPersonName", "baseName": "contactPersonName", - "type": "string", - "format": "" + "type": "string" }, { "name": "email", "baseName": "email", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return WeChatPayInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/weChatPayPosInfo.ts b/src/typings/management/weChatPayPosInfo.ts index 6987d8c8f..89de3d0d1 100644 --- a/src/typings/management/weChatPayPosInfo.ts +++ b/src/typings/management/weChatPayPosInfo.ts @@ -12,35 +12,28 @@ export class WeChatPayPosInfo { /** * The name of the contact person from merchant support. */ - "contactPersonName": string; + 'contactPersonName': string; /** * The email address of merchant support. */ - "email": string; + 'email': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "contactPersonName", "baseName": "contactPersonName", - "type": "string", - "format": "" + "type": "string" }, { "name": "email", "baseName": "email", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return WeChatPayPosInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/webhook.ts b/src/typings/management/webhook.ts index 39a52733f..f638da19b 100644 --- a/src/typings/management/webhook.ts +++ b/src/typings/management/webhook.ts @@ -7,238 +7,210 @@ * Do not edit this class manually. */ -import { AdditionalSettingsResponse } from "./additionalSettingsResponse"; -import { WebhookLinks } from "./webhookLinks"; - +import { AdditionalSettingsResponse } from './additionalSettingsResponse'; +import { WebhookLinks } from './webhookLinks'; export class Webhook { - "_links"?: WebhookLinks | null; + '_links'?: WebhookLinks | null; /** * Indicates if expired SSL certificates are accepted. Default value: **false**. */ - "acceptsExpiredCertificate"?: boolean; + 'acceptsExpiredCertificate'?: boolean; /** * Indicates if self-signed SSL certificates are accepted. Default value: **false**. */ - "acceptsSelfSignedCertificate"?: boolean; + 'acceptsSelfSignedCertificate'?: boolean; /** * Indicates if untrusted SSL certificates are accepted. Default value: **false**. */ - "acceptsUntrustedRootCertificate"?: boolean; + 'acceptsUntrustedRootCertificate'?: boolean; /** * Reference to the account the webook is set on. */ - "accountReference"?: string; + 'accountReference'?: string; /** * Indicates if the webhook configuration is active. The field must be **true** for you to receive webhooks about events related an account. */ - "active": boolean; - "additionalSettings"?: AdditionalSettingsResponse | null; + 'active': boolean; + 'additionalSettings'?: AdditionalSettingsResponse | null; /** * The alias of our SSL certificate. When you receive a notification from us, the alias from the HMAC signature will match this alias. */ - "certificateAlias"?: string; + 'certificateAlias'?: string; /** * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** */ - "communicationFormat": Webhook.CommunicationFormatEnum; + 'communicationFormat': Webhook.CommunicationFormatEnum; /** * Your description for this webhook configuration. */ - "description"?: string; + 'description'?: string; /** * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. */ - "encryptionProtocol"?: Webhook.EncryptionProtocolEnum; + 'encryptionProtocol'?: Webhook.EncryptionProtocolEnum; /** * Shows how merchant accounts are included in company-level webhooks. Possible values: * **includeAccounts** * **excludeAccounts** * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. */ - "filterMerchantAccountType"?: Webhook.FilterMerchantAccountTypeEnum; + 'filterMerchantAccountType'?: Webhook.FilterMerchantAccountTypeEnum; /** * A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. */ - "filterMerchantAccounts"?: Array; + 'filterMerchantAccounts'?: Array; /** * Indicates if the webhook configuration has errors that need troubleshooting. If the value is **true**, troubleshoot the configuration using the [testing endpoint](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookid}/test). */ - "hasError"?: boolean; + 'hasError'?: boolean; /** * Indicates if the webhook is password protected. */ - "hasPassword"?: boolean; + 'hasPassword'?: boolean; /** * The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of the HMAC key generated for this webhook. You can use this value to uniquely identify the HMAC key configured for this webhook. */ - "hmacKeyCheckValue"?: string; + 'hmacKeyCheckValue'?: string; /** * Unique identifier for this webhook. */ - "id"?: string; + 'id'?: string; /** * Network type for Terminal API details webhooks. */ - "networkType"?: Webhook.NetworkTypeEnum; + 'networkType'?: Webhook.NetworkTypeEnum; /** * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. */ - "populateSoapActionHeader"?: boolean; + 'populateSoapActionHeader'?: boolean; /** * The type of webhook. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **terminal-api-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications). */ - "type": string; + 'type': string; /** * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. */ - "url": string; + 'url': string; /** * Username to access the webhook URL. */ - "username"?: string; - - static readonly discriminator: string | undefined = undefined; + 'username'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "_links", "baseName": "_links", - "type": "WebhookLinks | null", - "format": "" + "type": "WebhookLinks | null" }, { "name": "acceptsExpiredCertificate", "baseName": "acceptsExpiredCertificate", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "acceptsSelfSignedCertificate", "baseName": "acceptsSelfSignedCertificate", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "acceptsUntrustedRootCertificate", "baseName": "acceptsUntrustedRootCertificate", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "accountReference", "baseName": "accountReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "active", "baseName": "active", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "additionalSettings", "baseName": "additionalSettings", - "type": "AdditionalSettingsResponse | null", - "format": "" + "type": "AdditionalSettingsResponse | null" }, { "name": "certificateAlias", "baseName": "certificateAlias", - "type": "string", - "format": "" + "type": "string" }, { "name": "communicationFormat", "baseName": "communicationFormat", - "type": "Webhook.CommunicationFormatEnum", - "format": "" + "type": "Webhook.CommunicationFormatEnum" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "encryptionProtocol", "baseName": "encryptionProtocol", - "type": "Webhook.EncryptionProtocolEnum", - "format": "" + "type": "Webhook.EncryptionProtocolEnum" }, { "name": "filterMerchantAccountType", "baseName": "filterMerchantAccountType", - "type": "Webhook.FilterMerchantAccountTypeEnum", - "format": "" + "type": "Webhook.FilterMerchantAccountTypeEnum" }, { "name": "filterMerchantAccounts", "baseName": "filterMerchantAccounts", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "hasError", "baseName": "hasError", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "hasPassword", "baseName": "hasPassword", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "hmacKeyCheckValue", "baseName": "hmacKeyCheckValue", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "networkType", "baseName": "networkType", - "type": "Webhook.NetworkTypeEnum", - "format": "" + "type": "Webhook.NetworkTypeEnum" }, { "name": "populateSoapActionHeader", "baseName": "populateSoapActionHeader", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" }, { "name": "url", "baseName": "url", - "type": "string", - "format": "" + "type": "string" }, { "name": "username", "baseName": "username", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Webhook.attributeTypeMap; } - - public constructor() { - } } export namespace Webhook { diff --git a/src/typings/management/webhookLinks.ts b/src/typings/management/webhookLinks.ts index b56f111cb..66a76f232 100644 --- a/src/typings/management/webhookLinks.ts +++ b/src/typings/management/webhookLinks.ts @@ -7,57 +7,46 @@ * Do not edit this class manually. */ -import { LinksElement } from "./linksElement"; - +import { LinksElement } from './linksElement'; export class WebhookLinks { - "company"?: LinksElement | null; - "generateHmac": LinksElement; - "merchant"?: LinksElement | null; - "self": LinksElement; - "testWebhook": LinksElement; - - static readonly discriminator: string | undefined = undefined; + 'company'?: LinksElement | null; + 'generateHmac': LinksElement; + 'merchant'?: LinksElement | null; + 'self': LinksElement; + 'testWebhook': LinksElement; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "company", "baseName": "company", - "type": "LinksElement | null", - "format": "" + "type": "LinksElement | null" }, { "name": "generateHmac", "baseName": "generateHmac", - "type": "LinksElement", - "format": "" + "type": "LinksElement" }, { "name": "merchant", "baseName": "merchant", - "type": "LinksElement | null", - "format": "" + "type": "LinksElement | null" }, { "name": "self", "baseName": "self", - "type": "LinksElement", - "format": "" + "type": "LinksElement" }, { "name": "testWebhook", "baseName": "testWebhook", - "type": "LinksElement", - "format": "" + "type": "LinksElement" } ]; static getAttributeTypeMap() { return WebhookLinks.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/management/wifiProfiles.ts b/src/typings/management/wifiProfiles.ts index e82bf6be6..d38a836f8 100644 --- a/src/typings/management/wifiProfiles.ts +++ b/src/typings/management/wifiProfiles.ts @@ -7,40 +7,32 @@ * Do not edit this class manually. */ -import { Profile } from "./profile"; -import { Settings } from "./settings"; - +import { Profile } from './profile'; +import { Settings } from './settings'; export class WifiProfiles { /** * List of remote Wi-Fi profiles. */ - "profiles"?: Array; - "settings"?: Settings | null; - - static readonly discriminator: string | undefined = undefined; + 'profiles'?: Array; + 'settings'?: Settings | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "profiles", "baseName": "profiles", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "settings", "baseName": "settings", - "type": "Settings | null", - "format": "" + "type": "Settings | null" } ]; static getAttributeTypeMap() { return WifiProfiles.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/managementWebhooks/accountCapabilityData.ts b/src/typings/managementWebhooks/accountCapabilityData.ts index a7c4d6252..7a7ff713d 100644 --- a/src/typings/managementWebhooks/accountCapabilityData.ts +++ b/src/typings/managementWebhooks/accountCapabilityData.ts @@ -7,102 +7,88 @@ * Do not edit this class manually. */ -import { CapabilityProblem } from "./capabilityProblem"; - +import { CapabilityProblem } from './capabilityProblem'; export class AccountCapabilityData { /** * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful. */ - "allowed"?: boolean; + 'allowed'?: boolean; /** * The allowed level of the capability. Some capabilities have different levels which correspond to thresholds. Higher levels may require additional checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. */ - "allowedLevel"?: string; + 'allowedLevel'?: string; /** * The name of the capability. For example, **sendToTransferInstrument**. */ - "capability"?: string; + 'capability'?: string; /** * List of entities that has problems with verification. The information includes the details of the errors and the actions that you can take to resolve them. */ - "problems"?: Array; + 'problems'?: Array; /** * Indicates whether you requested the capability. */ - "requested": boolean; + 'requested': boolean; /** * The level that you requested for the capability. Some capabilities have different levels which correspond to thresholds. Higher levels may require additional checks and increased monitoring.Possible values: **notApplicable**, **low**, **medium**, **high**. */ - "requestedLevel": string; + 'requestedLevel': string; /** * The verification deadline for the capability that will be disallowed if verification errors are not resolved. */ - "verificationDeadline"?: Date; + 'verificationDeadline'?: Date; /** * The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification was successful. * **rejected**: Adyen checked the information and found reasons to not allow the capability. */ - "verificationStatus"?: string; - - static readonly discriminator: string | undefined = undefined; + 'verificationStatus'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "allowed", "baseName": "allowed", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "allowedLevel", "baseName": "allowedLevel", - "type": "string", - "format": "" + "type": "string" }, { "name": "capability", "baseName": "capability", - "type": "string", - "format": "" + "type": "string" }, { "name": "problems", "baseName": "problems", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "requested", "baseName": "requested", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "requestedLevel", "baseName": "requestedLevel", - "type": "string", - "format": "" + "type": "string" }, { "name": "verificationDeadline", "baseName": "verificationDeadline", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "verificationStatus", "baseName": "verificationStatus", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AccountCapabilityData.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/managementWebhooks/accountCreateNotificationData.ts b/src/typings/managementWebhooks/accountCreateNotificationData.ts index 1734fc2a3..7d2c1c41a 100644 --- a/src/typings/managementWebhooks/accountCreateNotificationData.ts +++ b/src/typings/managementWebhooks/accountCreateNotificationData.ts @@ -7,72 +7,61 @@ * Do not edit this class manually. */ -import { AccountCapabilityData } from "./accountCapabilityData"; - +import { AccountCapabilityData } from './accountCapabilityData'; export class AccountCreateNotificationData { /** * Key-value pairs that specify the actions that the merchant account can do and its settings. The key is a capability. For example, the **sendToTransferInstrument** is the capability required before you can pay out funds to the bank account. The value is an object containing the settings for the capability. */ - "capabilities": { [key: string]: AccountCapabilityData; }; + 'capabilities': { [key: string]: AccountCapabilityData; }; /** * The unique identifier of the company account. */ - "companyId": string; + 'companyId': string; /** * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). */ - "legalEntityId"?: string; + 'legalEntityId'?: string; /** * The unique identifier of the merchant account. */ - "merchantId": string; + 'merchantId': string; /** * The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The account cannot process new payments but can still modify payments, for example issue refunds. The account can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. */ - "status": string; - - static readonly discriminator: string | undefined = undefined; + 'status': string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "capabilities", "baseName": "capabilities", - "type": "{ [key: string]: AccountCapabilityData; }", - "format": "" + "type": "{ [key: string]: AccountCapabilityData; }" }, { "name": "companyId", "baseName": "companyId", - "type": "string", - "format": "" + "type": "string" }, { "name": "legalEntityId", "baseName": "legalEntityId", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantId", "baseName": "merchantId", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AccountCreateNotificationData.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/managementWebhooks/accountNotificationResponse.ts b/src/typings/managementWebhooks/accountNotificationResponse.ts index 88d502b36..c52b9661a 100644 --- a/src/typings/managementWebhooks/accountNotificationResponse.ts +++ b/src/typings/managementWebhooks/accountNotificationResponse.ts @@ -12,25 +12,19 @@ export class AccountNotificationResponse { /** * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). */ - "notificationResponse"?: string; + 'notificationResponse'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "notificationResponse", "baseName": "notificationResponse", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AccountNotificationResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/managementWebhooks/accountUpdateNotificationData.ts b/src/typings/managementWebhooks/accountUpdateNotificationData.ts index 93ebc84cc..6c5903ef0 100644 --- a/src/typings/managementWebhooks/accountUpdateNotificationData.ts +++ b/src/typings/managementWebhooks/accountUpdateNotificationData.ts @@ -7,62 +7,52 @@ * Do not edit this class manually. */ -import { AccountCapabilityData } from "./accountCapabilityData"; - +import { AccountCapabilityData } from './accountCapabilityData'; export class AccountUpdateNotificationData { /** * Key-value pairs that specify what you can do with the merchant account and its settings. The key is a capability. For example, the **sendToTransferInstrument** is the capability required before you can pay out the funds of a merchant account to a [bank account](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). The value is an object containing the settings for the capability. */ - "capabilities": { [key: string]: AccountCapabilityData; }; + 'capabilities': { [key: string]: AccountCapabilityData; }; /** * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). */ - "legalEntityId"?: string; + 'legalEntityId'?: string; /** * The unique identifier of the merchant account. */ - "merchantId": string; + 'merchantId': string; /** * The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. The account cannot process new payments but can still modify payments, for example issue refunds. The account can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. */ - "status": string; - - static readonly discriminator: string | undefined = undefined; + 'status': string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "capabilities", "baseName": "capabilities", - "type": "{ [key: string]: AccountCapabilityData; }", - "format": "" + "type": "{ [key: string]: AccountCapabilityData; }" }, { "name": "legalEntityId", "baseName": "legalEntityId", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantId", "baseName": "merchantId", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AccountUpdateNotificationData.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/managementWebhooks/capabilityProblem.ts b/src/typings/managementWebhooks/capabilityProblem.ts index fab5d9de5..46f963ae9 100644 --- a/src/typings/managementWebhooks/capabilityProblem.ts +++ b/src/typings/managementWebhooks/capabilityProblem.ts @@ -7,40 +7,32 @@ * Do not edit this class manually. */ -import { CapabilityProblemEntity } from "./capabilityProblemEntity"; -import { VerificationError } from "./verificationError"; - +import { CapabilityProblemEntity } from './capabilityProblemEntity'; +import { VerificationError } from './verificationError'; export class CapabilityProblem { - "entity"?: CapabilityProblemEntity; + 'entity'?: CapabilityProblemEntity | null; /** * List of verification errors. */ - "verificationErrors"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'verificationErrors'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "entity", "baseName": "entity", - "type": "CapabilityProblemEntity", - "format": "" + "type": "CapabilityProblemEntity | null" }, { "name": "verificationErrors", "baseName": "verificationErrors", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return CapabilityProblem.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/managementWebhooks/capabilityProblemEntity.ts b/src/typings/managementWebhooks/capabilityProblemEntity.ts index e5c3c06db..d4dd5f457 100644 --- a/src/typings/managementWebhooks/capabilityProblemEntity.ts +++ b/src/typings/managementWebhooks/capabilityProblemEntity.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { CapabilityProblemEntityRecursive } from "./capabilityProblemEntityRecursive"; - +import { CapabilityProblemEntityRecursive } from './capabilityProblemEntityRecursive'; export class CapabilityProblemEntity { /** * List of document IDs to which the verification errors related to the capabilities correspond to. */ - "documents"?: Array; + 'documents'?: Array; /** * The ID of the entity. */ - "id"?: string; - "owner"?: CapabilityProblemEntityRecursive; + 'id'?: string; + 'owner'?: CapabilityProblemEntityRecursive | null; /** * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. */ - "type"?: CapabilityProblemEntity.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type'?: CapabilityProblemEntity.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "documents", "baseName": "documents", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "owner", "baseName": "owner", - "type": "CapabilityProblemEntityRecursive", - "format": "" + "type": "CapabilityProblemEntityRecursive | null" }, { "name": "type", "baseName": "type", - "type": "CapabilityProblemEntity.TypeEnum", - "format": "" + "type": "CapabilityProblemEntity.TypeEnum" } ]; static getAttributeTypeMap() { return CapabilityProblemEntity.attributeTypeMap; } - - public constructor() { - } } export namespace CapabilityProblemEntity { diff --git a/src/typings/managementWebhooks/capabilityProblemEntityRecursive.ts b/src/typings/managementWebhooks/capabilityProblemEntityRecursive.ts index ca8fc8537..824eaaa8b 100644 --- a/src/typings/managementWebhooks/capabilityProblemEntityRecursive.ts +++ b/src/typings/managementWebhooks/capabilityProblemEntityRecursive.ts @@ -12,46 +12,38 @@ export class CapabilityProblemEntityRecursive { /** * List of document IDs to which the verification errors related to the capabilities correspond to. */ - "documents"?: Array; + 'documents'?: Array; /** * The ID of the entity. */ - "id"?: string; + 'id'?: string; /** * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. */ - "type"?: CapabilityProblemEntityRecursive.TypeEnum; + 'type'?: CapabilityProblemEntityRecursive.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "documents", "baseName": "documents", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "CapabilityProblemEntityRecursive.TypeEnum", - "format": "" + "type": "CapabilityProblemEntityRecursive.TypeEnum" } ]; static getAttributeTypeMap() { return CapabilityProblemEntityRecursive.attributeTypeMap; } - - public constructor() { - } } export namespace CapabilityProblemEntityRecursive { diff --git a/src/typings/managementWebhooks/managementWebhooksHandler.ts b/src/typings/managementWebhooks/managementWebhooksHandler.ts deleted file mode 100644 index 017d3d6d8..000000000 --- a/src/typings/managementWebhooks/managementWebhooksHandler.ts +++ /dev/null @@ -1,143 +0,0 @@ -/* - * 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. - */ - -import { managementWebhooks } from ".."; - -/** - * Union type for all supported webhook requests. - * Allows generic handling of configuration-related webhook events. - */ -export type GenericWebhook = - | managementWebhooks.MerchantCreatedNotificationRequest - | managementWebhooks.MerchantUpdatedNotificationRequest - | managementWebhooks.PaymentMethodCreatedNotificationRequest - | managementWebhooks.PaymentMethodRequestRemovedNotificationRequest - | managementWebhooks.PaymentMethodScheduledForRemovalNotificationRequest - | managementWebhooks.TerminalBoardingNotificationRequest - | managementWebhooks.TerminalSettingsNotificationRequest; - -/** - * Handler for processing ManagementWebhooks. - * - * This class provides functionality to deserialize the payload of ManagementWebhooks events. - */ -export class ManagementWebhooksHandler { - - private readonly payload: Record; - - public constructor(jsonPayload: string) { - this.payload = JSON.parse(jsonPayload); - } - - /** - * This method checks the type of the webhook payload and returns the appropriate deserialized object. - * - * @returns A deserialized object of type GenericWebhook. - * @throws Error if the type is not recognized. - */ - public getGenericWebhook(): GenericWebhook { - - const type = this.payload["type"]; - - if(Object.values(managementWebhooks.MerchantCreatedNotificationRequest.TypeEnum).includes(type)) { - return this.getMerchantCreatedNotificationRequest(); - } - - if(Object.values(managementWebhooks.MerchantUpdatedNotificationRequest.TypeEnum).includes(type)) { - return this.getMerchantUpdatedNotificationRequest(); - } - - if(Object.values(managementWebhooks.PaymentMethodCreatedNotificationRequest.TypeEnum).includes(type)) { - return this.getPaymentMethodCreatedNotificationRequest(); - } - - if(Object.values(managementWebhooks.PaymentMethodRequestRemovedNotificationRequest.TypeEnum).includes(type)) { - return this.getPaymentMethodRequestRemovedNotificationRequest(); - } - - if(Object.values(managementWebhooks.PaymentMethodScheduledForRemovalNotificationRequest.TypeEnum).includes(type)) { - return this.getPaymentMethodScheduledForRemovalNotificationRequest(); - } - - if(Object.values(managementWebhooks.TerminalBoardingNotificationRequest.TypeEnum).includes(type)) { - return this.getTerminalBoardingNotificationRequest(); - } - - if(Object.values(managementWebhooks.TerminalSettingsNotificationRequest.TypeEnum).includes(type)) { - return this.getTerminalSettingsNotificationRequest(); - } - - throw new Error("Could not parse the json payload: " + this.payload); - - } - - /** - * Deserialize the webhook payload into a MerchantCreatedNotificationRequest - * - * @returns Deserialized MerchantCreatedNotificationRequest object. - */ - public getMerchantCreatedNotificationRequest(): managementWebhooks.MerchantCreatedNotificationRequest { - return managementWebhooks.ObjectSerializer.deserialize(this.payload, "MerchantCreatedNotificationRequest"); - } - - /** - * Deserialize the webhook payload into a MerchantUpdatedNotificationRequest - * - * @returns Deserialized MerchantUpdatedNotificationRequest object. - */ - public getMerchantUpdatedNotificationRequest(): managementWebhooks.MerchantUpdatedNotificationRequest { - return managementWebhooks.ObjectSerializer.deserialize(this.payload, "MerchantUpdatedNotificationRequest"); - } - - /** - * Deserialize the webhook payload into a PaymentMethodCreatedNotificationRequest - * - * @returns Deserialized PaymentMethodCreatedNotificationRequest object. - */ - public getPaymentMethodCreatedNotificationRequest(): managementWebhooks.PaymentMethodCreatedNotificationRequest { - return managementWebhooks.ObjectSerializer.deserialize(this.payload, "PaymentMethodCreatedNotificationRequest"); - } - - /** - * Deserialize the webhook payload into a PaymentMethodRequestRemovedNotificationRequest - * - * @returns Deserialized PaymentMethodRequestRemovedNotificationRequest object. - */ - public getPaymentMethodRequestRemovedNotificationRequest(): managementWebhooks.PaymentMethodRequestRemovedNotificationRequest { - return managementWebhooks.ObjectSerializer.deserialize(this.payload, "PaymentMethodRequestRemovedNotificationRequest"); - } - - /** - * Deserialize the webhook payload into a PaymentMethodScheduledForRemovalNotificationRequest - * - * @returns Deserialized PaymentMethodScheduledForRemovalNotificationRequest object. - */ - public getPaymentMethodScheduledForRemovalNotificationRequest(): managementWebhooks.PaymentMethodScheduledForRemovalNotificationRequest { - return managementWebhooks.ObjectSerializer.deserialize(this.payload, "PaymentMethodScheduledForRemovalNotificationRequest"); - } - - /** - * Deserialize the webhook payload into a TerminalBoardingNotificationRequest - * - * @returns Deserialized TerminalBoardingNotificationRequest object. - */ - public getTerminalBoardingNotificationRequest(): managementWebhooks.TerminalBoardingNotificationRequest { - return managementWebhooks.ObjectSerializer.deserialize(this.payload, "TerminalBoardingNotificationRequest"); - } - - /** - * Deserialize the webhook payload into a TerminalSettingsNotificationRequest - * - * @returns Deserialized TerminalSettingsNotificationRequest object. - */ - public getTerminalSettingsNotificationRequest(): managementWebhooks.TerminalSettingsNotificationRequest { - return managementWebhooks.ObjectSerializer.deserialize(this.payload, "TerminalSettingsNotificationRequest"); - } - -} \ No newline at end of file diff --git a/src/typings/managementWebhooks/merchantCreatedNotificationRequest.ts b/src/typings/managementWebhooks/merchantCreatedNotificationRequest.ts index dd70f2785..c52b3c72e 100644 --- a/src/typings/managementWebhooks/merchantCreatedNotificationRequest.ts +++ b/src/typings/managementWebhooks/merchantCreatedNotificationRequest.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { AccountCreateNotificationData } from "./accountCreateNotificationData"; - +import { AccountCreateNotificationData } from './accountCreateNotificationData'; export class MerchantCreatedNotificationRequest { /** * Timestamp for when the webhook was created. */ - "createdAt": Date; - "data": AccountCreateNotificationData; + 'createdAt': Date; + 'data': AccountCreateNotificationData; /** * The environment from which the webhook originated. Possible values: **test**, **live**. */ - "environment": string; + 'environment': string; /** * Type of notification. */ - "type": MerchantCreatedNotificationRequest.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': MerchantCreatedNotificationRequest.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "createdAt", "baseName": "createdAt", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "data", "baseName": "data", - "type": "AccountCreateNotificationData", - "format": "" + "type": "AccountCreateNotificationData" }, { "name": "environment", "baseName": "environment", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "MerchantCreatedNotificationRequest.TypeEnum", - "format": "" + "type": "MerchantCreatedNotificationRequest.TypeEnum" } ]; static getAttributeTypeMap() { return MerchantCreatedNotificationRequest.attributeTypeMap; } - - public constructor() { - } } export namespace MerchantCreatedNotificationRequest { diff --git a/src/typings/managementWebhooks/merchantUpdatedNotificationRequest.ts b/src/typings/managementWebhooks/merchantUpdatedNotificationRequest.ts index f7479aca7..da7b7a5e5 100644 --- a/src/typings/managementWebhooks/merchantUpdatedNotificationRequest.ts +++ b/src/typings/managementWebhooks/merchantUpdatedNotificationRequest.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { AccountUpdateNotificationData } from "./accountUpdateNotificationData"; - +import { AccountUpdateNotificationData } from './accountUpdateNotificationData'; export class MerchantUpdatedNotificationRequest { /** * Timestamp for when the webhook was created. */ - "createdAt": Date; - "data": AccountUpdateNotificationData; + 'createdAt': Date; + 'data': AccountUpdateNotificationData; /** * The environment from which the webhook originated. Possible values: **test**, **live**. */ - "environment": string; + 'environment': string; /** * Type of notification. */ - "type": MerchantUpdatedNotificationRequest.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': MerchantUpdatedNotificationRequest.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "createdAt", "baseName": "createdAt", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "data", "baseName": "data", - "type": "AccountUpdateNotificationData", - "format": "" + "type": "AccountUpdateNotificationData" }, { "name": "environment", "baseName": "environment", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "MerchantUpdatedNotificationRequest.TypeEnum", - "format": "" + "type": "MerchantUpdatedNotificationRequest.TypeEnum" } ]; static getAttributeTypeMap() { return MerchantUpdatedNotificationRequest.attributeTypeMap; } - - public constructor() { - } } export namespace MerchantUpdatedNotificationRequest { diff --git a/src/typings/managementWebhooks/midServiceNotificationData.ts b/src/typings/managementWebhooks/midServiceNotificationData.ts index 12df7159c..5a0f8dd9c 100644 --- a/src/typings/managementWebhooks/midServiceNotificationData.ts +++ b/src/typings/managementWebhooks/midServiceNotificationData.ts @@ -12,106 +12,92 @@ export class MidServiceNotificationData { /** * Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account. */ - "allowed"?: boolean; + 'allowed'?: boolean; /** * Indicates whether the payment method is enabled (**true**) or disabled (**false**). */ - "enabled"?: boolean; + 'enabled'?: boolean; /** * The unique identifier of the resource. */ - "id": string; + 'id': string; /** * The unique identifier of the merchant account. */ - "merchantId": string; + 'merchantId': string; /** * Your reference for the payment method. */ - "reference"?: string; + 'reference'?: string; /** * The status of the request to add a payment method. Possible values: * **success**: the payment method was added. * **failure**: the request failed. * **capabilityPending**: the **receivePayments** capability is not allowed. */ - "status": MidServiceNotificationData.StatusEnum; + 'status': MidServiceNotificationData.StatusEnum; /** * The unique identifier of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), if any. */ - "storeId"?: string; + 'storeId'?: string; /** * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). */ - "type": string; + 'type': string; /** * Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** */ - "verificationStatus"?: MidServiceNotificationData.VerificationStatusEnum; + 'verificationStatus'?: MidServiceNotificationData.VerificationStatusEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "allowed", "baseName": "allowed", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "enabled", "baseName": "enabled", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantId", "baseName": "merchantId", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "MidServiceNotificationData.StatusEnum", - "format": "" + "type": "MidServiceNotificationData.StatusEnum" }, { "name": "storeId", "baseName": "storeId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" }, { "name": "verificationStatus", "baseName": "verificationStatus", - "type": "MidServiceNotificationData.VerificationStatusEnum", - "format": "" + "type": "MidServiceNotificationData.VerificationStatusEnum" } ]; static getAttributeTypeMap() { return MidServiceNotificationData.attributeTypeMap; } - - public constructor() { - } } export namespace MidServiceNotificationData { diff --git a/src/typings/managementWebhooks/models.ts b/src/typings/managementWebhooks/models.ts index b125286c4..2974510ec 100644 --- a/src/typings/managementWebhooks/models.ts +++ b/src/typings/managementWebhooks/models.ts @@ -1,28 +1,233 @@ -export * from "./accountCapabilityData" -export * from "./accountCreateNotificationData" -export * from "./accountNotificationResponse" -export * from "./accountUpdateNotificationData" -export * from "./capabilityProblem" -export * from "./capabilityProblemEntity" -export * from "./capabilityProblemEntityRecursive" -export * from "./merchantCreatedNotificationRequest" -export * from "./merchantUpdatedNotificationRequest" -export * from "./midServiceNotificationData" -export * from "./paymentMethodCreatedNotificationRequest" -export * from "./paymentMethodNotificationResponse" -export * from "./paymentMethodRequestRemovedNotificationRequest" -export * from "./paymentMethodScheduledForRemovalNotificationRequest" -export * from "./remediatingAction" -export * from "./terminalAssignmentNotificationRequest" -export * from "./terminalAssignmentNotificationResponse" -export * from "./terminalBoardingData" -export * from "./terminalBoardingNotificationRequest" -export * from "./terminalBoardingNotificationResponse" -export * from "./terminalSettingsData" -export * from "./terminalSettingsNotificationRequest" -export * from "./terminalSettingsNotificationResponse" -export * from "./verificationError" -export * from "./verificationErrorRecursive" - -// serializing and deserializing typed objects -export * from "./objectSerializer" \ No newline at end of file +/* + * 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 * from './accountCapabilityData'; +export * from './accountCreateNotificationData'; +export * from './accountNotificationResponse'; +export * from './accountUpdateNotificationData'; +export * from './capabilityProblem'; +export * from './capabilityProblemEntity'; +export * from './capabilityProblemEntityRecursive'; +export * from './merchantCreatedNotificationRequest'; +export * from './merchantUpdatedNotificationRequest'; +export * from './midServiceNotificationData'; +export * from './paymentMethodCreatedNotificationRequest'; +export * from './paymentMethodNotificationResponse'; +export * from './paymentMethodRequestRemovedNotificationRequest'; +export * from './paymentMethodScheduledForRemovalNotificationRequest'; +export * from './remediatingAction'; +export * from './terminalAssignmentNotificationRequest'; +export * from './terminalAssignmentNotificationResponse'; +export * from './terminalBoardingData'; +export * from './terminalBoardingNotificationRequest'; +export * from './terminalBoardingNotificationResponse'; +export * from './terminalSettingsData'; +export * from './terminalSettingsNotificationRequest'; +export * from './terminalSettingsNotificationResponse'; +export * from './verificationError'; +export * from './verificationErrorRecursive'; + + +import { AccountCapabilityData } from './accountCapabilityData'; +import { AccountCreateNotificationData } from './accountCreateNotificationData'; +import { AccountNotificationResponse } from './accountNotificationResponse'; +import { AccountUpdateNotificationData } from './accountUpdateNotificationData'; +import { CapabilityProblem } from './capabilityProblem'; +import { CapabilityProblemEntity } from './capabilityProblemEntity'; +import { CapabilityProblemEntityRecursive } from './capabilityProblemEntityRecursive'; +import { MerchantCreatedNotificationRequest } from './merchantCreatedNotificationRequest'; +import { MerchantUpdatedNotificationRequest } from './merchantUpdatedNotificationRequest'; +import { MidServiceNotificationData } from './midServiceNotificationData'; +import { PaymentMethodCreatedNotificationRequest } from './paymentMethodCreatedNotificationRequest'; +import { PaymentMethodNotificationResponse } from './paymentMethodNotificationResponse'; +import { PaymentMethodRequestRemovedNotificationRequest } from './paymentMethodRequestRemovedNotificationRequest'; +import { PaymentMethodScheduledForRemovalNotificationRequest } from './paymentMethodScheduledForRemovalNotificationRequest'; +import { RemediatingAction } from './remediatingAction'; +import { TerminalAssignmentNotificationRequest } from './terminalAssignmentNotificationRequest'; +import { TerminalAssignmentNotificationResponse } from './terminalAssignmentNotificationResponse'; +import { TerminalBoardingData } from './terminalBoardingData'; +import { TerminalBoardingNotificationRequest } from './terminalBoardingNotificationRequest'; +import { TerminalBoardingNotificationResponse } from './terminalBoardingNotificationResponse'; +import { TerminalSettingsData } from './terminalSettingsData'; +import { TerminalSettingsNotificationRequest } from './terminalSettingsNotificationRequest'; +import { TerminalSettingsNotificationResponse } from './terminalSettingsNotificationResponse'; +import { VerificationError } from './verificationError'; +import { VerificationErrorRecursive } from './verificationErrorRecursive'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "CapabilityProblemEntity.TypeEnum": CapabilityProblemEntity.TypeEnum, + "CapabilityProblemEntityRecursive.TypeEnum": CapabilityProblemEntityRecursive.TypeEnum, + "MerchantCreatedNotificationRequest.TypeEnum": MerchantCreatedNotificationRequest.TypeEnum, + "MerchantUpdatedNotificationRequest.TypeEnum": MerchantUpdatedNotificationRequest.TypeEnum, + "MidServiceNotificationData.StatusEnum": MidServiceNotificationData.StatusEnum, + "MidServiceNotificationData.VerificationStatusEnum": MidServiceNotificationData.VerificationStatusEnum, + "PaymentMethodCreatedNotificationRequest.TypeEnum": PaymentMethodCreatedNotificationRequest.TypeEnum, + "PaymentMethodRequestRemovedNotificationRequest.TypeEnum": PaymentMethodRequestRemovedNotificationRequest.TypeEnum, + "PaymentMethodScheduledForRemovalNotificationRequest.TypeEnum": PaymentMethodScheduledForRemovalNotificationRequest.TypeEnum, + "TerminalBoardingNotificationRequest.TypeEnum": TerminalBoardingNotificationRequest.TypeEnum, + "TerminalSettingsData.UpdateSourceEnum": TerminalSettingsData.UpdateSourceEnum, + "TerminalSettingsNotificationRequest.TypeEnum": TerminalSettingsNotificationRequest.TypeEnum, + "VerificationError.TypeEnum": VerificationError.TypeEnum, + "VerificationErrorRecursive.TypeEnum": VerificationErrorRecursive.TypeEnum, +} + +let typeMap: {[index: string]: any} = { + "AccountCapabilityData": AccountCapabilityData, + "AccountCreateNotificationData": AccountCreateNotificationData, + "AccountNotificationResponse": AccountNotificationResponse, + "AccountUpdateNotificationData": AccountUpdateNotificationData, + "CapabilityProblem": CapabilityProblem, + "CapabilityProblemEntity": CapabilityProblemEntity, + "CapabilityProblemEntityRecursive": CapabilityProblemEntityRecursive, + "MerchantCreatedNotificationRequest": MerchantCreatedNotificationRequest, + "MerchantUpdatedNotificationRequest": MerchantUpdatedNotificationRequest, + "MidServiceNotificationData": MidServiceNotificationData, + "PaymentMethodCreatedNotificationRequest": PaymentMethodCreatedNotificationRequest, + "PaymentMethodNotificationResponse": PaymentMethodNotificationResponse, + "PaymentMethodRequestRemovedNotificationRequest": PaymentMethodRequestRemovedNotificationRequest, + "PaymentMethodScheduledForRemovalNotificationRequest": PaymentMethodScheduledForRemovalNotificationRequest, + "RemediatingAction": RemediatingAction, + "TerminalAssignmentNotificationRequest": TerminalAssignmentNotificationRequest, + "TerminalAssignmentNotificationResponse": TerminalAssignmentNotificationResponse, + "TerminalBoardingData": TerminalBoardingData, + "TerminalBoardingNotificationRequest": TerminalBoardingNotificationRequest, + "TerminalBoardingNotificationResponse": TerminalBoardingNotificationResponse, + "TerminalSettingsData": TerminalSettingsData, + "TerminalSettingsNotificationRequest": TerminalSettingsNotificationRequest, + "TerminalSettingsNotificationResponse": TerminalSettingsNotificationResponse, + "VerificationError": VerificationError, + "VerificationErrorRecursive": VerificationErrorRecursive, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/managementWebhooks/objectSerializer.ts b/src/typings/managementWebhooks/objectSerializer.ts deleted file mode 100644 index 6f818b965..000000000 --- a/src/typings/managementWebhooks/objectSerializer.ts +++ /dev/null @@ -1,407 +0,0 @@ -export * from "./models"; - -import { AccountCapabilityData } from "./accountCapabilityData"; -import { AccountCreateNotificationData } from "./accountCreateNotificationData"; -import { AccountNotificationResponse } from "./accountNotificationResponse"; -import { AccountUpdateNotificationData } from "./accountUpdateNotificationData"; -import { CapabilityProblem } from "./capabilityProblem"; -import { CapabilityProblemEntity } from "./capabilityProblemEntity"; -import { CapabilityProblemEntityRecursive } from "./capabilityProblemEntityRecursive"; -import { MerchantCreatedNotificationRequest } from "./merchantCreatedNotificationRequest"; -import { MerchantUpdatedNotificationRequest } from "./merchantUpdatedNotificationRequest"; -import { MidServiceNotificationData } from "./midServiceNotificationData"; -import { PaymentMethodCreatedNotificationRequest } from "./paymentMethodCreatedNotificationRequest"; -import { PaymentMethodNotificationResponse } from "./paymentMethodNotificationResponse"; -import { PaymentMethodRequestRemovedNotificationRequest } from "./paymentMethodRequestRemovedNotificationRequest"; -import { PaymentMethodScheduledForRemovalNotificationRequest } from "./paymentMethodScheduledForRemovalNotificationRequest"; -import { RemediatingAction } from "./remediatingAction"; -import { TerminalAssignmentNotificationRequest } from "./terminalAssignmentNotificationRequest"; -import { TerminalAssignmentNotificationResponse } from "./terminalAssignmentNotificationResponse"; -import { TerminalBoardingData } from "./terminalBoardingData"; -import { TerminalBoardingNotificationRequest } from "./terminalBoardingNotificationRequest"; -import { TerminalBoardingNotificationResponse } from "./terminalBoardingNotificationResponse"; -import { TerminalSettingsData } from "./terminalSettingsData"; -import { TerminalSettingsNotificationRequest } from "./terminalSettingsNotificationRequest"; -import { TerminalSettingsNotificationResponse } from "./terminalSettingsNotificationResponse"; -import { VerificationError } from "./verificationError"; -import { VerificationErrorRecursive } from "./verificationErrorRecursive"; - -/* tslint:disable:no-unused-variable */ -let primitives = [ - "string", - "boolean", - "double", - "integer", - "long", - "float", - "number", - "any" - ]; - -let enumsMap: Set = new Set([ - "CapabilityProblemEntity.TypeEnum", - "CapabilityProblemEntityRecursive.TypeEnum", - "MerchantCreatedNotificationRequest.TypeEnum", - "MerchantUpdatedNotificationRequest.TypeEnum", - "MidServiceNotificationData.StatusEnum", - "MidServiceNotificationData.VerificationStatusEnum", - "PaymentMethodCreatedNotificationRequest.TypeEnum", - "PaymentMethodRequestRemovedNotificationRequest.TypeEnum", - "PaymentMethodScheduledForRemovalNotificationRequest.TypeEnum", - "TerminalBoardingNotificationRequest.TypeEnum", - "TerminalSettingsData.UpdateSourceEnum", - "TerminalSettingsNotificationRequest.TypeEnum", - "VerificationError.TypeEnum", - "VerificationErrorRecursive.TypeEnum", -]); - -let typeMap: {[index: string]: any} = { - "AccountCapabilityData": AccountCapabilityData, - "AccountCreateNotificationData": AccountCreateNotificationData, - "AccountNotificationResponse": AccountNotificationResponse, - "AccountUpdateNotificationData": AccountUpdateNotificationData, - "CapabilityProblem": CapabilityProblem, - "CapabilityProblemEntity": CapabilityProblemEntity, - "CapabilityProblemEntityRecursive": CapabilityProblemEntityRecursive, - "MerchantCreatedNotificationRequest": MerchantCreatedNotificationRequest, - "MerchantUpdatedNotificationRequest": MerchantUpdatedNotificationRequest, - "MidServiceNotificationData": MidServiceNotificationData, - "PaymentMethodCreatedNotificationRequest": PaymentMethodCreatedNotificationRequest, - "PaymentMethodNotificationResponse": PaymentMethodNotificationResponse, - "PaymentMethodRequestRemovedNotificationRequest": PaymentMethodRequestRemovedNotificationRequest, - "PaymentMethodScheduledForRemovalNotificationRequest": PaymentMethodScheduledForRemovalNotificationRequest, - "RemediatingAction": RemediatingAction, - "TerminalAssignmentNotificationRequest": TerminalAssignmentNotificationRequest, - "TerminalAssignmentNotificationResponse": TerminalAssignmentNotificationResponse, - "TerminalBoardingData": TerminalBoardingData, - "TerminalBoardingNotificationRequest": TerminalBoardingNotificationRequest, - "TerminalBoardingNotificationResponse": TerminalBoardingNotificationResponse, - "TerminalSettingsData": TerminalSettingsData, - "TerminalSettingsNotificationRequest": TerminalSettingsNotificationRequest, - "TerminalSettingsNotificationResponse": TerminalSettingsNotificationResponse, - "VerificationError": VerificationError, - "VerificationErrorRecursive": VerificationErrorRecursive, -} - -type MimeTypeDescriptor = { - type: string; - subtype: string; - subtypeTokens: string[]; -}; - -/** - * Every mime-type consists of a type, subtype, and optional parameters. - * The subtype can be composite, including information about the content format. - * For example: `application/json-patch+json`, `application/merge-patch+json`. - * - * This helper transforms a string mime-type into an internal representation. - * This simplifies the implementation of predicates that in turn define common rules for parsing or stringifying - * the payload. - */ -const parseMimeType = (mimeType: string): MimeTypeDescriptor => { - const [type = '', subtype = ''] = mimeType.split('/'); - return { - type, - subtype, - subtypeTokens: subtype.split('+'), - }; -}; - -type MimeTypePredicate = (mimeType: string) => boolean; - -// This factory creates a predicate function that checks a string mime-type against defined rules. -const mimeTypePredicateFactory = (predicate: (descriptor: MimeTypeDescriptor) => boolean): MimeTypePredicate => (mimeType) => predicate(parseMimeType(mimeType)); - -// Use this factory when you need to define a simple predicate based only on type and, if applicable, subtype. -const mimeTypeSimplePredicateFactory = (type: string, subtype?: string): MimeTypePredicate => mimeTypePredicateFactory((descriptor) => { - if (descriptor.type !== type) return false; - if (subtype != null && descriptor.subtype !== subtype) return false; - return true; -}); - -// Creating a set of named predicates that will help us determine how to handle different mime-types -const isTextLikeMimeType = mimeTypeSimplePredicateFactory('text'); -const isJsonMimeType = mimeTypeSimplePredicateFactory('application', 'json'); -const isJsonLikeMimeType = mimeTypePredicateFactory((descriptor) => descriptor.type === 'application' && descriptor.subtypeTokens.some((item) => item === 'json')); -const isOctetStreamMimeType = mimeTypeSimplePredicateFactory('application', 'octet-stream'); -const isFormUrlencodedMimeType = mimeTypeSimplePredicateFactory('application', 'x-www-form-urlencoded'); - -// Defining a list of mime-types in the order of prioritization for handling. -const supportedMimeTypePredicatesWithPriority: MimeTypePredicate[] = [ - isJsonMimeType, - isJsonLikeMimeType, - isTextLikeMimeType, - isOctetStreamMimeType, - isFormUrlencodedMimeType, -]; - -const nullableSuffix = " | null"; -const optionalSuffix = " | undefined"; -const arrayPrefix = "Array<"; -const arraySuffix = ">"; -const mapPrefix = "{ [key: string]: "; -const mapSuffix = "; }"; - -export class ObjectSerializer { - public static findCorrectType(data: any, expectedType: string) { - if (data == undefined) { - return expectedType; - } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { - return expectedType; - } else if (expectedType === "Date") { - return expectedType; - } else { - if (enumsMap.has(expectedType)) { - return expectedType; - } - - if (!typeMap[expectedType]) { - return expectedType; // w/e we don't know the type - } - - // Check the discriminator - let discriminatorProperty = typeMap[expectedType].discriminator; - if (discriminatorProperty == null) { - return expectedType; // the type does not have a discriminator. use it. - } else { - if (data[discriminatorProperty]) { - var discriminatorType = data[discriminatorProperty]; - let mapping = typeMap[expectedType].mapping; - if (mapping != undefined && mapping[discriminatorType]) { - return mapping[discriminatorType]; // use the type given in the discriminator - } else if(typeMap[discriminatorType]) { - return discriminatorType; - } else { - return expectedType; // discriminator did not map to a type - } - } else { - return expectedType; // discriminator was not present (or an empty string) - } - } - } - } - - /** - * Serializes a value into a plain JSON-compatible object based on its type. - * - * Supports primitives, arrays, maps, dates, enums, and classes defined in `typeMap`. - * Falls back to raw data if type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The value to serialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A JSON-compatible representation of `data`. - */ - public static serialize(data: any, type: string, format: string = ""): any { - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.serialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.serialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - if (format == "date") { - let month = data.getMonth()+1 - month = month < 10 ? "0" + month.toString() : month.toString() - let day = data.getDate(); - day = day < 10 ? "0" + day.toString() : day.toString(); - - return data.getFullYear() + "-" + month + "-" + day; - } else { - return data.toISOString(); - } - } else { - if (enumsMap.has(type)) { - return data; - } - if (!typeMap[type]) { // in case we dont know the type - return data; - } - - // Get the actual type of this object - type = this.findCorrectType(data, type); - - const clazz = typeMap[type]; - - // Safe check for getAttributeTypeMap - if (typeof clazz.getAttributeTypeMap !== "function") { - return { ...data }; // fallback: shallow copy - } - - // get the map for the correct type. - let attributeTypes = typeMap[type].getAttributeTypeMap(); - let instance: {[index: string]: any} = {}; - for (let attributeType of attributeTypes) { - instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format); - } - return instance; - } - } - - /** - * Deserializes a plain JSON-compatible object into a typed instance. - * - * Handles primitives, arrays, maps, dates, enums, and known classes from `typeMap`. - * Uses discriminators when available to resolve polymorphic types. - * Falls back to raw data if the type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The raw input to deserialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A deserialized instance or value of `data`. - */ - public static deserialize(data: any, type: string, format: string = ""): any { - // polymorphism may change the actual type. - type = ObjectSerializer.findCorrectType(data, type); - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.deserialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.deserialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - return new Date(data); - } else { - if (enumsMap.has(type)) {// is Enum - return data; - } - - if (!typeMap[type]) { // dont know the type - return data; - } - let instance = new typeMap[type](); - - // Safe check for getAttributeTypeMap - if (typeof typeMap[type].getAttributeTypeMap !== "function") { - Object.assign(instance, data); // fallback: shallow copy - return instance; - } - - let attributeTypes = typeMap[type].getAttributeTypeMap(); - for (let attributeType of attributeTypes) { - let value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format); - if (value !== undefined) { - instance[attributeType.name] = value; - } - } - return instance; - } - } - - - /** - * Normalize media type - * - * We currently do not handle any media types attributes, i.e. anything - * after a semicolon. All content is assumed to be UTF-8 compatible. - */ - public static normalizeMediaType(mediaType: string | undefined): string | undefined { - if (mediaType === undefined) { - return undefined; - } - return (mediaType.split(";")[0] ?? '').trim().toLowerCase(); - } - - /** - * From a list of possible media types, choose the one we can handle best. - * - * The order of the given media types does not have any impact on the choice - * made. - */ - public static getPreferredMediaType(mediaTypes: Array): string { - /** According to OAS 3 we should default to json */ - if (mediaTypes.length === 0) { - return "application/json"; - } - - const normalMediaTypes = mediaTypes.map(ObjectSerializer.normalizeMediaType); - - for (const predicate of supportedMimeTypePredicatesWithPriority) { - for (const mediaType of normalMediaTypes) { - if (mediaType != null && predicate(mediaType)) { - return mediaType; - } - } - } - - throw new Error("None of the given media types are supported: " + mediaTypes.join(", ")); - } - - /** - * Convert data to a string according the given media type - */ - public static stringify(data: any, mediaType: string): string { - if (isTextLikeMimeType(mediaType)) { - return String(data); - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.stringify(data); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify."); - } - - /** - * Parse data from a string according to the given media type - */ - public static parse(rawData: string, mediaType: string | undefined) { - if (mediaType === undefined) { - throw new Error("Cannot parse content. No Content-Type defined."); - } - - if (isTextLikeMimeType(mediaType)) { - return rawData; - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.parse(rawData); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse."); - } -} diff --git a/src/typings/managementWebhooks/paymentMethodCreatedNotificationRequest.ts b/src/typings/managementWebhooks/paymentMethodCreatedNotificationRequest.ts index 52c35db4b..9be4385f1 100644 --- a/src/typings/managementWebhooks/paymentMethodCreatedNotificationRequest.ts +++ b/src/typings/managementWebhooks/paymentMethodCreatedNotificationRequest.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { MidServiceNotificationData } from "./midServiceNotificationData"; - +import { MidServiceNotificationData } from './midServiceNotificationData'; export class PaymentMethodCreatedNotificationRequest { /** * Timestamp for when the webhook was created. */ - "createdAt": Date; - "data": MidServiceNotificationData; + 'createdAt': Date; + 'data': MidServiceNotificationData; /** * The environment from which the webhook originated. Possible values: **test**, **live**. */ - "environment": string; + 'environment': string; /** * Type of notification. */ - "type": PaymentMethodCreatedNotificationRequest.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': PaymentMethodCreatedNotificationRequest.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "createdAt", "baseName": "createdAt", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "data", "baseName": "data", - "type": "MidServiceNotificationData", - "format": "" + "type": "MidServiceNotificationData" }, { "name": "environment", "baseName": "environment", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "PaymentMethodCreatedNotificationRequest.TypeEnum", - "format": "" + "type": "PaymentMethodCreatedNotificationRequest.TypeEnum" } ]; static getAttributeTypeMap() { return PaymentMethodCreatedNotificationRequest.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentMethodCreatedNotificationRequest { diff --git a/src/typings/managementWebhooks/paymentMethodNotificationResponse.ts b/src/typings/managementWebhooks/paymentMethodNotificationResponse.ts index b1de7918a..181467e03 100644 --- a/src/typings/managementWebhooks/paymentMethodNotificationResponse.ts +++ b/src/typings/managementWebhooks/paymentMethodNotificationResponse.ts @@ -12,25 +12,19 @@ export class PaymentMethodNotificationResponse { /** * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). */ - "notificationResponse"?: string; + 'notificationResponse'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "notificationResponse", "baseName": "notificationResponse", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PaymentMethodNotificationResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/managementWebhooks/paymentMethodRequestRemovedNotificationRequest.ts b/src/typings/managementWebhooks/paymentMethodRequestRemovedNotificationRequest.ts index fb237195f..57aab1cc6 100644 --- a/src/typings/managementWebhooks/paymentMethodRequestRemovedNotificationRequest.ts +++ b/src/typings/managementWebhooks/paymentMethodRequestRemovedNotificationRequest.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { MidServiceNotificationData } from "./midServiceNotificationData"; - +import { MidServiceNotificationData } from './midServiceNotificationData'; export class PaymentMethodRequestRemovedNotificationRequest { /** * Timestamp for when the webhook was created. */ - "createdAt": Date; - "data": MidServiceNotificationData; + 'createdAt': Date; + 'data': MidServiceNotificationData; /** * The environment from which the webhook originated. Possible values: **test**, **live**. */ - "environment": string; + 'environment': string; /** * Type of notification. */ - "type": PaymentMethodRequestRemovedNotificationRequest.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': PaymentMethodRequestRemovedNotificationRequest.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "createdAt", "baseName": "createdAt", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "data", "baseName": "data", - "type": "MidServiceNotificationData", - "format": "" + "type": "MidServiceNotificationData" }, { "name": "environment", "baseName": "environment", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "PaymentMethodRequestRemovedNotificationRequest.TypeEnum", - "format": "" + "type": "PaymentMethodRequestRemovedNotificationRequest.TypeEnum" } ]; static getAttributeTypeMap() { return PaymentMethodRequestRemovedNotificationRequest.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentMethodRequestRemovedNotificationRequest { diff --git a/src/typings/managementWebhooks/paymentMethodScheduledForRemovalNotificationRequest.ts b/src/typings/managementWebhooks/paymentMethodScheduledForRemovalNotificationRequest.ts index 23c49a1a5..243fb19d8 100644 --- a/src/typings/managementWebhooks/paymentMethodScheduledForRemovalNotificationRequest.ts +++ b/src/typings/managementWebhooks/paymentMethodScheduledForRemovalNotificationRequest.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { MidServiceNotificationData } from "./midServiceNotificationData"; - +import { MidServiceNotificationData } from './midServiceNotificationData'; export class PaymentMethodScheduledForRemovalNotificationRequest { /** * Timestamp for when the webhook was created. */ - "createdAt": Date; - "data": MidServiceNotificationData; + 'createdAt': Date; + 'data': MidServiceNotificationData; /** * The environment from which the webhook originated. Possible values: **test**, **live**. */ - "environment": string; + 'environment': string; /** * Type of notification. */ - "type": PaymentMethodScheduledForRemovalNotificationRequest.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': PaymentMethodScheduledForRemovalNotificationRequest.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "createdAt", "baseName": "createdAt", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "data", "baseName": "data", - "type": "MidServiceNotificationData", - "format": "" + "type": "MidServiceNotificationData" }, { "name": "environment", "baseName": "environment", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "PaymentMethodScheduledForRemovalNotificationRequest.TypeEnum", - "format": "" + "type": "PaymentMethodScheduledForRemovalNotificationRequest.TypeEnum" } ]; static getAttributeTypeMap() { return PaymentMethodScheduledForRemovalNotificationRequest.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentMethodScheduledForRemovalNotificationRequest { diff --git a/src/typings/managementWebhooks/remediatingAction.ts b/src/typings/managementWebhooks/remediatingAction.ts index ea2ab86ad..a23fdac27 100644 --- a/src/typings/managementWebhooks/remediatingAction.ts +++ b/src/typings/managementWebhooks/remediatingAction.ts @@ -12,35 +12,28 @@ export class RemediatingAction { /** * The remediating action code. */ - "code"?: string; + 'code'?: string; /** * A description of how you can resolve the verification error. */ - "message"?: string; + 'message'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "code", "baseName": "code", - "type": "string", - "format": "" + "type": "string" }, { "name": "message", "baseName": "message", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return RemediatingAction.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/managementWebhooks/terminalAssignmentNotificationRequest.ts b/src/typings/managementWebhooks/terminalAssignmentNotificationRequest.ts index 52ac9c4f0..7d5de4ad0 100644 --- a/src/typings/managementWebhooks/terminalAssignmentNotificationRequest.ts +++ b/src/typings/managementWebhooks/terminalAssignmentNotificationRequest.ts @@ -12,65 +12,55 @@ export class TerminalAssignmentNotificationRequest { /** * The unique identifier of the merchant/company account to which the terminal is assigned. */ - "assignedToAccount": string; + 'assignedToAccount': string; /** * The unique identifier of the store to which the terminal is assigned. */ - "assignedToStore"?: string; + 'assignedToStore'?: string; /** * The date and time when an event has been completed. */ - "eventDate": string; + 'eventDate': string; /** * The PSP reference of the request from which the notification originates. */ - "pspReference": string; + 'pspReference': string; /** * The unique identifier of the terminal. */ - "uniqueTerminalId": string; + 'uniqueTerminalId': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "assignedToAccount", "baseName": "assignedToAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "assignedToStore", "baseName": "assignedToStore", - "type": "string", - "format": "" + "type": "string" }, { "name": "eventDate", "baseName": "eventDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "uniqueTerminalId", "baseName": "uniqueTerminalId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TerminalAssignmentNotificationRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/managementWebhooks/terminalAssignmentNotificationResponse.ts b/src/typings/managementWebhooks/terminalAssignmentNotificationResponse.ts index 3cc3ace08..666878857 100644 --- a/src/typings/managementWebhooks/terminalAssignmentNotificationResponse.ts +++ b/src/typings/managementWebhooks/terminalAssignmentNotificationResponse.ts @@ -12,25 +12,19 @@ export class TerminalAssignmentNotificationResponse { /** * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). */ - "notificationResponse"?: string; + 'notificationResponse'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "notificationResponse", "baseName": "notificationResponse", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TerminalAssignmentNotificationResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/managementWebhooks/terminalBoardingData.ts b/src/typings/managementWebhooks/terminalBoardingData.ts index c54cb59ba..b52e0d874 100644 --- a/src/typings/managementWebhooks/terminalBoardingData.ts +++ b/src/typings/managementWebhooks/terminalBoardingData.ts @@ -12,55 +12,46 @@ export class TerminalBoardingData { /** * The unique identifier of the company account. */ - "companyId": string; + 'companyId': string; /** * The unique identifier of the merchant account. */ - "merchantId"?: string; + 'merchantId'?: string; /** * The unique identifier of the store. */ - "storeId"?: string; + 'storeId'?: string; /** * The unique identifier of the terminal. */ - "uniqueTerminalId": string; + 'uniqueTerminalId': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "companyId", "baseName": "companyId", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantId", "baseName": "merchantId", - "type": "string", - "format": "" + "type": "string" }, { "name": "storeId", "baseName": "storeId", - "type": "string", - "format": "" + "type": "string" }, { "name": "uniqueTerminalId", "baseName": "uniqueTerminalId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TerminalBoardingData.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/managementWebhooks/terminalBoardingNotificationRequest.ts b/src/typings/managementWebhooks/terminalBoardingNotificationRequest.ts index 0267ea7a1..beee76e71 100644 --- a/src/typings/managementWebhooks/terminalBoardingNotificationRequest.ts +++ b/src/typings/managementWebhooks/terminalBoardingNotificationRequest.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { TerminalBoardingData } from "./terminalBoardingData"; - +import { TerminalBoardingData } from './terminalBoardingData'; export class TerminalBoardingNotificationRequest { /** * Timestamp for when the webhook was created. */ - "createdAt": Date; - "data": TerminalBoardingData; + 'createdAt': Date; + 'data': TerminalBoardingData; /** * The environment from which the webhook originated. Possible values: **test**, **live**. */ - "environment": string; + 'environment': string; /** * Type of notification. */ - "type": TerminalBoardingNotificationRequest.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': TerminalBoardingNotificationRequest.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "createdAt", "baseName": "createdAt", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "data", "baseName": "data", - "type": "TerminalBoardingData", - "format": "" + "type": "TerminalBoardingData" }, { "name": "environment", "baseName": "environment", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "TerminalBoardingNotificationRequest.TypeEnum", - "format": "" + "type": "TerminalBoardingNotificationRequest.TypeEnum" } ]; static getAttributeTypeMap() { return TerminalBoardingNotificationRequest.attributeTypeMap; } - - public constructor() { - } } export namespace TerminalBoardingNotificationRequest { diff --git a/src/typings/managementWebhooks/terminalBoardingNotificationResponse.ts b/src/typings/managementWebhooks/terminalBoardingNotificationResponse.ts index bf982d40f..24783d86a 100644 --- a/src/typings/managementWebhooks/terminalBoardingNotificationResponse.ts +++ b/src/typings/managementWebhooks/terminalBoardingNotificationResponse.ts @@ -12,25 +12,19 @@ export class TerminalBoardingNotificationResponse { /** * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). */ - "notificationResponse"?: string; + 'notificationResponse'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "notificationResponse", "baseName": "notificationResponse", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TerminalBoardingNotificationResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/managementWebhooks/terminalSettingsData.ts b/src/typings/managementWebhooks/terminalSettingsData.ts index 8dac22d07..3655a0400 100644 --- a/src/typings/managementWebhooks/terminalSettingsData.ts +++ b/src/typings/managementWebhooks/terminalSettingsData.ts @@ -12,76 +12,65 @@ export class TerminalSettingsData { /** * The unique identifier of the company account. */ - "companyId"?: string; + 'companyId'?: string; /** * The unique identifier of the merchant account. */ - "merchantId"?: string; + 'merchantId'?: string; /** * The unique identifier of the store. */ - "storeId"?: string; + 'storeId'?: string; /** * The unique identifier of the terminal. */ - "terminalId"?: string; + 'terminalId'?: string; /** * Indicates whether the terminal settings were updated using the Customer Area or the Management API. */ - "updateSource": TerminalSettingsData.UpdateSourceEnum; + 'updateSource': TerminalSettingsData.UpdateSourceEnum; /** * The user that updated the terminal settings. Can be Adyen or your API credential username. */ - "user": string; + 'user': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "companyId", "baseName": "companyId", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantId", "baseName": "merchantId", - "type": "string", - "format": "" + "type": "string" }, { "name": "storeId", "baseName": "storeId", - "type": "string", - "format": "" + "type": "string" }, { "name": "terminalId", "baseName": "terminalId", - "type": "string", - "format": "" + "type": "string" }, { "name": "updateSource", "baseName": "updateSource", - "type": "TerminalSettingsData.UpdateSourceEnum", - "format": "" + "type": "TerminalSettingsData.UpdateSourceEnum" }, { "name": "user", "baseName": "user", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TerminalSettingsData.attributeTypeMap; } - - public constructor() { - } } export namespace TerminalSettingsData { diff --git a/src/typings/managementWebhooks/terminalSettingsNotificationRequest.ts b/src/typings/managementWebhooks/terminalSettingsNotificationRequest.ts index 6bca0379a..312a77589 100644 --- a/src/typings/managementWebhooks/terminalSettingsNotificationRequest.ts +++ b/src/typings/managementWebhooks/terminalSettingsNotificationRequest.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { TerminalSettingsData } from "./terminalSettingsData"; - +import { TerminalSettingsData } from './terminalSettingsData'; export class TerminalSettingsNotificationRequest { /** * Timestamp for when the webhook was created. */ - "createdAt": Date; - "data": TerminalSettingsData; + 'createdAt': Date; + 'data': TerminalSettingsData; /** * The environment from which the webhook originated. Possible values: **test**, **live**. */ - "environment": string; + 'environment': string; /** * Type of notification. */ - "type": TerminalSettingsNotificationRequest.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': TerminalSettingsNotificationRequest.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "createdAt", "baseName": "createdAt", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "data", "baseName": "data", - "type": "TerminalSettingsData", - "format": "" + "type": "TerminalSettingsData" }, { "name": "environment", "baseName": "environment", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "TerminalSettingsNotificationRequest.TypeEnum", - "format": "" + "type": "TerminalSettingsNotificationRequest.TypeEnum" } ]; static getAttributeTypeMap() { return TerminalSettingsNotificationRequest.attributeTypeMap; } - - public constructor() { - } } export namespace TerminalSettingsNotificationRequest { diff --git a/src/typings/managementWebhooks/terminalSettingsNotificationResponse.ts b/src/typings/managementWebhooks/terminalSettingsNotificationResponse.ts index 1bb45a20c..7753a08ea 100644 --- a/src/typings/managementWebhooks/terminalSettingsNotificationResponse.ts +++ b/src/typings/managementWebhooks/terminalSettingsNotificationResponse.ts @@ -12,25 +12,19 @@ export class TerminalSettingsNotificationResponse { /** * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). */ - "notificationResponse"?: string; + 'notificationResponse'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "notificationResponse", "baseName": "notificationResponse", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TerminalSettingsNotificationResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/managementWebhooks/verificationError.ts b/src/typings/managementWebhooks/verificationError.ts index 5409ef6db..1a13dccb8 100644 --- a/src/typings/managementWebhooks/verificationError.ts +++ b/src/typings/managementWebhooks/verificationError.ts @@ -7,74 +7,63 @@ * Do not edit this class manually. */ -import { RemediatingAction } from "./remediatingAction"; -import { VerificationErrorRecursive } from "./verificationErrorRecursive"; - +import { RemediatingAction } from './remediatingAction'; +import { VerificationErrorRecursive } from './verificationErrorRecursive'; export class VerificationError { /** * The verification error code. */ - "code"?: string; + 'code'?: string; /** * The verification error message. */ - "message"?: string; + 'message'?: string; /** * The actions that you can take to resolve the verification error. */ - "remediatingActions"?: Array; + 'remediatingActions'?: Array; /** * More granular information about the verification error. */ - "subErrors"?: Array; + 'subErrors'?: Array; /** * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**. */ - "type"?: VerificationError.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type'?: VerificationError.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "code", "baseName": "code", - "type": "string", - "format": "" + "type": "string" }, { "name": "message", "baseName": "message", - "type": "string", - "format": "" + "type": "string" }, { "name": "remediatingActions", "baseName": "remediatingActions", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "subErrors", "baseName": "subErrors", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "type", "baseName": "type", - "type": "VerificationError.TypeEnum", - "format": "" + "type": "VerificationError.TypeEnum" } ]; static getAttributeTypeMap() { return VerificationError.attributeTypeMap; } - - public constructor() { - } } export namespace VerificationError { diff --git a/src/typings/managementWebhooks/verificationErrorRecursive.ts b/src/typings/managementWebhooks/verificationErrorRecursive.ts index eab00780f..763c72b75 100644 --- a/src/typings/managementWebhooks/verificationErrorRecursive.ts +++ b/src/typings/managementWebhooks/verificationErrorRecursive.ts @@ -7,63 +7,53 @@ * Do not edit this class manually. */ -import { RemediatingAction } from "./remediatingAction"; - +import { RemediatingAction } from './remediatingAction'; export class VerificationErrorRecursive { /** * The verification error code. */ - "code"?: string; + 'code'?: string; /** * The verification error message. */ - "message"?: string; + 'message'?: string; /** * The type of verification error. Possible values: **invalidInput**, **dataMissing**, and **pendingStatus**. */ - "type"?: VerificationErrorRecursive.TypeEnum; + 'type'?: VerificationErrorRecursive.TypeEnum; /** * The actions that you can take to resolve the verification error. */ - "remediatingActions"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'remediatingActions'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "code", "baseName": "code", - "type": "string", - "format": "" + "type": "string" }, { "name": "message", "baseName": "message", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "VerificationErrorRecursive.TypeEnum", - "format": "" + "type": "VerificationErrorRecursive.TypeEnum" }, { "name": "remediatingActions", "baseName": "remediatingActions", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return VerificationErrorRecursive.attributeTypeMap; } - - public constructor() { - } } export namespace VerificationErrorRecursive { diff --git a/src/typings/negativeBalanceWarningWebhooks/amount.ts b/src/typings/negativeBalanceWarningWebhooks/amount.ts index 4e1aea8a5..a52ca2bdb 100644 --- a/src/typings/negativeBalanceWarningWebhooks/amount.ts +++ b/src/typings/negativeBalanceWarningWebhooks/amount.ts @@ -12,35 +12,28 @@ export class Amount { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ - "currency": string; + 'currency': string; /** * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ - "value": number; + 'value': number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "number", - "format": "int64" + "type": "number" } ]; static getAttributeTypeMap() { return Amount.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/negativeBalanceWarningWebhooks/models.ts b/src/typings/negativeBalanceWarningWebhooks/models.ts index 52126bf86..b4faef79a 100644 --- a/src/typings/negativeBalanceWarningWebhooks/models.ts +++ b/src/typings/negativeBalanceWarningWebhooks/models.ts @@ -1,8 +1,160 @@ -export * from "./amount" -export * from "./negativeBalanceCompensationWarningNotificationData" -export * from "./negativeBalanceCompensationWarningNotificationRequest" -export * from "./resource" -export * from "./resourceReference" - -// serializing and deserializing typed objects -export * from "./objectSerializer" \ No newline at end of file +/* + * The version of the OpenAPI document: v1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export * from './amount'; +export * from './negativeBalanceCompensationWarningNotificationData'; +export * from './negativeBalanceCompensationWarningNotificationRequest'; +export * from './resource'; +export * from './resourceReference'; + + +import { Amount } from './amount'; +import { NegativeBalanceCompensationWarningNotificationData } from './negativeBalanceCompensationWarningNotificationData'; +import { NegativeBalanceCompensationWarningNotificationRequest } from './negativeBalanceCompensationWarningNotificationRequest'; +import { Resource } from './resource'; +import { ResourceReference } from './resourceReference'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "NegativeBalanceCompensationWarningNotificationRequest.TypeEnum": NegativeBalanceCompensationWarningNotificationRequest.TypeEnum, +} + +let typeMap: {[index: string]: any} = { + "Amount": Amount, + "NegativeBalanceCompensationWarningNotificationData": NegativeBalanceCompensationWarningNotificationData, + "NegativeBalanceCompensationWarningNotificationRequest": NegativeBalanceCompensationWarningNotificationRequest, + "Resource": Resource, + "ResourceReference": ResourceReference, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/negativeBalanceWarningWebhooks/negativeBalanceCompensationWarningNotificationData.ts b/src/typings/negativeBalanceWarningWebhooks/negativeBalanceCompensationWarningNotificationData.ts index 0fe4440e7..63ce72785 100644 --- a/src/typings/negativeBalanceWarningWebhooks/negativeBalanceCompensationWarningNotificationData.ts +++ b/src/typings/negativeBalanceWarningWebhooks/negativeBalanceCompensationWarningNotificationData.ts @@ -7,97 +7,83 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { ResourceReference } from "./resourceReference"; - +import { Amount } from './amount'; +import { ResourceReference } from './resourceReference'; export class NegativeBalanceCompensationWarningNotificationData { - "accountHolder"?: ResourceReference | null; - "amount"?: Amount | null; + 'accountHolder'?: ResourceReference | null; + 'amount'?: Amount | null; /** * The unique identifier of the balance platform. */ - "balancePlatform"?: string; + 'balancePlatform'?: string; /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. */ - "creationDate"?: Date; + 'creationDate'?: Date; /** * The ID of the resource. */ - "id"?: string; + 'id'?: string; /** * The balance account ID of the account that will be used to compensate the balance account whose balance is negative. */ - "liableBalanceAccountId"?: string; + 'liableBalanceAccountId'?: string; /** * The date the balance for the account became negative. */ - "negativeBalanceSince"?: Date; + 'negativeBalanceSince'?: Date; /** * The date when a compensation transfer to the account is scheduled to happen. */ - "scheduledCompensationAt"?: Date; - - static readonly discriminator: string | undefined = undefined; + 'scheduledCompensationAt'?: Date; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountHolder", "baseName": "accountHolder", - "type": "ResourceReference | null", - "format": "" + "type": "ResourceReference | null" }, { "name": "amount", "baseName": "amount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "balancePlatform", "baseName": "balancePlatform", - "type": "string", - "format": "" + "type": "string" }, { "name": "creationDate", "baseName": "creationDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "liableBalanceAccountId", "baseName": "liableBalanceAccountId", - "type": "string", - "format": "" + "type": "string" }, { "name": "negativeBalanceSince", "baseName": "negativeBalanceSince", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "scheduledCompensationAt", "baseName": "scheduledCompensationAt", - "type": "Date", - "format": "date-time" + "type": "Date" } ]; static getAttributeTypeMap() { return NegativeBalanceCompensationWarningNotificationData.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/negativeBalanceWarningWebhooks/negativeBalanceCompensationWarningNotificationRequest.ts b/src/typings/negativeBalanceWarningWebhooks/negativeBalanceCompensationWarningNotificationRequest.ts index c1fc631c3..e44e15a88 100644 --- a/src/typings/negativeBalanceWarningWebhooks/negativeBalanceCompensationWarningNotificationRequest.ts +++ b/src/typings/negativeBalanceWarningWebhooks/negativeBalanceCompensationWarningNotificationRequest.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { NegativeBalanceCompensationWarningNotificationData } from "./negativeBalanceCompensationWarningNotificationData"; - +import { NegativeBalanceCompensationWarningNotificationData } from './negativeBalanceCompensationWarningNotificationData'; export class NegativeBalanceCompensationWarningNotificationRequest { - "data": NegativeBalanceCompensationWarningNotificationData; + 'data': NegativeBalanceCompensationWarningNotificationData; /** * The environment from which the webhook originated. Possible values: **test**, **live**. */ - "environment": string; + 'environment': string; /** * When the event was queued. */ - "timestamp"?: Date; + 'timestamp'?: Date; /** * Type of webhook. */ - "type": NegativeBalanceCompensationWarningNotificationRequest.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': NegativeBalanceCompensationWarningNotificationRequest.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "NegativeBalanceCompensationWarningNotificationData", - "format": "" + "type": "NegativeBalanceCompensationWarningNotificationData" }, { "name": "environment", "baseName": "environment", - "type": "string", - "format": "" + "type": "string" }, { "name": "timestamp", "baseName": "timestamp", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "type", "baseName": "type", - "type": "NegativeBalanceCompensationWarningNotificationRequest.TypeEnum", - "format": "" + "type": "NegativeBalanceCompensationWarningNotificationRequest.TypeEnum" } ]; static getAttributeTypeMap() { return NegativeBalanceCompensationWarningNotificationRequest.attributeTypeMap; } - - public constructor() { - } } export namespace NegativeBalanceCompensationWarningNotificationRequest { diff --git a/src/typings/negativeBalanceWarningWebhooks/negativeBalanceWarningWebhooksHandler.ts b/src/typings/negativeBalanceWarningWebhooks/negativeBalanceWarningWebhooksHandler.ts deleted file mode 100644 index 53d1f14d0..000000000 --- a/src/typings/negativeBalanceWarningWebhooks/negativeBalanceWarningWebhooksHandler.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* - * The version of the OpenAPI document: v1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit this class manually. - */ - -import { negativeBalanceWarningWebhooks } from ".."; - -/** - * Union type for all supported webhook requests. - * Allows generic handling of configuration-related webhook events. - */ -export type GenericWebhook = - | negativeBalanceWarningWebhooks.NegativeBalanceCompensationWarningNotificationRequest; - -/** - * Handler for processing NegativeBalanceWarningWebhooks. - * - * This class provides functionality to deserialize the payload of NegativeBalanceWarningWebhooks events. - */ -export class NegativeBalanceWarningWebhooksHandler { - - private readonly payload: Record; - - public constructor(jsonPayload: string) { - this.payload = JSON.parse(jsonPayload); - } - - /** - * This method checks the type of the webhook payload and returns the appropriate deserialized object. - * - * @returns A deserialized object of type GenericWebhook. - * @throws Error if the type is not recognized. - */ - public getGenericWebhook(): GenericWebhook { - - const type = this.payload["type"]; - - if(Object.values(negativeBalanceWarningWebhooks.NegativeBalanceCompensationWarningNotificationRequest.TypeEnum).includes(type)) { - return this.getNegativeBalanceCompensationWarningNotificationRequest(); - } - - throw new Error("Could not parse the json payload: " + this.payload); - - } - - /** - * Deserialize the webhook payload into a NegativeBalanceCompensationWarningNotificationRequest - * - * @returns Deserialized NegativeBalanceCompensationWarningNotificationRequest object. - */ - public getNegativeBalanceCompensationWarningNotificationRequest(): negativeBalanceWarningWebhooks.NegativeBalanceCompensationWarningNotificationRequest { - return negativeBalanceWarningWebhooks.ObjectSerializer.deserialize(this.payload, "NegativeBalanceCompensationWarningNotificationRequest"); - } - -} \ No newline at end of file diff --git a/src/typings/negativeBalanceWarningWebhooks/objectSerializer.ts b/src/typings/negativeBalanceWarningWebhooks/objectSerializer.ts deleted file mode 100644 index 4c9dd8fcc..000000000 --- a/src/typings/negativeBalanceWarningWebhooks/objectSerializer.ts +++ /dev/null @@ -1,354 +0,0 @@ -export * from "./models"; - -import { Amount } from "./amount"; -import { NegativeBalanceCompensationWarningNotificationData } from "./negativeBalanceCompensationWarningNotificationData"; -import { NegativeBalanceCompensationWarningNotificationRequest } from "./negativeBalanceCompensationWarningNotificationRequest"; -import { Resource } from "./resource"; -import { ResourceReference } from "./resourceReference"; - -/* tslint:disable:no-unused-variable */ -let primitives = [ - "string", - "boolean", - "double", - "integer", - "long", - "float", - "number", - "any" - ]; - -let enumsMap: Set = new Set([ - "NegativeBalanceCompensationWarningNotificationRequest.TypeEnum", -]); - -let typeMap: {[index: string]: any} = { - "Amount": Amount, - "NegativeBalanceCompensationWarningNotificationData": NegativeBalanceCompensationWarningNotificationData, - "NegativeBalanceCompensationWarningNotificationRequest": NegativeBalanceCompensationWarningNotificationRequest, - "Resource": Resource, - "ResourceReference": ResourceReference, -} - -type MimeTypeDescriptor = { - type: string; - subtype: string; - subtypeTokens: string[]; -}; - -/** - * Every mime-type consists of a type, subtype, and optional parameters. - * The subtype can be composite, including information about the content format. - * For example: `application/json-patch+json`, `application/merge-patch+json`. - * - * This helper transforms a string mime-type into an internal representation. - * This simplifies the implementation of predicates that in turn define common rules for parsing or stringifying - * the payload. - */ -const parseMimeType = (mimeType: string): MimeTypeDescriptor => { - const [type = '', subtype = ''] = mimeType.split('/'); - return { - type, - subtype, - subtypeTokens: subtype.split('+'), - }; -}; - -type MimeTypePredicate = (mimeType: string) => boolean; - -// This factory creates a predicate function that checks a string mime-type against defined rules. -const mimeTypePredicateFactory = (predicate: (descriptor: MimeTypeDescriptor) => boolean): MimeTypePredicate => (mimeType) => predicate(parseMimeType(mimeType)); - -// Use this factory when you need to define a simple predicate based only on type and, if applicable, subtype. -const mimeTypeSimplePredicateFactory = (type: string, subtype?: string): MimeTypePredicate => mimeTypePredicateFactory((descriptor) => { - if (descriptor.type !== type) return false; - if (subtype != null && descriptor.subtype !== subtype) return false; - return true; -}); - -// Creating a set of named predicates that will help us determine how to handle different mime-types -const isTextLikeMimeType = mimeTypeSimplePredicateFactory('text'); -const isJsonMimeType = mimeTypeSimplePredicateFactory('application', 'json'); -const isJsonLikeMimeType = mimeTypePredicateFactory((descriptor) => descriptor.type === 'application' && descriptor.subtypeTokens.some((item) => item === 'json')); -const isOctetStreamMimeType = mimeTypeSimplePredicateFactory('application', 'octet-stream'); -const isFormUrlencodedMimeType = mimeTypeSimplePredicateFactory('application', 'x-www-form-urlencoded'); - -// Defining a list of mime-types in the order of prioritization for handling. -const supportedMimeTypePredicatesWithPriority: MimeTypePredicate[] = [ - isJsonMimeType, - isJsonLikeMimeType, - isTextLikeMimeType, - isOctetStreamMimeType, - isFormUrlencodedMimeType, -]; - -const nullableSuffix = " | null"; -const optionalSuffix = " | undefined"; -const arrayPrefix = "Array<"; -const arraySuffix = ">"; -const mapPrefix = "{ [key: string]: "; -const mapSuffix = "; }"; - -export class ObjectSerializer { - public static findCorrectType(data: any, expectedType: string) { - if (data == undefined) { - return expectedType; - } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { - return expectedType; - } else if (expectedType === "Date") { - return expectedType; - } else { - if (enumsMap.has(expectedType)) { - return expectedType; - } - - if (!typeMap[expectedType]) { - return expectedType; // w/e we don't know the type - } - - // Check the discriminator - let discriminatorProperty = typeMap[expectedType].discriminator; - if (discriminatorProperty == null) { - return expectedType; // the type does not have a discriminator. use it. - } else { - if (data[discriminatorProperty]) { - var discriminatorType = data[discriminatorProperty]; - let mapping = typeMap[expectedType].mapping; - if (mapping != undefined && mapping[discriminatorType]) { - return mapping[discriminatorType]; // use the type given in the discriminator - } else if(typeMap[discriminatorType]) { - return discriminatorType; - } else { - return expectedType; // discriminator did not map to a type - } - } else { - return expectedType; // discriminator was not present (or an empty string) - } - } - } - } - - /** - * Serializes a value into a plain JSON-compatible object based on its type. - * - * Supports primitives, arrays, maps, dates, enums, and classes defined in `typeMap`. - * Falls back to raw data if type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The value to serialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A JSON-compatible representation of `data`. - */ - public static serialize(data: any, type: string, format: string = ""): any { - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.serialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.serialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - if (format == "date") { - let month = data.getMonth()+1 - month = month < 10 ? "0" + month.toString() : month.toString() - let day = data.getDate(); - day = day < 10 ? "0" + day.toString() : day.toString(); - - return data.getFullYear() + "-" + month + "-" + day; - } else { - return data.toISOString(); - } - } else { - if (enumsMap.has(type)) { - return data; - } - if (!typeMap[type]) { // in case we dont know the type - return data; - } - - // Get the actual type of this object - type = this.findCorrectType(data, type); - - const clazz = typeMap[type]; - - // Safe check for getAttributeTypeMap - if (typeof clazz.getAttributeTypeMap !== "function") { - return { ...data }; // fallback: shallow copy - } - - // get the map for the correct type. - let attributeTypes = typeMap[type].getAttributeTypeMap(); - let instance: {[index: string]: any} = {}; - for (let attributeType of attributeTypes) { - instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format); - } - return instance; - } - } - - /** - * Deserializes a plain JSON-compatible object into a typed instance. - * - * Handles primitives, arrays, maps, dates, enums, and known classes from `typeMap`. - * Uses discriminators when available to resolve polymorphic types. - * Falls back to raw data if the type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The raw input to deserialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A deserialized instance or value of `data`. - */ - public static deserialize(data: any, type: string, format: string = ""): any { - // polymorphism may change the actual type. - type = ObjectSerializer.findCorrectType(data, type); - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.deserialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.deserialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - return new Date(data); - } else { - if (enumsMap.has(type)) {// is Enum - return data; - } - - if (!typeMap[type]) { // dont know the type - return data; - } - let instance = new typeMap[type](); - - // Safe check for getAttributeTypeMap - if (typeof typeMap[type].getAttributeTypeMap !== "function") { - Object.assign(instance, data); // fallback: shallow copy - return instance; - } - - let attributeTypes = typeMap[type].getAttributeTypeMap(); - for (let attributeType of attributeTypes) { - let value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format); - if (value !== undefined) { - instance[attributeType.name] = value; - } - } - return instance; - } - } - - - /** - * Normalize media type - * - * We currently do not handle any media types attributes, i.e. anything - * after a semicolon. All content is assumed to be UTF-8 compatible. - */ - public static normalizeMediaType(mediaType: string | undefined): string | undefined { - if (mediaType === undefined) { - return undefined; - } - return (mediaType.split(";")[0] ?? '').trim().toLowerCase(); - } - - /** - * From a list of possible media types, choose the one we can handle best. - * - * The order of the given media types does not have any impact on the choice - * made. - */ - public static getPreferredMediaType(mediaTypes: Array): string { - /** According to OAS 3 we should default to json */ - if (mediaTypes.length === 0) { - return "application/json"; - } - - const normalMediaTypes = mediaTypes.map(ObjectSerializer.normalizeMediaType); - - for (const predicate of supportedMimeTypePredicatesWithPriority) { - for (const mediaType of normalMediaTypes) { - if (mediaType != null && predicate(mediaType)) { - return mediaType; - } - } - } - - throw new Error("None of the given media types are supported: " + mediaTypes.join(", ")); - } - - /** - * Convert data to a string according the given media type - */ - public static stringify(data: any, mediaType: string): string { - if (isTextLikeMimeType(mediaType)) { - return String(data); - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.stringify(data); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify."); - } - - /** - * Parse data from a string according to the given media type - */ - public static parse(rawData: string, mediaType: string | undefined) { - if (mediaType === undefined) { - throw new Error("Cannot parse content. No Content-Type defined."); - } - - if (isTextLikeMimeType(mediaType)) { - return rawData; - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.parse(rawData); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse."); - } -} diff --git a/src/typings/negativeBalanceWarningWebhooks/resource.ts b/src/typings/negativeBalanceWarningWebhooks/resource.ts index f45de4906..fc75f96d4 100644 --- a/src/typings/negativeBalanceWarningWebhooks/resource.ts +++ b/src/typings/negativeBalanceWarningWebhooks/resource.ts @@ -12,45 +12,37 @@ export class Resource { /** * The unique identifier of the balance platform. */ - "balancePlatform"?: string; + 'balancePlatform'?: string; /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. */ - "creationDate"?: Date; + 'creationDate'?: Date; /** * The ID of the resource. */ - "id"?: string; + 'id'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balancePlatform", "baseName": "balancePlatform", - "type": "string", - "format": "" + "type": "string" }, { "name": "creationDate", "baseName": "creationDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Resource.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/negativeBalanceWarningWebhooks/resourceReference.ts b/src/typings/negativeBalanceWarningWebhooks/resourceReference.ts index 27243d873..562106158 100644 --- a/src/typings/negativeBalanceWarningWebhooks/resourceReference.ts +++ b/src/typings/negativeBalanceWarningWebhooks/resourceReference.ts @@ -12,45 +12,37 @@ export class ResourceReference { /** * The description of the resource. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the resource. */ - "id"?: string; + 'id'?: string; /** * The reference for the resource. */ - "reference"?: string; + 'reference'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ResourceReference.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/accountInfo.ts b/src/typings/payment/accountInfo.ts index e1ff1d732..bdc79d3f4 100644 --- a/src/typings/payment/accountInfo.ts +++ b/src/typings/payment/accountInfo.ts @@ -12,215 +12,191 @@ export class AccountInfo { /** * Indicator for the length of time since this shopper account was created in the merchant\'s environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ - "accountAgeIndicator"?: AccountInfo.AccountAgeIndicatorEnum; + 'accountAgeIndicator'?: AccountInfo.AccountAgeIndicatorEnum; /** * Date when the shopper\'s account was last changed. */ - "accountChangeDate"?: Date; + 'accountChangeDate'?: Date; /** * Indicator for the length of time since the shopper\'s account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ - "accountChangeIndicator"?: AccountInfo.AccountChangeIndicatorEnum; + 'accountChangeIndicator'?: AccountInfo.AccountChangeIndicatorEnum; /** * Date when the shopper\'s account was created. */ - "accountCreationDate"?: Date; + 'accountCreationDate'?: Date; /** * Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit */ - "accountType"?: AccountInfo.AccountTypeEnum; + 'accountType'?: AccountInfo.AccountTypeEnum; /** * Number of attempts the shopper tried to add a card to their account in the last day. */ - "addCardAttemptsDay"?: number; + 'addCardAttemptsDay'?: number; /** * Date the selected delivery address was first used. */ - "deliveryAddressUsageDate"?: Date; + 'deliveryAddressUsageDate'?: Date; /** * Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ - "deliveryAddressUsageIndicator"?: AccountInfo.DeliveryAddressUsageIndicatorEnum; + 'deliveryAddressUsageIndicator'?: AccountInfo.DeliveryAddressUsageIndicatorEnum; /** * Shopper\'s home phone number (including the country code). * * @deprecated since Adyen Payment API v68 * Use `ThreeDS2RequestData.homePhone` instead. */ - "homePhone"?: string; + 'homePhone'?: string; /** * Shopper\'s mobile phone number (including the country code). * * @deprecated since Adyen Payment API v68 * Use `ThreeDS2RequestData.mobilePhone` instead. */ - "mobilePhone"?: string; + 'mobilePhone'?: string; /** * Date when the shopper last changed their password. */ - "passwordChangeDate"?: Date; + 'passwordChangeDate'?: Date; /** * Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ - "passwordChangeIndicator"?: AccountInfo.PasswordChangeIndicatorEnum; + 'passwordChangeIndicator'?: AccountInfo.PasswordChangeIndicatorEnum; /** * Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. */ - "pastTransactionsDay"?: number; + 'pastTransactionsDay'?: number; /** * Number of all transactions (successful and abandoned) from this shopper in the past year. */ - "pastTransactionsYear"?: number; + 'pastTransactionsYear'?: number; /** * Date this payment method was added to the shopper\'s account. */ - "paymentAccountAge"?: Date; + 'paymentAccountAge'?: Date; /** * Indicator for the length of time since this payment method was added to this shopper\'s account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days */ - "paymentAccountIndicator"?: AccountInfo.PaymentAccountIndicatorEnum; + 'paymentAccountIndicator'?: AccountInfo.PaymentAccountIndicatorEnum; /** * Number of successful purchases in the last six months. */ - "purchasesLast6Months"?: number; + 'purchasesLast6Months'?: number; /** * Whether suspicious activity was recorded on this account. */ - "suspiciousActivity"?: boolean; + 'suspiciousActivity'?: boolean; /** * Shopper\'s work phone number (including the country code). * * @deprecated since Adyen Payment API v68 * Use `ThreeDS2RequestData.workPhone` instead. */ - "workPhone"?: string; + 'workPhone'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountAgeIndicator", "baseName": "accountAgeIndicator", - "type": "AccountInfo.AccountAgeIndicatorEnum", - "format": "" + "type": "AccountInfo.AccountAgeIndicatorEnum" }, { "name": "accountChangeDate", "baseName": "accountChangeDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "accountChangeIndicator", "baseName": "accountChangeIndicator", - "type": "AccountInfo.AccountChangeIndicatorEnum", - "format": "" + "type": "AccountInfo.AccountChangeIndicatorEnum" }, { "name": "accountCreationDate", "baseName": "accountCreationDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "accountType", "baseName": "accountType", - "type": "AccountInfo.AccountTypeEnum", - "format": "" + "type": "AccountInfo.AccountTypeEnum" }, { "name": "addCardAttemptsDay", "baseName": "addCardAttemptsDay", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "deliveryAddressUsageDate", "baseName": "deliveryAddressUsageDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "deliveryAddressUsageIndicator", "baseName": "deliveryAddressUsageIndicator", - "type": "AccountInfo.DeliveryAddressUsageIndicatorEnum", - "format": "" + "type": "AccountInfo.DeliveryAddressUsageIndicatorEnum" }, { "name": "homePhone", "baseName": "homePhone", - "type": "string", - "format": "" + "type": "string" }, { "name": "mobilePhone", "baseName": "mobilePhone", - "type": "string", - "format": "" + "type": "string" }, { "name": "passwordChangeDate", "baseName": "passwordChangeDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "passwordChangeIndicator", "baseName": "passwordChangeIndicator", - "type": "AccountInfo.PasswordChangeIndicatorEnum", - "format": "" + "type": "AccountInfo.PasswordChangeIndicatorEnum" }, { "name": "pastTransactionsDay", "baseName": "pastTransactionsDay", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "pastTransactionsYear", "baseName": "pastTransactionsYear", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "paymentAccountAge", "baseName": "paymentAccountAge", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "paymentAccountIndicator", "baseName": "paymentAccountIndicator", - "type": "AccountInfo.PaymentAccountIndicatorEnum", - "format": "" + "type": "AccountInfo.PaymentAccountIndicatorEnum" }, { "name": "purchasesLast6Months", "baseName": "purchasesLast6Months", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "suspiciousActivity", "baseName": "suspiciousActivity", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "workPhone", "baseName": "workPhone", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AccountInfo.attributeTypeMap; } - - public constructor() { - } } export namespace AccountInfo { diff --git a/src/typings/payment/acctInfo.ts b/src/typings/payment/acctInfo.ts index 8eace2e21..0c5b1847e 100644 --- a/src/typings/payment/acctInfo.ts +++ b/src/typings/payment/acctInfo.ts @@ -12,176 +12,155 @@ export class AcctInfo { /** * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days */ - "chAccAgeInd"?: AcctInfo.ChAccAgeIndEnum; + 'chAccAgeInd'?: AcctInfo.ChAccAgeIndEnum; /** * Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** */ - "chAccChange"?: string; + 'chAccChange'?: string; /** * Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days */ - "chAccChangeInd"?: AcctInfo.ChAccChangeIndEnum; + 'chAccChangeInd'?: AcctInfo.ChAccChangeIndEnum; /** * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. Format: **YYYYMMDD** */ - "chAccPwChange"?: string; + 'chAccPwChange'?: string; /** * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days */ - "chAccPwChangeInd"?: AcctInfo.ChAccPwChangeIndEnum; + 'chAccPwChangeInd'?: AcctInfo.ChAccPwChangeIndEnum; /** * Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** */ - "chAccString"?: string; + 'chAccString'?: string; /** * Number of purchases with this cardholder account during the previous six months. Max length: 4 characters. */ - "nbPurchaseAccount"?: string; + 'nbPurchaseAccount'?: string; /** * String that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Format: **YYYYMMDD** */ - "paymentAccAge"?: string; + 'paymentAccAge'?: string; /** * Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days */ - "paymentAccInd"?: AcctInfo.PaymentAccIndEnum; + 'paymentAccInd'?: AcctInfo.PaymentAccIndEnum; /** * Number of Add Card attempts in the last 24 hours. Max length: 3 characters. */ - "provisionAttemptsDay"?: string; + 'provisionAttemptsDay'?: string; /** * String when the shipping address used for this transaction was first used with the 3DS Requestor. Format: **YYYYMMDD** */ - "shipAddressUsage"?: string; + 'shipAddressUsage'?: string; /** * Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days */ - "shipAddressUsageInd"?: AcctInfo.ShipAddressUsageIndEnum; + 'shipAddressUsageInd'?: AcctInfo.ShipAddressUsageIndEnum; /** * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name */ - "shipNameIndicator"?: AcctInfo.ShipNameIndicatorEnum; + 'shipNameIndicator'?: AcctInfo.ShipNameIndicatorEnum; /** * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed */ - "suspiciousAccActivity"?: AcctInfo.SuspiciousAccActivityEnum; + 'suspiciousAccActivity'?: AcctInfo.SuspiciousAccActivityEnum; /** * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. */ - "txnActivityDay"?: string; + 'txnActivityDay'?: string; /** * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. Max length: 3 characters. */ - "txnActivityYear"?: string; + 'txnActivityYear'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "chAccAgeInd", "baseName": "chAccAgeInd", - "type": "AcctInfo.ChAccAgeIndEnum", - "format": "" + "type": "AcctInfo.ChAccAgeIndEnum" }, { "name": "chAccChange", "baseName": "chAccChange", - "type": "string", - "format": "" + "type": "string" }, { "name": "chAccChangeInd", "baseName": "chAccChangeInd", - "type": "AcctInfo.ChAccChangeIndEnum", - "format": "" + "type": "AcctInfo.ChAccChangeIndEnum" }, { "name": "chAccPwChange", "baseName": "chAccPwChange", - "type": "string", - "format": "" + "type": "string" }, { "name": "chAccPwChangeInd", "baseName": "chAccPwChangeInd", - "type": "AcctInfo.ChAccPwChangeIndEnum", - "format": "" + "type": "AcctInfo.ChAccPwChangeIndEnum" }, { "name": "chAccString", "baseName": "chAccString", - "type": "string", - "format": "" + "type": "string" }, { "name": "nbPurchaseAccount", "baseName": "nbPurchaseAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentAccAge", "baseName": "paymentAccAge", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentAccInd", "baseName": "paymentAccInd", - "type": "AcctInfo.PaymentAccIndEnum", - "format": "" + "type": "AcctInfo.PaymentAccIndEnum" }, { "name": "provisionAttemptsDay", "baseName": "provisionAttemptsDay", - "type": "string", - "format": "" + "type": "string" }, { "name": "shipAddressUsage", "baseName": "shipAddressUsage", - "type": "string", - "format": "" + "type": "string" }, { "name": "shipAddressUsageInd", "baseName": "shipAddressUsageInd", - "type": "AcctInfo.ShipAddressUsageIndEnum", - "format": "" + "type": "AcctInfo.ShipAddressUsageIndEnum" }, { "name": "shipNameIndicator", "baseName": "shipNameIndicator", - "type": "AcctInfo.ShipNameIndicatorEnum", - "format": "" + "type": "AcctInfo.ShipNameIndicatorEnum" }, { "name": "suspiciousAccActivity", "baseName": "suspiciousAccActivity", - "type": "AcctInfo.SuspiciousAccActivityEnum", - "format": "" + "type": "AcctInfo.SuspiciousAccActivityEnum" }, { "name": "txnActivityDay", "baseName": "txnActivityDay", - "type": "string", - "format": "" + "type": "string" }, { "name": "txnActivityYear", "baseName": "txnActivityYear", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AcctInfo.attributeTypeMap; } - - public constructor() { - } } export namespace AcctInfo { diff --git a/src/typings/payment/additionalData3DSecure.ts b/src/typings/payment/additionalData3DSecure.ts index f81ecf4f0..12335ff29 100644 --- a/src/typings/payment/additionalData3DSecure.ts +++ b/src/typings/payment/additionalData3DSecure.ts @@ -12,76 +12,65 @@ export class AdditionalData3DSecure { /** * Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper\'s experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration. */ - "allow3DS2"?: string; + 'allow3DS2'?: string; /** * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen */ - "challengeWindowSize"?: AdditionalData3DSecure.ChallengeWindowSizeEnum; + 'challengeWindowSize'?: AdditionalData3DSecure.ChallengeWindowSizeEnum; /** * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don\'t perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. */ - "executeThreeD"?: string; + 'executeThreeD'?: string; /** * In case of Secure+, this field must be set to **CUPSecurePlus**. */ - "mpiImplementationType"?: string; + 'mpiImplementationType'?: string; /** * Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** */ - "scaExemption"?: string; + 'scaExemption'?: string; /** * Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen\'s Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error. */ - "threeDSVersion"?: string; + 'threeDSVersion'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "allow3DS2", "baseName": "allow3DS2", - "type": "string", - "format": "" + "type": "string" }, { "name": "challengeWindowSize", "baseName": "challengeWindowSize", - "type": "AdditionalData3DSecure.ChallengeWindowSizeEnum", - "format": "" + "type": "AdditionalData3DSecure.ChallengeWindowSizeEnum" }, { "name": "executeThreeD", "baseName": "executeThreeD", - "type": "string", - "format": "" + "type": "string" }, { "name": "mpiImplementationType", "baseName": "mpiImplementationType", - "type": "string", - "format": "" + "type": "string" }, { "name": "scaExemption", "baseName": "scaExemption", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSVersion", "baseName": "threeDSVersion", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalData3DSecure.attributeTypeMap; } - - public constructor() { - } } export namespace AdditionalData3DSecure { diff --git a/src/typings/payment/additionalDataAirline.ts b/src/typings/payment/additionalDataAirline.ts index ee12a042a..01fcaa128 100644 --- a/src/typings/payment/additionalDataAirline.ts +++ b/src/typings/payment/additionalDataAirline.ts @@ -12,305 +12,271 @@ export class AdditionalDataAirline { /** * The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters */ - "airline_agency_invoice_number"?: string; + 'airline_agency_invoice_number'?: string; /** * The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters */ - "airline_agency_plan_name"?: string; + 'airline_agency_plan_name'?: string; /** * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. */ - "airline_airline_code"?: string; + 'airline_airline_code'?: string; /** * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. */ - "airline_airline_designator_code"?: string; + 'airline_airline_designator_code'?: string; /** * The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 18 characters */ - "airline_boarding_fee"?: string; + 'airline_boarding_fee'?: string; /** * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters */ - "airline_computerized_reservation_system"?: string; + 'airline_computerized_reservation_system'?: string; /** * The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not be all spaces */ - "airline_customer_reference_number"?: string; + 'airline_customer_reference_number'?: string; /** * A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters */ - "airline_document_type"?: string; + 'airline_document_type'?: string; /** * The flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 characters * maxLength: 16 characters */ - "airline_flight_date"?: string; + 'airline_flight_date'?: string; /** * The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD */ - "airline_issue_date"?: string; + 'airline_issue_date'?: string; /** * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros. */ - "airline_leg_carrier_code"?: string; + 'airline_leg_carrier_code'?: string; /** * A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not be all zeros. */ - "airline_leg_class_of_travel"?: string; + 'airline_leg_class_of_travel'?: string; /** * Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters */ - "airline_leg_date_of_travel"?: string; + 'airline_leg_date_of_travel'?: string; /** * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. */ - "airline_leg_depart_airport"?: string; + 'airline_leg_depart_airport'?: string; /** * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 * Must not be all zeros. */ - "airline_leg_depart_tax"?: string; + 'airline_leg_depart_tax'?: string; /** * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros. */ - "airline_leg_destination_code"?: string; + 'airline_leg_destination_code'?: string; /** * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 6 characters * Must not be all spaces * Must not be all zeros. */ - "airline_leg_fare_base_code"?: string; + 'airline_leg_fare_base_code'?: string; /** * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces * Must not be all zeros. */ - "airline_leg_flight_number"?: string; + 'airline_leg_flight_number'?: string; /** * A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character */ - "airline_leg_stop_over_code"?: string; + 'airline_leg_stop_over_code'?: string; /** * The passenger\'s date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 */ - "airline_passenger_date_of_birth"?: string; + 'airline_passenger_date_of_birth'?: string; /** * The passenger\'s first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII */ - "airline_passenger_first_name"?: string; + 'airline_passenger_first_name'?: string; /** * The passenger\'s last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII */ - "airline_passenger_last_name"?: string; + 'airline_passenger_last_name'?: string; /** * The passenger\'s phone number, including country code. This is an alphanumeric field that can include the \'+\' and \'-\' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters */ - "airline_passenger_phone_number"?: string; + 'airline_passenger_phone_number'?: string; /** * The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters */ - "airline_passenger_traveller_type"?: string; + 'airline_passenger_traveller_type'?: string; /** * The passenger\'s name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all zeros. */ - "airline_passenger_name": string; + 'airline_passenger_name': string; /** * The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters */ - "airline_ticket_issue_address"?: string; + 'airline_ticket_issue_address'?: string; /** * The ticket\'s unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros. */ - "airline_ticket_number"?: string; + 'airline_ticket_number'?: string; /** * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * Must not be all zeros. */ - "airline_travel_agency_code"?: string; + 'airline_travel_agency_code'?: string; /** * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros. */ - "airline_travel_agency_name"?: string; + 'airline_travel_agency_name'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "airline_agency_invoice_number", "baseName": "airline.agency_invoice_number", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_agency_plan_name", "baseName": "airline.agency_plan_name", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_airline_code", "baseName": "airline.airline_code", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_airline_designator_code", "baseName": "airline.airline_designator_code", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_boarding_fee", "baseName": "airline.boarding_fee", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_computerized_reservation_system", "baseName": "airline.computerized_reservation_system", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_customer_reference_number", "baseName": "airline.customer_reference_number", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_document_type", "baseName": "airline.document_type", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_flight_date", "baseName": "airline.flight_date", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_issue_date", "baseName": "airline.issue_date", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_leg_carrier_code", "baseName": "airline.leg.carrier_code", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_leg_class_of_travel", "baseName": "airline.leg.class_of_travel", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_leg_date_of_travel", "baseName": "airline.leg.date_of_travel", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_leg_depart_airport", "baseName": "airline.leg.depart_airport", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_leg_depart_tax", "baseName": "airline.leg.depart_tax", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_leg_destination_code", "baseName": "airline.leg.destination_code", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_leg_fare_base_code", "baseName": "airline.leg.fare_base_code", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_leg_flight_number", "baseName": "airline.leg.flight_number", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_leg_stop_over_code", "baseName": "airline.leg.stop_over_code", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_passenger_date_of_birth", "baseName": "airline.passenger.date_of_birth", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_passenger_first_name", "baseName": "airline.passenger.first_name", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_passenger_last_name", "baseName": "airline.passenger.last_name", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_passenger_phone_number", "baseName": "airline.passenger.phone_number", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_passenger_traveller_type", "baseName": "airline.passenger.traveller_type", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_passenger_name", "baseName": "airline.passenger_name", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_ticket_issue_address", "baseName": "airline.ticket_issue_address", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_ticket_number", "baseName": "airline.ticket_number", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_travel_agency_code", "baseName": "airline.travel_agency_code", - "type": "string", - "format": "" + "type": "string" }, { "name": "airline_travel_agency_name", "baseName": "airline.travel_agency_name", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalDataAirline.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/additionalDataCarRental.ts b/src/typings/payment/additionalDataCarRental.ts index 0fe0a48b4..5cfbc0984 100644 --- a/src/typings/payment/additionalDataCarRental.ts +++ b/src/typings/payment/additionalDataCarRental.ts @@ -12,245 +12,217 @@ export class AdditionalDataCarRental { /** * The pick-up date. * Date format: `yyyyMMdd` */ - "carRental_checkOutDate"?: string; + 'carRental_checkOutDate'?: string; /** * The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. */ - "carRental_customerServiceTollFreeNumber"?: string; + 'carRental_customerServiceTollFreeNumber'?: string; /** * Number of days for which the car is being rented. * Format: Numeric * maxLength: 4 * Must not be all spaces */ - "carRental_daysRented"?: string; + 'carRental_daysRented'?: string; /** * Any fuel charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 */ - "carRental_fuelCharges"?: string; + 'carRental_fuelCharges'?: string; /** * Any insurance charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * Must not be all spaces *Must not be all zeros. */ - "carRental_insuranceCharges"?: string; + 'carRental_insuranceCharges'?: string; /** * The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. */ - "carRental_locationCity"?: string; + 'carRental_locationCity'?: string; /** * The country where the car is rented, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 */ - "carRental_locationCountry"?: string; + 'carRental_locationCountry'?: string; /** * The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all zeros. */ - "carRental_locationStateProvince"?: string; + 'carRental_locationStateProvince'?: string; /** * Indicates if the customer didn\'t pick up their rental car. * Y - Customer did not pick up their car * N - Not applicable */ - "carRental_noShowIndicator"?: string; + 'carRental_noShowIndicator'?: string; /** * The charge for not returning a car to the original rental location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 */ - "carRental_oneWayDropOffCharges"?: string; + 'carRental_oneWayDropOffCharges'?: string; /** * The daily rental rate, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * maxLength: 12 */ - "carRental_rate"?: string; + 'carRental_rate'?: string; /** * Specifies whether the given rate is applied daily or weekly. * D - Daily rate * W - Weekly rate */ - "carRental_rateIndicator"?: string; + 'carRental_rateIndicator'?: string; /** * The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all zeros. */ - "carRental_rentalAgreementNumber"?: string; + 'carRental_rentalAgreementNumber'?: string; /** * The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. */ - "carRental_rentalClassId"?: string; + 'carRental_rentalClassId'?: string; /** * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start with a space or be all spaces *Must not be all zeros. */ - "carRental_renterName"?: string; + 'carRental_renterName'?: string; /** * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. */ - "carRental_returnCity"?: string; + 'carRental_returnCity'?: string; /** * The country where the car must be returned, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 */ - "carRental_returnCountry"?: string; + 'carRental_returnCountry'?: string; /** * The last date to return the car by. * Date format: `yyyyMMdd` * maxLength: 8 */ - "carRental_returnDate"?: string; + 'carRental_returnDate'?: string; /** * The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must not be all zeros. */ - "carRental_returnLocationId"?: string; + 'carRental_returnLocationId'?: string; /** * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must not be all zeros. */ - "carRental_returnStateProvince"?: string; + 'carRental_returnStateProvince'?: string; /** * Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not collected */ - "carRental_taxExemptIndicator"?: string; + 'carRental_taxExemptIndicator'?: string; /** * Number of days the car is rented for. This should be included in the auth message. * Format: Numeric * maxLength: 4 */ - "travelEntertainmentAuthData_duration"?: string; + 'travelEntertainmentAuthData_duration'?: string; /** * Indicates what market-specific dataset will be submitted or is being submitted. Value should be \'A\' for car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 */ - "travelEntertainmentAuthData_market"?: string; + 'travelEntertainmentAuthData_market'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "carRental_checkOutDate", "baseName": "carRental.checkOutDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_customerServiceTollFreeNumber", "baseName": "carRental.customerServiceTollFreeNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_daysRented", "baseName": "carRental.daysRented", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_fuelCharges", "baseName": "carRental.fuelCharges", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_insuranceCharges", "baseName": "carRental.insuranceCharges", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_locationCity", "baseName": "carRental.locationCity", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_locationCountry", "baseName": "carRental.locationCountry", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_locationStateProvince", "baseName": "carRental.locationStateProvince", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_noShowIndicator", "baseName": "carRental.noShowIndicator", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_oneWayDropOffCharges", "baseName": "carRental.oneWayDropOffCharges", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_rate", "baseName": "carRental.rate", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_rateIndicator", "baseName": "carRental.rateIndicator", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_rentalAgreementNumber", "baseName": "carRental.rentalAgreementNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_rentalClassId", "baseName": "carRental.rentalClassId", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_renterName", "baseName": "carRental.renterName", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_returnCity", "baseName": "carRental.returnCity", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_returnCountry", "baseName": "carRental.returnCountry", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_returnDate", "baseName": "carRental.returnDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_returnLocationId", "baseName": "carRental.returnLocationId", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_returnStateProvince", "baseName": "carRental.returnStateProvince", - "type": "string", - "format": "" + "type": "string" }, { "name": "carRental_taxExemptIndicator", "baseName": "carRental.taxExemptIndicator", - "type": "string", - "format": "" + "type": "string" }, { "name": "travelEntertainmentAuthData_duration", "baseName": "travelEntertainmentAuthData.duration", - "type": "string", - "format": "" + "type": "string" }, { "name": "travelEntertainmentAuthData_market", "baseName": "travelEntertainmentAuthData.market", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalDataCarRental.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/additionalDataCommon.ts b/src/typings/payment/additionalDataCommon.ts index 0d3459c02..1407bcbf1 100644 --- a/src/typings/payment/additionalDataCommon.ts +++ b/src/typings/payment/additionalDataCommon.ts @@ -12,226 +12,200 @@ export class AdditionalDataCommon { /** * Triggers test scenarios that allow to replicate certain acquirer response codes. See [Testing result codes and refusal reasons](https://docs.adyen.com/development-resources/testing/result-codes/) to learn about the possible values, and the `refusalReason` values you can trigger. */ - "RequestedTestAcquirerResponseCode"?: string; + 'RequestedTestAcquirerResponseCode'?: string; /** * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn\'t a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. */ - "RequestedTestErrorResponseCode"?: string; + 'RequestedTestErrorResponseCode'?: string; /** * Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account. If a payment was partially authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount in additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. */ - "allowPartialAuth"?: string; + 'allowPartialAuth'?: string; /** * Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation. */ - "authorisationType"?: string; + 'authorisationType'?: string; /** * Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window. */ - "autoRescue"?: string; + 'autoRescue'?: string; /** * Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request\'s additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). */ - "customRoutingFlag"?: string; + 'customRoutingFlag'?: string; /** * In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. */ - "industryUsage"?: AdditionalDataCommon.IndustryUsageEnum; + 'industryUsage'?: AdditionalDataCommon.IndustryUsageEnum; /** * Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction. */ - "manualCapture"?: string; + 'manualCapture'?: string; /** * The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days. */ - "maxDaysToRescue"?: string; + 'maxDaysToRescue'?: string; /** * Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT. */ - "networkTxReference"?: string; + 'networkTxReference'?: string; /** * Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. */ - "overwriteBrand"?: string; + 'overwriteBrand'?: string; /** * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant\'s address. * Format: alpha-numeric. * Maximum length: 13 characters. */ - "subMerchantCity"?: string; + 'subMerchantCity'?: string; /** * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant\'s address. * Format: alpha-numeric. * Fixed length: 3 characters. */ - "subMerchantCountry"?: string; + 'subMerchantCountry'?: string; /** * This field is required for transactions performed by registered payment facilitators. This field contains the email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters */ - "subMerchantEmail"?: string; + 'subMerchantEmail'?: string; /** * This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. */ - "subMerchantID"?: string; + 'subMerchantID'?: string; /** * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters. */ - "subMerchantName"?: string; + 'subMerchantName'?: string; /** * This field is required for transactions performed by registered payment facilitators. This field contains the phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters */ - "subMerchantPhoneNumber"?: string; + 'subMerchantPhoneNumber'?: string; /** * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant\'s address. * Format: alpha-numeric. * Maximum length: 10 characters. */ - "subMerchantPostalCode"?: string; + 'subMerchantPostalCode'?: string; /** * This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant\'s address. * Format: alpha-numeric. * Maximum length: 3 characters. */ - "subMerchantState"?: string; + 'subMerchantState'?: string; /** * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant\'s address. * Format: alpha-numeric. * Maximum length: 60 characters. */ - "subMerchantStreet"?: string; + 'subMerchantStreet'?: string; /** * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters. */ - "subMerchantTaxId"?: string; + 'subMerchantTaxId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "RequestedTestAcquirerResponseCode", "baseName": "RequestedTestAcquirerResponseCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "RequestedTestErrorResponseCode", "baseName": "RequestedTestErrorResponseCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "allowPartialAuth", "baseName": "allowPartialAuth", - "type": "string", - "format": "" + "type": "string" }, { "name": "authorisationType", "baseName": "authorisationType", - "type": "string", - "format": "" + "type": "string" }, { "name": "autoRescue", "baseName": "autoRescue", - "type": "string", - "format": "" + "type": "string" }, { "name": "customRoutingFlag", "baseName": "customRoutingFlag", - "type": "string", - "format": "" + "type": "string" }, { "name": "industryUsage", "baseName": "industryUsage", - "type": "AdditionalDataCommon.IndustryUsageEnum", - "format": "" + "type": "AdditionalDataCommon.IndustryUsageEnum" }, { "name": "manualCapture", "baseName": "manualCapture", - "type": "string", - "format": "" + "type": "string" }, { "name": "maxDaysToRescue", "baseName": "maxDaysToRescue", - "type": "string", - "format": "" + "type": "string" }, { "name": "networkTxReference", "baseName": "networkTxReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "overwriteBrand", "baseName": "overwriteBrand", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchantCity", "baseName": "subMerchantCity", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchantCountry", "baseName": "subMerchantCountry", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchantEmail", "baseName": "subMerchantEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchantID", "baseName": "subMerchantID", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchantName", "baseName": "subMerchantName", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchantPhoneNumber", "baseName": "subMerchantPhoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchantPostalCode", "baseName": "subMerchantPostalCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchantState", "baseName": "subMerchantState", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchantStreet", "baseName": "subMerchantStreet", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchantTaxId", "baseName": "subMerchantTaxId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalDataCommon.attributeTypeMap; } - - public constructor() { - } } export namespace AdditionalDataCommon { diff --git a/src/typings/payment/additionalDataLevel23.ts b/src/typings/payment/additionalDataLevel23.ts index 82ee394b1..963c2a9de 100644 --- a/src/typings/payment/additionalDataLevel23.ts +++ b/src/typings/payment/additionalDataLevel23.ts @@ -12,185 +12,163 @@ export class AdditionalDataLevel23 { /** * The reference number to identify the customer and their order. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ - "enhancedSchemeData_customerReference"?: string; + 'enhancedSchemeData_customerReference'?: string; /** * The three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * Encoding: ASCII * Fixed length: 3 characters */ - "enhancedSchemeData_destinationCountryCode"?: string; + 'enhancedSchemeData_destinationCountryCode'?: string; /** * The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. */ - "enhancedSchemeData_destinationPostalCode"?: string; + 'enhancedSchemeData_destinationPostalCode'?: string; /** * The state or province code of the destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a space. */ - "enhancedSchemeData_destinationStateProvinceCode"?: string; + 'enhancedSchemeData_destinationStateProvinceCode'?: string; /** * The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ - "enhancedSchemeData_dutyAmount"?: string; + 'enhancedSchemeData_dutyAmount'?: string; /** * The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ - "enhancedSchemeData_freightAmount"?: string; + '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. */ - "enhancedSchemeData_itemDetailLine_itemNr_commodityCode"?: string; + 'enhancedSchemeData_itemDetailLine_itemNr_commodityCode'?: string; /** * A description of the item. * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not start with a space or be all spaces. * Must not be all zeros. */ - "enhancedSchemeData_itemDetailLine_itemNr_description"?: string; + 'enhancedSchemeData_itemDetailLine_itemNr_description'?: string; /** * The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ - "enhancedSchemeData_itemDetailLine_itemNr_discountAmount"?: string; + 'enhancedSchemeData_itemDetailLine_itemNr_discountAmount'?: string; /** * The product code. Must be a unique product code associated with the item or service. This can be your unique code for the item, or the manufacturer\'s product code. * Encoding: ASCII. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ - "enhancedSchemeData_itemDetailLine_itemNr_productCode"?: string; + 'enhancedSchemeData_itemDetailLine_itemNr_productCode'?: string; /** * The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a space or be all spaces. */ - "enhancedSchemeData_itemDetailLine_itemNr_quantity"?: string; + 'enhancedSchemeData_itemDetailLine_itemNr_quantity'?: string; /** * The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). See [Amount requirements for level 2/3 ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) to learn more about how to calculate the line item total. * For example, 2000 means USD 20.00. * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ - "enhancedSchemeData_itemDetailLine_itemNr_totalAmount"?: string; + 'enhancedSchemeData_itemDetailLine_itemNr_totalAmount'?: string; /** * The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. */ - "enhancedSchemeData_itemDetailLine_itemNr_unitOfMeasure"?: string; + 'enhancedSchemeData_itemDetailLine_itemNr_unitOfMeasure'?: string; /** * The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. */ - "enhancedSchemeData_itemDetailLine_itemNr_unitPrice"?: string; + 'enhancedSchemeData_itemDetailLine_itemNr_unitPrice'?: string; /** * The order date. * Format: `ddMMyy` * Encoding: ASCII * Max length: 6 characters */ - "enhancedSchemeData_orderDate"?: string; + 'enhancedSchemeData_orderDate'?: string; /** * The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space or be all spaces. * Must not be all zeros.For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. */ - "enhancedSchemeData_shipFromPostalCode"?: string; + 'enhancedSchemeData_shipFromPostalCode'?: string; /** * The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. */ - "enhancedSchemeData_totalTaxAmount"?: string; + 'enhancedSchemeData_totalTaxAmount'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "enhancedSchemeData_customerReference", "baseName": "enhancedSchemeData.customerReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_destinationCountryCode", "baseName": "enhancedSchemeData.destinationCountryCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_destinationPostalCode", "baseName": "enhancedSchemeData.destinationPostalCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_destinationStateProvinceCode", "baseName": "enhancedSchemeData.destinationStateProvinceCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_dutyAmount", "baseName": "enhancedSchemeData.dutyAmount", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_freightAmount", "baseName": "enhancedSchemeData.freightAmount", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_itemDetailLine_itemNr_commodityCode", "baseName": "enhancedSchemeData.itemDetailLine[itemNr].commodityCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_itemDetailLine_itemNr_description", "baseName": "enhancedSchemeData.itemDetailLine[itemNr].description", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_itemDetailLine_itemNr_discountAmount", "baseName": "enhancedSchemeData.itemDetailLine[itemNr].discountAmount", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_itemDetailLine_itemNr_productCode", "baseName": "enhancedSchemeData.itemDetailLine[itemNr].productCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_itemDetailLine_itemNr_quantity", "baseName": "enhancedSchemeData.itemDetailLine[itemNr].quantity", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_itemDetailLine_itemNr_totalAmount", "baseName": "enhancedSchemeData.itemDetailLine[itemNr].totalAmount", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_itemDetailLine_itemNr_unitOfMeasure", "baseName": "enhancedSchemeData.itemDetailLine[itemNr].unitOfMeasure", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_itemDetailLine_itemNr_unitPrice", "baseName": "enhancedSchemeData.itemDetailLine[itemNr].unitPrice", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_orderDate", "baseName": "enhancedSchemeData.orderDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_shipFromPostalCode", "baseName": "enhancedSchemeData.shipFromPostalCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_totalTaxAmount", "baseName": "enhancedSchemeData.totalTaxAmount", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalDataLevel23.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/additionalDataLodging.ts b/src/typings/payment/additionalDataLodging.ts index 4c2249ae8..b251e86c2 100644 --- a/src/typings/payment/additionalDataLodging.ts +++ b/src/typings/payment/additionalDataLodging.ts @@ -12,185 +12,163 @@ export class AdditionalDataLodging { /** * A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit */ - "lodging_SpecialProgramCode"?: string; + 'lodging_SpecialProgramCode'?: string; /** * The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. */ - "lodging_checkInDate"?: string; + 'lodging_checkInDate'?: string; /** * The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. */ - "lodging_checkOutDate"?: string; + 'lodging_checkOutDate'?: string; /** * The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. */ - "lodging_customerServiceTollFreeNumber"?: string; + 'lodging_customerServiceTollFreeNumber'?: string; /** * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be \'Y\' or \'N\'. * Format: alphabetic * Max length: 1 character */ - "lodging_fireSafetyActIndicator"?: string; + 'lodging_fireSafetyActIndicator'?: string; /** * The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters */ - "lodging_folioCashAdvances"?: string; + 'lodging_folioCashAdvances'?: string; /** * The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros. */ - "lodging_folioNumber"?: string; + 'lodging_folioNumber'?: string; /** * Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters */ - "lodging_foodBeverageCharges"?: string; + 'lodging_foodBeverageCharges'?: string; /** * Indicates if the customer didn\'t check in for their booking. Possible values: * **Y**: the customer didn\'t check in * **N**: the customer checked in */ - "lodging_noShowIndicator"?: string; + 'lodging_noShowIndicator'?: string; /** * The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters */ - "lodging_prepaidExpenses"?: string; + 'lodging_prepaidExpenses'?: string; /** * The lodging property location\'s phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. */ - "lodging_propertyPhoneNumber"?: string; + 'lodging_propertyPhoneNumber'?: string; /** * The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters */ - "lodging_room1_numberOfNights"?: string; + 'lodging_room1_numberOfNights'?: string; /** * The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number */ - "lodging_room1_rate"?: string; + 'lodging_room1_rate'?: string; /** * The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number */ - "lodging_totalRoomTax"?: string; + 'lodging_totalRoomTax'?: string; /** * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number */ - "lodging_totalTax"?: string; + 'lodging_totalTax'?: string; /** * The number of nights. This should be included in the auth message. * Format: numeric * Max length: 4 characters */ - "travelEntertainmentAuthData_duration"?: string; + 'travelEntertainmentAuthData_duration'?: string; /** * Indicates what market-specific dataset will be submitted. Must be \'H\' for Hotel. This should be included in the auth message. * Format: alphanumeric * Max length: 1 character */ - "travelEntertainmentAuthData_market"?: string; + 'travelEntertainmentAuthData_market'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "lodging_SpecialProgramCode", "baseName": "lodging.SpecialProgramCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "lodging_checkInDate", "baseName": "lodging.checkInDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "lodging_checkOutDate", "baseName": "lodging.checkOutDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "lodging_customerServiceTollFreeNumber", "baseName": "lodging.customerServiceTollFreeNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "lodging_fireSafetyActIndicator", "baseName": "lodging.fireSafetyActIndicator", - "type": "string", - "format": "" + "type": "string" }, { "name": "lodging_folioCashAdvances", "baseName": "lodging.folioCashAdvances", - "type": "string", - "format": "" + "type": "string" }, { "name": "lodging_folioNumber", "baseName": "lodging.folioNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "lodging_foodBeverageCharges", "baseName": "lodging.foodBeverageCharges", - "type": "string", - "format": "" + "type": "string" }, { "name": "lodging_noShowIndicator", "baseName": "lodging.noShowIndicator", - "type": "string", - "format": "" + "type": "string" }, { "name": "lodging_prepaidExpenses", "baseName": "lodging.prepaidExpenses", - "type": "string", - "format": "" + "type": "string" }, { "name": "lodging_propertyPhoneNumber", "baseName": "lodging.propertyPhoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "lodging_room1_numberOfNights", "baseName": "lodging.room1.numberOfNights", - "type": "string", - "format": "" + "type": "string" }, { "name": "lodging_room1_rate", "baseName": "lodging.room1.rate", - "type": "string", - "format": "" + "type": "string" }, { "name": "lodging_totalRoomTax", "baseName": "lodging.totalRoomTax", - "type": "string", - "format": "" + "type": "string" }, { "name": "lodging_totalTax", "baseName": "lodging.totalTax", - "type": "string", - "format": "" + "type": "string" }, { "name": "travelEntertainmentAuthData_duration", "baseName": "travelEntertainmentAuthData.duration", - "type": "string", - "format": "" + "type": "string" }, { "name": "travelEntertainmentAuthData_market", "baseName": "travelEntertainmentAuthData.market", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalDataLodging.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/additionalDataModifications.ts b/src/typings/payment/additionalDataModifications.ts index 2ff24f123..d017a671c 100644 --- a/src/typings/payment/additionalDataModifications.ts +++ b/src/typings/payment/additionalDataModifications.ts @@ -12,25 +12,19 @@ export class AdditionalDataModifications { /** * This is the installment option selected by the shopper. It is required only if specified by the user. */ - "installmentPaymentData_selectedInstallmentOption"?: string; + 'installmentPaymentData_selectedInstallmentOption'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "installmentPaymentData_selectedInstallmentOption", "baseName": "installmentPaymentData.selectedInstallmentOption", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalDataModifications.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/additionalDataOpenInvoice.ts b/src/typings/payment/additionalDataOpenInvoice.ts index 96089340c..457c9da32 100644 --- a/src/typings/payment/additionalDataOpenInvoice.ts +++ b/src/typings/payment/additionalDataOpenInvoice.ts @@ -12,195 +12,172 @@ export class AdditionalDataOpenInvoice { /** * Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it\'s not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. */ - "openinvoicedata_merchantData"?: string; + 'openinvoicedata_merchantData'?: string; /** * The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. */ - "openinvoicedata_numberOfLines"?: string; + 'openinvoicedata_numberOfLines'?: string; /** * First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. */ - "openinvoicedata_recipientFirstName"?: string; + 'openinvoicedata_recipientFirstName'?: string; /** * Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. */ - "openinvoicedata_recipientLastName"?: string; + 'openinvoicedata_recipientLastName'?: string; /** * The three-character ISO currency code. */ - "openinvoicedataLine_itemNr_currencyCode"?: string; + 'openinvoicedataLine_itemNr_currencyCode'?: string; /** * A text description of the product the invoice line refers to. */ - "openinvoicedataLine_itemNr_description"?: string; + 'openinvoicedataLine_itemNr_description'?: string; /** * The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. */ - "openinvoicedataLine_itemNr_itemAmount"?: string; + 'openinvoicedataLine_itemNr_itemAmount'?: string; /** * A unique id for this item. Required for RatePay if the description of each item is not unique. */ - "openinvoicedataLine_itemNr_itemId"?: string; + 'openinvoicedataLine_itemNr_itemId'?: string; /** * The VAT due for one item in the invoice line, represented in minor units. */ - "openinvoicedataLine_itemNr_itemVatAmount"?: string; + 'openinvoicedataLine_itemNr_itemVatAmount'?: string; /** * The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. */ - "openinvoicedataLine_itemNr_itemVatPercentage"?: string; + 'openinvoicedataLine_itemNr_itemVatPercentage'?: string; /** * The number of units purchased of a specific product. */ - "openinvoicedataLine_itemNr_numberOfItems"?: string; + 'openinvoicedataLine_itemNr_numberOfItems'?: string; /** * Name of the shipping company handling the the return shipment. */ - "openinvoicedataLine_itemNr_returnShippingCompany"?: string; + 'openinvoicedataLine_itemNr_returnShippingCompany'?: string; /** * The tracking number for the return of the shipment. */ - "openinvoicedataLine_itemNr_returnTrackingNumber"?: string; + 'openinvoicedataLine_itemNr_returnTrackingNumber'?: string; /** * URI where the customer can track the return of their shipment. */ - "openinvoicedataLine_itemNr_returnTrackingUri"?: string; + 'openinvoicedataLine_itemNr_returnTrackingUri'?: string; /** * Name of the shipping company handling the delivery. */ - "openinvoicedataLine_itemNr_shippingCompany"?: string; + 'openinvoicedataLine_itemNr_shippingCompany'?: string; /** * Shipping method. */ - "openinvoicedataLine_itemNr_shippingMethod"?: string; + 'openinvoicedataLine_itemNr_shippingMethod'?: string; /** * The tracking number for the shipment. */ - "openinvoicedataLine_itemNr_trackingNumber"?: string; + 'openinvoicedataLine_itemNr_trackingNumber'?: string; /** * URI where the customer can track their shipment. */ - "openinvoicedataLine_itemNr_trackingUri"?: string; + 'openinvoicedataLine_itemNr_trackingUri'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "openinvoicedata_merchantData", "baseName": "openinvoicedata.merchantData", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedata_numberOfLines", "baseName": "openinvoicedata.numberOfLines", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedata_recipientFirstName", "baseName": "openinvoicedata.recipientFirstName", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedata_recipientLastName", "baseName": "openinvoicedata.recipientLastName", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedataLine_itemNr_currencyCode", "baseName": "openinvoicedataLine[itemNr].currencyCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedataLine_itemNr_description", "baseName": "openinvoicedataLine[itemNr].description", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedataLine_itemNr_itemAmount", "baseName": "openinvoicedataLine[itemNr].itemAmount", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedataLine_itemNr_itemId", "baseName": "openinvoicedataLine[itemNr].itemId", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedataLine_itemNr_itemVatAmount", "baseName": "openinvoicedataLine[itemNr].itemVatAmount", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedataLine_itemNr_itemVatPercentage", "baseName": "openinvoicedataLine[itemNr].itemVatPercentage", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedataLine_itemNr_numberOfItems", "baseName": "openinvoicedataLine[itemNr].numberOfItems", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedataLine_itemNr_returnShippingCompany", "baseName": "openinvoicedataLine[itemNr].returnShippingCompany", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedataLine_itemNr_returnTrackingNumber", "baseName": "openinvoicedataLine[itemNr].returnTrackingNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedataLine_itemNr_returnTrackingUri", "baseName": "openinvoicedataLine[itemNr].returnTrackingUri", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedataLine_itemNr_shippingCompany", "baseName": "openinvoicedataLine[itemNr].shippingCompany", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedataLine_itemNr_shippingMethod", "baseName": "openinvoicedataLine[itemNr].shippingMethod", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedataLine_itemNr_trackingNumber", "baseName": "openinvoicedataLine[itemNr].trackingNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "openinvoicedataLine_itemNr_trackingUri", "baseName": "openinvoicedataLine[itemNr].trackingUri", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalDataOpenInvoice.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/additionalDataOpi.ts b/src/typings/payment/additionalDataOpi.ts index 15fefed27..7b45a8b46 100644 --- a/src/typings/payment/additionalDataOpi.ts +++ b/src/typings/payment/additionalDataOpi.ts @@ -12,25 +12,19 @@ export class AdditionalDataOpi { /** * Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). */ - "opi_includeTransToken"?: string; + 'opi_includeTransToken'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "opi_includeTransToken", "baseName": "opi.includeTransToken", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalDataOpi.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/additionalDataRatepay.ts b/src/typings/payment/additionalDataRatepay.ts index f17c0728e..56291dec3 100644 --- a/src/typings/payment/additionalDataRatepay.ts +++ b/src/typings/payment/additionalDataRatepay.ts @@ -12,95 +12,82 @@ export class AdditionalDataRatepay { /** * Amount the customer has to pay each month. */ - "ratepay_installmentAmount"?: string; + 'ratepay_installmentAmount'?: string; /** * Interest rate of this installment. */ - "ratepay_interestRate"?: string; + 'ratepay_interestRate'?: string; /** * Amount of the last installment. */ - "ratepay_lastInstallmentAmount"?: string; + 'ratepay_lastInstallmentAmount'?: string; /** * Calendar day of the first payment. */ - "ratepay_paymentFirstday"?: string; + 'ratepay_paymentFirstday'?: string; /** * Date the merchant delivered the goods to the customer. */ - "ratepaydata_deliveryDate"?: string; + 'ratepaydata_deliveryDate'?: string; /** * Date by which the customer must settle the payment. */ - "ratepaydata_dueDate"?: string; + 'ratepaydata_dueDate'?: string; /** * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. */ - "ratepaydata_invoiceDate"?: string; + 'ratepaydata_invoiceDate'?: string; /** * Identification name or number for the invoice, defined by the merchant. */ - "ratepaydata_invoiceId"?: string; + 'ratepaydata_invoiceId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "ratepay_installmentAmount", "baseName": "ratepay.installmentAmount", - "type": "string", - "format": "" + "type": "string" }, { "name": "ratepay_interestRate", "baseName": "ratepay.interestRate", - "type": "string", - "format": "" + "type": "string" }, { "name": "ratepay_lastInstallmentAmount", "baseName": "ratepay.lastInstallmentAmount", - "type": "string", - "format": "" + "type": "string" }, { "name": "ratepay_paymentFirstday", "baseName": "ratepay.paymentFirstday", - "type": "string", - "format": "" + "type": "string" }, { "name": "ratepaydata_deliveryDate", "baseName": "ratepaydata.deliveryDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "ratepaydata_dueDate", "baseName": "ratepaydata.dueDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "ratepaydata_invoiceDate", "baseName": "ratepaydata.invoiceDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "ratepaydata_invoiceId", "baseName": "ratepaydata.invoiceId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalDataRatepay.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/additionalDataRetry.ts b/src/typings/payment/additionalDataRetry.ts index 863fd5170..ddf585702 100644 --- a/src/typings/payment/additionalDataRetry.ts +++ b/src/typings/payment/additionalDataRetry.ts @@ -12,45 +12,37 @@ export class AdditionalDataRetry { /** * The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. */ - "retry_chainAttemptNumber"?: string; + 'retry_chainAttemptNumber'?: string; /** * The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. */ - "retry_orderAttemptNumber"?: string; + 'retry_orderAttemptNumber'?: string; /** * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. */ - "retry_skipRetry"?: string; + 'retry_skipRetry'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "retry_chainAttemptNumber", "baseName": "retry.chainAttemptNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "retry_orderAttemptNumber", "baseName": "retry.orderAttemptNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "retry_skipRetry", "baseName": "retry.skipRetry", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalDataRetry.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/additionalDataRisk.ts b/src/typings/payment/additionalDataRisk.ts index 6faa41202..bbcc0be40 100644 --- a/src/typings/payment/additionalDataRisk.ts +++ b/src/typings/payment/additionalDataRisk.ts @@ -12,225 +12,199 @@ export class AdditionalDataRisk { /** * The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). */ - "riskdata__customFieldName"?: string; + 'riskdata__customFieldName'?: string; /** * The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ - "riskdata_basket_item_itemNr_amountPerItem"?: string; + 'riskdata_basket_item_itemNr_amountPerItem'?: string; /** * Brand of the item. */ - "riskdata_basket_item_itemNr_brand"?: string; + 'riskdata_basket_item_itemNr_brand'?: string; /** * Category of the item. */ - "riskdata_basket_item_itemNr_category"?: string; + 'riskdata_basket_item_itemNr_category'?: string; /** * Color of the item. */ - "riskdata_basket_item_itemNr_color"?: string; + 'riskdata_basket_item_itemNr_color'?: string; /** * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). */ - "riskdata_basket_item_itemNr_currency"?: string; + 'riskdata_basket_item_itemNr_currency'?: string; /** * ID of the item. */ - "riskdata_basket_item_itemNr_itemID"?: string; + 'riskdata_basket_item_itemNr_itemID'?: string; /** * Manufacturer of the item. */ - "riskdata_basket_item_itemNr_manufacturer"?: string; + 'riskdata_basket_item_itemNr_manufacturer'?: string; /** * A text description of the product the invoice line refers to. */ - "riskdata_basket_item_itemNr_productTitle"?: string; + 'riskdata_basket_item_itemNr_productTitle'?: string; /** * Quantity of the item purchased. */ - "riskdata_basket_item_itemNr_quantity"?: string; + 'riskdata_basket_item_itemNr_quantity'?: string; /** * Email associated with the given product in the basket (usually in electronic gift cards). */ - "riskdata_basket_item_itemNr_receiverEmail"?: string; + 'riskdata_basket_item_itemNr_receiverEmail'?: string; /** * Size of the item. */ - "riskdata_basket_item_itemNr_size"?: string; + 'riskdata_basket_item_itemNr_size'?: string; /** * [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). */ - "riskdata_basket_item_itemNr_sku"?: string; + 'riskdata_basket_item_itemNr_sku'?: string; /** * [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). */ - "riskdata_basket_item_itemNr_upc"?: string; + 'riskdata_basket_item_itemNr_upc'?: string; /** * Code of the promotion. */ - "riskdata_promotions_promotion_itemNr_promotionCode"?: string; + 'riskdata_promotions_promotion_itemNr_promotionCode'?: string; /** * The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ - "riskdata_promotions_promotion_itemNr_promotionDiscountAmount"?: string; + 'riskdata_promotions_promotion_itemNr_promotionDiscountAmount'?: string; /** * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). */ - "riskdata_promotions_promotion_itemNr_promotionDiscountCurrency"?: string; + 'riskdata_promotions_promotion_itemNr_promotionDiscountCurrency'?: string; /** * Promotion\'s percentage discount. It is represented in percentage value and there is no need to include the \'%\' sign. e.g. for a promotion discount of 30%, the value of the field should be 30. */ - "riskdata_promotions_promotion_itemNr_promotionDiscountPercentage"?: string; + 'riskdata_promotions_promotion_itemNr_promotionDiscountPercentage'?: string; /** * Name of the promotion. */ - "riskdata_promotions_promotion_itemNr_promotionName"?: string; + 'riskdata_promotions_promotion_itemNr_promotionName'?: string; /** * Reference number of the risk profile that you want to apply to the payment. If not provided or left blank, the merchant-level account\'s default risk profile will be applied to the payment. For more information, see [dynamically assign a risk profile to a payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). */ - "riskdata_riskProfileReference"?: string; + 'riskdata_riskProfileReference'?: string; /** * If this parameter is provided with the value **true**, risk checks for the payment request are skipped and the transaction will not get a risk score. */ - "riskdata_skipRisk"?: string; + 'riskdata_skipRisk'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "riskdata__customFieldName", "baseName": "riskdata.[customFieldName]", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_basket_item_itemNr_amountPerItem", "baseName": "riskdata.basket.item[itemNr].amountPerItem", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_basket_item_itemNr_brand", "baseName": "riskdata.basket.item[itemNr].brand", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_basket_item_itemNr_category", "baseName": "riskdata.basket.item[itemNr].category", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_basket_item_itemNr_color", "baseName": "riskdata.basket.item[itemNr].color", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_basket_item_itemNr_currency", "baseName": "riskdata.basket.item[itemNr].currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_basket_item_itemNr_itemID", "baseName": "riskdata.basket.item[itemNr].itemID", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_basket_item_itemNr_manufacturer", "baseName": "riskdata.basket.item[itemNr].manufacturer", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_basket_item_itemNr_productTitle", "baseName": "riskdata.basket.item[itemNr].productTitle", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_basket_item_itemNr_quantity", "baseName": "riskdata.basket.item[itemNr].quantity", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_basket_item_itemNr_receiverEmail", "baseName": "riskdata.basket.item[itemNr].receiverEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_basket_item_itemNr_size", "baseName": "riskdata.basket.item[itemNr].size", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_basket_item_itemNr_sku", "baseName": "riskdata.basket.item[itemNr].sku", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_basket_item_itemNr_upc", "baseName": "riskdata.basket.item[itemNr].upc", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_promotions_promotion_itemNr_promotionCode", "baseName": "riskdata.promotions.promotion[itemNr].promotionCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_promotions_promotion_itemNr_promotionDiscountAmount", "baseName": "riskdata.promotions.promotion[itemNr].promotionDiscountAmount", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_promotions_promotion_itemNr_promotionDiscountCurrency", "baseName": "riskdata.promotions.promotion[itemNr].promotionDiscountCurrency", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_promotions_promotion_itemNr_promotionDiscountPercentage", "baseName": "riskdata.promotions.promotion[itemNr].promotionDiscountPercentage", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_promotions_promotion_itemNr_promotionName", "baseName": "riskdata.promotions.promotion[itemNr].promotionName", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_riskProfileReference", "baseName": "riskdata.riskProfileReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskdata_skipRisk", "baseName": "riskdata.skipRisk", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalDataRisk.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/additionalDataRiskStandalone.ts b/src/typings/payment/additionalDataRiskStandalone.ts index 3fdd92d4f..7769bca5e 100644 --- a/src/typings/payment/additionalDataRiskStandalone.ts +++ b/src/typings/payment/additionalDataRiskStandalone.ts @@ -12,165 +12,145 @@ export class AdditionalDataRiskStandalone { /** * Shopper\'s country of residence in the form of ISO standard 3166 2-character country codes. */ - "PayPal_CountryCode"?: string; + 'PayPal_CountryCode'?: string; /** * Shopper\'s email. */ - "PayPal_EmailId"?: string; + 'PayPal_EmailId'?: string; /** * Shopper\'s first name. */ - "PayPal_FirstName"?: string; + 'PayPal_FirstName'?: string; /** * Shopper\'s last name. */ - "PayPal_LastName"?: string; + 'PayPal_LastName'?: string; /** * Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. */ - "PayPal_PayerId"?: string; + 'PayPal_PayerId'?: string; /** * Shopper\'s phone number. */ - "PayPal_Phone"?: string; + 'PayPal_Phone'?: string; /** * Allowed values: * **Eligible** — Merchant is protected by PayPal\'s Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal\'s Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy. */ - "PayPal_ProtectionEligibility"?: string; + 'PayPal_ProtectionEligibility'?: string; /** * Unique transaction ID of the payment. */ - "PayPal_TransactionId"?: string; + 'PayPal_TransactionId'?: string; /** * Raw AVS result received from the acquirer, where available. Example: D */ - "avsResultRaw"?: string; + 'avsResultRaw'?: string; /** * The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization). */ - "bin"?: string; + 'bin'?: string; /** * Raw CVC result received from the acquirer, where available. Example: 1 */ - "cvcResultRaw"?: string; + 'cvcResultRaw'?: string; /** * Unique identifier or token for the shopper\'s card details. */ - "riskToken"?: string; + 'riskToken'?: string; /** * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true */ - "threeDAuthenticated"?: string; + 'threeDAuthenticated'?: string; /** * A Boolean value indicating whether 3DS was offered for this payment. Example: true */ - "threeDOffered"?: string; + 'threeDOffered'?: string; /** * Required for PayPal payments only. The only supported value is: **paypal**. */ - "tokenDataType"?: string; + 'tokenDataType'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "PayPal_CountryCode", "baseName": "PayPal.CountryCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "PayPal_EmailId", "baseName": "PayPal.EmailId", - "type": "string", - "format": "" + "type": "string" }, { "name": "PayPal_FirstName", "baseName": "PayPal.FirstName", - "type": "string", - "format": "" + "type": "string" }, { "name": "PayPal_LastName", "baseName": "PayPal.LastName", - "type": "string", - "format": "" + "type": "string" }, { "name": "PayPal_PayerId", "baseName": "PayPal.PayerId", - "type": "string", - "format": "" + "type": "string" }, { "name": "PayPal_Phone", "baseName": "PayPal.Phone", - "type": "string", - "format": "" + "type": "string" }, { "name": "PayPal_ProtectionEligibility", "baseName": "PayPal.ProtectionEligibility", - "type": "string", - "format": "" + "type": "string" }, { "name": "PayPal_TransactionId", "baseName": "PayPal.TransactionId", - "type": "string", - "format": "" + "type": "string" }, { "name": "avsResultRaw", "baseName": "avsResultRaw", - "type": "string", - "format": "" + "type": "string" }, { "name": "bin", "baseName": "bin", - "type": "string", - "format": "" + "type": "string" }, { "name": "cvcResultRaw", "baseName": "cvcResultRaw", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskToken", "baseName": "riskToken", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDAuthenticated", "baseName": "threeDAuthenticated", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDOffered", "baseName": "threeDOffered", - "type": "string", - "format": "" + "type": "string" }, { "name": "tokenDataType", "baseName": "tokenDataType", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalDataRiskStandalone.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/additionalDataSubMerchant.ts b/src/typings/payment/additionalDataSubMerchant.ts index 3fb76addf..a628ca8c8 100644 --- a/src/typings/payment/additionalDataSubMerchant.ts +++ b/src/typings/payment/additionalDataSubMerchant.ts @@ -12,135 +12,118 @@ export class AdditionalDataSubMerchant { /** * Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. */ - "subMerchant_numberOfSubSellers"?: string; + 'subMerchant_numberOfSubSellers'?: string; /** * Required for transactions performed by registered payment facilitators. The city of the sub-merchant\'s address. * Format: Alphanumeric * Maximum length: 13 characters */ - "subMerchant_subSeller_subSellerNr_city"?: string; + 'subMerchant_subSeller_subSellerNr_city'?: string; /** * Required for transactions performed by registered payment facilitators. The three-letter country code of the sub-merchant\'s address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters */ - "subMerchant_subSeller_subSellerNr_country"?: string; + 'subMerchant_subSeller_subSellerNr_country'?: string; /** * Required for transactions performed by registered payment facilitators. The email address of the sub-merchant. * Format: Alphanumeric * Maximum length: 40 characters */ - "subMerchant_subSeller_subSellerNr_email"?: string; + 'subMerchant_subSeller_subSellerNr_email'?: string; /** * Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters */ - "subMerchant_subSeller_subSellerNr_id"?: string; + 'subMerchant_subSeller_subSellerNr_id'?: string; /** * Required for transactions performed by registered payment facilitators. The sub-merchant\'s 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits */ - "subMerchant_subSeller_subSellerNr_mcc"?: string; + 'subMerchant_subSeller_subSellerNr_mcc'?: string; /** * Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters */ - "subMerchant_subSeller_subSellerNr_name"?: string; + 'subMerchant_subSeller_subSellerNr_name'?: string; /** * Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters */ - "subMerchant_subSeller_subSellerNr_phoneNumber"?: string; + 'subMerchant_subSeller_subSellerNr_phoneNumber'?: string; /** * Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant\'s address, without dashes. * Format: Numeric * Fixed length: 8 digits */ - "subMerchant_subSeller_subSellerNr_postalCode"?: string; + 'subMerchant_subSeller_subSellerNr_postalCode'?: string; /** * Required for transactions performed by registered payment facilitators. The state code of the sub-merchant\'s address, if applicable to the country. * Format: Alphanumeric * Maximum length: 2 characters */ - "subMerchant_subSeller_subSellerNr_state"?: string; + 'subMerchant_subSeller_subSellerNr_state'?: string; /** * Required for transactions performed by registered payment facilitators. The street name and house number of the sub-merchant\'s address. * Format: Alphanumeric * Maximum length: 60 characters */ - "subMerchant_subSeller_subSellerNr_street"?: string; + 'subMerchant_subSeller_subSellerNr_street'?: string; /** * Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ */ - "subMerchant_subSeller_subSellerNr_taxId"?: string; + 'subMerchant_subSeller_subSellerNr_taxId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "subMerchant_numberOfSubSellers", "baseName": "subMerchant.numberOfSubSellers", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchant_subSeller_subSellerNr_city", "baseName": "subMerchant.subSeller[subSellerNr].city", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchant_subSeller_subSellerNr_country", "baseName": "subMerchant.subSeller[subSellerNr].country", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchant_subSeller_subSellerNr_email", "baseName": "subMerchant.subSeller[subSellerNr].email", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchant_subSeller_subSellerNr_id", "baseName": "subMerchant.subSeller[subSellerNr].id", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchant_subSeller_subSellerNr_mcc", "baseName": "subMerchant.subSeller[subSellerNr].mcc", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchant_subSeller_subSellerNr_name", "baseName": "subMerchant.subSeller[subSellerNr].name", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchant_subSeller_subSellerNr_phoneNumber", "baseName": "subMerchant.subSeller[subSellerNr].phoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchant_subSeller_subSellerNr_postalCode", "baseName": "subMerchant.subSeller[subSellerNr].postalCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchant_subSeller_subSellerNr_state", "baseName": "subMerchant.subSeller[subSellerNr].state", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchant_subSeller_subSellerNr_street", "baseName": "subMerchant.subSeller[subSellerNr].street", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchant_subSeller_subSellerNr_taxId", "baseName": "subMerchant.subSeller[subSellerNr].taxId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalDataSubMerchant.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/additionalDataTemporaryServices.ts b/src/typings/payment/additionalDataTemporaryServices.ts index b357211c2..ec7889a09 100644 --- a/src/typings/payment/additionalDataTemporaryServices.ts +++ b/src/typings/payment/additionalDataTemporaryServices.ts @@ -12,105 +12,91 @@ export class AdditionalDataTemporaryServices { /** * The customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 */ - "enhancedSchemeData_customerReference"?: string; + 'enhancedSchemeData_customerReference'?: string; /** * The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. */ - "enhancedSchemeData_employeeName"?: string; + 'enhancedSchemeData_employeeName'?: string; /** * The job description of the person working in a temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. */ - "enhancedSchemeData_jobDescription"?: string; + 'enhancedSchemeData_jobDescription'?: string; /** * The amount paid for regular hours worked, [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not be empty * Can be all zeros */ - "enhancedSchemeData_regularHoursRate"?: string; + 'enhancedSchemeData_regularHoursRate'?: string; /** * The hours worked. * maxLength: 7 * Must not be empty * Can be all zeros */ - "enhancedSchemeData_regularHoursWorked"?: string; + 'enhancedSchemeData_regularHoursWorked'?: string; /** * The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * Must not be all spaces */ - "enhancedSchemeData_requestName"?: string; + 'enhancedSchemeData_requestName'?: string; /** * The billing period start date. * Format: ddMMyy * maxLength: 6 */ - "enhancedSchemeData_tempStartDate"?: string; + 'enhancedSchemeData_tempStartDate'?: string; /** * The billing period end date. * Format: ddMMyy * maxLength: 6 */ - "enhancedSchemeData_tempWeekEnding"?: string; + 'enhancedSchemeData_tempWeekEnding'?: string; /** * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00 * maxLength: 12 */ - "enhancedSchemeData_totalTaxAmount"?: string; + 'enhancedSchemeData_totalTaxAmount'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "enhancedSchemeData_customerReference", "baseName": "enhancedSchemeData.customerReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_employeeName", "baseName": "enhancedSchemeData.employeeName", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_jobDescription", "baseName": "enhancedSchemeData.jobDescription", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_regularHoursRate", "baseName": "enhancedSchemeData.regularHoursRate", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_regularHoursWorked", "baseName": "enhancedSchemeData.regularHoursWorked", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_requestName", "baseName": "enhancedSchemeData.requestName", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_tempStartDate", "baseName": "enhancedSchemeData.tempStartDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_tempWeekEnding", "baseName": "enhancedSchemeData.tempWeekEnding", - "type": "string", - "format": "" + "type": "string" }, { "name": "enhancedSchemeData_totalTaxAmount", "baseName": "enhancedSchemeData.totalTaxAmount", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalDataTemporaryServices.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/additionalDataWallets.ts b/src/typings/payment/additionalDataWallets.ts index 46e82b3d2..7cebc9c1b 100644 --- a/src/typings/payment/additionalDataWallets.ts +++ b/src/typings/payment/additionalDataWallets.ts @@ -12,75 +12,64 @@ export class AdditionalDataWallets { /** * The Android Pay token retrieved from the SDK. */ - "androidpay_token"?: string; + 'androidpay_token'?: string; /** * The Mastercard Masterpass Transaction ID retrieved from the SDK. */ - "masterpass_transactionId"?: string; + 'masterpass_transactionId'?: string; /** * The Apple Pay token retrieved from the SDK. */ - "payment_token"?: string; + 'payment_token'?: string; /** * The Google Pay token retrieved from the SDK. */ - "paywithgoogle_token"?: string; + 'paywithgoogle_token'?: string; /** * The Samsung Pay token retrieved from the SDK. */ - "samsungpay_token"?: string; + 'samsungpay_token'?: string; /** * The Visa Checkout Call ID retrieved from the SDK. */ - "visacheckout_callId"?: string; + 'visacheckout_callId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "androidpay_token", "baseName": "androidpay.token", - "type": "string", - "format": "" + "type": "string" }, { "name": "masterpass_transactionId", "baseName": "masterpass.transactionId", - "type": "string", - "format": "" + "type": "string" }, { "name": "payment_token", "baseName": "payment.token", - "type": "string", - "format": "" + "type": "string" }, { "name": "paywithgoogle_token", "baseName": "paywithgoogle.token", - "type": "string", - "format": "" + "type": "string" }, { "name": "samsungpay_token", "baseName": "samsungpay.token", - "type": "string", - "format": "" + "type": "string" }, { "name": "visacheckout_callId", "baseName": "visacheckout.callId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdditionalDataWallets.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/address.ts b/src/typings/payment/address.ts index 5700753c3..9fa047bfc 100644 --- a/src/typings/payment/address.ts +++ b/src/typings/payment/address.ts @@ -12,75 +12,64 @@ export class Address { /** * The name of the city. Maximum length: 3000 characters. */ - "city": string; + 'city': string; /** * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don\'t know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ - "country": string; + 'country': string; /** * The number or name of the house. Maximum length: 3000 characters. */ - "houseNumberOrName": string; + 'houseNumberOrName': string; /** * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. */ - "postalCode": string; + 'postalCode': string; /** * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ - "stateOrProvince"?: string; + 'stateOrProvince'?: string; /** * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. */ - "street": string; + 'street': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "city", "baseName": "city", - "type": "string", - "format": "" + "type": "string" }, { "name": "country", "baseName": "country", - "type": "string", - "format": "" + "type": "string" }, { "name": "houseNumberOrName", "baseName": "houseNumberOrName", - "type": "string", - "format": "" + "type": "string" }, { "name": "postalCode", "baseName": "postalCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "stateOrProvince", "baseName": "stateOrProvince", - "type": "string", - "format": "" + "type": "string" }, { "name": "street", "baseName": "street", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Address.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/adjustAuthorisationRequest.ts b/src/typings/payment/adjustAuthorisationRequest.ts index 703b563d6..c62d9ea44 100644 --- a/src/typings/payment/adjustAuthorisationRequest.ts +++ b/src/typings/payment/adjustAuthorisationRequest.ts @@ -7,126 +7,109 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { PlatformChargebackLogic } from "./platformChargebackLogic"; -import { Split } from "./split"; -import { ThreeDSecureData } from "./threeDSecureData"; - +import { Amount } from './amount'; +import { PlatformChargebackLogic } from './platformChargebackLogic'; +import { Split } from './split'; +import { ThreeDSecureData } from './threeDSecureData'; export class AdjustAuthorisationRequest { /** * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. */ - "additionalData"?: { [key: string]: string; }; + 'additionalData'?: { [key: string]: string; }; /** * The merchant account that is used to process the payment. */ - "merchantAccount": string; - "modificationAmount": Amount; - "mpiData"?: ThreeDSecureData; + 'merchantAccount': string; + 'modificationAmount': Amount; + 'mpiData'?: ThreeDSecureData | null; /** * The original merchant reference to cancel. */ - "originalMerchantReference"?: string; + 'originalMerchantReference'?: string; /** * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification */ - "originalReference": string; - "platformChargebackLogic"?: PlatformChargebackLogic; + 'originalReference': string; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ - "reference"?: string; + 'reference'?: string; /** * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). */ - "splits"?: Array; + 'splits'?: Array; /** * The transaction reference provided by the PED. For point-of-sale integrations only. */ - "tenderReference"?: string; + 'tenderReference'?: string; /** * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. */ - "uniqueTerminalId"?: string; - - static readonly discriminator: string | undefined = undefined; + 'uniqueTerminalId'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "modificationAmount", "baseName": "modificationAmount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "mpiData", "baseName": "mpiData", - "type": "ThreeDSecureData", - "format": "" + "type": "ThreeDSecureData | null" }, { "name": "originalMerchantReference", "baseName": "originalMerchantReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "originalReference", "baseName": "originalReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic", - "format": "" + "type": "PlatformChargebackLogic | null" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "splits", "baseName": "splits", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "tenderReference", "baseName": "tenderReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "uniqueTerminalId", "baseName": "uniqueTerminalId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AdjustAuthorisationRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/amount.ts b/src/typings/payment/amount.ts index 4ce25c0bd..c6b8414c1 100644 --- a/src/typings/payment/amount.ts +++ b/src/typings/payment/amount.ts @@ -12,35 +12,28 @@ export class Amount { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ - "currency": string; + 'currency': string; /** * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ - "value": number; + 'value': number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "number", - "format": "int64" + "type": "number" } ]; static getAttributeTypeMap() { return Amount.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/applicationInfo.ts b/src/typings/payment/applicationInfo.ts index 0d0363b0a..269c523a4 100644 --- a/src/typings/payment/applicationInfo.ts +++ b/src/typings/payment/applicationInfo.ts @@ -7,67 +7,55 @@ * Do not edit this class manually. */ -import { CommonField } from "./commonField"; -import { ExternalPlatform } from "./externalPlatform"; -import { MerchantDevice } from "./merchantDevice"; -import { ShopperInteractionDevice } from "./shopperInteractionDevice"; - +import { CommonField } from './commonField'; +import { ExternalPlatform } from './externalPlatform'; +import { MerchantDevice } from './merchantDevice'; +import { ShopperInteractionDevice } from './shopperInteractionDevice'; export class ApplicationInfo { - "adyenLibrary"?: CommonField; - "adyenPaymentSource"?: CommonField; - "externalPlatform"?: ExternalPlatform; - "merchantApplication"?: CommonField; - "merchantDevice"?: MerchantDevice; - "shopperInteractionDevice"?: ShopperInteractionDevice; - - static readonly discriminator: string | undefined = undefined; + 'adyenLibrary'?: CommonField | null; + 'adyenPaymentSource'?: CommonField | null; + 'externalPlatform'?: ExternalPlatform | null; + 'merchantApplication'?: CommonField | null; + 'merchantDevice'?: MerchantDevice | null; + 'shopperInteractionDevice'?: ShopperInteractionDevice | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "adyenLibrary", "baseName": "adyenLibrary", - "type": "CommonField", - "format": "" + "type": "CommonField | null" }, { "name": "adyenPaymentSource", "baseName": "adyenPaymentSource", - "type": "CommonField", - "format": "" + "type": "CommonField | null" }, { "name": "externalPlatform", "baseName": "externalPlatform", - "type": "ExternalPlatform", - "format": "" + "type": "ExternalPlatform | null" }, { "name": "merchantApplication", "baseName": "merchantApplication", - "type": "CommonField", - "format": "" + "type": "CommonField | null" }, { "name": "merchantDevice", "baseName": "merchantDevice", - "type": "MerchantDevice", - "format": "" + "type": "MerchantDevice | null" }, { "name": "shopperInteractionDevice", "baseName": "shopperInteractionDevice", - "type": "ShopperInteractionDevice", - "format": "" + "type": "ShopperInteractionDevice | null" } ]; static getAttributeTypeMap() { return ApplicationInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/authenticationResultRequest.ts b/src/typings/payment/authenticationResultRequest.ts index 9dc5193bb..db31a5374 100644 --- a/src/typings/payment/authenticationResultRequest.ts +++ b/src/typings/payment/authenticationResultRequest.ts @@ -12,35 +12,28 @@ export class AuthenticationResultRequest { /** * The merchant account identifier, with which the authentication was processed. */ - "merchantAccount": string; + 'merchantAccount': string; /** * The pspReference identifier for the transaction. */ - "pspReference": string; + 'pspReference': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AuthenticationResultRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/authenticationResultResponse.ts b/src/typings/payment/authenticationResultResponse.ts index 7d199fb15..bee459bed 100644 --- a/src/typings/payment/authenticationResultResponse.ts +++ b/src/typings/payment/authenticationResultResponse.ts @@ -7,37 +7,29 @@ * Do not edit this class manually. */ -import { ThreeDS1Result } from "./threeDS1Result"; -import { ThreeDS2Result } from "./threeDS2Result"; - +import { ThreeDS1Result } from './threeDS1Result'; +import { ThreeDS2Result } from './threeDS2Result'; export class AuthenticationResultResponse { - "threeDS1Result"?: ThreeDS1Result; - "threeDS2Result"?: ThreeDS2Result; - - static readonly discriminator: string | undefined = undefined; + 'threeDS1Result'?: ThreeDS1Result | null; + 'threeDS2Result'?: ThreeDS2Result | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "threeDS1Result", "baseName": "threeDS1Result", - "type": "ThreeDS1Result", - "format": "" + "type": "ThreeDS1Result | null" }, { "name": "threeDS2Result", "baseName": "threeDS2Result", - "type": "ThreeDS2Result", - "format": "" + "type": "ThreeDS2Result | null" } ]; static getAttributeTypeMap() { return AuthenticationResultResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/bankAccount.ts b/src/typings/payment/bankAccount.ts index 2ce514dde..de0b7b459 100644 --- a/src/typings/payment/bankAccount.ts +++ b/src/typings/payment/bankAccount.ts @@ -12,105 +12,91 @@ export class BankAccount { /** * The bank account number (without separators). */ - "bankAccountNumber"?: string; + 'bankAccountNumber'?: string; /** * The bank city. */ - "bankCity"?: string; + 'bankCity'?: string; /** * The location id of the bank. The field value is `nil` in most cases. */ - "bankLocationId"?: string; + 'bankLocationId'?: string; /** * The name of the bank. */ - "bankName"?: string; + 'bankName'?: string; /** * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. */ - "bic"?: string; + 'bic'?: string; /** * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. \'NL\'). */ - "countryCode"?: string; + 'countryCode'?: string; /** * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). */ - "iban"?: string; + 'iban'?: string; /** * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don\'t accept \'ø\'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don\'t match the required format, the response returns the error message: 203 \'Invalid bank account holder name\'. */ - "ownerName"?: string; + 'ownerName'?: string; /** * The bank account holder\'s tax ID. */ - "taxId"?: string; + 'taxId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "bankAccountNumber", "baseName": "bankAccountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankCity", "baseName": "bankCity", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankLocationId", "baseName": "bankLocationId", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankName", "baseName": "bankName", - "type": "string", - "format": "" + "type": "string" }, { "name": "bic", "baseName": "bic", - "type": "string", - "format": "" + "type": "string" }, { "name": "countryCode", "baseName": "countryCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "iban", "baseName": "iban", - "type": "string", - "format": "" + "type": "string" }, { "name": "ownerName", "baseName": "ownerName", - "type": "string", - "format": "" + "type": "string" }, { "name": "taxId", "baseName": "taxId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return BankAccount.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/browserInfo.ts b/src/typings/payment/browserInfo.ts index 11a288261..4d9f33d60 100644 --- a/src/typings/payment/browserInfo.ts +++ b/src/typings/payment/browserInfo.ts @@ -12,105 +12,91 @@ export class BrowserInfo { /** * The accept header value of the shopper\'s browser. */ - "acceptHeader": string; + 'acceptHeader': string; /** * The color depth of the shopper\'s browser in bits per pixel. This should be obtained by using the browser\'s `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. */ - "colorDepth": number; + 'colorDepth': number; /** * Boolean value indicating if the shopper\'s browser is able to execute Java. */ - "javaEnabled": boolean; + 'javaEnabled': boolean; /** * Boolean value indicating if the shopper\'s browser is able to execute JavaScript. A default \'true\' value is assumed if the field is not present. */ - "javaScriptEnabled"?: boolean; + 'javaScriptEnabled'?: boolean; /** * The `navigator.language` value of the shopper\'s browser (as defined in IETF BCP 47). */ - "language": string; + 'language': string; /** * The total height of the shopper\'s device screen in pixels. */ - "screenHeight": number; + 'screenHeight': number; /** * The total width of the shopper\'s device screen in pixels. */ - "screenWidth": number; + 'screenWidth': number; /** * Time difference between UTC time and the shopper\'s browser local time, in minutes. */ - "timeZoneOffset": number; + 'timeZoneOffset': number; /** * The user agent value of the shopper\'s browser. */ - "userAgent": string; + 'userAgent': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "acceptHeader", "baseName": "acceptHeader", - "type": "string", - "format": "" + "type": "string" }, { "name": "colorDepth", "baseName": "colorDepth", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "javaEnabled", "baseName": "javaEnabled", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "javaScriptEnabled", "baseName": "javaScriptEnabled", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "language", "baseName": "language", - "type": "string", - "format": "" + "type": "string" }, { "name": "screenHeight", "baseName": "screenHeight", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "screenWidth", "baseName": "screenWidth", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "timeZoneOffset", "baseName": "timeZoneOffset", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "userAgent", "baseName": "userAgent", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return BrowserInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/cancelOrRefundRequest.ts b/src/typings/payment/cancelOrRefundRequest.ts index 05a44d499..3087216c0 100644 --- a/src/typings/payment/cancelOrRefundRequest.ts +++ b/src/typings/payment/cancelOrRefundRequest.ts @@ -7,107 +7,92 @@ * Do not edit this class manually. */ -import { PlatformChargebackLogic } from "./platformChargebackLogic"; -import { ThreeDSecureData } from "./threeDSecureData"; - +import { PlatformChargebackLogic } from './platformChargebackLogic'; +import { ThreeDSecureData } from './threeDSecureData'; export class CancelOrRefundRequest { /** * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. */ - "additionalData"?: { [key: string]: string; }; + 'additionalData'?: { [key: string]: string; }; /** * The merchant account that is used to process the payment. */ - "merchantAccount": string; - "mpiData"?: ThreeDSecureData; + 'merchantAccount': string; + 'mpiData'?: ThreeDSecureData | null; /** * The original merchant reference to cancel. */ - "originalMerchantReference"?: string; + 'originalMerchantReference'?: string; /** * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification */ - "originalReference": string; - "platformChargebackLogic"?: PlatformChargebackLogic; + 'originalReference': string; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ - "reference"?: string; + 'reference'?: string; /** * The transaction reference provided by the PED. For point-of-sale integrations only. */ - "tenderReference"?: string; + 'tenderReference'?: string; /** * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. */ - "uniqueTerminalId"?: string; - - static readonly discriminator: string | undefined = undefined; + 'uniqueTerminalId'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "mpiData", "baseName": "mpiData", - "type": "ThreeDSecureData", - "format": "" + "type": "ThreeDSecureData | null" }, { "name": "originalMerchantReference", "baseName": "originalMerchantReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "originalReference", "baseName": "originalReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic", - "format": "" + "type": "PlatformChargebackLogic | null" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "tenderReference", "baseName": "tenderReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "uniqueTerminalId", "baseName": "uniqueTerminalId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CancelOrRefundRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/cancelRequest.ts b/src/typings/payment/cancelRequest.ts index d418cc722..a77746d91 100644 --- a/src/typings/payment/cancelRequest.ts +++ b/src/typings/payment/cancelRequest.ts @@ -7,118 +7,102 @@ * Do not edit this class manually. */ -import { PlatformChargebackLogic } from "./platformChargebackLogic"; -import { Split } from "./split"; -import { ThreeDSecureData } from "./threeDSecureData"; - +import { PlatformChargebackLogic } from './platformChargebackLogic'; +import { Split } from './split'; +import { ThreeDSecureData } from './threeDSecureData'; export class CancelRequest { /** * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. */ - "additionalData"?: { [key: string]: string; }; + 'additionalData'?: { [key: string]: string; }; /** * The merchant account that is used to process the payment. */ - "merchantAccount": string; - "mpiData"?: ThreeDSecureData; + 'merchantAccount': string; + 'mpiData'?: ThreeDSecureData | null; /** * The original merchant reference to cancel. */ - "originalMerchantReference"?: string; + 'originalMerchantReference'?: string; /** * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification */ - "originalReference": string; - "platformChargebackLogic"?: PlatformChargebackLogic; + 'originalReference': string; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ - "reference"?: string; + 'reference'?: string; /** * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). */ - "splits"?: Array; + 'splits'?: Array; /** * The transaction reference provided by the PED. For point-of-sale integrations only. */ - "tenderReference"?: string; + 'tenderReference'?: string; /** * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. */ - "uniqueTerminalId"?: string; - - static readonly discriminator: string | undefined = undefined; + 'uniqueTerminalId'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "mpiData", "baseName": "mpiData", - "type": "ThreeDSecureData", - "format": "" + "type": "ThreeDSecureData | null" }, { "name": "originalMerchantReference", "baseName": "originalMerchantReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "originalReference", "baseName": "originalReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic", - "format": "" + "type": "PlatformChargebackLogic | null" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "splits", "baseName": "splits", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "tenderReference", "baseName": "tenderReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "uniqueTerminalId", "baseName": "uniqueTerminalId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CancelRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/captureRequest.ts b/src/typings/payment/captureRequest.ts index 11a2299d0..ad8ef39ae 100644 --- a/src/typings/payment/captureRequest.ts +++ b/src/typings/payment/captureRequest.ts @@ -7,126 +7,109 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { PlatformChargebackLogic } from "./platformChargebackLogic"; -import { Split } from "./split"; -import { ThreeDSecureData } from "./threeDSecureData"; - +import { Amount } from './amount'; +import { PlatformChargebackLogic } from './platformChargebackLogic'; +import { Split } from './split'; +import { ThreeDSecureData } from './threeDSecureData'; export class CaptureRequest { /** * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. */ - "additionalData"?: { [key: string]: string; }; + 'additionalData'?: { [key: string]: string; }; /** * The merchant account that is used to process the payment. */ - "merchantAccount": string; - "modificationAmount": Amount; - "mpiData"?: ThreeDSecureData; + 'merchantAccount': string; + 'modificationAmount': Amount; + 'mpiData'?: ThreeDSecureData | null; /** * The original merchant reference to cancel. */ - "originalMerchantReference"?: string; + 'originalMerchantReference'?: string; /** * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification */ - "originalReference": string; - "platformChargebackLogic"?: PlatformChargebackLogic; + 'originalReference': string; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ - "reference"?: string; + 'reference'?: string; /** * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). */ - "splits"?: Array; + 'splits'?: Array; /** * The transaction reference provided by the PED. For point-of-sale integrations only. */ - "tenderReference"?: string; + 'tenderReference'?: string; /** * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. */ - "uniqueTerminalId"?: string; - - static readonly discriminator: string | undefined = undefined; + 'uniqueTerminalId'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "modificationAmount", "baseName": "modificationAmount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "mpiData", "baseName": "mpiData", - "type": "ThreeDSecureData", - "format": "" + "type": "ThreeDSecureData | null" }, { "name": "originalMerchantReference", "baseName": "originalMerchantReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "originalReference", "baseName": "originalReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic", - "format": "" + "type": "PlatformChargebackLogic | null" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "splits", "baseName": "splits", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "tenderReference", "baseName": "tenderReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "uniqueTerminalId", "baseName": "uniqueTerminalId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CaptureRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/card.ts b/src/typings/payment/card.ts index 1e477973a..70d38a7d0 100644 --- a/src/typings/payment/card.ts +++ b/src/typings/payment/card.ts @@ -12,95 +12,82 @@ export class Card { /** * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. */ - "cvc"?: string; + 'cvc'?: string; /** * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November */ - "expiryMonth"?: string; + 'expiryMonth'?: string; /** * The card expiry year. Format: 4 digits. For example: 2020 */ - "expiryYear"?: string; + 'expiryYear'?: string; /** * The name of the cardholder, as printed on the card. */ - "holderName"?: string; + 'holderName'?: string; /** * The issue number of the card (for some UK debit cards only). */ - "issueNumber"?: string; + 'issueNumber'?: string; /** * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. */ - "number"?: string; + 'number'?: string; /** * The month component of the start date (for some UK debit cards only). */ - "startMonth"?: string; + 'startMonth'?: string; /** * The year component of the start date (for some UK debit cards only). */ - "startYear"?: string; + 'startYear'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "cvc", "baseName": "cvc", - "type": "string", - "format": "" + "type": "string" }, { "name": "expiryMonth", "baseName": "expiryMonth", - "type": "string", - "format": "" + "type": "string" }, { "name": "expiryYear", "baseName": "expiryYear", - "type": "string", - "format": "" + "type": "string" }, { "name": "holderName", "baseName": "holderName", - "type": "string", - "format": "" + "type": "string" }, { "name": "issueNumber", "baseName": "issueNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "number", "baseName": "number", - "type": "string", - "format": "" + "type": "string" }, { "name": "startMonth", "baseName": "startMonth", - "type": "string", - "format": "" + "type": "string" }, { "name": "startYear", "baseName": "startYear", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Card.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/commonField.ts b/src/typings/payment/commonField.ts index b2ff7ae73..d6877b450 100644 --- a/src/typings/payment/commonField.ts +++ b/src/typings/payment/commonField.ts @@ -12,35 +12,28 @@ export class CommonField { /** * Name of the field. For example, Name of External Platform. */ - "name"?: string; + 'name'?: string; /** * Version of the field. For example, Version of External Platform. */ - "version"?: string; + 'version'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "version", "baseName": "version", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CommonField.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/deviceRenderOptions.ts b/src/typings/payment/deviceRenderOptions.ts index 221804865..55c28a6f1 100644 --- a/src/typings/payment/deviceRenderOptions.ts +++ b/src/typings/payment/deviceRenderOptions.ts @@ -12,36 +12,29 @@ export class DeviceRenderOptions { /** * Supported SDK interface types. Allowed values: * native * html * both */ - "sdkInterface"?: DeviceRenderOptions.SdkInterfaceEnum; + 'sdkInterface'?: DeviceRenderOptions.SdkInterfaceEnum; /** * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect */ - "sdkUiType"?: Array; + 'sdkUiType'?: Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "sdkInterface", "baseName": "sdkInterface", - "type": "DeviceRenderOptions.SdkInterfaceEnum", - "format": "" + "type": "DeviceRenderOptions.SdkInterfaceEnum" }, { "name": "sdkUiType", "baseName": "sdkUiType", - "type": "DeviceRenderOptions.SdkUiTypeEnum", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return DeviceRenderOptions.attributeTypeMap; } - - public constructor() { - } } export namespace DeviceRenderOptions { diff --git a/src/typings/payment/donationRequest.ts b/src/typings/payment/donationRequest.ts index 1ede7336d..c96da773a 100644 --- a/src/typings/payment/donationRequest.ts +++ b/src/typings/payment/donationRequest.ts @@ -7,77 +7,65 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { PlatformChargebackLogic } from "./platformChargebackLogic"; - +import { Amount } from './amount'; +import { PlatformChargebackLogic } from './platformChargebackLogic'; export class DonationRequest { /** * The Adyen account name of the charity. */ - "donationAccount": string; + 'donationAccount': string; /** * The merchant account that is used to process the payment. */ - "merchantAccount": string; - "modificationAmount": Amount; + 'merchantAccount': string; + 'modificationAmount': Amount; /** * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification */ - "originalReference"?: string; - "platformChargebackLogic"?: PlatformChargebackLogic; + 'originalReference'?: string; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ - "reference"?: string; - - static readonly discriminator: string | undefined = undefined; + 'reference'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "donationAccount", "baseName": "donationAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "modificationAmount", "baseName": "modificationAmount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "originalReference", "baseName": "originalReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic", - "format": "" + "type": "PlatformChargebackLogic | null" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return DonationRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/externalPlatform.ts b/src/typings/payment/externalPlatform.ts index 1da7f3a8b..277d2a201 100644 --- a/src/typings/payment/externalPlatform.ts +++ b/src/typings/payment/externalPlatform.ts @@ -12,45 +12,37 @@ export class ExternalPlatform { /** * External platform integrator. */ - "integrator"?: string; + 'integrator'?: string; /** * Name of the field. For example, Name of External Platform. */ - "name"?: string; + 'name'?: string; /** * Version of the field. For example, Version of External Platform. */ - "version"?: string; + 'version'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "integrator", "baseName": "integrator", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "version", "baseName": "version", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ExternalPlatform.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/forexQuote.ts b/src/typings/payment/forexQuote.ts index b9da18f85..1ef40e192 100644 --- a/src/typings/payment/forexQuote.ts +++ b/src/typings/payment/forexQuote.ts @@ -7,130 +7,112 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class ForexQuote { /** * The account name. */ - "account"?: string; + 'account'?: string; /** * The account type. */ - "accountType"?: string; - "baseAmount"?: Amount; + 'accountType'?: string; + 'baseAmount'?: Amount | null; /** * The base points. */ - "basePoints": number; - "buy"?: Amount; - "interbank"?: Amount; + 'basePoints': number; + 'buy'?: Amount | null; + 'interbank'?: Amount | null; /** * The reference assigned to the forex quote request. */ - "reference"?: string; - "sell"?: Amount; + 'reference'?: string; + 'sell'?: Amount | null; /** * The signature to validate the integrity. */ - "signature"?: string; + 'signature'?: string; /** * The source of the forex quote. */ - "source"?: string; + 'source'?: string; /** * The type of forex. */ - "type"?: string; + 'type'?: string; /** * The date until which the forex quote is valid. */ - "validTill": Date; - - static readonly discriminator: string | undefined = undefined; + 'validTill': Date; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "account", "baseName": "account", - "type": "string", - "format": "" + "type": "string" }, { "name": "accountType", "baseName": "accountType", - "type": "string", - "format": "" + "type": "string" }, { "name": "baseAmount", "baseName": "baseAmount", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "basePoints", "baseName": "basePoints", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "buy", "baseName": "buy", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "interbank", "baseName": "interbank", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "sell", "baseName": "sell", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "signature", "baseName": "signature", - "type": "string", - "format": "" + "type": "string" }, { "name": "source", "baseName": "source", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" }, { "name": "validTill", "baseName": "validTill", - "type": "Date", - "format": "date-time" + "type": "Date" } ]; static getAttributeTypeMap() { return ForexQuote.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/fraudCheckResult.ts b/src/typings/payment/fraudCheckResult.ts index df6bf6691..37046b3d1 100644 --- a/src/typings/payment/fraudCheckResult.ts +++ b/src/typings/payment/fraudCheckResult.ts @@ -12,45 +12,37 @@ export class FraudCheckResult { /** * The fraud score generated by the risk check. */ - "accountScore": number; + 'accountScore': number; /** * The ID of the risk check. */ - "checkId": number; + 'checkId': number; /** * The name of the risk check. */ - "name": string; + 'name': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountScore", "baseName": "accountScore", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "checkId", "baseName": "checkId", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return FraudCheckResult.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/fraudCheckResultWrapper.ts b/src/typings/payment/fraudCheckResultWrapper.ts index 2c2ca5a6e..841551c5e 100644 --- a/src/typings/payment/fraudCheckResultWrapper.ts +++ b/src/typings/payment/fraudCheckResultWrapper.ts @@ -7,29 +7,22 @@ * Do not edit this class manually. */ -import { FraudCheckResult } from "./fraudCheckResult"; - +import { FraudCheckResult } from './fraudCheckResult'; export class FraudCheckResultWrapper { - "FraudCheckResult"?: FraudCheckResult; - - static readonly discriminator: string | undefined = undefined; + 'FraudCheckResult'?: FraudCheckResult | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "FraudCheckResult", "baseName": "FraudCheckResult", - "type": "FraudCheckResult", - "format": "" + "type": "FraudCheckResult | null" } ]; static getAttributeTypeMap() { return FraudCheckResultWrapper.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/fraudResult.ts b/src/typings/payment/fraudResult.ts index df9b0e399..9def6b90a 100644 --- a/src/typings/payment/fraudResult.ts +++ b/src/typings/payment/fraudResult.ts @@ -7,42 +7,34 @@ * Do not edit this class manually. */ -import { FraudCheckResultWrapper } from "./fraudCheckResultWrapper"; - +import { FraudCheckResultWrapper } from './fraudCheckResultWrapper'; export class FraudResult { /** * The total fraud score generated by the risk checks. */ - "accountScore": number; + 'accountScore': number; /** * The result of the individual risk checks. */ - "results"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'results'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountScore", "baseName": "accountScore", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "results", "baseName": "results", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return FraudResult.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/fundDestination.ts b/src/typings/payment/fundDestination.ts index 5068d1740..04ca78299 100644 --- a/src/typings/payment/fundDestination.ts +++ b/src/typings/payment/fundDestination.ts @@ -7,123 +7,106 @@ * Do not edit this class manually. */ -import { Address } from "./address"; -import { Card } from "./card"; -import { Name } from "./name"; -import { SubMerchant } from "./subMerchant"; - +import { Address } from './address'; +import { Card } from './card'; +import { Name } from './name'; +import { SubMerchant } from './subMerchant'; export class FundDestination { /** * Bank Account Number of the recipient */ - "IBAN"?: string; + 'IBAN'?: string; /** * a map of name/value pairs for passing in additional/industry-specific data */ - "additionalData"?: { [key: string]: string; }; - "billingAddress"?: Address; - "card"?: Card; + 'additionalData'?: { [key: string]: string; }; + 'billingAddress'?: Address | null; + 'card'?: Card | null; /** * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. */ - "selectedRecurringDetailReference"?: string; + 'selectedRecurringDetailReference'?: string; /** * the email address of the person */ - "shopperEmail"?: string; - "shopperName"?: Name; + 'shopperEmail'?: string; + 'shopperName'?: Name | null; /** * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ - "shopperReference"?: string; - "subMerchant"?: SubMerchant; + 'shopperReference'?: string; + 'subMerchant'?: SubMerchant | null; /** * the telephone number of the person */ - "telephoneNumber"?: string; + 'telephoneNumber'?: string; /** * The purpose of a digital wallet transaction. */ - "walletPurpose"?: string; - - static readonly discriminator: string | undefined = undefined; + 'walletPurpose'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "IBAN", "baseName": "IBAN", - "type": "string", - "format": "" + "type": "string" }, { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "Address", - "format": "" + "type": "Address | null" }, { "name": "card", "baseName": "card", - "type": "Card", - "format": "" + "type": "Card | null" }, { "name": "selectedRecurringDetailReference", "baseName": "selectedRecurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperEmail", "baseName": "shopperEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperName", "baseName": "shopperName", - "type": "Name", - "format": "" + "type": "Name | null" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "subMerchant", "baseName": "subMerchant", - "type": "SubMerchant", - "format": "" + "type": "SubMerchant | null" }, { "name": "telephoneNumber", "baseName": "telephoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "walletPurpose", "baseName": "walletPurpose", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return FundDestination.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/fundSource.ts b/src/typings/payment/fundSource.ts index c7e64ae1e..14eec5d74 100644 --- a/src/typings/payment/fundSource.ts +++ b/src/typings/payment/fundSource.ts @@ -7,75 +7,63 @@ * Do not edit this class manually. */ -import { Address } from "./address"; -import { Card } from "./card"; -import { Name } from "./name"; - +import { Address } from './address'; +import { Card } from './card'; +import { Name } from './name'; export class FundSource { /** * A map of name-value pairs for passing additional or industry-specific data. */ - "additionalData"?: { [key: string]: string; }; - "billingAddress"?: Address; - "card"?: Card; + 'additionalData'?: { [key: string]: string; }; + 'billingAddress'?: Address | null; + 'card'?: Card | null; /** * Email address of the person. */ - "shopperEmail"?: string; - "shopperName"?: Name; + 'shopperEmail'?: string; + 'shopperName'?: Name | null; /** * Phone number of the person */ - "telephoneNumber"?: string; - - static readonly discriminator: string | undefined = undefined; + 'telephoneNumber'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "Address", - "format": "" + "type": "Address | null" }, { "name": "card", "baseName": "card", - "type": "Card", - "format": "" + "type": "Card | null" }, { "name": "shopperEmail", "baseName": "shopperEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperName", "baseName": "shopperName", - "type": "Name", - "format": "" + "type": "Name | null" }, { "name": "telephoneNumber", "baseName": "telephoneNumber", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return FundSource.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/installments.ts b/src/typings/payment/installments.ts index 90c2ad921..bc687cf5b 100644 --- a/src/typings/payment/installments.ts +++ b/src/typings/payment/installments.ts @@ -12,46 +12,38 @@ export class Installments { /** * Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. Used for [card installments in Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) */ - "extra"?: number; + 'extra'?: number; /** * The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. */ - "plan"?: Installments.PlanEnum; + 'plan'?: Installments.PlanEnum; /** * Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico. */ - "value": number; + 'value': number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "extra", "baseName": "extra", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "plan", "baseName": "plan", - "type": "Installments.PlanEnum", - "format": "" + "type": "Installments.PlanEnum" }, { "name": "value", "baseName": "value", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return Installments.attributeTypeMap; } - - public constructor() { - } } export namespace Installments { diff --git a/src/typings/payment/mandate.ts b/src/typings/payment/mandate.ts index 840a638a7..15e1f9bbf 100644 --- a/src/typings/payment/mandate.ts +++ b/src/typings/payment/mandate.ts @@ -12,106 +12,92 @@ export class Mandate { /** * The billing amount (in minor units) of the recurring transactions. */ - "amount": string; + '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"?: Mandate.AmountRuleEnum; + 'amountRule'?: Mandate.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"?: Mandate.BillingAttemptsRuleEnum; + 'billingAttemptsRule'?: Mandate.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; + 'billingDay'?: string; /** * The number of transactions that can be performed within the given frequency. */ - "count"?: string; + 'count'?: string; /** * End date of the billing plan, in YYYY-MM-DD format. */ - "endsAt": string; + 'endsAt': string; /** * The frequency with which a shopper should be charged. Possible values: **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. */ - "frequency": Mandate.FrequencyEnum; + 'frequency': Mandate.FrequencyEnum; /** * The message shown by UPI to the shopper on the approval screen. */ - "remarks"?: string; + 'remarks'?: string; /** * Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. */ - "startsAt"?: string; + 'startsAt'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "string", - "format": "" + "type": "string" }, { "name": "amountRule", "baseName": "amountRule", - "type": "Mandate.AmountRuleEnum", - "format": "" + "type": "Mandate.AmountRuleEnum" }, { "name": "billingAttemptsRule", "baseName": "billingAttemptsRule", - "type": "Mandate.BillingAttemptsRuleEnum", - "format": "" + "type": "Mandate.BillingAttemptsRuleEnum" }, { "name": "billingDay", "baseName": "billingDay", - "type": "string", - "format": "" + "type": "string" }, { "name": "count", "baseName": "count", - "type": "string", - "format": "" + "type": "string" }, { "name": "endsAt", "baseName": "endsAt", - "type": "string", - "format": "" + "type": "string" }, { "name": "frequency", "baseName": "frequency", - "type": "Mandate.FrequencyEnum", - "format": "" + "type": "Mandate.FrequencyEnum" }, { "name": "remarks", "baseName": "remarks", - "type": "string", - "format": "" + "type": "string" }, { "name": "startsAt", "baseName": "startsAt", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Mandate.attributeTypeMap; } - - public constructor() { - } } export namespace Mandate { diff --git a/src/typings/payment/merchantDevice.ts b/src/typings/payment/merchantDevice.ts index a497fbffb..b39509499 100644 --- a/src/typings/payment/merchantDevice.ts +++ b/src/typings/payment/merchantDevice.ts @@ -12,45 +12,37 @@ export class MerchantDevice { /** * Operating system running on the merchant device. */ - "os"?: string; + 'os'?: string; /** * Version of the operating system on the merchant device. */ - "osVersion"?: string; + 'osVersion'?: string; /** * Merchant device reference. */ - "reference"?: string; + 'reference'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "os", "baseName": "os", - "type": "string", - "format": "" + "type": "string" }, { "name": "osVersion", "baseName": "osVersion", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return MerchantDevice.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/merchantRiskIndicator.ts b/src/typings/payment/merchantRiskIndicator.ts index 3d26a2a88..5c9cecb61 100644 --- a/src/typings/payment/merchantRiskIndicator.ts +++ b/src/typings/payment/merchantRiskIndicator.ts @@ -7,163 +7,143 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class MerchantRiskIndicator { /** * Whether the chosen delivery address is identical to the billing address. */ - "addressMatch"?: boolean; + 'addressMatch'?: boolean; /** * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` */ - "deliveryAddressIndicator"?: MerchantRiskIndicator.DeliveryAddressIndicatorEnum; + 'deliveryAddressIndicator'?: MerchantRiskIndicator.DeliveryAddressIndicatorEnum; /** * The delivery email address (for digital goods). * * @deprecated since Adyen Payment API v68 * Use `deliveryEmailAddress` instead. */ - "deliveryEmail"?: string; + 'deliveryEmail'?: string; /** * For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters. */ - "deliveryEmailAddress"?: string; + 'deliveryEmailAddress'?: string; /** * The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` */ - "deliveryTimeframe"?: MerchantRiskIndicator.DeliveryTimeframeEnum; - "giftCardAmount"?: Amount; + 'deliveryTimeframe'?: MerchantRiskIndicator.DeliveryTimeframeEnum; + 'giftCardAmount'?: Amount | null; /** * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. */ - "giftCardCount"?: number; + 'giftCardCount'?: number; /** * For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification. */ - "giftCardCurr"?: string; + 'giftCardCurr'?: string; /** * For pre-order purchases, the expected date this product will be available to the shopper. */ - "preOrderDate"?: Date; + 'preOrderDate'?: Date; /** * Indicator for whether this transaction is for pre-ordering a product. */ - "preOrderPurchase"?: boolean; + 'preOrderPurchase'?: boolean; /** * Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. */ - "preOrderPurchaseInd"?: string; + 'preOrderPurchaseInd'?: string; /** * Indicator for whether the shopper has already purchased the same items in the past. */ - "reorderItems"?: boolean; + 'reorderItems'?: boolean; /** * Indicates whether the cardholder is reordering previously purchased merchandise. */ - "reorderItemsInd"?: string; + 'reorderItemsInd'?: string; /** * Indicates shipping method chosen for the transaction. */ - "shipIndicator"?: string; - - static readonly discriminator: string | undefined = undefined; + 'shipIndicator'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "addressMatch", "baseName": "addressMatch", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "deliveryAddressIndicator", "baseName": "deliveryAddressIndicator", - "type": "MerchantRiskIndicator.DeliveryAddressIndicatorEnum", - "format": "" + "type": "MerchantRiskIndicator.DeliveryAddressIndicatorEnum" }, { "name": "deliveryEmail", "baseName": "deliveryEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "deliveryEmailAddress", "baseName": "deliveryEmailAddress", - "type": "string", - "format": "" + "type": "string" }, { "name": "deliveryTimeframe", "baseName": "deliveryTimeframe", - "type": "MerchantRiskIndicator.DeliveryTimeframeEnum", - "format": "" + "type": "MerchantRiskIndicator.DeliveryTimeframeEnum" }, { "name": "giftCardAmount", "baseName": "giftCardAmount", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "giftCardCount", "baseName": "giftCardCount", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "giftCardCurr", "baseName": "giftCardCurr", - "type": "string", - "format": "" + "type": "string" }, { "name": "preOrderDate", "baseName": "preOrderDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "preOrderPurchase", "baseName": "preOrderPurchase", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "preOrderPurchaseInd", "baseName": "preOrderPurchaseInd", - "type": "string", - "format": "" + "type": "string" }, { "name": "reorderItems", "baseName": "reorderItems", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "reorderItemsInd", "baseName": "reorderItemsInd", - "type": "string", - "format": "" + "type": "string" }, { "name": "shipIndicator", "baseName": "shipIndicator", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return MerchantRiskIndicator.attributeTypeMap; } - - public constructor() { - } } export namespace MerchantRiskIndicator { diff --git a/src/typings/payment/models.ts b/src/typings/payment/models.ts index affd59bd9..daf8846ba 100644 --- a/src/typings/payment/models.ts +++ b/src/typings/payment/models.ts @@ -1,83 +1,441 @@ -export * from "./accountInfo" -export * from "./acctInfo" -export * from "./additionalData3DSecure" -export * from "./additionalDataAirline" -export * from "./additionalDataCarRental" -export * from "./additionalDataCommon" -export * from "./additionalDataLevel23" -export * from "./additionalDataLodging" -export * from "./additionalDataModifications" -export * from "./additionalDataOpenInvoice" -export * from "./additionalDataOpi" -export * from "./additionalDataRatepay" -export * from "./additionalDataRetry" -export * from "./additionalDataRisk" -export * from "./additionalDataRiskStandalone" -export * from "./additionalDataSubMerchant" -export * from "./additionalDataTemporaryServices" -export * from "./additionalDataWallets" -export * from "./address" -export * from "./adjustAuthorisationRequest" -export * from "./amount" -export * from "./applicationInfo" -export * from "./authenticationResultRequest" -export * from "./authenticationResultResponse" -export * from "./bankAccount" -export * from "./browserInfo" -export * from "./cancelOrRefundRequest" -export * from "./cancelRequest" -export * from "./captureRequest" -export * from "./card" -export * from "./commonField" -export * from "./deviceRenderOptions" -export * from "./donationRequest" -export * from "./externalPlatform" -export * from "./forexQuote" -export * from "./fraudCheckResult" -export * from "./fraudCheckResultWrapper" -export * from "./fraudResult" -export * from "./fundDestination" -export * from "./fundSource" -export * from "./installments" -export * from "./mandate" -export * from "./merchantDevice" -export * from "./merchantRiskIndicator" -export * from "./modificationResult" -export * from "./name" -export * from "./paymentRequest" -export * from "./paymentRequest3d" -export * from "./paymentRequest3ds2" -export * from "./paymentResult" -export * from "./phone" -export * from "./platformChargebackLogic" -export * from "./recurring" -export * from "./refundRequest" -export * from "./responseAdditionalData3DSecure" -export * from "./responseAdditionalDataBillingAddress" -export * from "./responseAdditionalDataCard" -export * from "./responseAdditionalDataCommon" -export * from "./responseAdditionalDataDomesticError" -export * from "./responseAdditionalDataInstallments" -export * from "./responseAdditionalDataNetworkTokens" -export * from "./responseAdditionalDataOpi" -export * from "./responseAdditionalDataSepa" -export * from "./sDKEphemPubKey" -export * from "./secureRemoteCommerceCheckoutData" -export * from "./serviceError" -export * from "./shopperInteractionDevice" -export * from "./split" -export * from "./splitAmount" -export * from "./subMerchant" -export * from "./technicalCancelRequest" -export * from "./threeDS1Result" -export * from "./threeDS2RequestData" -export * from "./threeDS2Result" -export * from "./threeDS2ResultRequest" -export * from "./threeDS2ResultResponse" -export * from "./threeDSRequestorAuthenticationInfo" -export * from "./threeDSRequestorPriorAuthenticationInfo" -export * from "./threeDSecureData" -export * from "./voidPendingRefundRequest" +/* + * The version of the OpenAPI document: v68 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ -// serializing and deserializing typed objects -export * from "./objectSerializer" \ No newline at end of file + +export * from './accountInfo'; +export * from './acctInfo'; +export * from './additionalData3DSecure'; +export * from './additionalDataAirline'; +export * from './additionalDataCarRental'; +export * from './additionalDataCommon'; +export * from './additionalDataLevel23'; +export * from './additionalDataLodging'; +export * from './additionalDataModifications'; +export * from './additionalDataOpenInvoice'; +export * from './additionalDataOpi'; +export * from './additionalDataRatepay'; +export * from './additionalDataRetry'; +export * from './additionalDataRisk'; +export * from './additionalDataRiskStandalone'; +export * from './additionalDataSubMerchant'; +export * from './additionalDataTemporaryServices'; +export * from './additionalDataWallets'; +export * from './address'; +export * from './adjustAuthorisationRequest'; +export * from './amount'; +export * from './applicationInfo'; +export * from './authenticationResultRequest'; +export * from './authenticationResultResponse'; +export * from './bankAccount'; +export * from './browserInfo'; +export * from './cancelOrRefundRequest'; +export * from './cancelRequest'; +export * from './captureRequest'; +export * from './card'; +export * from './commonField'; +export * from './deviceRenderOptions'; +export * from './donationRequest'; +export * from './externalPlatform'; +export * from './forexQuote'; +export * from './fraudCheckResult'; +export * from './fraudCheckResultWrapper'; +export * from './fraudResult'; +export * from './fundDestination'; +export * from './fundSource'; +export * from './installments'; +export * from './mandate'; +export * from './merchantDevice'; +export * from './merchantRiskIndicator'; +export * from './modificationResult'; +export * from './name'; +export * from './paymentRequest'; +export * from './paymentRequest3d'; +export * from './paymentRequest3ds2'; +export * from './paymentResult'; +export * from './phone'; +export * from './platformChargebackLogic'; +export * from './recurring'; +export * from './refundRequest'; +export * from './responseAdditionalData3DSecure'; +export * from './responseAdditionalDataBillingAddress'; +export * from './responseAdditionalDataCard'; +export * from './responseAdditionalDataCommon'; +export * from './responseAdditionalDataDomesticError'; +export * from './responseAdditionalDataInstallments'; +export * from './responseAdditionalDataNetworkTokens'; +export * from './responseAdditionalDataOpi'; +export * from './responseAdditionalDataSepa'; +export * from './sDKEphemPubKey'; +export * from './secureRemoteCommerceCheckoutData'; +export * from './serviceError'; +export * from './shopperInteractionDevice'; +export * from './split'; +export * from './splitAmount'; +export * from './subMerchant'; +export * from './technicalCancelRequest'; +export * from './threeDS1Result'; +export * from './threeDS2RequestData'; +export * from './threeDS2Result'; +export * from './threeDS2ResultRequest'; +export * from './threeDS2ResultResponse'; +export * from './threeDSRequestorAuthenticationInfo'; +export * from './threeDSRequestorPriorAuthenticationInfo'; +export * from './threeDSecureData'; +export * from './voidPendingRefundRequest'; + + +import { AccountInfo } from './accountInfo'; +import { AcctInfo } from './acctInfo'; +import { AdditionalData3DSecure } from './additionalData3DSecure'; +import { AdditionalDataAirline } from './additionalDataAirline'; +import { AdditionalDataCarRental } from './additionalDataCarRental'; +import { AdditionalDataCommon } from './additionalDataCommon'; +import { AdditionalDataLevel23 } from './additionalDataLevel23'; +import { AdditionalDataLodging } from './additionalDataLodging'; +import { AdditionalDataModifications } from './additionalDataModifications'; +import { AdditionalDataOpenInvoice } from './additionalDataOpenInvoice'; +import { AdditionalDataOpi } from './additionalDataOpi'; +import { AdditionalDataRatepay } from './additionalDataRatepay'; +import { AdditionalDataRetry } from './additionalDataRetry'; +import { AdditionalDataRisk } from './additionalDataRisk'; +import { AdditionalDataRiskStandalone } from './additionalDataRiskStandalone'; +import { AdditionalDataSubMerchant } from './additionalDataSubMerchant'; +import { AdditionalDataTemporaryServices } from './additionalDataTemporaryServices'; +import { AdditionalDataWallets } from './additionalDataWallets'; +import { Address } from './address'; +import { AdjustAuthorisationRequest } from './adjustAuthorisationRequest'; +import { Amount } from './amount'; +import { ApplicationInfo } from './applicationInfo'; +import { AuthenticationResultRequest } from './authenticationResultRequest'; +import { AuthenticationResultResponse } from './authenticationResultResponse'; +import { BankAccount } from './bankAccount'; +import { BrowserInfo } from './browserInfo'; +import { CancelOrRefundRequest } from './cancelOrRefundRequest'; +import { CancelRequest } from './cancelRequest'; +import { CaptureRequest } from './captureRequest'; +import { Card } from './card'; +import { CommonField } from './commonField'; +import { DeviceRenderOptions } from './deviceRenderOptions'; +import { DonationRequest } from './donationRequest'; +import { ExternalPlatform } from './externalPlatform'; +import { ForexQuote } from './forexQuote'; +import { FraudCheckResult } from './fraudCheckResult'; +import { FraudCheckResultWrapper } from './fraudCheckResultWrapper'; +import { FraudResult } from './fraudResult'; +import { FundDestination } from './fundDestination'; +import { FundSource } from './fundSource'; +import { Installments } from './installments'; +import { Mandate } from './mandate'; +import { MerchantDevice } from './merchantDevice'; +import { MerchantRiskIndicator } from './merchantRiskIndicator'; +import { ModificationResult } from './modificationResult'; +import { Name } from './name'; +import { PaymentRequest } from './paymentRequest'; +import { PaymentRequest3d } from './paymentRequest3d'; +import { PaymentRequest3ds2 } from './paymentRequest3ds2'; +import { PaymentResult } from './paymentResult'; +import { Phone } from './phone'; +import { PlatformChargebackLogic } from './platformChargebackLogic'; +import { Recurring } from './recurring'; +import { RefundRequest } from './refundRequest'; +import { ResponseAdditionalData3DSecure } from './responseAdditionalData3DSecure'; +import { ResponseAdditionalDataBillingAddress } from './responseAdditionalDataBillingAddress'; +import { ResponseAdditionalDataCard } from './responseAdditionalDataCard'; +import { ResponseAdditionalDataCommon } from './responseAdditionalDataCommon'; +import { ResponseAdditionalDataDomesticError } from './responseAdditionalDataDomesticError'; +import { ResponseAdditionalDataInstallments } from './responseAdditionalDataInstallments'; +import { ResponseAdditionalDataNetworkTokens } from './responseAdditionalDataNetworkTokens'; +import { ResponseAdditionalDataOpi } from './responseAdditionalDataOpi'; +import { ResponseAdditionalDataSepa } from './responseAdditionalDataSepa'; +import { SDKEphemPubKey } from './sDKEphemPubKey'; +import { SecureRemoteCommerceCheckoutData } from './secureRemoteCommerceCheckoutData'; +import { ServiceError } from './serviceError'; +import { ShopperInteractionDevice } from './shopperInteractionDevice'; +import { Split } from './split'; +import { SplitAmount } from './splitAmount'; +import { SubMerchant } from './subMerchant'; +import { TechnicalCancelRequest } from './technicalCancelRequest'; +import { ThreeDS1Result } from './threeDS1Result'; +import { ThreeDS2RequestData } from './threeDS2RequestData'; +import { ThreeDS2Result } from './threeDS2Result'; +import { ThreeDS2ResultRequest } from './threeDS2ResultRequest'; +import { ThreeDS2ResultResponse } from './threeDS2ResultResponse'; +import { ThreeDSRequestorAuthenticationInfo } from './threeDSRequestorAuthenticationInfo'; +import { ThreeDSRequestorPriorAuthenticationInfo } from './threeDSRequestorPriorAuthenticationInfo'; +import { ThreeDSecureData } from './threeDSecureData'; +import { VoidPendingRefundRequest } from './voidPendingRefundRequest'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "AccountInfo.AccountAgeIndicatorEnum": AccountInfo.AccountAgeIndicatorEnum, + "AccountInfo.AccountChangeIndicatorEnum": AccountInfo.AccountChangeIndicatorEnum, + "AccountInfo.AccountTypeEnum": AccountInfo.AccountTypeEnum, + "AccountInfo.DeliveryAddressUsageIndicatorEnum": AccountInfo.DeliveryAddressUsageIndicatorEnum, + "AccountInfo.PasswordChangeIndicatorEnum": AccountInfo.PasswordChangeIndicatorEnum, + "AccountInfo.PaymentAccountIndicatorEnum": AccountInfo.PaymentAccountIndicatorEnum, + "AcctInfo.ChAccAgeIndEnum": AcctInfo.ChAccAgeIndEnum, + "AcctInfo.ChAccChangeIndEnum": AcctInfo.ChAccChangeIndEnum, + "AcctInfo.ChAccPwChangeIndEnum": AcctInfo.ChAccPwChangeIndEnum, + "AcctInfo.PaymentAccIndEnum": AcctInfo.PaymentAccIndEnum, + "AcctInfo.ShipAddressUsageIndEnum": AcctInfo.ShipAddressUsageIndEnum, + "AcctInfo.ShipNameIndicatorEnum": AcctInfo.ShipNameIndicatorEnum, + "AcctInfo.SuspiciousAccActivityEnum": AcctInfo.SuspiciousAccActivityEnum, + "AdditionalData3DSecure.ChallengeWindowSizeEnum": AdditionalData3DSecure.ChallengeWindowSizeEnum, + "AdditionalDataCommon.IndustryUsageEnum": AdditionalDataCommon.IndustryUsageEnum, + "DeviceRenderOptions.SdkInterfaceEnum": DeviceRenderOptions.SdkInterfaceEnum, + "DeviceRenderOptions.SdkUiTypeEnum": DeviceRenderOptions.SdkUiTypeEnum, + "Installments.PlanEnum": Installments.PlanEnum, + "Mandate.AmountRuleEnum": Mandate.AmountRuleEnum, + "Mandate.BillingAttemptsRuleEnum": Mandate.BillingAttemptsRuleEnum, + "Mandate.FrequencyEnum": Mandate.FrequencyEnum, + "MerchantRiskIndicator.DeliveryAddressIndicatorEnum": MerchantRiskIndicator.DeliveryAddressIndicatorEnum, + "MerchantRiskIndicator.DeliveryTimeframeEnum": MerchantRiskIndicator.DeliveryTimeframeEnum, + "ModificationResult.ResponseEnum": ModificationResult.ResponseEnum, + "PaymentRequest.EntityTypeEnum": PaymentRequest.EntityTypeEnum, + "PaymentRequest.FundingSourceEnum": PaymentRequest.FundingSourceEnum, + "PaymentRequest.RecurringProcessingModelEnum": PaymentRequest.RecurringProcessingModelEnum, + "PaymentRequest.ShopperInteractionEnum": PaymentRequest.ShopperInteractionEnum, + "PaymentRequest3d.RecurringProcessingModelEnum": PaymentRequest3d.RecurringProcessingModelEnum, + "PaymentRequest3d.ShopperInteractionEnum": PaymentRequest3d.ShopperInteractionEnum, + "PaymentRequest3ds2.RecurringProcessingModelEnum": PaymentRequest3ds2.RecurringProcessingModelEnum, + "PaymentRequest3ds2.ShopperInteractionEnum": PaymentRequest3ds2.ShopperInteractionEnum, + "PaymentResult.ResultCodeEnum": PaymentResult.ResultCodeEnum, + "PlatformChargebackLogic.BehaviorEnum": PlatformChargebackLogic.BehaviorEnum, + "Recurring.ContractEnum": Recurring.ContractEnum, + "Recurring.TokenServiceEnum": Recurring.TokenServiceEnum, + "ResponseAdditionalDataCard.CardProductIdEnum": ResponseAdditionalDataCard.CardProductIdEnum, + "ResponseAdditionalDataCommon.FraudResultTypeEnum": ResponseAdditionalDataCommon.FraudResultTypeEnum, + "ResponseAdditionalDataCommon.FraudRiskLevelEnum": ResponseAdditionalDataCommon.FraudRiskLevelEnum, + "ResponseAdditionalDataCommon.RecurringProcessingModelEnum": ResponseAdditionalDataCommon.RecurringProcessingModelEnum, + "ResponseAdditionalDataCommon.TokenizationStoreOperationTypeEnum": ResponseAdditionalDataCommon.TokenizationStoreOperationTypeEnum, + "SecureRemoteCommerceCheckoutData.SchemeEnum": SecureRemoteCommerceCheckoutData.SchemeEnum, + "Split.TypeEnum": Split.TypeEnum, + "ThreeDS2RequestData.AcctTypeEnum": ThreeDS2RequestData.AcctTypeEnum, + "ThreeDS2RequestData.AddrMatchEnum": ThreeDS2RequestData.AddrMatchEnum, + "ThreeDS2RequestData.ChallengeIndicatorEnum": ThreeDS2RequestData.ChallengeIndicatorEnum, + "ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum": ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum, + "ThreeDS2RequestData.TransTypeEnum": ThreeDS2RequestData.TransTypeEnum, + "ThreeDS2RequestData.TransactionTypeEnum": ThreeDS2RequestData.TransactionTypeEnum, + "ThreeDS2Result.ChallengeCancelEnum": ThreeDS2Result.ChallengeCancelEnum, + "ThreeDS2Result.ExemptionIndicatorEnum": ThreeDS2Result.ExemptionIndicatorEnum, + "ThreeDS2Result.ThreeDSRequestorChallengeIndEnum": ThreeDS2Result.ThreeDSRequestorChallengeIndEnum, + "ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum": ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum, + "ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum": ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum, + "ThreeDSecureData.AuthenticationResponseEnum": ThreeDSecureData.AuthenticationResponseEnum, + "ThreeDSecureData.ChallengeCancelEnum": ThreeDSecureData.ChallengeCancelEnum, + "ThreeDSecureData.DirectoryResponseEnum": ThreeDSecureData.DirectoryResponseEnum, +} + +let typeMap: {[index: string]: any} = { + "AccountInfo": AccountInfo, + "AcctInfo": AcctInfo, + "AdditionalData3DSecure": AdditionalData3DSecure, + "AdditionalDataAirline": AdditionalDataAirline, + "AdditionalDataCarRental": AdditionalDataCarRental, + "AdditionalDataCommon": AdditionalDataCommon, + "AdditionalDataLevel23": AdditionalDataLevel23, + "AdditionalDataLodging": AdditionalDataLodging, + "AdditionalDataModifications": AdditionalDataModifications, + "AdditionalDataOpenInvoice": AdditionalDataOpenInvoice, + "AdditionalDataOpi": AdditionalDataOpi, + "AdditionalDataRatepay": AdditionalDataRatepay, + "AdditionalDataRetry": AdditionalDataRetry, + "AdditionalDataRisk": AdditionalDataRisk, + "AdditionalDataRiskStandalone": AdditionalDataRiskStandalone, + "AdditionalDataSubMerchant": AdditionalDataSubMerchant, + "AdditionalDataTemporaryServices": AdditionalDataTemporaryServices, + "AdditionalDataWallets": AdditionalDataWallets, + "Address": Address, + "AdjustAuthorisationRequest": AdjustAuthorisationRequest, + "Amount": Amount, + "ApplicationInfo": ApplicationInfo, + "AuthenticationResultRequest": AuthenticationResultRequest, + "AuthenticationResultResponse": AuthenticationResultResponse, + "BankAccount": BankAccount, + "BrowserInfo": BrowserInfo, + "CancelOrRefundRequest": CancelOrRefundRequest, + "CancelRequest": CancelRequest, + "CaptureRequest": CaptureRequest, + "Card": Card, + "CommonField": CommonField, + "DeviceRenderOptions": DeviceRenderOptions, + "DonationRequest": DonationRequest, + "ExternalPlatform": ExternalPlatform, + "ForexQuote": ForexQuote, + "FraudCheckResult": FraudCheckResult, + "FraudCheckResultWrapper": FraudCheckResultWrapper, + "FraudResult": FraudResult, + "FundDestination": FundDestination, + "FundSource": FundSource, + "Installments": Installments, + "Mandate": Mandate, + "MerchantDevice": MerchantDevice, + "MerchantRiskIndicator": MerchantRiskIndicator, + "ModificationResult": ModificationResult, + "Name": Name, + "PaymentRequest": PaymentRequest, + "PaymentRequest3d": PaymentRequest3d, + "PaymentRequest3ds2": PaymentRequest3ds2, + "PaymentResult": PaymentResult, + "Phone": Phone, + "PlatformChargebackLogic": PlatformChargebackLogic, + "Recurring": Recurring, + "RefundRequest": RefundRequest, + "ResponseAdditionalData3DSecure": ResponseAdditionalData3DSecure, + "ResponseAdditionalDataBillingAddress": ResponseAdditionalDataBillingAddress, + "ResponseAdditionalDataCard": ResponseAdditionalDataCard, + "ResponseAdditionalDataCommon": ResponseAdditionalDataCommon, + "ResponseAdditionalDataDomesticError": ResponseAdditionalDataDomesticError, + "ResponseAdditionalDataInstallments": ResponseAdditionalDataInstallments, + "ResponseAdditionalDataNetworkTokens": ResponseAdditionalDataNetworkTokens, + "ResponseAdditionalDataOpi": ResponseAdditionalDataOpi, + "ResponseAdditionalDataSepa": ResponseAdditionalDataSepa, + "SDKEphemPubKey": SDKEphemPubKey, + "SecureRemoteCommerceCheckoutData": SecureRemoteCommerceCheckoutData, + "ServiceError": ServiceError, + "ShopperInteractionDevice": ShopperInteractionDevice, + "Split": Split, + "SplitAmount": SplitAmount, + "SubMerchant": SubMerchant, + "TechnicalCancelRequest": TechnicalCancelRequest, + "ThreeDS1Result": ThreeDS1Result, + "ThreeDS2RequestData": ThreeDS2RequestData, + "ThreeDS2Result": ThreeDS2Result, + "ThreeDS2ResultRequest": ThreeDS2ResultRequest, + "ThreeDS2ResultResponse": ThreeDS2ResultResponse, + "ThreeDSRequestorAuthenticationInfo": ThreeDSRequestorAuthenticationInfo, + "ThreeDSRequestorPriorAuthenticationInfo": ThreeDSRequestorPriorAuthenticationInfo, + "ThreeDSecureData": ThreeDSecureData, + "VoidPendingRefundRequest": VoidPendingRefundRequest, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/payment/modificationResult.ts b/src/typings/payment/modificationResult.ts index 635d1c018..2db6b42e3 100644 --- a/src/typings/payment/modificationResult.ts +++ b/src/typings/payment/modificationResult.ts @@ -12,46 +12,38 @@ export class ModificationResult { /** * This field contains additional data, which may be returned in a particular modification response. */ - "additionalData"?: { [key: string]: string; }; + 'additionalData'?: { [key: string]: string; }; /** * 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. */ - "pspReference": string; + 'pspReference': string; /** * Indicates if the modification request has been received for processing. */ - "response": ModificationResult.ResponseEnum; + 'response': ModificationResult.ResponseEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "response", "baseName": "response", - "type": "ModificationResult.ResponseEnum", - "format": "" + "type": "ModificationResult.ResponseEnum" } ]; static getAttributeTypeMap() { return ModificationResult.attributeTypeMap; } - - public constructor() { - } } export namespace ModificationResult { diff --git a/src/typings/payment/name.ts b/src/typings/payment/name.ts index 131e35744..2248b74d2 100644 --- a/src/typings/payment/name.ts +++ b/src/typings/payment/name.ts @@ -12,35 +12,28 @@ export class Name { /** * The first name. */ - "firstName": string; + 'firstName': string; /** * The last name. */ - "lastName": string; + 'lastName': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "firstName", "baseName": "firstName", - "type": "string", - "format": "" + "type": "string" }, { "name": "lastName", "baseName": "lastName", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Name.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/objectSerializer.ts b/src/typings/payment/objectSerializer.ts deleted file mode 100644 index 1cf899aef..000000000 --- a/src/typings/payment/objectSerializer.ts +++ /dev/null @@ -1,560 +0,0 @@ -export * from "./models"; - -import { AccountInfo } from "./accountInfo"; -import { AcctInfo } from "./acctInfo"; -import { AdditionalData3DSecure } from "./additionalData3DSecure"; -import { AdditionalDataAirline } from "./additionalDataAirline"; -import { AdditionalDataCarRental } from "./additionalDataCarRental"; -import { AdditionalDataCommon } from "./additionalDataCommon"; -import { AdditionalDataLevel23 } from "./additionalDataLevel23"; -import { AdditionalDataLodging } from "./additionalDataLodging"; -import { AdditionalDataModifications } from "./additionalDataModifications"; -import { AdditionalDataOpenInvoice } from "./additionalDataOpenInvoice"; -import { AdditionalDataOpi } from "./additionalDataOpi"; -import { AdditionalDataRatepay } from "./additionalDataRatepay"; -import { AdditionalDataRetry } from "./additionalDataRetry"; -import { AdditionalDataRisk } from "./additionalDataRisk"; -import { AdditionalDataRiskStandalone } from "./additionalDataRiskStandalone"; -import { AdditionalDataSubMerchant } from "./additionalDataSubMerchant"; -import { AdditionalDataTemporaryServices } from "./additionalDataTemporaryServices"; -import { AdditionalDataWallets } from "./additionalDataWallets"; -import { Address } from "./address"; -import { AdjustAuthorisationRequest } from "./adjustAuthorisationRequest"; -import { Amount } from "./amount"; -import { ApplicationInfo } from "./applicationInfo"; -import { AuthenticationResultRequest } from "./authenticationResultRequest"; -import { AuthenticationResultResponse } from "./authenticationResultResponse"; -import { BankAccount } from "./bankAccount"; -import { BrowserInfo } from "./browserInfo"; -import { CancelOrRefundRequest } from "./cancelOrRefundRequest"; -import { CancelRequest } from "./cancelRequest"; -import { CaptureRequest } from "./captureRequest"; -import { Card } from "./card"; -import { CommonField } from "./commonField"; -import { DeviceRenderOptions } from "./deviceRenderOptions"; -import { DonationRequest } from "./donationRequest"; -import { ExternalPlatform } from "./externalPlatform"; -import { ForexQuote } from "./forexQuote"; -import { FraudCheckResult } from "./fraudCheckResult"; -import { FraudCheckResultWrapper } from "./fraudCheckResultWrapper"; -import { FraudResult } from "./fraudResult"; -import { FundDestination } from "./fundDestination"; -import { FundSource } from "./fundSource"; -import { Installments } from "./installments"; -import { Mandate } from "./mandate"; -import { MerchantDevice } from "./merchantDevice"; -import { MerchantRiskIndicator } from "./merchantRiskIndicator"; -import { ModificationResult } from "./modificationResult"; -import { Name } from "./name"; -import { PaymentRequest } from "./paymentRequest"; -import { PaymentRequest3d } from "./paymentRequest3d"; -import { PaymentRequest3ds2 } from "./paymentRequest3ds2"; -import { PaymentResult } from "./paymentResult"; -import { Phone } from "./phone"; -import { PlatformChargebackLogic } from "./platformChargebackLogic"; -import { Recurring } from "./recurring"; -import { RefundRequest } from "./refundRequest"; -import { ResponseAdditionalData3DSecure } from "./responseAdditionalData3DSecure"; -import { ResponseAdditionalDataBillingAddress } from "./responseAdditionalDataBillingAddress"; -import { ResponseAdditionalDataCard } from "./responseAdditionalDataCard"; -import { ResponseAdditionalDataCommon } from "./responseAdditionalDataCommon"; -import { ResponseAdditionalDataDomesticError } from "./responseAdditionalDataDomesticError"; -import { ResponseAdditionalDataInstallments } from "./responseAdditionalDataInstallments"; -import { ResponseAdditionalDataNetworkTokens } from "./responseAdditionalDataNetworkTokens"; -import { ResponseAdditionalDataOpi } from "./responseAdditionalDataOpi"; -import { ResponseAdditionalDataSepa } from "./responseAdditionalDataSepa"; -import { SDKEphemPubKey } from "./sDKEphemPubKey"; -import { SecureRemoteCommerceCheckoutData } from "./secureRemoteCommerceCheckoutData"; -import { ServiceError } from "./serviceError"; -import { ShopperInteractionDevice } from "./shopperInteractionDevice"; -import { Split } from "./split"; -import { SplitAmount } from "./splitAmount"; -import { SubMerchant } from "./subMerchant"; -import { TechnicalCancelRequest } from "./technicalCancelRequest"; -import { ThreeDS1Result } from "./threeDS1Result"; -import { ThreeDS2RequestData } from "./threeDS2RequestData"; -import { ThreeDS2Result } from "./threeDS2Result"; -import { ThreeDS2ResultRequest } from "./threeDS2ResultRequest"; -import { ThreeDS2ResultResponse } from "./threeDS2ResultResponse"; -import { ThreeDSRequestorAuthenticationInfo } from "./threeDSRequestorAuthenticationInfo"; -import { ThreeDSRequestorPriorAuthenticationInfo } from "./threeDSRequestorPriorAuthenticationInfo"; -import { ThreeDSecureData } from "./threeDSecureData"; -import { VoidPendingRefundRequest } from "./voidPendingRefundRequest"; - -/* tslint:disable:no-unused-variable */ -let primitives = [ - "string", - "boolean", - "double", - "integer", - "long", - "float", - "number", - "any" - ]; - -let enumsMap: Set = new Set([ - "AccountInfo.AccountAgeIndicatorEnum", - "AccountInfo.AccountChangeIndicatorEnum", - "AccountInfo.AccountTypeEnum", - "AccountInfo.DeliveryAddressUsageIndicatorEnum", - "AccountInfo.PasswordChangeIndicatorEnum", - "AccountInfo.PaymentAccountIndicatorEnum", - "AcctInfo.ChAccAgeIndEnum", - "AcctInfo.ChAccChangeIndEnum", - "AcctInfo.ChAccPwChangeIndEnum", - "AcctInfo.PaymentAccIndEnum", - "AcctInfo.ShipAddressUsageIndEnum", - "AcctInfo.ShipNameIndicatorEnum", - "AcctInfo.SuspiciousAccActivityEnum", - "AdditionalData3DSecure.ChallengeWindowSizeEnum", - "AdditionalDataCommon.IndustryUsageEnum", - "DeviceRenderOptions.SdkInterfaceEnum", - "DeviceRenderOptions.SdkUiTypeEnum", - "Installments.PlanEnum", - "Mandate.AmountRuleEnum", - "Mandate.BillingAttemptsRuleEnum", - "Mandate.FrequencyEnum", - "MerchantRiskIndicator.DeliveryAddressIndicatorEnum", - "MerchantRiskIndicator.DeliveryTimeframeEnum", - "ModificationResult.ResponseEnum", - "PaymentRequest.EntityTypeEnum", - "PaymentRequest.FundingSourceEnum", - "PaymentRequest.RecurringProcessingModelEnum", - "PaymentRequest.ShopperInteractionEnum", - "PaymentRequest3d.RecurringProcessingModelEnum", - "PaymentRequest3d.ShopperInteractionEnum", - "PaymentRequest3ds2.RecurringProcessingModelEnum", - "PaymentRequest3ds2.ShopperInteractionEnum", - "PaymentResult.ResultCodeEnum", - "PlatformChargebackLogic.BehaviorEnum", - "Recurring.ContractEnum", - "Recurring.TokenServiceEnum", - "ResponseAdditionalDataCard.CardProductIdEnum", - "ResponseAdditionalDataCommon.FraudResultTypeEnum", - "ResponseAdditionalDataCommon.FraudRiskLevelEnum", - "ResponseAdditionalDataCommon.RecurringProcessingModelEnum", - "ResponseAdditionalDataCommon.TokenizationStoreOperationTypeEnum", - "SecureRemoteCommerceCheckoutData.SchemeEnum", - "Split.TypeEnum", - "ThreeDS2RequestData.AcctTypeEnum", - "ThreeDS2RequestData.AddrMatchEnum", - "ThreeDS2RequestData.ChallengeIndicatorEnum", - "ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum", - "ThreeDS2RequestData.TransTypeEnum", - "ThreeDS2RequestData.TransactionTypeEnum", - "ThreeDS2Result.ChallengeCancelEnum", - "ThreeDS2Result.ExemptionIndicatorEnum", - "ThreeDS2Result.ThreeDSRequestorChallengeIndEnum", - "ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum", - "ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum", - "ThreeDSecureData.AuthenticationResponseEnum", - "ThreeDSecureData.ChallengeCancelEnum", - "ThreeDSecureData.DirectoryResponseEnum", -]); - -let typeMap: {[index: string]: any} = { - "AccountInfo": AccountInfo, - "AcctInfo": AcctInfo, - "AdditionalData3DSecure": AdditionalData3DSecure, - "AdditionalDataAirline": AdditionalDataAirline, - "AdditionalDataCarRental": AdditionalDataCarRental, - "AdditionalDataCommon": AdditionalDataCommon, - "AdditionalDataLevel23": AdditionalDataLevel23, - "AdditionalDataLodging": AdditionalDataLodging, - "AdditionalDataModifications": AdditionalDataModifications, - "AdditionalDataOpenInvoice": AdditionalDataOpenInvoice, - "AdditionalDataOpi": AdditionalDataOpi, - "AdditionalDataRatepay": AdditionalDataRatepay, - "AdditionalDataRetry": AdditionalDataRetry, - "AdditionalDataRisk": AdditionalDataRisk, - "AdditionalDataRiskStandalone": AdditionalDataRiskStandalone, - "AdditionalDataSubMerchant": AdditionalDataSubMerchant, - "AdditionalDataTemporaryServices": AdditionalDataTemporaryServices, - "AdditionalDataWallets": AdditionalDataWallets, - "Address": Address, - "AdjustAuthorisationRequest": AdjustAuthorisationRequest, - "Amount": Amount, - "ApplicationInfo": ApplicationInfo, - "AuthenticationResultRequest": AuthenticationResultRequest, - "AuthenticationResultResponse": AuthenticationResultResponse, - "BankAccount": BankAccount, - "BrowserInfo": BrowserInfo, - "CancelOrRefundRequest": CancelOrRefundRequest, - "CancelRequest": CancelRequest, - "CaptureRequest": CaptureRequest, - "Card": Card, - "CommonField": CommonField, - "DeviceRenderOptions": DeviceRenderOptions, - "DonationRequest": DonationRequest, - "ExternalPlatform": ExternalPlatform, - "ForexQuote": ForexQuote, - "FraudCheckResult": FraudCheckResult, - "FraudCheckResultWrapper": FraudCheckResultWrapper, - "FraudResult": FraudResult, - "FundDestination": FundDestination, - "FundSource": FundSource, - "Installments": Installments, - "Mandate": Mandate, - "MerchantDevice": MerchantDevice, - "MerchantRiskIndicator": MerchantRiskIndicator, - "ModificationResult": ModificationResult, - "Name": Name, - "PaymentRequest": PaymentRequest, - "PaymentRequest3d": PaymentRequest3d, - "PaymentRequest3ds2": PaymentRequest3ds2, - "PaymentResult": PaymentResult, - "Phone": Phone, - "PlatformChargebackLogic": PlatformChargebackLogic, - "Recurring": Recurring, - "RefundRequest": RefundRequest, - "ResponseAdditionalData3DSecure": ResponseAdditionalData3DSecure, - "ResponseAdditionalDataBillingAddress": ResponseAdditionalDataBillingAddress, - "ResponseAdditionalDataCard": ResponseAdditionalDataCard, - "ResponseAdditionalDataCommon": ResponseAdditionalDataCommon, - "ResponseAdditionalDataDomesticError": ResponseAdditionalDataDomesticError, - "ResponseAdditionalDataInstallments": ResponseAdditionalDataInstallments, - "ResponseAdditionalDataNetworkTokens": ResponseAdditionalDataNetworkTokens, - "ResponseAdditionalDataOpi": ResponseAdditionalDataOpi, - "ResponseAdditionalDataSepa": ResponseAdditionalDataSepa, - "SDKEphemPubKey": SDKEphemPubKey, - "SecureRemoteCommerceCheckoutData": SecureRemoteCommerceCheckoutData, - "ServiceError": ServiceError, - "ShopperInteractionDevice": ShopperInteractionDevice, - "Split": Split, - "SplitAmount": SplitAmount, - "SubMerchant": SubMerchant, - "TechnicalCancelRequest": TechnicalCancelRequest, - "ThreeDS1Result": ThreeDS1Result, - "ThreeDS2RequestData": ThreeDS2RequestData, - "ThreeDS2Result": ThreeDS2Result, - "ThreeDS2ResultRequest": ThreeDS2ResultRequest, - "ThreeDS2ResultResponse": ThreeDS2ResultResponse, - "ThreeDSRequestorAuthenticationInfo": ThreeDSRequestorAuthenticationInfo, - "ThreeDSRequestorPriorAuthenticationInfo": ThreeDSRequestorPriorAuthenticationInfo, - "ThreeDSecureData": ThreeDSecureData, - "VoidPendingRefundRequest": VoidPendingRefundRequest, -} - -type MimeTypeDescriptor = { - type: string; - subtype: string; - subtypeTokens: string[]; -}; - -/** - * Every mime-type consists of a type, subtype, and optional parameters. - * The subtype can be composite, including information about the content format. - * For example: `application/json-patch+json`, `application/merge-patch+json`. - * - * This helper transforms a string mime-type into an internal representation. - * This simplifies the implementation of predicates that in turn define common rules for parsing or stringifying - * the payload. - */ -const parseMimeType = (mimeType: string): MimeTypeDescriptor => { - const [type = '', subtype = ''] = mimeType.split('/'); - return { - type, - subtype, - subtypeTokens: subtype.split('+'), - }; -}; - -type MimeTypePredicate = (mimeType: string) => boolean; - -// This factory creates a predicate function that checks a string mime-type against defined rules. -const mimeTypePredicateFactory = (predicate: (descriptor: MimeTypeDescriptor) => boolean): MimeTypePredicate => (mimeType) => predicate(parseMimeType(mimeType)); - -// Use this factory when you need to define a simple predicate based only on type and, if applicable, subtype. -const mimeTypeSimplePredicateFactory = (type: string, subtype?: string): MimeTypePredicate => mimeTypePredicateFactory((descriptor) => { - if (descriptor.type !== type) return false; - if (subtype != null && descriptor.subtype !== subtype) return false; - return true; -}); - -// Creating a set of named predicates that will help us determine how to handle different mime-types -const isTextLikeMimeType = mimeTypeSimplePredicateFactory('text'); -const isJsonMimeType = mimeTypeSimplePredicateFactory('application', 'json'); -const isJsonLikeMimeType = mimeTypePredicateFactory((descriptor) => descriptor.type === 'application' && descriptor.subtypeTokens.some((item) => item === 'json')); -const isOctetStreamMimeType = mimeTypeSimplePredicateFactory('application', 'octet-stream'); -const isFormUrlencodedMimeType = mimeTypeSimplePredicateFactory('application', 'x-www-form-urlencoded'); - -// Defining a list of mime-types in the order of prioritization for handling. -const supportedMimeTypePredicatesWithPriority: MimeTypePredicate[] = [ - isJsonMimeType, - isJsonLikeMimeType, - isTextLikeMimeType, - isOctetStreamMimeType, - isFormUrlencodedMimeType, -]; - -const nullableSuffix = " | null"; -const optionalSuffix = " | undefined"; -const arrayPrefix = "Array<"; -const arraySuffix = ">"; -const mapPrefix = "{ [key: string]: "; -const mapSuffix = "; }"; - -export class ObjectSerializer { - public static findCorrectType(data: any, expectedType: string) { - if (data == undefined) { - return expectedType; - } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { - return expectedType; - } else if (expectedType === "Date") { - return expectedType; - } else { - if (enumsMap.has(expectedType)) { - return expectedType; - } - - if (!typeMap[expectedType]) { - return expectedType; // w/e we don't know the type - } - - // Check the discriminator - let discriminatorProperty = typeMap[expectedType].discriminator; - if (discriminatorProperty == null) { - return expectedType; // the type does not have a discriminator. use it. - } else { - if (data[discriminatorProperty]) { - var discriminatorType = data[discriminatorProperty]; - let mapping = typeMap[expectedType].mapping; - if (mapping != undefined && mapping[discriminatorType]) { - return mapping[discriminatorType]; // use the type given in the discriminator - } else if(typeMap[discriminatorType]) { - return discriminatorType; - } else { - return expectedType; // discriminator did not map to a type - } - } else { - return expectedType; // discriminator was not present (or an empty string) - } - } - } - } - - /** - * Serializes a value into a plain JSON-compatible object based on its type. - * - * Supports primitives, arrays, maps, dates, enums, and classes defined in `typeMap`. - * Falls back to raw data if type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The value to serialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A JSON-compatible representation of `data`. - */ - public static serialize(data: any, type: string, format: string = ""): any { - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.serialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.serialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - if (format == "date") { - let month = data.getMonth()+1 - month = month < 10 ? "0" + month.toString() : month.toString() - let day = data.getDate(); - day = day < 10 ? "0" + day.toString() : day.toString(); - - return data.getFullYear() + "-" + month + "-" + day; - } else { - return data.toISOString(); - } - } else { - if (enumsMap.has(type)) { - return data; - } - if (!typeMap[type]) { // in case we dont know the type - return data; - } - - // Get the actual type of this object - type = this.findCorrectType(data, type); - - const clazz = typeMap[type]; - - // Safe check for getAttributeTypeMap - if (typeof clazz.getAttributeTypeMap !== "function") { - return { ...data }; // fallback: shallow copy - } - - // get the map for the correct type. - let attributeTypes = typeMap[type].getAttributeTypeMap(); - let instance: {[index: string]: any} = {}; - for (let attributeType of attributeTypes) { - instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format); - } - return instance; - } - } - - /** - * Deserializes a plain JSON-compatible object into a typed instance. - * - * Handles primitives, arrays, maps, dates, enums, and known classes from `typeMap`. - * Uses discriminators when available to resolve polymorphic types. - * Falls back to raw data if the type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The raw input to deserialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A deserialized instance or value of `data`. - */ - public static deserialize(data: any, type: string, format: string = ""): any { - // polymorphism may change the actual type. - type = ObjectSerializer.findCorrectType(data, type); - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.deserialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.deserialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - return new Date(data); - } else { - if (enumsMap.has(type)) {// is Enum - return data; - } - - if (!typeMap[type]) { // dont know the type - return data; - } - let instance = new typeMap[type](); - - // Safe check for getAttributeTypeMap - if (typeof typeMap[type].getAttributeTypeMap !== "function") { - Object.assign(instance, data); // fallback: shallow copy - return instance; - } - - let attributeTypes = typeMap[type].getAttributeTypeMap(); - for (let attributeType of attributeTypes) { - let value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format); - if (value !== undefined) { - instance[attributeType.name] = value; - } - } - return instance; - } - } - - - /** - * Normalize media type - * - * We currently do not handle any media types attributes, i.e. anything - * after a semicolon. All content is assumed to be UTF-8 compatible. - */ - public static normalizeMediaType(mediaType: string | undefined): string | undefined { - if (mediaType === undefined) { - return undefined; - } - return (mediaType.split(";")[0] ?? '').trim().toLowerCase(); - } - - /** - * From a list of possible media types, choose the one we can handle best. - * - * The order of the given media types does not have any impact on the choice - * made. - */ - public static getPreferredMediaType(mediaTypes: Array): string { - /** According to OAS 3 we should default to json */ - if (mediaTypes.length === 0) { - return "application/json"; - } - - const normalMediaTypes = mediaTypes.map(ObjectSerializer.normalizeMediaType); - - for (const predicate of supportedMimeTypePredicatesWithPriority) { - for (const mediaType of normalMediaTypes) { - if (mediaType != null && predicate(mediaType)) { - return mediaType; - } - } - } - - throw new Error("None of the given media types are supported: " + mediaTypes.join(", ")); - } - - /** - * Convert data to a string according the given media type - */ - public static stringify(data: any, mediaType: string): string { - if (isTextLikeMimeType(mediaType)) { - return String(data); - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.stringify(data); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify."); - } - - /** - * Parse data from a string according to the given media type - */ - public static parse(rawData: string, mediaType: string | undefined) { - if (mediaType === undefined) { - throw new Error("Cannot parse content. No Content-Type defined."); - } - - if (isTextLikeMimeType(mediaType)) { - return rawData; - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.parse(rawData); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse."); - } -} diff --git a/src/typings/payment/paymentRequest.ts b/src/typings/payment/paymentRequest.ts index f21c74b67..ca9801a00 100644 --- a/src/typings/payment/paymentRequest.ts +++ b/src/typings/payment/paymentRequest.ts @@ -7,519 +7,459 @@ * Do not edit this class manually. */ -import { AccountInfo } from "./accountInfo"; -import { Address } from "./address"; -import { Amount } from "./amount"; -import { ApplicationInfo } from "./applicationInfo"; -import { BankAccount } from "./bankAccount"; -import { BrowserInfo } from "./browserInfo"; -import { Card } from "./card"; -import { ForexQuote } from "./forexQuote"; -import { FundDestination } from "./fundDestination"; -import { FundSource } from "./fundSource"; -import { Installments } from "./installments"; -import { Mandate } from "./mandate"; -import { MerchantRiskIndicator } from "./merchantRiskIndicator"; -import { Name } from "./name"; -import { PlatformChargebackLogic } from "./platformChargebackLogic"; -import { Recurring } from "./recurring"; -import { SecureRemoteCommerceCheckoutData } from "./secureRemoteCommerceCheckoutData"; -import { Split } from "./split"; -import { ThreeDS2RequestData } from "./threeDS2RequestData"; -import { ThreeDSecureData } from "./threeDSecureData"; - +import { AccountInfo } from './accountInfo'; +import { Address } from './address'; +import { Amount } from './amount'; +import { ApplicationInfo } from './applicationInfo'; +import { BankAccount } from './bankAccount'; +import { BrowserInfo } from './browserInfo'; +import { Card } from './card'; +import { ForexQuote } from './forexQuote'; +import { FundDestination } from './fundDestination'; +import { FundSource } from './fundSource'; +import { Installments } from './installments'; +import { Mandate } from './mandate'; +import { MerchantRiskIndicator } from './merchantRiskIndicator'; +import { Name } from './name'; +import { PlatformChargebackLogic } from './platformChargebackLogic'; +import { Recurring } from './recurring'; +import { SecureRemoteCommerceCheckoutData } from './secureRemoteCommerceCheckoutData'; +import { Split } from './split'; +import { ThreeDS2RequestData } from './threeDS2RequestData'; +import { ThreeDSecureData } from './threeDSecureData'; export class PaymentRequest { - "accountInfo"?: AccountInfo; - "additionalAmount"?: Amount; + 'accountInfo'?: AccountInfo | null; + 'additionalAmount'?: Amount | null; /** * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ - "additionalData"?: { [key: string]: string; }; - "amount": Amount; - "applicationInfo"?: ApplicationInfo; - "bankAccount"?: BankAccount; - "billingAddress"?: Address; - "browserInfo"?: BrowserInfo; + 'additionalData'?: { [key: string]: string; }; + 'amount': Amount; + 'applicationInfo'?: ApplicationInfo | null; + 'bankAccount'?: BankAccount | null; + 'billingAddress'?: Address | null; + 'browserInfo'?: BrowserInfo | null; /** * The delay between the authorisation and scheduled auto-capture, specified in hours. */ - "captureDelayHours"?: number; - "card"?: Card; + 'captureDelayHours'?: number; + 'card'?: Card | null; /** * The shopper\'s date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ - "dateOfBirth"?: string; - "dccQuote"?: ForexQuote; - "deliveryAddress"?: Address; + 'dateOfBirth'?: string; + 'dccQuote'?: ForexQuote | null; + 'deliveryAddress'?: Address | null; /** * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 */ - "deliveryDate"?: Date; + 'deliveryDate'?: Date; /** * A string containing the shopper\'s device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ - "deviceFingerprint"?: string; + 'deviceFingerprint'?: string; /** * The type of the entity the payment is processed for. */ - "entityType"?: PaymentRequest.EntityTypeEnum; + 'entityType'?: PaymentRequest.EntityTypeEnum; /** * An integer value that is added to the normal fraud score. The value can be either positive or negative. */ - "fraudOffset"?: number; - "fundDestination"?: FundDestination; - "fundSource"?: FundSource; + 'fraudOffset'?: number; + 'fundDestination'?: FundDestination | null; + 'fundSource'?: FundSource | null; /** * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ - "fundingSource"?: PaymentRequest.FundingSourceEnum; - "installments"?: Installments; + '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. */ - "localizedShopperStatement"?: { [key: string]: string; }; - "mandate"?: Mandate; + 'localizedShopperStatement'?: { [key: string]: string; }; + 'mandate'?: Mandate | null; /** * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ - "mcc"?: string; + 'mcc'?: string; /** * The merchant account identifier, with which you want to process the transaction. */ - "merchantAccount": string; + 'merchantAccount': string; /** * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. */ - "merchantOrderReference"?: string; - "merchantRiskIndicator"?: MerchantRiskIndicator; + 'merchantOrderReference'?: string; + 'merchantRiskIndicator'?: MerchantRiskIndicator | null; /** * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. */ - "metadata"?: { [key: string]: string; }; - "mpiData"?: ThreeDSecureData; + 'metadata'?: { [key: string]: string; }; + 'mpiData'?: ThreeDSecureData | null; /** * The two-character country code of the shopper\'s nationality. */ - "nationality"?: string; + 'nationality'?: string; /** * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. */ - "orderReference"?: string; - "platformChargebackLogic"?: PlatformChargebackLogic; - "recurring"?: Recurring; + 'orderReference'?: string; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; + 'recurring'?: Recurring | 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. */ - "recurringProcessingModel"?: PaymentRequest.RecurringProcessingModelEnum; + 'recurringProcessingModel'?: PaymentRequest.RecurringProcessingModelEnum; /** * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ - "reference": string; - "secureRemoteCommerceCheckoutData"?: SecureRemoteCommerceCheckoutData; + 'reference': string; + 'secureRemoteCommerceCheckoutData'?: SecureRemoteCommerceCheckoutData | null; /** * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. */ - "selectedBrand"?: string; + 'selectedBrand'?: string; /** * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. */ - "selectedRecurringDetailReference"?: string; + 'selectedRecurringDetailReference'?: string; /** * A session ID used to identify a payment session. */ - "sessionId"?: string; + 'sessionId'?: string; /** * The shopper\'s email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require `shopperEmail` for all browser-based and mobile implementations. */ - "shopperEmail"?: string; + 'shopperEmail'?: string; /** * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ - "shopperIP"?: string; + 'shopperIP'?: string; /** * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ - "shopperInteraction"?: PaymentRequest.ShopperInteractionEnum; + 'shopperInteraction'?: PaymentRequest.ShopperInteractionEnum; /** * The combination of a language code and a country code to specify the language to be used in the payment. */ - "shopperLocale"?: string; - "shopperName"?: Name; + 'shopperLocale'?: string; + 'shopperName'?: Name | null; /** * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ - "shopperReference"?: string; + 'shopperReference'?: string; /** * The text to be shown on the shopper\'s bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , \' _ - ? + * /_**. */ - "shopperStatement"?: string; + 'shopperStatement'?: string; /** * The shopper\'s social security number. */ - "socialSecurityNumber"?: string; + 'socialSecurityNumber'?: string; /** * An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). */ - "splits"?: Array; + 'splits'?: Array; /** * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. */ - "store"?: string; + 'store'?: string; /** * The shopper\'s telephone number. */ - "telephoneNumber"?: string; - "threeDS2RequestData"?: ThreeDS2RequestData; + 'telephoneNumber'?: string; + 'threeDS2RequestData'?: ThreeDS2RequestData | null; /** * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. */ - "threeDSAuthenticationOnly"?: boolean; + 'threeDSAuthenticationOnly'?: boolean; /** * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). */ - "totalsGroup"?: string; + 'totalsGroup'?: string; /** * Set to true if the payment should be routed to a trusted MID. */ - "trustedShopper"?: boolean; - - static readonly discriminator: string | undefined = undefined; + 'trustedShopper'?: boolean; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountInfo", "baseName": "accountInfo", - "type": "AccountInfo", - "format": "" + "type": "AccountInfo | null" }, { "name": "additionalAmount", "baseName": "additionalAmount", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo", - "format": "" + "type": "ApplicationInfo | null" }, { "name": "bankAccount", "baseName": "bankAccount", - "type": "BankAccount", - "format": "" + "type": "BankAccount | null" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "Address", - "format": "" + "type": "Address | null" }, { "name": "browserInfo", "baseName": "browserInfo", - "type": "BrowserInfo", - "format": "" + "type": "BrowserInfo | null" }, { "name": "captureDelayHours", "baseName": "captureDelayHours", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "card", "baseName": "card", - "type": "Card", - "format": "" + "type": "Card | null" }, { "name": "dateOfBirth", "baseName": "dateOfBirth", - "type": "string", - "format": "date" + "type": "string" }, { "name": "dccQuote", "baseName": "dccQuote", - "type": "ForexQuote", - "format": "" + "type": "ForexQuote | null" }, { "name": "deliveryAddress", "baseName": "deliveryAddress", - "type": "Address", - "format": "" + "type": "Address | null" }, { "name": "deliveryDate", "baseName": "deliveryDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "deviceFingerprint", "baseName": "deviceFingerprint", - "type": "string", - "format": "" + "type": "string" }, { "name": "entityType", "baseName": "entityType", - "type": "PaymentRequest.EntityTypeEnum", - "format": "" + "type": "PaymentRequest.EntityTypeEnum" }, { "name": "fraudOffset", "baseName": "fraudOffset", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "fundDestination", "baseName": "fundDestination", - "type": "FundDestination", - "format": "" + "type": "FundDestination | null" }, { "name": "fundSource", "baseName": "fundSource", - "type": "FundSource", - "format": "" + "type": "FundSource | null" }, { "name": "fundingSource", "baseName": "fundingSource", - "type": "PaymentRequest.FundingSourceEnum", - "format": "" + "type": "PaymentRequest.FundingSourceEnum" }, { "name": "installments", "baseName": "installments", - "type": "Installments", - "format": "" + "type": "Installments | null" }, { "name": "localizedShopperStatement", "baseName": "localizedShopperStatement", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "mandate", "baseName": "mandate", - "type": "Mandate", - "format": "" + "type": "Mandate | null" }, { "name": "mcc", "baseName": "mcc", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantOrderReference", "baseName": "merchantOrderReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantRiskIndicator", "baseName": "merchantRiskIndicator", - "type": "MerchantRiskIndicator", - "format": "" + "type": "MerchantRiskIndicator | null" }, { "name": "metadata", "baseName": "metadata", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "mpiData", "baseName": "mpiData", - "type": "ThreeDSecureData", - "format": "" + "type": "ThreeDSecureData | null" }, { "name": "nationality", "baseName": "nationality", - "type": "string", - "format": "" + "type": "string" }, { "name": "orderReference", "baseName": "orderReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic", - "format": "" + "type": "PlatformChargebackLogic | null" }, { "name": "recurring", "baseName": "recurring", - "type": "Recurring", - "format": "" + "type": "Recurring | null" }, { "name": "recurringProcessingModel", "baseName": "recurringProcessingModel", - "type": "PaymentRequest.RecurringProcessingModelEnum", - "format": "" + "type": "PaymentRequest.RecurringProcessingModelEnum" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "secureRemoteCommerceCheckoutData", "baseName": "secureRemoteCommerceCheckoutData", - "type": "SecureRemoteCommerceCheckoutData", - "format": "" + "type": "SecureRemoteCommerceCheckoutData | null" }, { "name": "selectedBrand", "baseName": "selectedBrand", - "type": "string", - "format": "" + "type": "string" }, { "name": "selectedRecurringDetailReference", "baseName": "selectedRecurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "sessionId", "baseName": "sessionId", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperEmail", "baseName": "shopperEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperIP", "baseName": "shopperIP", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperInteraction", "baseName": "shopperInteraction", - "type": "PaymentRequest.ShopperInteractionEnum", - "format": "" + "type": "PaymentRequest.ShopperInteractionEnum" }, { "name": "shopperLocale", "baseName": "shopperLocale", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperName", "baseName": "shopperName", - "type": "Name", - "format": "" + "type": "Name | null" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperStatement", "baseName": "shopperStatement", - "type": "string", - "format": "" + "type": "string" }, { "name": "socialSecurityNumber", "baseName": "socialSecurityNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "splits", "baseName": "splits", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "store", "baseName": "store", - "type": "string", - "format": "" + "type": "string" }, { "name": "telephoneNumber", "baseName": "telephoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDS2RequestData", "baseName": "threeDS2RequestData", - "type": "ThreeDS2RequestData", - "format": "" + "type": "ThreeDS2RequestData | null" }, { "name": "threeDSAuthenticationOnly", "baseName": "threeDSAuthenticationOnly", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "totalsGroup", "baseName": "totalsGroup", - "type": "string", - "format": "" + "type": "string" }, { "name": "trustedShopper", "baseName": "trustedShopper", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return PaymentRequest.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentRequest { diff --git a/src/typings/payment/paymentRequest3d.ts b/src/typings/payment/paymentRequest3d.ts index 13df382db..de4939e8f 100644 --- a/src/typings/payment/paymentRequest3d.ts +++ b/src/typings/payment/paymentRequest3d.ts @@ -7,445 +7,394 @@ * Do not edit this class manually. */ -import { AccountInfo } from "./accountInfo"; -import { Address } from "./address"; -import { Amount } from "./amount"; -import { ApplicationInfo } from "./applicationInfo"; -import { BrowserInfo } from "./browserInfo"; -import { ForexQuote } from "./forexQuote"; -import { Installments } from "./installments"; -import { MerchantRiskIndicator } from "./merchantRiskIndicator"; -import { Name } from "./name"; -import { Recurring } from "./recurring"; -import { Split } from "./split"; -import { ThreeDS2RequestData } from "./threeDS2RequestData"; - +import { AccountInfo } from './accountInfo'; +import { Address } from './address'; +import { Amount } from './amount'; +import { ApplicationInfo } from './applicationInfo'; +import { BrowserInfo } from './browserInfo'; +import { ForexQuote } from './forexQuote'; +import { Installments } from './installments'; +import { MerchantRiskIndicator } from './merchantRiskIndicator'; +import { Name } from './name'; +import { Recurring } from './recurring'; +import { Split } from './split'; +import { ThreeDS2RequestData } from './threeDS2RequestData'; export class PaymentRequest3d { - "accountInfo"?: AccountInfo; - "additionalAmount"?: Amount; + 'accountInfo'?: AccountInfo | null; + 'additionalAmount'?: Amount | null; /** * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ - "additionalData"?: { [key: string]: string; }; - "amount"?: Amount; - "applicationInfo"?: ApplicationInfo; - "billingAddress"?: Address; - "browserInfo"?: BrowserInfo; + 'additionalData'?: { [key: string]: string; }; + 'amount'?: Amount | null; + 'applicationInfo'?: ApplicationInfo | null; + 'billingAddress'?: Address | null; + 'browserInfo'?: BrowserInfo | null; /** * The delay between the authorisation and scheduled auto-capture, specified in hours. */ - "captureDelayHours"?: number; + 'captureDelayHours'?: number; /** * The shopper\'s date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ - "dateOfBirth"?: string; - "dccQuote"?: ForexQuote; - "deliveryAddress"?: Address; + 'dateOfBirth'?: string; + 'dccQuote'?: ForexQuote | null; + 'deliveryAddress'?: Address | null; /** * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 */ - "deliveryDate"?: Date; + 'deliveryDate'?: Date; /** * A string containing the shopper\'s device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ - "deviceFingerprint"?: string; + 'deviceFingerprint'?: string; /** * An integer value that is added to the normal fraud score. The value can be either positive or negative. */ - "fraudOffset"?: number; - "installments"?: Installments; + '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. */ - "localizedShopperStatement"?: { [key: string]: string; }; + 'localizedShopperStatement'?: { [key: string]: string; }; /** * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ - "mcc"?: string; + 'mcc'?: string; /** * The payment session identifier returned by the card issuer. */ - "md": string; + 'md': string; /** * The merchant account identifier, with which you want to process the transaction. */ - "merchantAccount": string; + 'merchantAccount': string; /** * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. */ - "merchantOrderReference"?: string; - "merchantRiskIndicator"?: MerchantRiskIndicator; + 'merchantOrderReference'?: string; + 'merchantRiskIndicator'?: MerchantRiskIndicator | null; /** * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. */ - "metadata"?: { [key: string]: string; }; + 'metadata'?: { [key: string]: string; }; /** * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. */ - "orderReference"?: string; + 'orderReference'?: string; /** * Payment authorisation response returned by the card issuer. The `paResponse` field holds the PaRes value received from the card issuer. */ - "paResponse": string; - "recurring"?: Recurring; + 'paResponse': string; + 'recurring'?: Recurring | 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. */ - "recurringProcessingModel"?: PaymentRequest3d.RecurringProcessingModelEnum; + 'recurringProcessingModel'?: PaymentRequest3d.RecurringProcessingModelEnum; /** * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ - "reference"?: string; + 'reference'?: string; /** * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. */ - "selectedBrand"?: string; + 'selectedBrand'?: string; /** * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. */ - "selectedRecurringDetailReference"?: string; + 'selectedRecurringDetailReference'?: string; /** * A session ID used to identify a payment session. */ - "sessionId"?: string; + 'sessionId'?: string; /** * The shopper\'s email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require `shopperEmail` for all browser-based and mobile implementations. */ - "shopperEmail"?: string; + 'shopperEmail'?: string; /** * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ - "shopperIP"?: string; + 'shopperIP'?: string; /** * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ - "shopperInteraction"?: PaymentRequest3d.ShopperInteractionEnum; + 'shopperInteraction'?: PaymentRequest3d.ShopperInteractionEnum; /** * The combination of a language code and a country code to specify the language to be used in the payment. */ - "shopperLocale"?: string; - "shopperName"?: Name; + 'shopperLocale'?: string; + 'shopperName'?: Name | null; /** * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ - "shopperReference"?: string; + 'shopperReference'?: string; /** * The text to be shown on the shopper\'s bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , \' _ - ? + * /_**. */ - "shopperStatement"?: string; + 'shopperStatement'?: string; /** * The shopper\'s social security number. */ - "socialSecurityNumber"?: string; + 'socialSecurityNumber'?: string; /** * An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). */ - "splits"?: Array; + 'splits'?: Array; /** * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. */ - "store"?: string; + 'store'?: string; /** * The shopper\'s telephone number. */ - "telephoneNumber"?: string; - "threeDS2RequestData"?: ThreeDS2RequestData; + 'telephoneNumber'?: string; + 'threeDS2RequestData'?: ThreeDS2RequestData | null; /** * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. */ - "threeDSAuthenticationOnly"?: boolean; + 'threeDSAuthenticationOnly'?: boolean; /** * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). */ - "totalsGroup"?: string; + 'totalsGroup'?: string; /** * Set to true if the payment should be routed to a trusted MID. */ - "trustedShopper"?: boolean; - - static readonly discriminator: string | undefined = undefined; + 'trustedShopper'?: boolean; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountInfo", "baseName": "accountInfo", - "type": "AccountInfo", - "format": "" + "type": "AccountInfo | null" }, { "name": "additionalAmount", "baseName": "additionalAmount", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo", - "format": "" + "type": "ApplicationInfo | null" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "Address", - "format": "" + "type": "Address | null" }, { "name": "browserInfo", "baseName": "browserInfo", - "type": "BrowserInfo", - "format": "" + "type": "BrowserInfo | null" }, { "name": "captureDelayHours", "baseName": "captureDelayHours", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "dateOfBirth", "baseName": "dateOfBirth", - "type": "string", - "format": "date" + "type": "string" }, { "name": "dccQuote", "baseName": "dccQuote", - "type": "ForexQuote", - "format": "" + "type": "ForexQuote | null" }, { "name": "deliveryAddress", "baseName": "deliveryAddress", - "type": "Address", - "format": "" + "type": "Address | null" }, { "name": "deliveryDate", "baseName": "deliveryDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "deviceFingerprint", "baseName": "deviceFingerprint", - "type": "string", - "format": "" + "type": "string" }, { "name": "fraudOffset", "baseName": "fraudOffset", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "installments", "baseName": "installments", - "type": "Installments", - "format": "" + "type": "Installments | null" }, { "name": "localizedShopperStatement", "baseName": "localizedShopperStatement", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "mcc", "baseName": "mcc", - "type": "string", - "format": "" + "type": "string" }, { "name": "md", "baseName": "md", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantOrderReference", "baseName": "merchantOrderReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantRiskIndicator", "baseName": "merchantRiskIndicator", - "type": "MerchantRiskIndicator", - "format": "" + "type": "MerchantRiskIndicator | null" }, { "name": "metadata", "baseName": "metadata", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "orderReference", "baseName": "orderReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "paResponse", "baseName": "paResponse", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurring", "baseName": "recurring", - "type": "Recurring", - "format": "" + "type": "Recurring | null" }, { "name": "recurringProcessingModel", "baseName": "recurringProcessingModel", - "type": "PaymentRequest3d.RecurringProcessingModelEnum", - "format": "" + "type": "PaymentRequest3d.RecurringProcessingModelEnum" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "selectedBrand", "baseName": "selectedBrand", - "type": "string", - "format": "" + "type": "string" }, { "name": "selectedRecurringDetailReference", "baseName": "selectedRecurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "sessionId", "baseName": "sessionId", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperEmail", "baseName": "shopperEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperIP", "baseName": "shopperIP", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperInteraction", "baseName": "shopperInteraction", - "type": "PaymentRequest3d.ShopperInteractionEnum", - "format": "" + "type": "PaymentRequest3d.ShopperInteractionEnum" }, { "name": "shopperLocale", "baseName": "shopperLocale", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperName", "baseName": "shopperName", - "type": "Name", - "format": "" + "type": "Name | null" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperStatement", "baseName": "shopperStatement", - "type": "string", - "format": "" + "type": "string" }, { "name": "socialSecurityNumber", "baseName": "socialSecurityNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "splits", "baseName": "splits", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "store", "baseName": "store", - "type": "string", - "format": "" + "type": "string" }, { "name": "telephoneNumber", "baseName": "telephoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDS2RequestData", "baseName": "threeDS2RequestData", - "type": "ThreeDS2RequestData", - "format": "" + "type": "ThreeDS2RequestData | null" }, { "name": "threeDSAuthenticationOnly", "baseName": "threeDSAuthenticationOnly", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "totalsGroup", "baseName": "totalsGroup", - "type": "string", - "format": "" + "type": "string" }, { "name": "trustedShopper", "baseName": "trustedShopper", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return PaymentRequest3d.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentRequest3d { diff --git a/src/typings/payment/paymentRequest3ds2.ts b/src/typings/payment/paymentRequest3ds2.ts index 400a537c3..be09f7ddd 100644 --- a/src/typings/payment/paymentRequest3ds2.ts +++ b/src/typings/payment/paymentRequest3ds2.ts @@ -7,443 +7,392 @@ * Do not edit this class manually. */ -import { AccountInfo } from "./accountInfo"; -import { Address } from "./address"; -import { Amount } from "./amount"; -import { ApplicationInfo } from "./applicationInfo"; -import { BrowserInfo } from "./browserInfo"; -import { ForexQuote } from "./forexQuote"; -import { Installments } from "./installments"; -import { MerchantRiskIndicator } from "./merchantRiskIndicator"; -import { Name } from "./name"; -import { Recurring } from "./recurring"; -import { Split } from "./split"; -import { ThreeDS2RequestData } from "./threeDS2RequestData"; -import { ThreeDS2Result } from "./threeDS2Result"; - +import { AccountInfo } from './accountInfo'; +import { Address } from './address'; +import { Amount } from './amount'; +import { ApplicationInfo } from './applicationInfo'; +import { BrowserInfo } from './browserInfo'; +import { ForexQuote } from './forexQuote'; +import { Installments } from './installments'; +import { MerchantRiskIndicator } from './merchantRiskIndicator'; +import { Name } from './name'; +import { Recurring } from './recurring'; +import { Split } from './split'; +import { ThreeDS2RequestData } from './threeDS2RequestData'; +import { ThreeDS2Result } from './threeDS2Result'; export class PaymentRequest3ds2 { - "accountInfo"?: AccountInfo; - "additionalAmount"?: Amount; + 'accountInfo'?: AccountInfo | null; + 'additionalAmount'?: Amount | null; /** * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ - "additionalData"?: { [key: string]: string; }; - "amount": Amount; - "applicationInfo"?: ApplicationInfo; - "billingAddress"?: Address; - "browserInfo"?: BrowserInfo; + 'additionalData'?: { [key: string]: string; }; + 'amount': Amount; + 'applicationInfo'?: ApplicationInfo | null; + 'billingAddress'?: Address | null; + 'browserInfo'?: BrowserInfo | null; /** * The delay between the authorisation and scheduled auto-capture, specified in hours. */ - "captureDelayHours"?: number; + 'captureDelayHours'?: number; /** * The shopper\'s date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ - "dateOfBirth"?: string; - "dccQuote"?: ForexQuote; - "deliveryAddress"?: Address; + 'dateOfBirth'?: string; + 'dccQuote'?: ForexQuote | null; + 'deliveryAddress'?: Address | null; /** * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 */ - "deliveryDate"?: Date; + 'deliveryDate'?: Date; /** * A string containing the shopper\'s device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ - "deviceFingerprint"?: string; + 'deviceFingerprint'?: string; /** * An integer value that is added to the normal fraud score. The value can be either positive or negative. */ - "fraudOffset"?: number; - "installments"?: Installments; + '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. */ - "localizedShopperStatement"?: { [key: string]: string; }; + 'localizedShopperStatement'?: { [key: string]: string; }; /** * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ - "mcc"?: string; + 'mcc'?: string; /** * The merchant account identifier, with which you want to process the transaction. */ - "merchantAccount": string; + 'merchantAccount': string; /** * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. */ - "merchantOrderReference"?: string; - "merchantRiskIndicator"?: MerchantRiskIndicator; + 'merchantOrderReference'?: string; + 'merchantRiskIndicator'?: MerchantRiskIndicator | null; /** * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. */ - "metadata"?: { [key: string]: string; }; + 'metadata'?: { [key: string]: string; }; /** * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. */ - "orderReference"?: string; - "recurring"?: Recurring; + 'orderReference'?: string; + 'recurring'?: Recurring | 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. */ - "recurringProcessingModel"?: PaymentRequest3ds2.RecurringProcessingModelEnum; + 'recurringProcessingModel'?: PaymentRequest3ds2.RecurringProcessingModelEnum; /** * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ - "reference": string; + 'reference': string; /** * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. */ - "selectedBrand"?: string; + 'selectedBrand'?: string; /** * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. */ - "selectedRecurringDetailReference"?: string; + 'selectedRecurringDetailReference'?: string; /** * A session ID used to identify a payment session. */ - "sessionId"?: string; + 'sessionId'?: string; /** * The shopper\'s email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require `shopperEmail` for all browser-based and mobile implementations. */ - "shopperEmail"?: string; + 'shopperEmail'?: string; /** * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ - "shopperIP"?: string; + 'shopperIP'?: string; /** * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ - "shopperInteraction"?: PaymentRequest3ds2.ShopperInteractionEnum; + 'shopperInteraction'?: PaymentRequest3ds2.ShopperInteractionEnum; /** * The combination of a language code and a country code to specify the language to be used in the payment. */ - "shopperLocale"?: string; - "shopperName"?: Name; + 'shopperLocale'?: string; + 'shopperName'?: Name | null; /** * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ - "shopperReference"?: string; + 'shopperReference'?: string; /** * The text to be shown on the shopper\'s bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , \' _ - ? + * /_**. */ - "shopperStatement"?: string; + 'shopperStatement'?: string; /** * The shopper\'s social security number. */ - "socialSecurityNumber"?: string; + 'socialSecurityNumber'?: string; /** * An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). */ - "splits"?: Array; + 'splits'?: Array; /** * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment. */ - "store"?: string; + 'store'?: string; /** * The shopper\'s telephone number. */ - "telephoneNumber"?: string; - "threeDS2RequestData"?: ThreeDS2RequestData; - "threeDS2Result"?: ThreeDS2Result; + 'telephoneNumber'?: string; + 'threeDS2RequestData'?: ThreeDS2RequestData | null; + 'threeDS2Result'?: ThreeDS2Result | null; /** * The ThreeDS2Token that was returned in the /authorise call. */ - "threeDS2Token"?: string; + 'threeDS2Token'?: string; /** * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. */ - "threeDSAuthenticationOnly"?: boolean; + 'threeDSAuthenticationOnly'?: boolean; /** * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). */ - "totalsGroup"?: string; + 'totalsGroup'?: string; /** * Set to true if the payment should be routed to a trusted MID. */ - "trustedShopper"?: boolean; - - static readonly discriminator: string | undefined = undefined; + 'trustedShopper'?: boolean; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountInfo", "baseName": "accountInfo", - "type": "AccountInfo", - "format": "" + "type": "AccountInfo | null" }, { "name": "additionalAmount", "baseName": "additionalAmount", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo", - "format": "" + "type": "ApplicationInfo | null" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "Address", - "format": "" + "type": "Address | null" }, { "name": "browserInfo", "baseName": "browserInfo", - "type": "BrowserInfo", - "format": "" + "type": "BrowserInfo | null" }, { "name": "captureDelayHours", "baseName": "captureDelayHours", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "dateOfBirth", "baseName": "dateOfBirth", - "type": "string", - "format": "date" + "type": "string" }, { "name": "dccQuote", "baseName": "dccQuote", - "type": "ForexQuote", - "format": "" + "type": "ForexQuote | null" }, { "name": "deliveryAddress", "baseName": "deliveryAddress", - "type": "Address", - "format": "" + "type": "Address | null" }, { "name": "deliveryDate", "baseName": "deliveryDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "deviceFingerprint", "baseName": "deviceFingerprint", - "type": "string", - "format": "" + "type": "string" }, { "name": "fraudOffset", "baseName": "fraudOffset", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "installments", "baseName": "installments", - "type": "Installments", - "format": "" + "type": "Installments | null" }, { "name": "localizedShopperStatement", "baseName": "localizedShopperStatement", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "mcc", "baseName": "mcc", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantOrderReference", "baseName": "merchantOrderReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantRiskIndicator", "baseName": "merchantRiskIndicator", - "type": "MerchantRiskIndicator", - "format": "" + "type": "MerchantRiskIndicator | null" }, { "name": "metadata", "baseName": "metadata", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "orderReference", "baseName": "orderReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurring", "baseName": "recurring", - "type": "Recurring", - "format": "" + "type": "Recurring | null" }, { "name": "recurringProcessingModel", "baseName": "recurringProcessingModel", - "type": "PaymentRequest3ds2.RecurringProcessingModelEnum", - "format": "" + "type": "PaymentRequest3ds2.RecurringProcessingModelEnum" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "selectedBrand", "baseName": "selectedBrand", - "type": "string", - "format": "" + "type": "string" }, { "name": "selectedRecurringDetailReference", "baseName": "selectedRecurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "sessionId", "baseName": "sessionId", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperEmail", "baseName": "shopperEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperIP", "baseName": "shopperIP", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperInteraction", "baseName": "shopperInteraction", - "type": "PaymentRequest3ds2.ShopperInteractionEnum", - "format": "" + "type": "PaymentRequest3ds2.ShopperInteractionEnum" }, { "name": "shopperLocale", "baseName": "shopperLocale", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperName", "baseName": "shopperName", - "type": "Name", - "format": "" + "type": "Name | null" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperStatement", "baseName": "shopperStatement", - "type": "string", - "format": "" + "type": "string" }, { "name": "socialSecurityNumber", "baseName": "socialSecurityNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "splits", "baseName": "splits", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "store", "baseName": "store", - "type": "string", - "format": "" + "type": "string" }, { "name": "telephoneNumber", "baseName": "telephoneNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDS2RequestData", "baseName": "threeDS2RequestData", - "type": "ThreeDS2RequestData", - "format": "" + "type": "ThreeDS2RequestData | null" }, { "name": "threeDS2Result", "baseName": "threeDS2Result", - "type": "ThreeDS2Result", - "format": "" + "type": "ThreeDS2Result | null" }, { "name": "threeDS2Token", "baseName": "threeDS2Token", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSAuthenticationOnly", "baseName": "threeDSAuthenticationOnly", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "totalsGroup", "baseName": "totalsGroup", - "type": "string", - "format": "" + "type": "string" }, { "name": "trustedShopper", "baseName": "trustedShopper", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return PaymentRequest3ds2.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentRequest3ds2 { diff --git a/src/typings/payment/paymentResult.ts b/src/typings/payment/paymentResult.ts index bdeebed3d..fa948facf 100644 --- a/src/typings/payment/paymentResult.ts +++ b/src/typings/payment/paymentResult.ts @@ -7,128 +7,111 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { FraudResult } from "./fraudResult"; - +import { Amount } from './amount'; +import { FraudResult } from './fraudResult'; export class PaymentResult { /** * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. */ - "additionalData"?: { [key: string]: string; }; + 'additionalData'?: { [key: string]: string; }; /** * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. */ - "authCode"?: string; - "dccAmount"?: Amount; + 'authCode'?: string; + 'dccAmount'?: Amount | null; /** * Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ - "dccSignature"?: string; - "fraudResult"?: FraudResult; + 'dccSignature'?: string; + 'fraudResult'?: FraudResult | null; /** * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. */ - "issuerUrl"?: string; + 'issuerUrl'?: string; /** * The payment session. */ - "md"?: string; + 'md'?: string; /** * The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure). */ - "paRequest"?: string; + 'paRequest'?: string; /** * Adyen\'s 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ - "pspReference"?: string; + 'pspReference'?: string; /** * If the payment\'s authorisation is refused or an error occurs during authorisation, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ - "refusalReason"?: string; + 'refusalReason'?: string; /** * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper\'s device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. */ - "resultCode"?: PaymentResult.ResultCodeEnum; - - static readonly discriminator: string | undefined = undefined; + 'resultCode'?: PaymentResult.ResultCodeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "authCode", "baseName": "authCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "dccAmount", "baseName": "dccAmount", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "dccSignature", "baseName": "dccSignature", - "type": "string", - "format": "" + "type": "string" }, { "name": "fraudResult", "baseName": "fraudResult", - "type": "FraudResult", - "format": "" + "type": "FraudResult | null" }, { "name": "issuerUrl", "baseName": "issuerUrl", - "type": "string", - "format": "" + "type": "string" }, { "name": "md", "baseName": "md", - "type": "string", - "format": "" + "type": "string" }, { "name": "paRequest", "baseName": "paRequest", - "type": "string", - "format": "" + "type": "string" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "refusalReason", "baseName": "refusalReason", - "type": "string", - "format": "" + "type": "string" }, { "name": "resultCode", "baseName": "resultCode", - "type": "PaymentResult.ResultCodeEnum", - "format": "" + "type": "PaymentResult.ResultCodeEnum" } ]; static getAttributeTypeMap() { return PaymentResult.attributeTypeMap; } - - public constructor() { - } } export namespace PaymentResult { diff --git a/src/typings/payment/phone.ts b/src/typings/payment/phone.ts index dbd274237..eeddc489b 100644 --- a/src/typings/payment/phone.ts +++ b/src/typings/payment/phone.ts @@ -12,35 +12,28 @@ export class Phone { /** * Country code. Length: 1–3 characters. */ - "cc"?: string; + 'cc'?: string; /** * Subscriber number. Maximum length: 15 characters. */ - "subscriber"?: string; + 'subscriber'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "cc", "baseName": "cc", - "type": "string", - "format": "" + "type": "string" }, { "name": "subscriber", "baseName": "subscriber", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Phone.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/platformChargebackLogic.ts b/src/typings/payment/platformChargebackLogic.ts index 5e04df694..77ee55922 100644 --- a/src/typings/payment/platformChargebackLogic.ts +++ b/src/typings/payment/platformChargebackLogic.ts @@ -12,46 +12,38 @@ export class PlatformChargebackLogic { /** * The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**. */ - "behavior"?: PlatformChargebackLogic.BehaviorEnum; + 'behavior'?: PlatformChargebackLogic.BehaviorEnum; /** * The unique identifier of the balance account to which the chargeback fees are booked. By default, the chargeback fees are booked to your liable balance account. */ - "costAllocationAccount"?: string; + 'costAllocationAccount'?: string; /** * The unique identifier of the balance account against which the disputed amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**. */ - "targetAccount"?: string; + 'targetAccount'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "behavior", "baseName": "behavior", - "type": "PlatformChargebackLogic.BehaviorEnum", - "format": "" + "type": "PlatformChargebackLogic.BehaviorEnum" }, { "name": "costAllocationAccount", "baseName": "costAllocationAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "targetAccount", "baseName": "targetAccount", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PlatformChargebackLogic.attributeTypeMap; } - - public constructor() { - } } export namespace PlatformChargebackLogic { diff --git a/src/typings/payment/recurring.ts b/src/typings/payment/recurring.ts index fba92e9b7..a65fef7c6 100644 --- a/src/typings/payment/recurring.ts +++ b/src/typings/payment/recurring.ts @@ -12,66 +12,56 @@ export class Recurring { /** * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). */ - "contract"?: Recurring.ContractEnum; + 'contract'?: Recurring.ContractEnum; /** * A descriptive name for this detail. */ - "recurringDetailName"?: string; + 'recurringDetailName'?: string; /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. */ - "recurringExpiry"?: Date; + 'recurringExpiry'?: Date; /** * Minimum number of days between authorisations. Only for 3D Secure 2. */ - "recurringFrequency"?: string; + 'recurringFrequency'?: string; /** * The name of the token service. */ - "tokenService"?: Recurring.TokenServiceEnum; + 'tokenService'?: Recurring.TokenServiceEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "contract", "baseName": "contract", - "type": "Recurring.ContractEnum", - "format": "" + "type": "Recurring.ContractEnum" }, { "name": "recurringDetailName", "baseName": "recurringDetailName", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringExpiry", "baseName": "recurringExpiry", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "recurringFrequency", "baseName": "recurringFrequency", - "type": "string", - "format": "" + "type": "string" }, { "name": "tokenService", "baseName": "tokenService", - "type": "Recurring.TokenServiceEnum", - "format": "" + "type": "Recurring.TokenServiceEnum" } ]; static getAttributeTypeMap() { return Recurring.attributeTypeMap; } - - public constructor() { - } } export namespace Recurring { diff --git a/src/typings/payment/refundRequest.ts b/src/typings/payment/refundRequest.ts index 936475738..094db6201 100644 --- a/src/typings/payment/refundRequest.ts +++ b/src/typings/payment/refundRequest.ts @@ -7,126 +7,109 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { PlatformChargebackLogic } from "./platformChargebackLogic"; -import { Split } from "./split"; -import { ThreeDSecureData } from "./threeDSecureData"; - +import { Amount } from './amount'; +import { PlatformChargebackLogic } from './platformChargebackLogic'; +import { Split } from './split'; +import { ThreeDSecureData } from './threeDSecureData'; export class RefundRequest { /** * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. */ - "additionalData"?: { [key: string]: string; }; + 'additionalData'?: { [key: string]: string; }; /** * The merchant account that is used to process the payment. */ - "merchantAccount": string; - "modificationAmount": Amount; - "mpiData"?: ThreeDSecureData; + 'merchantAccount': string; + 'modificationAmount': Amount; + 'mpiData'?: ThreeDSecureData | null; /** * The original merchant reference to cancel. */ - "originalMerchantReference"?: string; + 'originalMerchantReference'?: string; /** * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification */ - "originalReference": string; - "platformChargebackLogic"?: PlatformChargebackLogic; + 'originalReference': string; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ - "reference"?: string; + 'reference'?: string; /** * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). */ - "splits"?: Array; + 'splits'?: Array; /** * The transaction reference provided by the PED. For point-of-sale integrations only. */ - "tenderReference"?: string; + 'tenderReference'?: string; /** * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. */ - "uniqueTerminalId"?: string; - - static readonly discriminator: string | undefined = undefined; + 'uniqueTerminalId'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "modificationAmount", "baseName": "modificationAmount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "mpiData", "baseName": "mpiData", - "type": "ThreeDSecureData", - "format": "" + "type": "ThreeDSecureData | null" }, { "name": "originalMerchantReference", "baseName": "originalMerchantReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "originalReference", "baseName": "originalReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic", - "format": "" + "type": "PlatformChargebackLogic | null" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "splits", "baseName": "splits", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "tenderReference", "baseName": "tenderReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "uniqueTerminalId", "baseName": "uniqueTerminalId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return RefundRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/responseAdditionalData3DSecure.ts b/src/typings/payment/responseAdditionalData3DSecure.ts index ca5f3ef4e..c0576b1a7 100644 --- a/src/typings/payment/responseAdditionalData3DSecure.ts +++ b/src/typings/payment/responseAdditionalData3DSecure.ts @@ -12,65 +12,55 @@ export class ResponseAdditionalData3DSecure { /** * Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. */ - "cardHolderInfo"?: string; + 'cardHolderInfo'?: string; /** * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. */ - "cavv"?: string; + 'cavv'?: string; /** * The CAVV algorithm used. */ - "cavvAlgorithm"?: string; + 'cavvAlgorithm'?: string; /** * Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** */ - "scaExemptionRequested"?: string; + 'scaExemptionRequested'?: string; /** * Indicates whether a card is enrolled for 3D Secure 2. */ - "threeds2_cardEnrolled"?: boolean; + 'threeds2_cardEnrolled'?: boolean; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "cardHolderInfo", "baseName": "cardHolderInfo", - "type": "string", - "format": "" + "type": "string" }, { "name": "cavv", "baseName": "cavv", - "type": "string", - "format": "" + "type": "string" }, { "name": "cavvAlgorithm", "baseName": "cavvAlgorithm", - "type": "string", - "format": "" + "type": "string" }, { "name": "scaExemptionRequested", "baseName": "scaExemptionRequested", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeds2_cardEnrolled", "baseName": "threeds2.cardEnrolled", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return ResponseAdditionalData3DSecure.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/responseAdditionalDataBillingAddress.ts b/src/typings/payment/responseAdditionalDataBillingAddress.ts index 850fc7296..29314a0bc 100644 --- a/src/typings/payment/responseAdditionalDataBillingAddress.ts +++ b/src/typings/payment/responseAdditionalDataBillingAddress.ts @@ -12,75 +12,64 @@ export class ResponseAdditionalDataBillingAddress { /** * The billing address city passed in the payment request. */ - "billingAddress_city"?: string; + 'billingAddress_city'?: string; /** * The billing address country passed in the payment request. Example: NL */ - "billingAddress_country"?: string; + 'billingAddress_country'?: string; /** * The billing address house number or name passed in the payment request. */ - "billingAddress_houseNumberOrName"?: string; + 'billingAddress_houseNumberOrName'?: string; /** * The billing address postal code passed in the payment request. Example: 1011 DJ */ - "billingAddress_postalCode"?: string; + 'billingAddress_postalCode'?: string; /** * The billing address state or province passed in the payment request. Example: NH */ - "billingAddress_stateOrProvince"?: string; + 'billingAddress_stateOrProvince'?: string; /** * The billing address street passed in the payment request. */ - "billingAddress_street"?: string; + 'billingAddress_street'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "billingAddress_city", "baseName": "billingAddress.city", - "type": "string", - "format": "" + "type": "string" }, { "name": "billingAddress_country", "baseName": "billingAddress.country", - "type": "string", - "format": "" + "type": "string" }, { "name": "billingAddress_houseNumberOrName", "baseName": "billingAddress.houseNumberOrName", - "type": "string", - "format": "" + "type": "string" }, { "name": "billingAddress_postalCode", "baseName": "billingAddress.postalCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "billingAddress_stateOrProvince", "baseName": "billingAddress.stateOrProvince", - "type": "string", - "format": "" + "type": "string" }, { "name": "billingAddress_street", "baseName": "billingAddress.street", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ResponseAdditionalDataBillingAddress.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/responseAdditionalDataCard.ts b/src/typings/payment/responseAdditionalDataCard.ts index 9ad24e59f..edd3b3df3 100644 --- a/src/typings/payment/responseAdditionalDataCard.ts +++ b/src/typings/payment/responseAdditionalDataCard.ts @@ -12,106 +12,92 @@ export class ResponseAdditionalDataCard { /** * The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 */ - "cardBin"?: string; + 'cardBin'?: string; /** * The cardholder name passed in the payment request. */ - "cardHolderName"?: string; + 'cardHolderName'?: string; /** * The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. */ - "cardIssuingBank"?: string; + 'cardIssuingBank'?: string; /** * The country where the card was issued. Example: US */ - "cardIssuingCountry"?: string; + 'cardIssuingCountry'?: string; /** * The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD */ - "cardIssuingCurrency"?: string; + 'cardIssuingCurrency'?: string; /** * The card payment method used for the transaction. Example: amex */ - "cardPaymentMethod"?: string; + 'cardPaymentMethod'?: string; /** * The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit */ - "cardProductId"?: ResponseAdditionalDataCard.CardProductIdEnum; + 'cardProductId'?: ResponseAdditionalDataCard.CardProductIdEnum; /** * The last four digits of a card number. > Returned only in case of a card payment. */ - "cardSummary"?: string; + 'cardSummary'?: string; /** * The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 */ - "issuerBin"?: string; + 'issuerBin'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "cardBin", "baseName": "cardBin", - "type": "string", - "format": "" + "type": "string" }, { "name": "cardHolderName", "baseName": "cardHolderName", - "type": "string", - "format": "" + "type": "string" }, { "name": "cardIssuingBank", "baseName": "cardIssuingBank", - "type": "string", - "format": "" + "type": "string" }, { "name": "cardIssuingCountry", "baseName": "cardIssuingCountry", - "type": "string", - "format": "" + "type": "string" }, { "name": "cardIssuingCurrency", "baseName": "cardIssuingCurrency", - "type": "string", - "format": "" + "type": "string" }, { "name": "cardPaymentMethod", "baseName": "cardPaymentMethod", - "type": "string", - "format": "" + "type": "string" }, { "name": "cardProductId", "baseName": "cardProductId", - "type": "ResponseAdditionalDataCard.CardProductIdEnum", - "format": "" + "type": "ResponseAdditionalDataCard.CardProductIdEnum" }, { "name": "cardSummary", "baseName": "cardSummary", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuerBin", "baseName": "issuerBin", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ResponseAdditionalDataCard.attributeTypeMap; } - - public constructor() { - } } export namespace ResponseAdditionalDataCard { diff --git a/src/typings/payment/responseAdditionalDataCommon.ts b/src/typings/payment/responseAdditionalDataCommon.ts index b3c42bfa1..7adfe036a 100644 --- a/src/typings/payment/responseAdditionalDataCommon.ts +++ b/src/typings/payment/responseAdditionalDataCommon.ts @@ -12,652 +12,584 @@ export class ResponseAdditionalDataCommon { /** * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. */ - "acquirerAccountCode"?: string; + 'acquirerAccountCode'?: string; /** * The name of the acquirer processing the payment request. Example: TestPmmAcquirer */ - "acquirerCode"?: string; + 'acquirerCode'?: string; /** * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 */ - "acquirerReference"?: string; + 'acquirerReference'?: string; /** * The Adyen alias of the card. Example: H167852639363479 */ - "alias"?: string; + 'alias'?: string; /** * The type of the card alias. Example: Default */ - "aliasType"?: string; + 'aliasType'?: string; /** * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 */ - "authCode"?: string; + 'authCode'?: string; /** * Merchant ID known by the acquirer. */ - "authorisationMid"?: string; + 'authorisationMid'?: string; /** * The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ - "authorisedAmountCurrency"?: string; + 'authorisedAmountCurrency'?: string; /** * Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). */ - "authorisedAmountValue"?: string; + 'authorisedAmountValue'?: string; /** * The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). */ - "avsResult"?: string; + 'avsResult'?: string; /** * Raw AVS result received from the acquirer, where available. Example: D */ - "avsResultRaw"?: string; + 'avsResultRaw'?: string; /** * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. */ - "bic"?: string; + 'bic'?: string; /** * Includes the co-branded card information. */ - "coBrandedWith"?: string; + 'coBrandedWith'?: string; /** * The result of CVC verification. */ - "cvcResult"?: string; + 'cvcResult'?: string; /** * The raw result of CVC verification. */ - "cvcResultRaw"?: string; + 'cvcResultRaw'?: string; /** * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. */ - "dsTransID"?: string; + 'dsTransID'?: string; /** * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 */ - "eci"?: string; + 'eci'?: string; /** * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. */ - "expiryDate"?: string; + 'expiryDate'?: string; /** * The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR */ - "extraCostsCurrency"?: string; + 'extraCostsCurrency'?: string; /** * The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. */ - "extraCostsValue"?: string; + 'extraCostsValue'?: string; /** * The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. */ - "fraudCheck__itemNr__FraudCheckname"?: string; + 'fraudCheck__itemNr__FraudCheckname'?: string; /** * Indicates if the payment is sent to manual review. */ - "fraudManualReview"?: string; + 'fraudManualReview'?: string; /** * The fraud result properties of the payment. */ - "fraudResultType"?: ResponseAdditionalDataCommon.FraudResultTypeEnum; + 'fraudResultType'?: ResponseAdditionalDataCommon.FraudResultTypeEnum; /** * The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh */ - "fraudRiskLevel"?: ResponseAdditionalDataCommon.FraudRiskLevelEnum; + 'fraudRiskLevel'?: ResponseAdditionalDataCommon.FraudRiskLevelEnum; /** * Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen\'s end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. */ - "fundingSource"?: string; + 'fundingSource'?: string; /** * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". */ - "fundsAvailability"?: string; + 'fundsAvailability'?: string; /** * Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card */ - "inferredRefusalReason"?: string; + 'inferredRefusalReason'?: string; /** * Indicates if the card is used for business purposes only. */ - "isCardCommercial"?: string; + 'isCardCommercial'?: string; /** * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP */ - "issuerCountry"?: string; + 'issuerCountry'?: string; /** * A Boolean value indicating whether a liability shift was offered for this payment. */ - "liabilityShift"?: string; + 'liabilityShift'?: string; /** * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. */ - "mcBankNetReferenceNumber"?: string; + 'mcBankNetReferenceNumber'?: string; /** * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). */ - "merchantAdviceCode"?: string; + 'merchantAdviceCode'?: string; /** * The reference provided for the transaction. */ - "merchantReference"?: string; + 'merchantReference'?: string; /** * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. */ - "networkTxReference"?: string; + 'networkTxReference'?: string; /** * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. */ - "ownerName"?: string; + 'ownerName'?: string; /** * The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. */ - "paymentAccountReference"?: string; + 'paymentAccountReference'?: string; /** * The payment method used in the transaction. */ - "paymentMethod"?: string; + 'paymentMethod'?: string; /** * The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro */ - "paymentMethodVariant"?: string; + 'paymentMethodVariant'?: string; /** * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) */ - "payoutEligible"?: string; + 'payoutEligible'?: string; /** * The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder */ - "realtimeAccountUpdaterStatus"?: string; + 'realtimeAccountUpdaterStatus'?: string; /** * Message to be displayed on the terminal. */ - "receiptFreeText"?: string; + 'receiptFreeText'?: string; /** * The recurring contract types applicable to the transaction. */ - "recurring_contractTypes"?: string; + 'recurring_contractTypes'?: string; /** * The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen\'s end. To enable it, contact the Support Team. */ - "recurring_firstPspReference"?: string; + 'recurring_firstPspReference'?: string; /** * The reference that uniquely identifies the recurring transaction. * * @deprecated since Adyen Payment API v68 * Use tokenization.storedPaymentMethodId instead. */ - "recurring_recurringDetailReference"?: string; + 'recurring_recurringDetailReference'?: string; /** * The provided reference of the shopper for a recurring transaction. * * @deprecated since Adyen Payment API v68 * Use tokenization.shopperReference instead. */ - "recurring_shopperReference"?: string; + 'recurring_shopperReference'?: string; /** * The processing model used for the recurring transaction. */ - "recurringProcessingModel"?: ResponseAdditionalDataCommon.RecurringProcessingModelEnum; + 'recurringProcessingModel'?: ResponseAdditionalDataCommon.RecurringProcessingModelEnum; /** * If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true */ - "referred"?: string; + 'referred'?: string; /** * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED */ - "refusalReasonRaw"?: string; + 'refusalReasonRaw'?: string; /** * The amount of the payment request. */ - "requestAmount"?: string; + 'requestAmount'?: string; /** * The currency of the payment request. */ - "requestCurrencyCode"?: string; + 'requestCurrencyCode'?: string; /** * The shopper interaction type of the payment request. Example: Ecommerce */ - "shopperInteraction"?: string; + 'shopperInteraction'?: string; /** * The shopperReference passed in the payment request. Example: AdyenTestShopperXX */ - "shopperReference"?: string; + 'shopperReference'?: string; /** * The terminal ID used in a point-of-sale payment. Example: 06022622 */ - "terminalId"?: string; + 'terminalId'?: string; /** * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true */ - "threeDAuthenticated"?: string; + 'threeDAuthenticated'?: string; /** * The raw 3DS authentication result from the card issuer. Example: N */ - "threeDAuthenticatedResponse"?: string; + 'threeDAuthenticatedResponse'?: string; /** * A Boolean value indicating whether 3DS was offered for this payment. Example: true */ - "threeDOffered"?: string; + 'threeDOffered'?: string; /** * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y */ - "threeDOfferedResponse"?: string; + 'threeDOfferedResponse'?: string; /** * The 3D Secure 2 version. */ - "threeDSVersion"?: string; + 'threeDSVersion'?: string; /** * The reference for the shopper that you sent when tokenizing the payment details. */ - "tokenization_shopperReference"?: string; + 'tokenization_shopperReference'?: string; /** * The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. */ - "tokenization_store_operationType"?: ResponseAdditionalDataCommon.TokenizationStoreOperationTypeEnum; + 'tokenization_store_operationType'?: ResponseAdditionalDataCommon.TokenizationStoreOperationTypeEnum; /** * The reference that uniquely identifies tokenized payment details. */ - "tokenization_storedPaymentMethodId"?: string; + 'tokenization_storedPaymentMethodId'?: string; /** * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. */ - "visaTransactionId"?: string; + 'visaTransactionId'?: string; /** * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse \'N\' or \'Y\'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= */ - "xid"?: string; + 'xid'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "acquirerAccountCode", "baseName": "acquirerAccountCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "acquirerCode", "baseName": "acquirerCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "acquirerReference", "baseName": "acquirerReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "alias", "baseName": "alias", - "type": "string", - "format": "" + "type": "string" }, { "name": "aliasType", "baseName": "aliasType", - "type": "string", - "format": "" + "type": "string" }, { "name": "authCode", "baseName": "authCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "authorisationMid", "baseName": "authorisationMid", - "type": "string", - "format": "" + "type": "string" }, { "name": "authorisedAmountCurrency", "baseName": "authorisedAmountCurrency", - "type": "string", - "format": "" + "type": "string" }, { "name": "authorisedAmountValue", "baseName": "authorisedAmountValue", - "type": "string", - "format": "" + "type": "string" }, { "name": "avsResult", "baseName": "avsResult", - "type": "string", - "format": "" + "type": "string" }, { "name": "avsResultRaw", "baseName": "avsResultRaw", - "type": "string", - "format": "" + "type": "string" }, { "name": "bic", "baseName": "bic", - "type": "string", - "format": "" + "type": "string" }, { "name": "coBrandedWith", "baseName": "coBrandedWith", - "type": "string", - "format": "" + "type": "string" }, { "name": "cvcResult", "baseName": "cvcResult", - "type": "string", - "format": "" + "type": "string" }, { "name": "cvcResultRaw", "baseName": "cvcResultRaw", - "type": "string", - "format": "" + "type": "string" }, { "name": "dsTransID", "baseName": "dsTransID", - "type": "string", - "format": "" + "type": "string" }, { "name": "eci", "baseName": "eci", - "type": "string", - "format": "" + "type": "string" }, { "name": "expiryDate", "baseName": "expiryDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "extraCostsCurrency", "baseName": "extraCostsCurrency", - "type": "string", - "format": "" + "type": "string" }, { "name": "extraCostsValue", "baseName": "extraCostsValue", - "type": "string", - "format": "" + "type": "string" }, { "name": "fraudCheck__itemNr__FraudCheckname", "baseName": "fraudCheck-[itemNr]-[FraudCheckname]", - "type": "string", - "format": "" + "type": "string" }, { "name": "fraudManualReview", "baseName": "fraudManualReview", - "type": "string", - "format": "" + "type": "string" }, { "name": "fraudResultType", "baseName": "fraudResultType", - "type": "ResponseAdditionalDataCommon.FraudResultTypeEnum", - "format": "" + "type": "ResponseAdditionalDataCommon.FraudResultTypeEnum" }, { "name": "fraudRiskLevel", "baseName": "fraudRiskLevel", - "type": "ResponseAdditionalDataCommon.FraudRiskLevelEnum", - "format": "" + "type": "ResponseAdditionalDataCommon.FraudRiskLevelEnum" }, { "name": "fundingSource", "baseName": "fundingSource", - "type": "string", - "format": "" + "type": "string" }, { "name": "fundsAvailability", "baseName": "fundsAvailability", - "type": "string", - "format": "" + "type": "string" }, { "name": "inferredRefusalReason", "baseName": "inferredRefusalReason", - "type": "string", - "format": "" + "type": "string" }, { "name": "isCardCommercial", "baseName": "isCardCommercial", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuerCountry", "baseName": "issuerCountry", - "type": "string", - "format": "" + "type": "string" }, { "name": "liabilityShift", "baseName": "liabilityShift", - "type": "string", - "format": "" + "type": "string" }, { "name": "mcBankNetReferenceNumber", "baseName": "mcBankNetReferenceNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAdviceCode", "baseName": "merchantAdviceCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantReference", "baseName": "merchantReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "networkTxReference", "baseName": "networkTxReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "ownerName", "baseName": "ownerName", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentAccountReference", "baseName": "paymentAccountReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMethod", "baseName": "paymentMethod", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMethodVariant", "baseName": "paymentMethodVariant", - "type": "string", - "format": "" + "type": "string" }, { "name": "payoutEligible", "baseName": "payoutEligible", - "type": "string", - "format": "" + "type": "string" }, { "name": "realtimeAccountUpdaterStatus", "baseName": "realtimeAccountUpdaterStatus", - "type": "string", - "format": "" + "type": "string" }, { "name": "receiptFreeText", "baseName": "receiptFreeText", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurring_contractTypes", "baseName": "recurring.contractTypes", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurring_firstPspReference", "baseName": "recurring.firstPspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurring_recurringDetailReference", "baseName": "recurring.recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurring_shopperReference", "baseName": "recurring.shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringProcessingModel", "baseName": "recurringProcessingModel", - "type": "ResponseAdditionalDataCommon.RecurringProcessingModelEnum", - "format": "" + "type": "ResponseAdditionalDataCommon.RecurringProcessingModelEnum" }, { "name": "referred", "baseName": "referred", - "type": "string", - "format": "" + "type": "string" }, { "name": "refusalReasonRaw", "baseName": "refusalReasonRaw", - "type": "string", - "format": "" + "type": "string" }, { "name": "requestAmount", "baseName": "requestAmount", - "type": "string", - "format": "" + "type": "string" }, { "name": "requestCurrencyCode", "baseName": "requestCurrencyCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperInteraction", "baseName": "shopperInteraction", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "terminalId", "baseName": "terminalId", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDAuthenticated", "baseName": "threeDAuthenticated", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDAuthenticatedResponse", "baseName": "threeDAuthenticatedResponse", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDOffered", "baseName": "threeDOffered", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDOfferedResponse", "baseName": "threeDOfferedResponse", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSVersion", "baseName": "threeDSVersion", - "type": "string", - "format": "" + "type": "string" }, { "name": "tokenization_shopperReference", "baseName": "tokenization.shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "tokenization_store_operationType", "baseName": "tokenization.store.operationType", - "type": "ResponseAdditionalDataCommon.TokenizationStoreOperationTypeEnum", - "format": "" + "type": "ResponseAdditionalDataCommon.TokenizationStoreOperationTypeEnum" }, { "name": "tokenization_storedPaymentMethodId", "baseName": "tokenization.storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "visaTransactionId", "baseName": "visaTransactionId", - "type": "string", - "format": "" + "type": "string" }, { "name": "xid", "baseName": "xid", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ResponseAdditionalDataCommon.attributeTypeMap; } - - public constructor() { - } } export namespace ResponseAdditionalDataCommon { diff --git a/src/typings/payment/responseAdditionalDataDomesticError.ts b/src/typings/payment/responseAdditionalDataDomesticError.ts index 608b0b0cc..a472086fd 100644 --- a/src/typings/payment/responseAdditionalDataDomesticError.ts +++ b/src/typings/payment/responseAdditionalDataDomesticError.ts @@ -12,35 +12,28 @@ export class ResponseAdditionalDataDomesticError { /** * The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. */ - "domesticRefusalReasonRaw"?: string; + 'domesticRefusalReasonRaw'?: string; /** * The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. */ - "domesticShopperAdvice"?: string; + 'domesticShopperAdvice'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "domesticRefusalReasonRaw", "baseName": "domesticRefusalReasonRaw", - "type": "string", - "format": "" + "type": "string" }, { "name": "domesticShopperAdvice", "baseName": "domesticShopperAdvice", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ResponseAdditionalDataDomesticError.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/responseAdditionalDataInstallments.ts b/src/typings/payment/responseAdditionalDataInstallments.ts index eada22276..f5f8c4053 100644 --- a/src/typings/payment/responseAdditionalDataInstallments.ts +++ b/src/typings/payment/responseAdditionalDataInstallments.ts @@ -12,135 +12,118 @@ export class ResponseAdditionalDataInstallments { /** * Type of installment. The value of `installmentType` should be **IssuerFinanced**. */ - "installmentPaymentData_installmentType"?: string; + 'installmentPaymentData_installmentType'?: string; /** * Annual interest rate. */ - "installmentPaymentData_option_itemNr_annualPercentageRate"?: string; + 'installmentPaymentData_option_itemNr_annualPercentageRate'?: string; /** * First Installment Amount in minor units. */ - "installmentPaymentData_option_itemNr_firstInstallmentAmount"?: string; + 'installmentPaymentData_option_itemNr_firstInstallmentAmount'?: string; /** * Installment fee amount in minor units. */ - "installmentPaymentData_option_itemNr_installmentFee"?: string; + 'installmentPaymentData_option_itemNr_installmentFee'?: string; /** * Interest rate for the installment period. */ - "installmentPaymentData_option_itemNr_interestRate"?: string; + 'installmentPaymentData_option_itemNr_interestRate'?: string; /** * Maximum number of installments possible for this payment. */ - "installmentPaymentData_option_itemNr_maximumNumberOfInstallments"?: string; + 'installmentPaymentData_option_itemNr_maximumNumberOfInstallments'?: string; /** * Minimum number of installments possible for this payment. */ - "installmentPaymentData_option_itemNr_minimumNumberOfInstallments"?: string; + 'installmentPaymentData_option_itemNr_minimumNumberOfInstallments'?: string; /** * Total number of installments possible for this payment. */ - "installmentPaymentData_option_itemNr_numberOfInstallments"?: string; + 'installmentPaymentData_option_itemNr_numberOfInstallments'?: string; /** * Subsequent Installment Amount in minor units. */ - "installmentPaymentData_option_itemNr_subsequentInstallmentAmount"?: string; + 'installmentPaymentData_option_itemNr_subsequentInstallmentAmount'?: string; /** * Total amount in minor units. */ - "installmentPaymentData_option_itemNr_totalAmountDue"?: string; + 'installmentPaymentData_option_itemNr_totalAmountDue'?: string; /** * Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments */ - "installmentPaymentData_paymentOptions"?: string; + 'installmentPaymentData_paymentOptions'?: string; /** * The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. */ - "installments_value"?: string; + 'installments_value'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "installmentPaymentData_installmentType", "baseName": "installmentPaymentData.installmentType", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentPaymentData_option_itemNr_annualPercentageRate", "baseName": "installmentPaymentData.option[itemNr].annualPercentageRate", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentPaymentData_option_itemNr_firstInstallmentAmount", "baseName": "installmentPaymentData.option[itemNr].firstInstallmentAmount", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentPaymentData_option_itemNr_installmentFee", "baseName": "installmentPaymentData.option[itemNr].installmentFee", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentPaymentData_option_itemNr_interestRate", "baseName": "installmentPaymentData.option[itemNr].interestRate", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentPaymentData_option_itemNr_maximumNumberOfInstallments", "baseName": "installmentPaymentData.option[itemNr].maximumNumberOfInstallments", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentPaymentData_option_itemNr_minimumNumberOfInstallments", "baseName": "installmentPaymentData.option[itemNr].minimumNumberOfInstallments", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentPaymentData_option_itemNr_numberOfInstallments", "baseName": "installmentPaymentData.option[itemNr].numberOfInstallments", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentPaymentData_option_itemNr_subsequentInstallmentAmount", "baseName": "installmentPaymentData.option[itemNr].subsequentInstallmentAmount", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentPaymentData_option_itemNr_totalAmountDue", "baseName": "installmentPaymentData.option[itemNr].totalAmountDue", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentPaymentData_paymentOptions", "baseName": "installmentPaymentData.paymentOptions", - "type": "string", - "format": "" + "type": "string" }, { "name": "installments_value", "baseName": "installments.value", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ResponseAdditionalDataInstallments.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/responseAdditionalDataNetworkTokens.ts b/src/typings/payment/responseAdditionalDataNetworkTokens.ts index 0116c3f81..0879c5e11 100644 --- a/src/typings/payment/responseAdditionalDataNetworkTokens.ts +++ b/src/typings/payment/responseAdditionalDataNetworkTokens.ts @@ -12,45 +12,37 @@ export class ResponseAdditionalDataNetworkTokens { /** * Indicates whether a network token is available for the specified card. */ - "networkToken_available"?: string; + 'networkToken_available'?: string; /** * The Bank Identification Number of a tokenized card, which is the first six digits of a card number. */ - "networkToken_bin"?: string; + 'networkToken_bin'?: string; /** * The last four digits of a network token. */ - "networkToken_tokenSummary"?: string; + 'networkToken_tokenSummary'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "networkToken_available", "baseName": "networkToken.available", - "type": "string", - "format": "" + "type": "string" }, { "name": "networkToken_bin", "baseName": "networkToken.bin", - "type": "string", - "format": "" + "type": "string" }, { "name": "networkToken_tokenSummary", "baseName": "networkToken.tokenSummary", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ResponseAdditionalDataNetworkTokens.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/responseAdditionalDataOpi.ts b/src/typings/payment/responseAdditionalDataOpi.ts index d18eb8e38..234c6154e 100644 --- a/src/typings/payment/responseAdditionalDataOpi.ts +++ b/src/typings/payment/responseAdditionalDataOpi.ts @@ -12,25 +12,19 @@ export class ResponseAdditionalDataOpi { /** * Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). */ - "opi_transToken"?: string; + 'opi_transToken'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "opi_transToken", "baseName": "opi.transToken", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ResponseAdditionalDataOpi.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/responseAdditionalDataSepa.ts b/src/typings/payment/responseAdditionalDataSepa.ts index 43e2c5931..e28f575c9 100644 --- a/src/typings/payment/responseAdditionalDataSepa.ts +++ b/src/typings/payment/responseAdditionalDataSepa.ts @@ -12,45 +12,37 @@ export class ResponseAdditionalDataSepa { /** * The transaction signature date. Format: yyyy-MM-dd */ - "sepadirectdebit_dateOfSignature"?: string; + 'sepadirectdebit_dateOfSignature'?: string; /** * Its value corresponds to the pspReference value of the transaction. */ - "sepadirectdebit_mandateId"?: string; + 'sepadirectdebit_mandateId'?: 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; + 'sepadirectdebit_sequenceType'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "sepadirectdebit_dateOfSignature", "baseName": "sepadirectdebit.dateOfSignature", - "type": "string", - "format": "" + "type": "string" }, { "name": "sepadirectdebit_mandateId", "baseName": "sepadirectdebit.mandateId", - "type": "string", - "format": "" + "type": "string" }, { "name": "sepadirectdebit_sequenceType", "baseName": "sepadirectdebit.sequenceType", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ResponseAdditionalDataSepa.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/sDKEphemPubKey.ts b/src/typings/payment/sDKEphemPubKey.ts index 4b5fec078..ab291886f 100644 --- a/src/typings/payment/sDKEphemPubKey.ts +++ b/src/typings/payment/sDKEphemPubKey.ts @@ -12,55 +12,46 @@ export class SDKEphemPubKey { /** * The `crv` value as received from the 3D Secure 2 SDK. */ - "crv"?: string; + 'crv'?: string; /** * The `kty` value as received from the 3D Secure 2 SDK. */ - "kty"?: string; + 'kty'?: string; /** * The `x` value as received from the 3D Secure 2 SDK. */ - "x"?: string; + 'x'?: string; /** * The `y` value as received from the 3D Secure 2 SDK. */ - "y"?: string; + 'y'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "crv", "baseName": "crv", - "type": "string", - "format": "" + "type": "string" }, { "name": "kty", "baseName": "kty", - "type": "string", - "format": "" + "type": "string" }, { "name": "x", "baseName": "x", - "type": "string", - "format": "" + "type": "string" }, { "name": "y", "baseName": "y", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return SDKEphemPubKey.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/secureRemoteCommerceCheckoutData.ts b/src/typings/payment/secureRemoteCommerceCheckoutData.ts index 560d959e2..bee24da2d 100644 --- a/src/typings/payment/secureRemoteCommerceCheckoutData.ts +++ b/src/typings/payment/secureRemoteCommerceCheckoutData.ts @@ -12,76 +12,65 @@ export class SecureRemoteCommerceCheckoutData { /** * The Secure Remote Commerce checkout payload to process the payment with. */ - "checkoutPayload"?: string; + 'checkoutPayload'?: string; /** * This is the unique identifier generated by SRC system to track and link SRC messages. Available within the present checkout session (e.g. received in an earlier API response during the present session). */ - "correlationId"?: string; + 'correlationId'?: string; /** * The [card verification code](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#card-security-code-cvc-cvv-cid). */ - "cvc"?: string; + 'cvc'?: string; /** * A unique identifier that represents the token associated with a card enrolled. Required for scheme \'mc\'. */ - "digitalCardId"?: string; + 'digitalCardId'?: string; /** * The Secure Remote Commerce scheme. */ - "scheme"?: SecureRemoteCommerceCheckoutData.SchemeEnum; + 'scheme'?: SecureRemoteCommerceCheckoutData.SchemeEnum; /** * A unique identifier that represents the token associated with a card enrolled. Required for scheme \'visa\'. */ - "tokenReference"?: string; + 'tokenReference'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkoutPayload", "baseName": "checkoutPayload", - "type": "string", - "format": "" + "type": "string" }, { "name": "correlationId", "baseName": "correlationId", - "type": "string", - "format": "" + "type": "string" }, { "name": "cvc", "baseName": "cvc", - "type": "string", - "format": "" + "type": "string" }, { "name": "digitalCardId", "baseName": "digitalCardId", - "type": "string", - "format": "" + "type": "string" }, { "name": "scheme", "baseName": "scheme", - "type": "SecureRemoteCommerceCheckoutData.SchemeEnum", - "format": "" + "type": "SecureRemoteCommerceCheckoutData.SchemeEnum" }, { "name": "tokenReference", "baseName": "tokenReference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return SecureRemoteCommerceCheckoutData.attributeTypeMap; } - - public constructor() { - } } export namespace SecureRemoteCommerceCheckoutData { diff --git a/src/typings/payment/serviceError.ts b/src/typings/payment/serviceError.ts index b70dfa207..c3a2a7d02 100644 --- a/src/typings/payment/serviceError.ts +++ b/src/typings/payment/serviceError.ts @@ -12,75 +12,64 @@ export class ServiceError { /** * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. */ - "additionalData"?: { [key: string]: string; }; + 'additionalData'?: { [key: string]: string; }; /** * The error code mapped to the error message. */ - "errorCode"?: string; + 'errorCode'?: string; /** * The category of the error. */ - "errorType"?: string; + 'errorType'?: string; /** * A short explanation of the issue. */ - "message"?: string; + 'message'?: string; /** * The PSP reference of the payment. */ - "pspReference"?: string; + 'pspReference'?: string; /** * The HTTP response status. */ - "status"?: number; + 'status'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "errorCode", "baseName": "errorCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "errorType", "baseName": "errorType", - "type": "string", - "format": "" + "type": "string" }, { "name": "message", "baseName": "message", - "type": "string", - "format": "" + "type": "string" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return ServiceError.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/shopperInteractionDevice.ts b/src/typings/payment/shopperInteractionDevice.ts index fd654c2b2..7eb7ead55 100644 --- a/src/typings/payment/shopperInteractionDevice.ts +++ b/src/typings/payment/shopperInteractionDevice.ts @@ -12,45 +12,37 @@ export class ShopperInteractionDevice { /** * Locale on the shopper interaction device. */ - "locale"?: string; + 'locale'?: string; /** * Operating system running on the shopper interaction device. */ - "os"?: string; + 'os'?: string; /** * Version of the operating system on the shopper interaction device. */ - "osVersion"?: string; + 'osVersion'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "locale", "baseName": "locale", - "type": "string", - "format": "" + "type": "string" }, { "name": "os", "baseName": "os", - "type": "string", - "format": "" + "type": "string" }, { "name": "osVersion", "baseName": "osVersion", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ShopperInteractionDevice.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/split.ts b/src/typings/payment/split.ts index 2d68268d7..95e1bd26a 100644 --- a/src/typings/payment/split.ts +++ b/src/typings/payment/split.ts @@ -7,70 +7,59 @@ * Do not edit this class manually. */ -import { SplitAmount } from "./splitAmount"; - +import { SplitAmount } from './splitAmount'; export class Split { /** * The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked. */ - "account"?: string; - "amount"?: SplitAmount; + 'account'?: string; + 'amount'?: SplitAmount | null; /** * Your description for the split item. */ - "description"?: string; + 'description'?: string; /** * Your unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. */ - "reference"?: string; + 'reference'?: string; /** * The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen\'s commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform\'s commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform\'s commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. */ - "type": Split.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': Split.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "account", "baseName": "account", - "type": "string", - "format": "" + "type": "string" }, { "name": "amount", "baseName": "amount", - "type": "SplitAmount", - "format": "" + "type": "SplitAmount | null" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "Split.TypeEnum", - "format": "" + "type": "Split.TypeEnum" } ]; static getAttributeTypeMap() { return Split.attributeTypeMap; } - - public constructor() { - } } export namespace Split { diff --git a/src/typings/payment/splitAmount.ts b/src/typings/payment/splitAmount.ts index 5e8c747c2..701e63102 100644 --- a/src/typings/payment/splitAmount.ts +++ b/src/typings/payment/splitAmount.ts @@ -12,35 +12,28 @@ export class SplitAmount { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the original payment currency. */ - "currency"?: string; + 'currency'?: string; /** * The value of the split amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ - "value": number; + 'value': number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "number", - "format": "int64" + "type": "number" } ]; static getAttributeTypeMap() { return SplitAmount.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/subMerchant.ts b/src/typings/payment/subMerchant.ts index 9314b30a7..4c61af611 100644 --- a/src/typings/payment/subMerchant.ts +++ b/src/typings/payment/subMerchant.ts @@ -12,65 +12,55 @@ export class SubMerchant { /** * The city of the sub-merchant\'s address. * Format: Alphanumeric * Maximum length: 13 characters */ - "city"?: string; + 'city'?: string; /** * The three-letter country code of the sub-merchant\'s address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters */ - "country"?: string; + 'country'?: string; /** * The sub-merchant\'s 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits */ - "mcc"?: string; + 'mcc'?: string; /** * The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters */ - "name"?: string; + 'name'?: string; /** * The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ */ - "taxId"?: string; + 'taxId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "city", "baseName": "city", - "type": "string", - "format": "" + "type": "string" }, { "name": "country", "baseName": "country", - "type": "string", - "format": "" + "type": "string" }, { "name": "mcc", "baseName": "mcc", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "taxId", "baseName": "taxId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return SubMerchant.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/technicalCancelRequest.ts b/src/typings/payment/technicalCancelRequest.ts index c0fa0a51b..0cf3ab704 100644 --- a/src/typings/payment/technicalCancelRequest.ts +++ b/src/typings/payment/technicalCancelRequest.ts @@ -7,116 +7,100 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { PlatformChargebackLogic } from "./platformChargebackLogic"; -import { Split } from "./split"; -import { ThreeDSecureData } from "./threeDSecureData"; - +import { Amount } from './amount'; +import { PlatformChargebackLogic } from './platformChargebackLogic'; +import { Split } from './split'; +import { ThreeDSecureData } from './threeDSecureData'; export class TechnicalCancelRequest { /** * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. */ - "additionalData"?: { [key: string]: string; }; + 'additionalData'?: { [key: string]: string; }; /** * The merchant account that is used to process the payment. */ - "merchantAccount": string; - "modificationAmount"?: Amount; - "mpiData"?: ThreeDSecureData; + 'merchantAccount': string; + 'modificationAmount'?: Amount | null; + 'mpiData'?: ThreeDSecureData | null; /** * The original merchant reference to cancel. */ - "originalMerchantReference": string; - "platformChargebackLogic"?: PlatformChargebackLogic; + 'originalMerchantReference': string; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ - "reference"?: string; + 'reference'?: string; /** * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). */ - "splits"?: Array; + 'splits'?: Array; /** * The transaction reference provided by the PED. For point-of-sale integrations only. */ - "tenderReference"?: string; + 'tenderReference'?: string; /** * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. */ - "uniqueTerminalId"?: string; - - static readonly discriminator: string | undefined = undefined; + 'uniqueTerminalId'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "modificationAmount", "baseName": "modificationAmount", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "mpiData", "baseName": "mpiData", - "type": "ThreeDSecureData", - "format": "" + "type": "ThreeDSecureData | null" }, { "name": "originalMerchantReference", "baseName": "originalMerchantReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic", - "format": "" + "type": "PlatformChargebackLogic | null" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "splits", "baseName": "splits", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "tenderReference", "baseName": "tenderReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "uniqueTerminalId", "baseName": "uniqueTerminalId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TechnicalCancelRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/threeDS1Result.ts b/src/typings/payment/threeDS1Result.ts index c1d651866..ce2d73efd 100644 --- a/src/typings/payment/threeDS1Result.ts +++ b/src/typings/payment/threeDS1Result.ts @@ -12,75 +12,64 @@ export class ThreeDS1Result { /** * The cardholder authentication value (base64 encoded). */ - "cavv"?: string; + 'cavv'?: string; /** * The CAVV algorithm used. */ - "cavvAlgorithm"?: string; + 'cavvAlgorithm'?: string; /** * 3D Secure Electronic Commerce Indicator (ECI). */ - "eci"?: string; + 'eci'?: string; /** * The authentication response from the ACS. */ - "threeDAuthenticatedResponse"?: string; + 'threeDAuthenticatedResponse'?: string; /** * Whether 3D Secure was offered or not. */ - "threeDOfferedResponse"?: string; + 'threeDOfferedResponse'?: string; /** * A unique transaction identifier generated by the MPI on behalf of the merchant to identify the 3D Secure transaction, in `Base64` encoding. */ - "xid"?: string; + 'xid'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "cavv", "baseName": "cavv", - "type": "string", - "format": "" + "type": "string" }, { "name": "cavvAlgorithm", "baseName": "cavvAlgorithm", - "type": "string", - "format": "" + "type": "string" }, { "name": "eci", "baseName": "eci", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDAuthenticatedResponse", "baseName": "threeDAuthenticatedResponse", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDOfferedResponse", "baseName": "threeDOfferedResponse", - "type": "string", - "format": "" + "type": "string" }, { "name": "xid", "baseName": "xid", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ThreeDS1Result.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/threeDS2RequestData.ts b/src/typings/payment/threeDS2RequestData.ts index 19bb2f7f3..09ecb4511 100644 --- a/src/typings/payment/threeDS2RequestData.ts +++ b/src/typings/payment/threeDS2RequestData.ts @@ -7,400 +7,355 @@ * Do not edit this class manually. */ -import { AcctInfo } from "./acctInfo"; -import { DeviceRenderOptions } from "./deviceRenderOptions"; -import { Phone } from "./phone"; -import { SDKEphemPubKey } from "./sDKEphemPubKey"; -import { ThreeDSRequestorAuthenticationInfo } from "./threeDSRequestorAuthenticationInfo"; -import { ThreeDSRequestorPriorAuthenticationInfo } from "./threeDSRequestorPriorAuthenticationInfo"; - +import { AcctInfo } from './acctInfo'; +import { DeviceRenderOptions } from './deviceRenderOptions'; +import { Phone } from './phone'; +import { SDKEphemPubKey } from './sDKEphemPubKey'; +import { ThreeDSRequestorAuthenticationInfo } from './threeDSRequestorAuthenticationInfo'; +import { ThreeDSRequestorPriorAuthenticationInfo } from './threeDSRequestorPriorAuthenticationInfo'; export class ThreeDS2RequestData { - "acctInfo"?: AcctInfo; + 'acctInfo'?: AcctInfo | null; /** * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit */ - "acctType"?: ThreeDS2RequestData.AcctTypeEnum; + 'acctType'?: ThreeDS2RequestData.AcctTypeEnum; /** * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. */ - "acquirerBIN"?: string; + 'acquirerBIN'?: string; /** * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant\'s acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. */ - "acquirerMerchantID"?: string; + 'acquirerMerchantID'?: string; /** * Indicates whether the Cardholder Shipping Address and Cardholder Billing Address are the same. Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address does not match Billing Address. */ - "addrMatch"?: ThreeDS2RequestData.AddrMatchEnum; + 'addrMatch'?: ThreeDS2RequestData.AddrMatchEnum; /** * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. * * @deprecated since Adyen Payment API v50 * Use `threeDSAuthenticationOnly` instead. */ - "authenticationOnly"?: boolean; + 'authenticationOnly'?: boolean; /** * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` * * @deprecated since Adyen Payment API v68 * Use `threeDSRequestorChallengeInd` instead. */ - "challengeIndicator"?: ThreeDS2RequestData.ChallengeIndicatorEnum; + 'challengeIndicator'?: ThreeDS2RequestData.ChallengeIndicatorEnum; /** * The environment of the shopper. Allowed values: * `app` * `browser` */ - "deviceChannel": string; - "deviceRenderOptions"?: DeviceRenderOptions; - "homePhone"?: Phone; + 'deviceChannel': string; + 'deviceRenderOptions'?: DeviceRenderOptions | null; + 'homePhone'?: Phone | null; /** * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. */ - "mcc"?: string; + 'mcc'?: string; /** * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. */ - "merchantName"?: string; + 'merchantName'?: string; /** * The `messageVersion` value indicating the 3D Secure 2 protocol version. */ - "messageVersion"?: string; - "mobilePhone"?: Phone; + 'messageVersion'?: string; + 'mobilePhone'?: Phone | null; /** * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. */ - "notificationURL"?: string; + 'notificationURL'?: string; /** * Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. */ - "payTokenInd"?: boolean; + 'payTokenInd'?: boolean; /** * Indicates the type of payment for which an authentication is requested (message extension) */ - "paymentAuthenticationUseCase"?: string; + 'paymentAuthenticationUseCase'?: string; /** * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. */ - "purchaseInstalData"?: string; + 'purchaseInstalData'?: string; /** * Date after which no further authorisations shall be performed. Format: YYYYMMDD */ - "recurringExpiry"?: string; + 'recurringExpiry'?: string; /** * Indicates the minimum number of days between authorisations. Maximum length: 4 characters. */ - "recurringFrequency"?: string; + 'recurringFrequency'?: string; /** * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. */ - "sdkAppID"?: string; + 'sdkAppID'?: string; /** * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. */ - "sdkEncData"?: string; - "sdkEphemPubKey"?: SDKEphemPubKey; + 'sdkEncData'?: string; + 'sdkEphemPubKey'?: SDKEphemPubKey | null; /** * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. */ - "sdkMaxTimeout"?: number; + 'sdkMaxTimeout'?: number; /** * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. */ - "sdkReferenceNumber"?: string; + 'sdkReferenceNumber'?: string; /** * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. */ - "sdkTransID"?: string; + 'sdkTransID'?: string; /** * Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. */ - "sdkVersion"?: string; + 'sdkVersion'?: string; /** * Completion indicator for the device fingerprinting. */ - "threeDSCompInd"?: string; + 'threeDSCompInd'?: string; /** * Indicates the type of Authentication request. */ - "threeDSRequestorAuthenticationInd"?: string; - "threeDSRequestorAuthenticationInfo"?: ThreeDSRequestorAuthenticationInfo; + 'threeDSRequestorAuthenticationInd'?: string; + 'threeDSRequestorAuthenticationInfo'?: ThreeDSRequestorAuthenticationInfo | null; /** * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only */ - "threeDSRequestorChallengeInd"?: ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum; + 'threeDSRequestorChallengeInd'?: ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum; /** * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. */ - "threeDSRequestorID"?: string; + 'threeDSRequestorID'?: string; /** * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. */ - "threeDSRequestorName"?: string; - "threeDSRequestorPriorAuthenticationInfo"?: ThreeDSRequestorPriorAuthenticationInfo; + 'threeDSRequestorName'?: string; + 'threeDSRequestorPriorAuthenticationInfo'?: ThreeDSRequestorPriorAuthenticationInfo | null; /** * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. */ - "threeDSRequestorURL"?: string; + 'threeDSRequestorURL'?: string; /** * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load */ - "transType"?: ThreeDS2RequestData.TransTypeEnum; + 'transType'?: ThreeDS2RequestData.TransTypeEnum; /** * Identify the type of the transaction being authenticated. */ - "transactionType"?: ThreeDS2RequestData.TransactionTypeEnum; + 'transactionType'?: ThreeDS2RequestData.TransactionTypeEnum; /** * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. */ - "whiteListStatus"?: string; - "workPhone"?: Phone; - - static readonly discriminator: string | undefined = undefined; + 'whiteListStatus'?: string; + 'workPhone'?: Phone | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "acctInfo", "baseName": "acctInfo", - "type": "AcctInfo", - "format": "" + "type": "AcctInfo | null" }, { "name": "acctType", "baseName": "acctType", - "type": "ThreeDS2RequestData.AcctTypeEnum", - "format": "" + "type": "ThreeDS2RequestData.AcctTypeEnum" }, { "name": "acquirerBIN", "baseName": "acquirerBIN", - "type": "string", - "format": "" + "type": "string" }, { "name": "acquirerMerchantID", "baseName": "acquirerMerchantID", - "type": "string", - "format": "" + "type": "string" }, { "name": "addrMatch", "baseName": "addrMatch", - "type": "ThreeDS2RequestData.AddrMatchEnum", - "format": "" + "type": "ThreeDS2RequestData.AddrMatchEnum" }, { "name": "authenticationOnly", "baseName": "authenticationOnly", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "challengeIndicator", "baseName": "challengeIndicator", - "type": "ThreeDS2RequestData.ChallengeIndicatorEnum", - "format": "" + "type": "ThreeDS2RequestData.ChallengeIndicatorEnum" }, { "name": "deviceChannel", "baseName": "deviceChannel", - "type": "string", - "format": "" + "type": "string" }, { "name": "deviceRenderOptions", "baseName": "deviceRenderOptions", - "type": "DeviceRenderOptions", - "format": "" + "type": "DeviceRenderOptions | null" }, { "name": "homePhone", "baseName": "homePhone", - "type": "Phone", - "format": "" + "type": "Phone | null" }, { "name": "mcc", "baseName": "mcc", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantName", "baseName": "merchantName", - "type": "string", - "format": "" + "type": "string" }, { "name": "messageVersion", "baseName": "messageVersion", - "type": "string", - "format": "" + "type": "string" }, { "name": "mobilePhone", "baseName": "mobilePhone", - "type": "Phone", - "format": "" + "type": "Phone | null" }, { "name": "notificationURL", "baseName": "notificationURL", - "type": "string", - "format": "" + "type": "string" }, { "name": "payTokenInd", "baseName": "payTokenInd", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "paymentAuthenticationUseCase", "baseName": "paymentAuthenticationUseCase", - "type": "string", - "format": "" + "type": "string" }, { "name": "purchaseInstalData", "baseName": "purchaseInstalData", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringExpiry", "baseName": "recurringExpiry", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringFrequency", "baseName": "recurringFrequency", - "type": "string", - "format": "" + "type": "string" }, { "name": "sdkAppID", "baseName": "sdkAppID", - "type": "string", - "format": "" + "type": "string" }, { "name": "sdkEncData", "baseName": "sdkEncData", - "type": "string", - "format": "" + "type": "string" }, { "name": "sdkEphemPubKey", "baseName": "sdkEphemPubKey", - "type": "SDKEphemPubKey", - "format": "" + "type": "SDKEphemPubKey | null" }, { "name": "sdkMaxTimeout", "baseName": "sdkMaxTimeout", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "sdkReferenceNumber", "baseName": "sdkReferenceNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "sdkTransID", "baseName": "sdkTransID", - "type": "string", - "format": "" + "type": "string" }, { "name": "sdkVersion", "baseName": "sdkVersion", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSCompInd", "baseName": "threeDSCompInd", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSRequestorAuthenticationInd", "baseName": "threeDSRequestorAuthenticationInd", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSRequestorAuthenticationInfo", "baseName": "threeDSRequestorAuthenticationInfo", - "type": "ThreeDSRequestorAuthenticationInfo", - "format": "" + "type": "ThreeDSRequestorAuthenticationInfo | null" }, { "name": "threeDSRequestorChallengeInd", "baseName": "threeDSRequestorChallengeInd", - "type": "ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum", - "format": "" + "type": "ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum" }, { "name": "threeDSRequestorID", "baseName": "threeDSRequestorID", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSRequestorName", "baseName": "threeDSRequestorName", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSRequestorPriorAuthenticationInfo", "baseName": "threeDSRequestorPriorAuthenticationInfo", - "type": "ThreeDSRequestorPriorAuthenticationInfo", - "format": "" + "type": "ThreeDSRequestorPriorAuthenticationInfo | null" }, { "name": "threeDSRequestorURL", "baseName": "threeDSRequestorURL", - "type": "string", - "format": "" + "type": "string" }, { "name": "transType", "baseName": "transType", - "type": "ThreeDS2RequestData.TransTypeEnum", - "format": "" + "type": "ThreeDS2RequestData.TransTypeEnum" }, { "name": "transactionType", "baseName": "transactionType", - "type": "ThreeDS2RequestData.TransactionTypeEnum", - "format": "" + "type": "ThreeDS2RequestData.TransactionTypeEnum" }, { "name": "whiteListStatus", "baseName": "whiteListStatus", - "type": "string", - "format": "" + "type": "string" }, { "name": "workPhone", "baseName": "workPhone", - "type": "Phone", - "format": "" + "type": "Phone | null" } ]; static getAttributeTypeMap() { return ThreeDS2RequestData.attributeTypeMap; } - - public constructor() { - } } export namespace ThreeDS2RequestData { diff --git a/src/typings/payment/threeDS2Result.ts b/src/typings/payment/threeDS2Result.ts index 1677ffcc7..b18afab96 100644 --- a/src/typings/payment/threeDS2Result.ts +++ b/src/typings/payment/threeDS2Result.ts @@ -12,156 +12,137 @@ export class ThreeDS2Result { /** * The `authenticationValue` value as defined in the 3D Secure 2 specification. */ - "authenticationValue"?: string; + 'authenticationValue'?: string; /** * The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires integrations. */ - "cavvAlgorithm"?: string; + 'cavvAlgorithm'?: string; /** * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). */ - "challengeCancel"?: ThreeDS2Result.ChallengeCancelEnum; + 'challengeCancel'?: ThreeDS2Result.ChallengeCancelEnum; /** * The `dsTransID` value as defined in the 3D Secure 2 specification. */ - "dsTransID"?: string; + 'dsTransID'?: string; /** * The `eci` value as defined in the 3D Secure 2 specification. */ - "eci"?: string; + 'eci'?: string; /** * Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` */ - "exemptionIndicator"?: ThreeDS2Result.ExemptionIndicatorEnum; + 'exemptionIndicator'?: ThreeDS2Result.ExemptionIndicatorEnum; /** * The `messageVersion` value as defined in the 3D Secure 2 specification. */ - "messageVersion"?: string; + 'messageVersion'?: string; /** * Risk score calculated by Cartes Bancaires Directory Server (DS). */ - "riskScore"?: string; + 'riskScore'?: string; /** * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only */ - "threeDSRequestorChallengeInd"?: ThreeDS2Result.ThreeDSRequestorChallengeIndEnum; + 'threeDSRequestorChallengeInd'?: ThreeDS2Result.ThreeDSRequestorChallengeIndEnum; /** * The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. */ - "threeDSServerTransID"?: string; + 'threeDSServerTransID'?: string; /** * The `timestamp` value of the 3D Secure 2 authentication. */ - "timestamp"?: string; + 'timestamp'?: string; /** * The `transStatus` value as defined in the 3D Secure 2 specification. */ - "transStatus"?: string; + 'transStatus'?: string; /** * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). */ - "transStatusReason"?: string; + 'transStatusReason'?: string; /** * The `whiteListStatus` value as defined in the 3D Secure 2 specification. */ - "whiteListStatus"?: string; + 'whiteListStatus'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "authenticationValue", "baseName": "authenticationValue", - "type": "string", - "format": "" + "type": "string" }, { "name": "cavvAlgorithm", "baseName": "cavvAlgorithm", - "type": "string", - "format": "" + "type": "string" }, { "name": "challengeCancel", "baseName": "challengeCancel", - "type": "ThreeDS2Result.ChallengeCancelEnum", - "format": "" + "type": "ThreeDS2Result.ChallengeCancelEnum" }, { "name": "dsTransID", "baseName": "dsTransID", - "type": "string", - "format": "" + "type": "string" }, { "name": "eci", "baseName": "eci", - "type": "string", - "format": "" + "type": "string" }, { "name": "exemptionIndicator", "baseName": "exemptionIndicator", - "type": "ThreeDS2Result.ExemptionIndicatorEnum", - "format": "" + "type": "ThreeDS2Result.ExemptionIndicatorEnum" }, { "name": "messageVersion", "baseName": "messageVersion", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskScore", "baseName": "riskScore", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSRequestorChallengeInd", "baseName": "threeDSRequestorChallengeInd", - "type": "ThreeDS2Result.ThreeDSRequestorChallengeIndEnum", - "format": "" + "type": "ThreeDS2Result.ThreeDSRequestorChallengeIndEnum" }, { "name": "threeDSServerTransID", "baseName": "threeDSServerTransID", - "type": "string", - "format": "" + "type": "string" }, { "name": "timestamp", "baseName": "timestamp", - "type": "string", - "format": "" + "type": "string" }, { "name": "transStatus", "baseName": "transStatus", - "type": "string", - "format": "" + "type": "string" }, { "name": "transStatusReason", "baseName": "transStatusReason", - "type": "string", - "format": "" + "type": "string" }, { "name": "whiteListStatus", "baseName": "whiteListStatus", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ThreeDS2Result.attributeTypeMap; } - - public constructor() { - } } export namespace ThreeDS2Result { diff --git a/src/typings/payment/threeDS2ResultRequest.ts b/src/typings/payment/threeDS2ResultRequest.ts index 6f2d1cd2a..4ec22ea1e 100644 --- a/src/typings/payment/threeDS2ResultRequest.ts +++ b/src/typings/payment/threeDS2ResultRequest.ts @@ -12,35 +12,28 @@ export class ThreeDS2ResultRequest { /** * The merchant account identifier, with which you want to process the transaction. */ - "merchantAccount": string; + 'merchantAccount': string; /** * The pspReference returned in the /authorise call. */ - "pspReference": string; + 'pspReference': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ThreeDS2ResultRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/threeDS2ResultResponse.ts b/src/typings/payment/threeDS2ResultResponse.ts index 9946585dc..d00f6147f 100644 --- a/src/typings/payment/threeDS2ResultResponse.ts +++ b/src/typings/payment/threeDS2ResultResponse.ts @@ -7,29 +7,22 @@ * Do not edit this class manually. */ -import { ThreeDS2Result } from "./threeDS2Result"; - +import { ThreeDS2Result } from './threeDS2Result'; export class ThreeDS2ResultResponse { - "threeDS2Result"?: ThreeDS2Result; - - static readonly discriminator: string | undefined = undefined; + 'threeDS2Result'?: ThreeDS2Result | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "threeDS2Result", "baseName": "threeDS2Result", - "type": "ThreeDS2Result", - "format": "" + "type": "ThreeDS2Result | null" } ]; static getAttributeTypeMap() { return ThreeDS2ResultResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payment/threeDSRequestorAuthenticationInfo.ts b/src/typings/payment/threeDSRequestorAuthenticationInfo.ts index 127d2f748..9ada40ec4 100644 --- a/src/typings/payment/threeDSRequestorAuthenticationInfo.ts +++ b/src/typings/payment/threeDSRequestorAuthenticationInfo.ts @@ -12,46 +12,38 @@ export class ThreeDSRequestorAuthenticationInfo { /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. */ - "threeDSReqAuthData"?: string; + 'threeDSReqAuthData'?: string; /** * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. */ - "threeDSReqAuthMethod"?: ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum; + 'threeDSReqAuthMethod'?: ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum; /** * Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM */ - "threeDSReqAuthTimestamp"?: string; + 'threeDSReqAuthTimestamp'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "threeDSReqAuthData", "baseName": "threeDSReqAuthData", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSReqAuthMethod", "baseName": "threeDSReqAuthMethod", - "type": "ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum", - "format": "" + "type": "ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum" }, { "name": "threeDSReqAuthTimestamp", "baseName": "threeDSReqAuthTimestamp", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ThreeDSRequestorAuthenticationInfo.attributeTypeMap; } - - public constructor() { - } } export namespace ThreeDSRequestorAuthenticationInfo { diff --git a/src/typings/payment/threeDSRequestorPriorAuthenticationInfo.ts b/src/typings/payment/threeDSRequestorPriorAuthenticationInfo.ts index 98e19ac70..edcbf58fd 100644 --- a/src/typings/payment/threeDSRequestorPriorAuthenticationInfo.ts +++ b/src/typings/payment/threeDSRequestorPriorAuthenticationInfo.ts @@ -12,56 +12,47 @@ export class ThreeDSRequestorPriorAuthenticationInfo { /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. */ - "threeDSReqPriorAuthData"?: string; + 'threeDSReqPriorAuthData'?: string; /** * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. */ - "threeDSReqPriorAuthMethod"?: ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum; + 'threeDSReqPriorAuthMethod'?: ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum; /** * Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM */ - "threeDSReqPriorAuthTimestamp"?: string; + 'threeDSReqPriorAuthTimestamp'?: string; /** * This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters. */ - "threeDSReqPriorRef"?: string; + 'threeDSReqPriorRef'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "threeDSReqPriorAuthData", "baseName": "threeDSReqPriorAuthData", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSReqPriorAuthMethod", "baseName": "threeDSReqPriorAuthMethod", - "type": "ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum", - "format": "" + "type": "ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum" }, { "name": "threeDSReqPriorAuthTimestamp", "baseName": "threeDSReqPriorAuthTimestamp", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSReqPriorRef", "baseName": "threeDSReqPriorRef", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ThreeDSRequestorPriorAuthenticationInfo.attributeTypeMap; } - - public constructor() { - } } export namespace ThreeDSRequestorPriorAuthenticationInfo { diff --git a/src/typings/payment/threeDSecureData.ts b/src/typings/payment/threeDSecureData.ts index f1e94ad43..d627d0d15 100644 --- a/src/typings/payment/threeDSecureData.ts +++ b/src/typings/payment/threeDSecureData.ts @@ -12,136 +12,119 @@ export class ThreeDSecureData { /** * In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. */ - "authenticationResponse"?: ThreeDSecureData.AuthenticationResponseEnum; + 'authenticationResponse'?: ThreeDSecureData.AuthenticationResponseEnum; /** * The cardholder authentication value (base64 encoded, 20 bytes in a decoded form). */ - "cavv"?: string; + 'cavv'?: string; /** * The CAVV algorithm used. Include this only for 3D Secure 1. */ - "cavvAlgorithm"?: string; + 'cavvAlgorithm'?: string; /** * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). */ - "challengeCancel"?: ThreeDSecureData.ChallengeCancelEnum; + 'challengeCancel'?: ThreeDSecureData.ChallengeCancelEnum; /** * In 3D Secure 2, this is the `transStatus` from the `ARes`. */ - "directoryResponse"?: ThreeDSecureData.DirectoryResponseEnum; + 'directoryResponse'?: ThreeDSecureData.DirectoryResponseEnum; /** * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. */ - "dsTransID"?: string; + 'dsTransID'?: string; /** * The electronic commerce indicator. */ - "eci"?: string; + 'eci'?: string; /** * Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations. */ - "riskScore"?: string; + 'riskScore'?: string; /** * The version of the 3D Secure protocol. */ - "threeDSVersion"?: string; + 'threeDSVersion'?: string; /** * Network token authentication verification value (TAVV). The network token cryptogram. */ - "tokenAuthenticationVerificationValue"?: string; + 'tokenAuthenticationVerificationValue'?: string; /** * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). */ - "transStatusReason"?: string; + 'transStatusReason'?: string; /** * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). */ - "xid"?: string; + 'xid'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "authenticationResponse", "baseName": "authenticationResponse", - "type": "ThreeDSecureData.AuthenticationResponseEnum", - "format": "" + "type": "ThreeDSecureData.AuthenticationResponseEnum" }, { "name": "cavv", "baseName": "cavv", - "type": "string", - "format": "byte" + "type": "string" }, { "name": "cavvAlgorithm", "baseName": "cavvAlgorithm", - "type": "string", - "format": "" + "type": "string" }, { "name": "challengeCancel", "baseName": "challengeCancel", - "type": "ThreeDSecureData.ChallengeCancelEnum", - "format": "" + "type": "ThreeDSecureData.ChallengeCancelEnum" }, { "name": "directoryResponse", "baseName": "directoryResponse", - "type": "ThreeDSecureData.DirectoryResponseEnum", - "format": "" + "type": "ThreeDSecureData.DirectoryResponseEnum" }, { "name": "dsTransID", "baseName": "dsTransID", - "type": "string", - "format": "" + "type": "string" }, { "name": "eci", "baseName": "eci", - "type": "string", - "format": "" + "type": "string" }, { "name": "riskScore", "baseName": "riskScore", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSVersion", "baseName": "threeDSVersion", - "type": "string", - "format": "" + "type": "string" }, { "name": "tokenAuthenticationVerificationValue", "baseName": "tokenAuthenticationVerificationValue", - "type": "string", - "format": "byte" + "type": "string" }, { "name": "transStatusReason", "baseName": "transStatusReason", - "type": "string", - "format": "" + "type": "string" }, { "name": "xid", "baseName": "xid", - "type": "string", - "format": "byte" + "type": "string" } ]; static getAttributeTypeMap() { return ThreeDSecureData.attributeTypeMap; } - - public constructor() { - } } export namespace ThreeDSecureData { diff --git a/src/typings/payment/voidPendingRefundRequest.ts b/src/typings/payment/voidPendingRefundRequest.ts index 95b8d3f02..3badce197 100644 --- a/src/typings/payment/voidPendingRefundRequest.ts +++ b/src/typings/payment/voidPendingRefundRequest.ts @@ -7,126 +7,109 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { PlatformChargebackLogic } from "./platformChargebackLogic"; -import { Split } from "./split"; -import { ThreeDSecureData } from "./threeDSecureData"; - +import { Amount } from './amount'; +import { PlatformChargebackLogic } from './platformChargebackLogic'; +import { Split } from './split'; +import { ThreeDSecureData } from './threeDSecureData'; export class VoidPendingRefundRequest { /** * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. */ - "additionalData"?: { [key: string]: string; }; + 'additionalData'?: { [key: string]: string; }; /** * The merchant account that is used to process the payment. */ - "merchantAccount": string; - "modificationAmount"?: Amount; - "mpiData"?: ThreeDSecureData; + 'merchantAccount': string; + 'modificationAmount'?: Amount | null; + 'mpiData'?: ThreeDSecureData | null; /** * The original merchant reference to cancel. */ - "originalMerchantReference"?: string; + 'originalMerchantReference'?: string; /** * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification */ - "originalReference"?: string; - "platformChargebackLogic"?: PlatformChargebackLogic; + 'originalReference'?: string; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ - "reference"?: string; + 'reference'?: string; /** * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to split payments for [platforms](https://docs.adyen.com/platforms/automatic-split-configuration/). */ - "splits"?: Array; + 'splits'?: Array; /** * The transaction reference provided by the PED. For point-of-sale integrations only. */ - "tenderReference"?: string; + 'tenderReference'?: string; /** * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. */ - "uniqueTerminalId"?: string; - - static readonly discriminator: string | undefined = undefined; + 'uniqueTerminalId'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "modificationAmount", "baseName": "modificationAmount", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "mpiData", "baseName": "mpiData", - "type": "ThreeDSecureData", - "format": "" + "type": "ThreeDSecureData | null" }, { "name": "originalMerchantReference", "baseName": "originalMerchantReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "originalReference", "baseName": "originalReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic", - "format": "" + "type": "PlatformChargebackLogic | null" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "splits", "baseName": "splits", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "tenderReference", "baseName": "tenderReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "uniqueTerminalId", "baseName": "uniqueTerminalId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return VoidPendingRefundRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/paymentsApp/boardingTokenRequest.ts b/src/typings/paymentsApp/boardingTokenRequest.ts index e145e656e..3d29a1123 100644 --- a/src/typings/paymentsApp/boardingTokenRequest.ts +++ b/src/typings/paymentsApp/boardingTokenRequest.ts @@ -12,25 +12,19 @@ export class BoardingTokenRequest { /** * The boardingToken request token. */ - "boardingRequestToken": string; + 'boardingRequestToken': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "boardingRequestToken", "baseName": "boardingRequestToken", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return BoardingTokenRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/paymentsApp/boardingTokenResponse.ts b/src/typings/paymentsApp/boardingTokenResponse.ts index 2634147ca..bffb8c703 100644 --- a/src/typings/paymentsApp/boardingTokenResponse.ts +++ b/src/typings/paymentsApp/boardingTokenResponse.ts @@ -12,35 +12,28 @@ export class BoardingTokenResponse { /** * The boarding token that allows the Payments App to board. */ - "boardingToken": string; + 'boardingToken': string; /** * The unique identifier of the Payments App instance. */ - "installationId": string; + 'installationId': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "boardingToken", "baseName": "boardingToken", - "type": "string", - "format": "" + "type": "string" }, { "name": "installationId", "baseName": "installationId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return BoardingTokenResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/paymentsApp/defaultErrorResponseEntity.ts b/src/typings/paymentsApp/defaultErrorResponseEntity.ts index ec4bf859a..e2529fc9b 100644 --- a/src/typings/paymentsApp/defaultErrorResponseEntity.ts +++ b/src/typings/paymentsApp/defaultErrorResponseEntity.ts @@ -7,106 +7,91 @@ * Do not edit this class manually. */ -import { InvalidField } from "./invalidField"; +import { InvalidField } from './invalidField'; /** * Standardized error response following RFC-7807 format */ - - export class DefaultErrorResponseEntity { /** * A human-readable explanation specific to this occurrence of the problem. */ - "detail"?: string; + 'detail'?: string; /** * Unique business error code. */ - "errorCode"?: string; + 'errorCode'?: string; /** * A URI that identifies the specific occurrence of the problem if applicable. */ - "instance"?: string; + 'instance'?: string; /** * Array of fields with validation errors when applicable. */ - "invalidFields"?: Array; + 'invalidFields'?: Array; /** * The unique reference for the request. */ - "requestId"?: string; + 'requestId'?: string; /** * The HTTP status code. */ - "status"?: number; + 'status'?: number; /** * A short, human-readable summary of the problem type. */ - "title"?: string; + 'title'?: string; /** * A URI that identifies the validation error type. It points to human-readable documentation for the problem type. */ - "type"?: string; - - static readonly discriminator: string | undefined = undefined; + 'type'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "detail", "baseName": "detail", - "type": "string", - "format": "" + "type": "string" }, { "name": "errorCode", "baseName": "errorCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "instance", "baseName": "instance", - "type": "string", - "format": "" + "type": "string" }, { "name": "invalidFields", "baseName": "invalidFields", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "requestId", "baseName": "requestId", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "title", "baseName": "title", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return DefaultErrorResponseEntity.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/paymentsApp/invalidField.ts b/src/typings/paymentsApp/invalidField.ts index d558415f1..c0aa8956a 100644 --- a/src/typings/paymentsApp/invalidField.ts +++ b/src/typings/paymentsApp/invalidField.ts @@ -12,45 +12,37 @@ export class InvalidField { /** * The field that has an invalid value. */ - "name": string; + 'name': string; /** * The invalid value. */ - "value": string; + 'value': string; /** * Description of the validation error. */ - "message": string; + 'message': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "string", - "format": "" + "type": "string" }, { "name": "message", "baseName": "message", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return InvalidField.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/paymentsApp/models.ts b/src/typings/paymentsApp/models.ts index da212f430..122f8ca25 100644 --- a/src/typings/paymentsApp/models.ts +++ b/src/typings/paymentsApp/models.ts @@ -1,9 +1,162 @@ -export * from "./boardingTokenRequest" -export * from "./boardingTokenResponse" -export * from "./defaultErrorResponseEntity" -export * from "./invalidField" -export * from "./paymentsAppDto" -export * from "./paymentsAppResponse" - -// serializing and deserializing typed objects -export * from "./objectSerializer" \ No newline at end of file +/* + * The version of the OpenAPI document: v1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export * from './boardingTokenRequest'; +export * from './boardingTokenResponse'; +export * from './defaultErrorResponseEntity'; +export * from './invalidField'; +export * from './paymentsAppDto'; +export * from './paymentsAppResponse'; + + +import { BoardingTokenRequest } from './boardingTokenRequest'; +import { BoardingTokenResponse } from './boardingTokenResponse'; +import { DefaultErrorResponseEntity } from './defaultErrorResponseEntity'; +import { InvalidField } from './invalidField'; +import { PaymentsAppDto } from './paymentsAppDto'; +import { PaymentsAppResponse } from './paymentsAppResponse'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { +} + +let typeMap: {[index: string]: any} = { + "BoardingTokenRequest": BoardingTokenRequest, + "BoardingTokenResponse": BoardingTokenResponse, + "DefaultErrorResponseEntity": DefaultErrorResponseEntity, + "InvalidField": InvalidField, + "PaymentsAppDto": PaymentsAppDto, + "PaymentsAppResponse": PaymentsAppResponse, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/paymentsApp/objectSerializer.ts b/src/typings/paymentsApp/objectSerializer.ts deleted file mode 100644 index c7eec8833..000000000 --- a/src/typings/paymentsApp/objectSerializer.ts +++ /dev/null @@ -1,355 +0,0 @@ -export * from "./models"; - -import { BoardingTokenRequest } from "./boardingTokenRequest"; -import { BoardingTokenResponse } from "./boardingTokenResponse"; -import { DefaultErrorResponseEntity } from "./defaultErrorResponseEntity"; -import { InvalidField } from "./invalidField"; -import { PaymentsAppDto } from "./paymentsAppDto"; -import { PaymentsAppResponse } from "./paymentsAppResponse"; - -/* tslint:disable:no-unused-variable */ -let primitives = [ - "string", - "boolean", - "double", - "integer", - "long", - "float", - "number", - "any" - ]; - -let enumsMap: Set = new Set([ -]); - -let typeMap: {[index: string]: any} = { - "BoardingTokenRequest": BoardingTokenRequest, - "BoardingTokenResponse": BoardingTokenResponse, - "DefaultErrorResponseEntity": DefaultErrorResponseEntity, - "InvalidField": InvalidField, - "PaymentsAppDto": PaymentsAppDto, - "PaymentsAppResponse": PaymentsAppResponse, -} - -type MimeTypeDescriptor = { - type: string; - subtype: string; - subtypeTokens: string[]; -}; - -/** - * Every mime-type consists of a type, subtype, and optional parameters. - * The subtype can be composite, including information about the content format. - * For example: `application/json-patch+json`, `application/merge-patch+json`. - * - * This helper transforms a string mime-type into an internal representation. - * This simplifies the implementation of predicates that in turn define common rules for parsing or stringifying - * the payload. - */ -const parseMimeType = (mimeType: string): MimeTypeDescriptor => { - const [type = '', subtype = ''] = mimeType.split('/'); - return { - type, - subtype, - subtypeTokens: subtype.split('+'), - }; -}; - -type MimeTypePredicate = (mimeType: string) => boolean; - -// This factory creates a predicate function that checks a string mime-type against defined rules. -const mimeTypePredicateFactory = (predicate: (descriptor: MimeTypeDescriptor) => boolean): MimeTypePredicate => (mimeType) => predicate(parseMimeType(mimeType)); - -// Use this factory when you need to define a simple predicate based only on type and, if applicable, subtype. -const mimeTypeSimplePredicateFactory = (type: string, subtype?: string): MimeTypePredicate => mimeTypePredicateFactory((descriptor) => { - if (descriptor.type !== type) return false; - if (subtype != null && descriptor.subtype !== subtype) return false; - return true; -}); - -// Creating a set of named predicates that will help us determine how to handle different mime-types -const isTextLikeMimeType = mimeTypeSimplePredicateFactory('text'); -const isJsonMimeType = mimeTypeSimplePredicateFactory('application', 'json'); -const isJsonLikeMimeType = mimeTypePredicateFactory((descriptor) => descriptor.type === 'application' && descriptor.subtypeTokens.some((item) => item === 'json')); -const isOctetStreamMimeType = mimeTypeSimplePredicateFactory('application', 'octet-stream'); -const isFormUrlencodedMimeType = mimeTypeSimplePredicateFactory('application', 'x-www-form-urlencoded'); - -// Defining a list of mime-types in the order of prioritization for handling. -const supportedMimeTypePredicatesWithPriority: MimeTypePredicate[] = [ - isJsonMimeType, - isJsonLikeMimeType, - isTextLikeMimeType, - isOctetStreamMimeType, - isFormUrlencodedMimeType, -]; - -const nullableSuffix = " | null"; -const optionalSuffix = " | undefined"; -const arrayPrefix = "Array<"; -const arraySuffix = ">"; -const mapPrefix = "{ [key: string]: "; -const mapSuffix = "; }"; - -export class ObjectSerializer { - public static findCorrectType(data: any, expectedType: string) { - if (data == undefined) { - return expectedType; - } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { - return expectedType; - } else if (expectedType === "Date") { - return expectedType; - } else { - if (enumsMap.has(expectedType)) { - return expectedType; - } - - if (!typeMap[expectedType]) { - return expectedType; // w/e we don't know the type - } - - // Check the discriminator - let discriminatorProperty = typeMap[expectedType].discriminator; - if (discriminatorProperty == null) { - return expectedType; // the type does not have a discriminator. use it. - } else { - if (data[discriminatorProperty]) { - var discriminatorType = data[discriminatorProperty]; - let mapping = typeMap[expectedType].mapping; - if (mapping != undefined && mapping[discriminatorType]) { - return mapping[discriminatorType]; // use the type given in the discriminator - } else if(typeMap[discriminatorType]) { - return discriminatorType; - } else { - return expectedType; // discriminator did not map to a type - } - } else { - return expectedType; // discriminator was not present (or an empty string) - } - } - } - } - - /** - * Serializes a value into a plain JSON-compatible object based on its type. - * - * Supports primitives, arrays, maps, dates, enums, and classes defined in `typeMap`. - * Falls back to raw data if type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The value to serialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A JSON-compatible representation of `data`. - */ - public static serialize(data: any, type: string, format: string = ""): any { - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.serialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.serialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - if (format == "date") { - let month = data.getMonth()+1 - month = month < 10 ? "0" + month.toString() : month.toString() - let day = data.getDate(); - day = day < 10 ? "0" + day.toString() : day.toString(); - - return data.getFullYear() + "-" + month + "-" + day; - } else { - return data.toISOString(); - } - } else { - if (enumsMap.has(type)) { - return data; - } - if (!typeMap[type]) { // in case we dont know the type - return data; - } - - // Get the actual type of this object - type = this.findCorrectType(data, type); - - const clazz = typeMap[type]; - - // Safe check for getAttributeTypeMap - if (typeof clazz.getAttributeTypeMap !== "function") { - return { ...data }; // fallback: shallow copy - } - - // get the map for the correct type. - let attributeTypes = typeMap[type].getAttributeTypeMap(); - let instance: {[index: string]: any} = {}; - for (let attributeType of attributeTypes) { - instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format); - } - return instance; - } - } - - /** - * Deserializes a plain JSON-compatible object into a typed instance. - * - * Handles primitives, arrays, maps, dates, enums, and known classes from `typeMap`. - * Uses discriminators when available to resolve polymorphic types. - * Falls back to raw data if the type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The raw input to deserialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A deserialized instance or value of `data`. - */ - public static deserialize(data: any, type: string, format: string = ""): any { - // polymorphism may change the actual type. - type = ObjectSerializer.findCorrectType(data, type); - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.deserialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.deserialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - return new Date(data); - } else { - if (enumsMap.has(type)) {// is Enum - return data; - } - - if (!typeMap[type]) { // dont know the type - return data; - } - let instance = new typeMap[type](); - - // Safe check for getAttributeTypeMap - if (typeof typeMap[type].getAttributeTypeMap !== "function") { - Object.assign(instance, data); // fallback: shallow copy - return instance; - } - - let attributeTypes = typeMap[type].getAttributeTypeMap(); - for (let attributeType of attributeTypes) { - let value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format); - if (value !== undefined) { - instance[attributeType.name] = value; - } - } - return instance; - } - } - - - /** - * Normalize media type - * - * We currently do not handle any media types attributes, i.e. anything - * after a semicolon. All content is assumed to be UTF-8 compatible. - */ - public static normalizeMediaType(mediaType: string | undefined): string | undefined { - if (mediaType === undefined) { - return undefined; - } - return (mediaType.split(";")[0] ?? '').trim().toLowerCase(); - } - - /** - * From a list of possible media types, choose the one we can handle best. - * - * The order of the given media types does not have any impact on the choice - * made. - */ - public static getPreferredMediaType(mediaTypes: Array): string { - /** According to OAS 3 we should default to json */ - if (mediaTypes.length === 0) { - return "application/json"; - } - - const normalMediaTypes = mediaTypes.map(ObjectSerializer.normalizeMediaType); - - for (const predicate of supportedMimeTypePredicatesWithPriority) { - for (const mediaType of normalMediaTypes) { - if (mediaType != null && predicate(mediaType)) { - return mediaType; - } - } - } - - throw new Error("None of the given media types are supported: " + mediaTypes.join(", ")); - } - - /** - * Convert data to a string according the given media type - */ - public static stringify(data: any, mediaType: string): string { - if (isTextLikeMimeType(mediaType)) { - return String(data); - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.stringify(data); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify."); - } - - /** - * Parse data from a string according to the given media type - */ - public static parse(rawData: string, mediaType: string | undefined) { - if (mediaType === undefined) { - throw new Error("Cannot parse content. No Content-Type defined."); - } - - if (isTextLikeMimeType(mediaType)) { - return rawData; - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.parse(rawData); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse."); - } -} diff --git a/src/typings/paymentsApp/paymentsAppDto.ts b/src/typings/paymentsApp/paymentsAppDto.ts index 793ab159b..d265f55ee 100644 --- a/src/typings/paymentsApp/paymentsAppDto.ts +++ b/src/typings/paymentsApp/paymentsAppDto.ts @@ -12,55 +12,46 @@ export class PaymentsAppDto { /** * The unique identifier of the Payments App instance. */ - "installationId": string; + 'installationId': string; /** * The account code associated with the Payments App instance. */ - "merchantAccountCode": string; + 'merchantAccountCode': string; /** * The store code associated with the Payments App instance. */ - "merchantStoreCode"?: string; + 'merchantStoreCode'?: string; /** * The status of the Payments App instance. */ - "status": string; + 'status': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "installationId", "baseName": "installationId", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAccountCode", "baseName": "merchantAccountCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantStoreCode", "baseName": "merchantStoreCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PaymentsAppDto.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/paymentsApp/paymentsAppResponse.ts b/src/typings/paymentsApp/paymentsAppResponse.ts index 3e6efc4ff..22bcbbad4 100644 --- a/src/typings/paymentsApp/paymentsAppResponse.ts +++ b/src/typings/paymentsApp/paymentsAppResponse.ts @@ -7,32 +7,25 @@ * Do not edit this class manually. */ -import { PaymentsAppDto } from "./paymentsAppDto"; - +import { PaymentsAppDto } from './paymentsAppDto'; export class PaymentsAppResponse { /** * List of Payments Apps. */ - "paymentsApps": Array; - - static readonly discriminator: string | undefined = undefined; + 'paymentsApps': Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "paymentsApps", "baseName": "paymentsApps", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return PaymentsAppResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payout/address.ts b/src/typings/payout/address.ts index 5700753c3..9fa047bfc 100644 --- a/src/typings/payout/address.ts +++ b/src/typings/payout/address.ts @@ -12,75 +12,64 @@ export class Address { /** * The name of the city. Maximum length: 3000 characters. */ - "city": string; + 'city': string; /** * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don\'t know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ - "country": string; + 'country': string; /** * The number or name of the house. Maximum length: 3000 characters. */ - "houseNumberOrName": string; + 'houseNumberOrName': string; /** * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. */ - "postalCode": string; + 'postalCode': string; /** * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ - "stateOrProvince"?: string; + 'stateOrProvince'?: string; /** * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. */ - "street": string; + 'street': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "city", "baseName": "city", - "type": "string", - "format": "" + "type": "string" }, { "name": "country", "baseName": "country", - "type": "string", - "format": "" + "type": "string" }, { "name": "houseNumberOrName", "baseName": "houseNumberOrName", - "type": "string", - "format": "" + "type": "string" }, { "name": "postalCode", "baseName": "postalCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "stateOrProvince", "baseName": "stateOrProvince", - "type": "string", - "format": "" + "type": "string" }, { "name": "street", "baseName": "street", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Address.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payout/amount.ts b/src/typings/payout/amount.ts index 4ce25c0bd..c6b8414c1 100644 --- a/src/typings/payout/amount.ts +++ b/src/typings/payout/amount.ts @@ -12,35 +12,28 @@ export class Amount { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ - "currency": string; + 'currency': string; /** * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ - "value": number; + 'value': number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "number", - "format": "int64" + "type": "number" } ]; static getAttributeTypeMap() { return Amount.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payout/bankAccount.ts b/src/typings/payout/bankAccount.ts index 2ce514dde..de0b7b459 100644 --- a/src/typings/payout/bankAccount.ts +++ b/src/typings/payout/bankAccount.ts @@ -12,105 +12,91 @@ export class BankAccount { /** * The bank account number (without separators). */ - "bankAccountNumber"?: string; + 'bankAccountNumber'?: string; /** * The bank city. */ - "bankCity"?: string; + 'bankCity'?: string; /** * The location id of the bank. The field value is `nil` in most cases. */ - "bankLocationId"?: string; + 'bankLocationId'?: string; /** * The name of the bank. */ - "bankName"?: string; + 'bankName'?: string; /** * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. */ - "bic"?: string; + 'bic'?: string; /** * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. \'NL\'). */ - "countryCode"?: string; + 'countryCode'?: string; /** * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). */ - "iban"?: string; + 'iban'?: string; /** * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don\'t accept \'ø\'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don\'t match the required format, the response returns the error message: 203 \'Invalid bank account holder name\'. */ - "ownerName"?: string; + 'ownerName'?: string; /** * The bank account holder\'s tax ID. */ - "taxId"?: string; + 'taxId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "bankAccountNumber", "baseName": "bankAccountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankCity", "baseName": "bankCity", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankLocationId", "baseName": "bankLocationId", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankName", "baseName": "bankName", - "type": "string", - "format": "" + "type": "string" }, { "name": "bic", "baseName": "bic", - "type": "string", - "format": "" + "type": "string" }, { "name": "countryCode", "baseName": "countryCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "iban", "baseName": "iban", - "type": "string", - "format": "" + "type": "string" }, { "name": "ownerName", "baseName": "ownerName", - "type": "string", - "format": "" + "type": "string" }, { "name": "taxId", "baseName": "taxId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return BankAccount.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payout/card.ts b/src/typings/payout/card.ts index 1e477973a..70d38a7d0 100644 --- a/src/typings/payout/card.ts +++ b/src/typings/payout/card.ts @@ -12,95 +12,82 @@ export class Card { /** * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. */ - "cvc"?: string; + 'cvc'?: string; /** * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November */ - "expiryMonth"?: string; + 'expiryMonth'?: string; /** * The card expiry year. Format: 4 digits. For example: 2020 */ - "expiryYear"?: string; + 'expiryYear'?: string; /** * The name of the cardholder, as printed on the card. */ - "holderName"?: string; + 'holderName'?: string; /** * The issue number of the card (for some UK debit cards only). */ - "issueNumber"?: string; + 'issueNumber'?: string; /** * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. */ - "number"?: string; + 'number'?: string; /** * The month component of the start date (for some UK debit cards only). */ - "startMonth"?: string; + 'startMonth'?: string; /** * The year component of the start date (for some UK debit cards only). */ - "startYear"?: string; + 'startYear'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "cvc", "baseName": "cvc", - "type": "string", - "format": "" + "type": "string" }, { "name": "expiryMonth", "baseName": "expiryMonth", - "type": "string", - "format": "" + "type": "string" }, { "name": "expiryYear", "baseName": "expiryYear", - "type": "string", - "format": "" + "type": "string" }, { "name": "holderName", "baseName": "holderName", - "type": "string", - "format": "" + "type": "string" }, { "name": "issueNumber", "baseName": "issueNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "number", "baseName": "number", - "type": "string", - "format": "" + "type": "string" }, { "name": "startMonth", "baseName": "startMonth", - "type": "string", - "format": "" + "type": "string" }, { "name": "startYear", "baseName": "startYear", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Card.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payout/fraudCheckResult.ts b/src/typings/payout/fraudCheckResult.ts index df6bf6691..37046b3d1 100644 --- a/src/typings/payout/fraudCheckResult.ts +++ b/src/typings/payout/fraudCheckResult.ts @@ -12,45 +12,37 @@ export class FraudCheckResult { /** * The fraud score generated by the risk check. */ - "accountScore": number; + 'accountScore': number; /** * The ID of the risk check. */ - "checkId": number; + 'checkId': number; /** * The name of the risk check. */ - "name": string; + 'name': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountScore", "baseName": "accountScore", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "checkId", "baseName": "checkId", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return FraudCheckResult.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payout/fraudCheckResultWrapper.ts b/src/typings/payout/fraudCheckResultWrapper.ts index 82323b79c..841551c5e 100644 --- a/src/typings/payout/fraudCheckResultWrapper.ts +++ b/src/typings/payout/fraudCheckResultWrapper.ts @@ -7,29 +7,22 @@ * Do not edit this class manually. */ -import { FraudCheckResult } from "./fraudCheckResult"; - +import { FraudCheckResult } from './fraudCheckResult'; export class FraudCheckResultWrapper { - "FraudCheckResult"?: FraudCheckResult | null; - - static readonly discriminator: string | undefined = undefined; + 'FraudCheckResult'?: FraudCheckResult | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "FraudCheckResult", "baseName": "FraudCheckResult", - "type": "FraudCheckResult | null", - "format": "" + "type": "FraudCheckResult | null" } ]; static getAttributeTypeMap() { return FraudCheckResultWrapper.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payout/fraudResult.ts b/src/typings/payout/fraudResult.ts index df9b0e399..9def6b90a 100644 --- a/src/typings/payout/fraudResult.ts +++ b/src/typings/payout/fraudResult.ts @@ -7,42 +7,34 @@ * Do not edit this class manually. */ -import { FraudCheckResultWrapper } from "./fraudCheckResultWrapper"; - +import { FraudCheckResultWrapper } from './fraudCheckResultWrapper'; export class FraudResult { /** * The total fraud score generated by the risk checks. */ - "accountScore": number; + 'accountScore': number; /** * The result of the individual risk checks. */ - "results"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'results'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountScore", "baseName": "accountScore", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "results", "baseName": "results", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return FraudResult.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payout/fundSource.ts b/src/typings/payout/fundSource.ts index 920a8b8b0..14eec5d74 100644 --- a/src/typings/payout/fundSource.ts +++ b/src/typings/payout/fundSource.ts @@ -7,75 +7,63 @@ * Do not edit this class manually. */ -import { Address } from "./address"; -import { Card } from "./card"; -import { Name } from "./name"; - +import { Address } from './address'; +import { Card } from './card'; +import { Name } from './name'; export class FundSource { /** * A map of name-value pairs for passing additional or industry-specific data. */ - "additionalData"?: { [key: string]: string; }; - "billingAddress"?: Address | null; - "card"?: Card | null; + 'additionalData'?: { [key: string]: string; }; + 'billingAddress'?: Address | null; + 'card'?: Card | null; /** * Email address of the person. */ - "shopperEmail"?: string; - "shopperName"?: Name | null; + 'shopperEmail'?: string; + 'shopperName'?: Name | null; /** * Phone number of the person */ - "telephoneNumber"?: string; - - static readonly discriminator: string | undefined = undefined; + 'telephoneNumber'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "Address | null", - "format": "" + "type": "Address | null" }, { "name": "card", "baseName": "card", - "type": "Card | null", - "format": "" + "type": "Card | null" }, { "name": "shopperEmail", "baseName": "shopperEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperName", "baseName": "shopperName", - "type": "Name | null", - "format": "" + "type": "Name | null" }, { "name": "telephoneNumber", "baseName": "telephoneNumber", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return FundSource.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payout/models.ts b/src/typings/payout/models.ts index 2f467abbf..fe9ea9529 100644 --- a/src/typings/payout/models.ts +++ b/src/typings/payout/models.ts @@ -1,33 +1,246 @@ -export * from "./address" -export * from "./amount" -export * from "./bankAccount" -export * from "./card" -export * from "./fraudCheckResult" -export * from "./fraudCheckResultWrapper" -export * from "./fraudResult" -export * from "./fundSource" -export * from "./modifyRequest" -export * from "./modifyResponse" -export * from "./name" -export * from "./payoutRequest" -export * from "./payoutResponse" -export * from "./recurring" -export * from "./responseAdditionalData3DSecure" -export * from "./responseAdditionalDataBillingAddress" -export * from "./responseAdditionalDataCard" -export * from "./responseAdditionalDataCommon" -export * from "./responseAdditionalDataDomesticError" -export * from "./responseAdditionalDataInstallments" -export * from "./responseAdditionalDataNetworkTokens" -export * from "./responseAdditionalDataOpi" -export * from "./responseAdditionalDataSepa" -export * from "./serviceError" -export * from "./storeDetailAndSubmitRequest" -export * from "./storeDetailAndSubmitResponse" -export * from "./storeDetailRequest" -export * from "./storeDetailResponse" -export * from "./submitRequest" -export * from "./submitResponse" - -// serializing and deserializing typed objects -export * from "./objectSerializer" \ No newline at end of file +/* + * The version of the OpenAPI document: v68 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export * from './address'; +export * from './amount'; +export * from './bankAccount'; +export * from './card'; +export * from './fraudCheckResult'; +export * from './fraudCheckResultWrapper'; +export * from './fraudResult'; +export * from './fundSource'; +export * from './modifyRequest'; +export * from './modifyResponse'; +export * from './name'; +export * from './payoutRequest'; +export * from './payoutResponse'; +export * from './recurring'; +export * from './responseAdditionalData3DSecure'; +export * from './responseAdditionalDataBillingAddress'; +export * from './responseAdditionalDataCard'; +export * from './responseAdditionalDataCommon'; +export * from './responseAdditionalDataDomesticError'; +export * from './responseAdditionalDataInstallments'; +export * from './responseAdditionalDataNetworkTokens'; +export * from './responseAdditionalDataOpi'; +export * from './responseAdditionalDataSepa'; +export * from './serviceError'; +export * from './storeDetailAndSubmitRequest'; +export * from './storeDetailAndSubmitResponse'; +export * from './storeDetailRequest'; +export * from './storeDetailResponse'; +export * from './submitRequest'; +export * from './submitResponse'; + + +import { Address } from './address'; +import { Amount } from './amount'; +import { BankAccount } from './bankAccount'; +import { Card } from './card'; +import { FraudCheckResult } from './fraudCheckResult'; +import { FraudCheckResultWrapper } from './fraudCheckResultWrapper'; +import { FraudResult } from './fraudResult'; +import { FundSource } from './fundSource'; +import { ModifyRequest } from './modifyRequest'; +import { ModifyResponse } from './modifyResponse'; +import { Name } from './name'; +import { PayoutRequest } from './payoutRequest'; +import { PayoutResponse } from './payoutResponse'; +import { Recurring } from './recurring'; +import { ResponseAdditionalData3DSecure } from './responseAdditionalData3DSecure'; +import { ResponseAdditionalDataBillingAddress } from './responseAdditionalDataBillingAddress'; +import { ResponseAdditionalDataCard } from './responseAdditionalDataCard'; +import { ResponseAdditionalDataCommon } from './responseAdditionalDataCommon'; +import { ResponseAdditionalDataDomesticError } from './responseAdditionalDataDomesticError'; +import { ResponseAdditionalDataInstallments } from './responseAdditionalDataInstallments'; +import { ResponseAdditionalDataNetworkTokens } from './responseAdditionalDataNetworkTokens'; +import { ResponseAdditionalDataOpi } from './responseAdditionalDataOpi'; +import { ResponseAdditionalDataSepa } from './responseAdditionalDataSepa'; +import { ServiceError } from './serviceError'; +import { StoreDetailAndSubmitRequest } from './storeDetailAndSubmitRequest'; +import { StoreDetailAndSubmitResponse } from './storeDetailAndSubmitResponse'; +import { StoreDetailRequest } from './storeDetailRequest'; +import { StoreDetailResponse } from './storeDetailResponse'; +import { SubmitRequest } from './submitRequest'; +import { SubmitResponse } from './submitResponse'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "PayoutRequest.ShopperInteractionEnum": PayoutRequest.ShopperInteractionEnum, + "PayoutResponse.ResultCodeEnum": PayoutResponse.ResultCodeEnum, + "Recurring.ContractEnum": Recurring.ContractEnum, + "Recurring.TokenServiceEnum": Recurring.TokenServiceEnum, + "ResponseAdditionalDataCard.CardProductIdEnum": ResponseAdditionalDataCard.CardProductIdEnum, + "ResponseAdditionalDataCommon.FraudResultTypeEnum": ResponseAdditionalDataCommon.FraudResultTypeEnum, + "ResponseAdditionalDataCommon.FraudRiskLevelEnum": ResponseAdditionalDataCommon.FraudRiskLevelEnum, + "ResponseAdditionalDataCommon.RecurringProcessingModelEnum": ResponseAdditionalDataCommon.RecurringProcessingModelEnum, + "ResponseAdditionalDataCommon.TokenizationStoreOperationTypeEnum": ResponseAdditionalDataCommon.TokenizationStoreOperationTypeEnum, + "StoreDetailAndSubmitRequest.EntityTypeEnum": StoreDetailAndSubmitRequest.EntityTypeEnum, + "StoreDetailRequest.EntityTypeEnum": StoreDetailRequest.EntityTypeEnum, + "SubmitRequest.EntityTypeEnum": SubmitRequest.EntityTypeEnum, +} + +let typeMap: {[index: string]: any} = { + "Address": Address, + "Amount": Amount, + "BankAccount": BankAccount, + "Card": Card, + "FraudCheckResult": FraudCheckResult, + "FraudCheckResultWrapper": FraudCheckResultWrapper, + "FraudResult": FraudResult, + "FundSource": FundSource, + "ModifyRequest": ModifyRequest, + "ModifyResponse": ModifyResponse, + "Name": Name, + "PayoutRequest": PayoutRequest, + "PayoutResponse": PayoutResponse, + "Recurring": Recurring, + "ResponseAdditionalData3DSecure": ResponseAdditionalData3DSecure, + "ResponseAdditionalDataBillingAddress": ResponseAdditionalDataBillingAddress, + "ResponseAdditionalDataCard": ResponseAdditionalDataCard, + "ResponseAdditionalDataCommon": ResponseAdditionalDataCommon, + "ResponseAdditionalDataDomesticError": ResponseAdditionalDataDomesticError, + "ResponseAdditionalDataInstallments": ResponseAdditionalDataInstallments, + "ResponseAdditionalDataNetworkTokens": ResponseAdditionalDataNetworkTokens, + "ResponseAdditionalDataOpi": ResponseAdditionalDataOpi, + "ResponseAdditionalDataSepa": ResponseAdditionalDataSepa, + "ServiceError": ServiceError, + "StoreDetailAndSubmitRequest": StoreDetailAndSubmitRequest, + "StoreDetailAndSubmitResponse": StoreDetailAndSubmitResponse, + "StoreDetailRequest": StoreDetailRequest, + "StoreDetailResponse": StoreDetailResponse, + "SubmitRequest": SubmitRequest, + "SubmitResponse": SubmitResponse, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/payout/modifyRequest.ts b/src/typings/payout/modifyRequest.ts index c8b8ae764..894b68a65 100644 --- a/src/typings/payout/modifyRequest.ts +++ b/src/typings/payout/modifyRequest.ts @@ -12,45 +12,37 @@ export class ModifyRequest { /** * This field contains additional data, which may be required for a particular payout request. */ - "additionalData"?: { [key: string]: string; }; + 'additionalData'?: { [key: string]: string; }; /** * The merchant account identifier, with which you want to process the transaction. */ - "merchantAccount": string; + 'merchantAccount': string; /** * The PSP reference received in the `/submitThirdParty` response. */ - "originalReference": string; + 'originalReference': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "originalReference", "baseName": "originalReference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ModifyRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payout/modifyResponse.ts b/src/typings/payout/modifyResponse.ts index c3cd543b2..043f889d8 100644 --- a/src/typings/payout/modifyResponse.ts +++ b/src/typings/payout/modifyResponse.ts @@ -12,45 +12,37 @@ export class ModifyResponse { /** * This field contains additional data, which may be returned in a particular response. */ - "additionalData"?: { [key: string]: string; }; + 'additionalData'?: { [key: string]: string; }; /** * Adyen\'s 16-character string reference associated with the transaction. This value is globally unique; quote it when communicating with us about this response. */ - "pspReference": string; + 'pspReference': string; /** * The response: * In case of success, it is either `payout-confirm-received` or `payout-decline-received`. * In case of an error, an informational message is returned. */ - "response": string; + 'response': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "response", "baseName": "response", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ModifyResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payout/name.ts b/src/typings/payout/name.ts index 131e35744..2248b74d2 100644 --- a/src/typings/payout/name.ts +++ b/src/typings/payout/name.ts @@ -12,35 +12,28 @@ export class Name { /** * The first name. */ - "firstName": string; + 'firstName': string; /** * The last name. */ - "lastName": string; + 'lastName': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "firstName", "baseName": "firstName", - "type": "string", - "format": "" + "type": "string" }, { "name": "lastName", "baseName": "lastName", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Name.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payout/objectSerializer.ts b/src/typings/payout/objectSerializer.ts deleted file mode 100644 index 67ec0f887..000000000 --- a/src/typings/payout/objectSerializer.ts +++ /dev/null @@ -1,415 +0,0 @@ -export * from "./models"; - -import { Address } from "./address"; -import { Amount } from "./amount"; -import { BankAccount } from "./bankAccount"; -import { Card } from "./card"; -import { FraudCheckResult } from "./fraudCheckResult"; -import { FraudCheckResultWrapper } from "./fraudCheckResultWrapper"; -import { FraudResult } from "./fraudResult"; -import { FundSource } from "./fundSource"; -import { ModifyRequest } from "./modifyRequest"; -import { ModifyResponse } from "./modifyResponse"; -import { Name } from "./name"; -import { PayoutRequest } from "./payoutRequest"; -import { PayoutResponse } from "./payoutResponse"; -import { Recurring } from "./recurring"; -import { ResponseAdditionalData3DSecure } from "./responseAdditionalData3DSecure"; -import { ResponseAdditionalDataBillingAddress } from "./responseAdditionalDataBillingAddress"; -import { ResponseAdditionalDataCard } from "./responseAdditionalDataCard"; -import { ResponseAdditionalDataCommon } from "./responseAdditionalDataCommon"; -import { ResponseAdditionalDataDomesticError } from "./responseAdditionalDataDomesticError"; -import { ResponseAdditionalDataInstallments } from "./responseAdditionalDataInstallments"; -import { ResponseAdditionalDataNetworkTokens } from "./responseAdditionalDataNetworkTokens"; -import { ResponseAdditionalDataOpi } from "./responseAdditionalDataOpi"; -import { ResponseAdditionalDataSepa } from "./responseAdditionalDataSepa"; -import { ServiceError } from "./serviceError"; -import { StoreDetailAndSubmitRequest } from "./storeDetailAndSubmitRequest"; -import { StoreDetailAndSubmitResponse } from "./storeDetailAndSubmitResponse"; -import { StoreDetailRequest } from "./storeDetailRequest"; -import { StoreDetailResponse } from "./storeDetailResponse"; -import { SubmitRequest } from "./submitRequest"; -import { SubmitResponse } from "./submitResponse"; - -/* tslint:disable:no-unused-variable */ -let primitives = [ - "string", - "boolean", - "double", - "integer", - "long", - "float", - "number", - "any" - ]; - -let enumsMap: Set = new Set([ - "PayoutRequest.ShopperInteractionEnum", - "PayoutResponse.ResultCodeEnum", - "Recurring.ContractEnum", - "Recurring.TokenServiceEnum", - "ResponseAdditionalDataCard.CardProductIdEnum", - "ResponseAdditionalDataCommon.FraudResultTypeEnum", - "ResponseAdditionalDataCommon.FraudRiskLevelEnum", - "ResponseAdditionalDataCommon.RecurringProcessingModelEnum", - "ResponseAdditionalDataCommon.TokenizationStoreOperationTypeEnum", - "StoreDetailAndSubmitRequest.EntityTypeEnum", - "StoreDetailRequest.EntityTypeEnum", - "SubmitRequest.EntityTypeEnum", -]); - -let typeMap: {[index: string]: any} = { - "Address": Address, - "Amount": Amount, - "BankAccount": BankAccount, - "Card": Card, - "FraudCheckResult": FraudCheckResult, - "FraudCheckResultWrapper": FraudCheckResultWrapper, - "FraudResult": FraudResult, - "FundSource": FundSource, - "ModifyRequest": ModifyRequest, - "ModifyResponse": ModifyResponse, - "Name": Name, - "PayoutRequest": PayoutRequest, - "PayoutResponse": PayoutResponse, - "Recurring": Recurring, - "ResponseAdditionalData3DSecure": ResponseAdditionalData3DSecure, - "ResponseAdditionalDataBillingAddress": ResponseAdditionalDataBillingAddress, - "ResponseAdditionalDataCard": ResponseAdditionalDataCard, - "ResponseAdditionalDataCommon": ResponseAdditionalDataCommon, - "ResponseAdditionalDataDomesticError": ResponseAdditionalDataDomesticError, - "ResponseAdditionalDataInstallments": ResponseAdditionalDataInstallments, - "ResponseAdditionalDataNetworkTokens": ResponseAdditionalDataNetworkTokens, - "ResponseAdditionalDataOpi": ResponseAdditionalDataOpi, - "ResponseAdditionalDataSepa": ResponseAdditionalDataSepa, - "ServiceError": ServiceError, - "StoreDetailAndSubmitRequest": StoreDetailAndSubmitRequest, - "StoreDetailAndSubmitResponse": StoreDetailAndSubmitResponse, - "StoreDetailRequest": StoreDetailRequest, - "StoreDetailResponse": StoreDetailResponse, - "SubmitRequest": SubmitRequest, - "SubmitResponse": SubmitResponse, -} - -type MimeTypeDescriptor = { - type: string; - subtype: string; - subtypeTokens: string[]; -}; - -/** - * Every mime-type consists of a type, subtype, and optional parameters. - * The subtype can be composite, including information about the content format. - * For example: `application/json-patch+json`, `application/merge-patch+json`. - * - * This helper transforms a string mime-type into an internal representation. - * This simplifies the implementation of predicates that in turn define common rules for parsing or stringifying - * the payload. - */ -const parseMimeType = (mimeType: string): MimeTypeDescriptor => { - const [type = '', subtype = ''] = mimeType.split('/'); - return { - type, - subtype, - subtypeTokens: subtype.split('+'), - }; -}; - -type MimeTypePredicate = (mimeType: string) => boolean; - -// This factory creates a predicate function that checks a string mime-type against defined rules. -const mimeTypePredicateFactory = (predicate: (descriptor: MimeTypeDescriptor) => boolean): MimeTypePredicate => (mimeType) => predicate(parseMimeType(mimeType)); - -// Use this factory when you need to define a simple predicate based only on type and, if applicable, subtype. -const mimeTypeSimplePredicateFactory = (type: string, subtype?: string): MimeTypePredicate => mimeTypePredicateFactory((descriptor) => { - if (descriptor.type !== type) return false; - if (subtype != null && descriptor.subtype !== subtype) return false; - return true; -}); - -// Creating a set of named predicates that will help us determine how to handle different mime-types -const isTextLikeMimeType = mimeTypeSimplePredicateFactory('text'); -const isJsonMimeType = mimeTypeSimplePredicateFactory('application', 'json'); -const isJsonLikeMimeType = mimeTypePredicateFactory((descriptor) => descriptor.type === 'application' && descriptor.subtypeTokens.some((item) => item === 'json')); -const isOctetStreamMimeType = mimeTypeSimplePredicateFactory('application', 'octet-stream'); -const isFormUrlencodedMimeType = mimeTypeSimplePredicateFactory('application', 'x-www-form-urlencoded'); - -// Defining a list of mime-types in the order of prioritization for handling. -const supportedMimeTypePredicatesWithPriority: MimeTypePredicate[] = [ - isJsonMimeType, - isJsonLikeMimeType, - isTextLikeMimeType, - isOctetStreamMimeType, - isFormUrlencodedMimeType, -]; - -const nullableSuffix = " | null"; -const optionalSuffix = " | undefined"; -const arrayPrefix = "Array<"; -const arraySuffix = ">"; -const mapPrefix = "{ [key: string]: "; -const mapSuffix = "; }"; - -export class ObjectSerializer { - public static findCorrectType(data: any, expectedType: string) { - if (data == undefined) { - return expectedType; - } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { - return expectedType; - } else if (expectedType === "Date") { - return expectedType; - } else { - if (enumsMap.has(expectedType)) { - return expectedType; - } - - if (!typeMap[expectedType]) { - return expectedType; // w/e we don't know the type - } - - // Check the discriminator - let discriminatorProperty = typeMap[expectedType].discriminator; - if (discriminatorProperty == null) { - return expectedType; // the type does not have a discriminator. use it. - } else { - if (data[discriminatorProperty]) { - var discriminatorType = data[discriminatorProperty]; - let mapping = typeMap[expectedType].mapping; - if (mapping != undefined && mapping[discriminatorType]) { - return mapping[discriminatorType]; // use the type given in the discriminator - } else if(typeMap[discriminatorType]) { - return discriminatorType; - } else { - return expectedType; // discriminator did not map to a type - } - } else { - return expectedType; // discriminator was not present (or an empty string) - } - } - } - } - - /** - * Serializes a value into a plain JSON-compatible object based on its type. - * - * Supports primitives, arrays, maps, dates, enums, and classes defined in `typeMap`. - * Falls back to raw data if type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The value to serialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A JSON-compatible representation of `data`. - */ - public static serialize(data: any, type: string, format: string = ""): any { - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.serialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.serialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - if (format == "date") { - let month = data.getMonth()+1 - month = month < 10 ? "0" + month.toString() : month.toString() - let day = data.getDate(); - day = day < 10 ? "0" + day.toString() : day.toString(); - - return data.getFullYear() + "-" + month + "-" + day; - } else { - return data.toISOString(); - } - } else { - if (enumsMap.has(type)) { - return data; - } - if (!typeMap[type]) { // in case we dont know the type - return data; - } - - // Get the actual type of this object - type = this.findCorrectType(data, type); - - const clazz = typeMap[type]; - - // Safe check for getAttributeTypeMap - if (typeof clazz.getAttributeTypeMap !== "function") { - return { ...data }; // fallback: shallow copy - } - - // get the map for the correct type. - let attributeTypes = typeMap[type].getAttributeTypeMap(); - let instance: {[index: string]: any} = {}; - for (let attributeType of attributeTypes) { - instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format); - } - return instance; - } - } - - /** - * Deserializes a plain JSON-compatible object into a typed instance. - * - * Handles primitives, arrays, maps, dates, enums, and known classes from `typeMap`. - * Uses discriminators when available to resolve polymorphic types. - * Falls back to raw data if the type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The raw input to deserialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A deserialized instance or value of `data`. - */ - public static deserialize(data: any, type: string, format: string = ""): any { - // polymorphism may change the actual type. - type = ObjectSerializer.findCorrectType(data, type); - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.deserialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.deserialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - return new Date(data); - } else { - if (enumsMap.has(type)) {// is Enum - return data; - } - - if (!typeMap[type]) { // dont know the type - return data; - } - let instance = new typeMap[type](); - - // Safe check for getAttributeTypeMap - if (typeof typeMap[type].getAttributeTypeMap !== "function") { - Object.assign(instance, data); // fallback: shallow copy - return instance; - } - - let attributeTypes = typeMap[type].getAttributeTypeMap(); - for (let attributeType of attributeTypes) { - let value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format); - if (value !== undefined) { - instance[attributeType.name] = value; - } - } - return instance; - } - } - - - /** - * Normalize media type - * - * We currently do not handle any media types attributes, i.e. anything - * after a semicolon. All content is assumed to be UTF-8 compatible. - */ - public static normalizeMediaType(mediaType: string | undefined): string | undefined { - if (mediaType === undefined) { - return undefined; - } - return (mediaType.split(";")[0] ?? '').trim().toLowerCase(); - } - - /** - * From a list of possible media types, choose the one we can handle best. - * - * The order of the given media types does not have any impact on the choice - * made. - */ - public static getPreferredMediaType(mediaTypes: Array): string { - /** According to OAS 3 we should default to json */ - if (mediaTypes.length === 0) { - return "application/json"; - } - - const normalMediaTypes = mediaTypes.map(ObjectSerializer.normalizeMediaType); - - for (const predicate of supportedMimeTypePredicatesWithPriority) { - for (const mediaType of normalMediaTypes) { - if (mediaType != null && predicate(mediaType)) { - return mediaType; - } - } - } - - throw new Error("None of the given media types are supported: " + mediaTypes.join(", ")); - } - - /** - * Convert data to a string according the given media type - */ - public static stringify(data: any, mediaType: string): string { - if (isTextLikeMimeType(mediaType)) { - return String(data); - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.stringify(data); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify."); - } - - /** - * Parse data from a string according to the given media type - */ - public static parse(rawData: string, mediaType: string | undefined) { - if (mediaType === undefined) { - throw new Error("Cannot parse content. No Content-Type defined."); - } - - if (isTextLikeMimeType(mediaType)) { - return rawData; - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.parse(rawData); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse."); - } -} diff --git a/src/typings/payout/payoutRequest.ts b/src/typings/payout/payoutRequest.ts index 26052665d..09225e02c 100644 --- a/src/typings/payout/payoutRequest.ts +++ b/src/typings/payout/payoutRequest.ts @@ -7,150 +7,130 @@ * Do not edit this class manually. */ -import { Address } from "./address"; -import { Amount } from "./amount"; -import { Card } from "./card"; -import { FundSource } from "./fundSource"; -import { Name } from "./name"; -import { Recurring } from "./recurring"; - +import { Address } from './address'; +import { Amount } from './amount'; +import { Card } from './card'; +import { FundSource } from './fundSource'; +import { Name } from './name'; +import { Recurring } from './recurring'; export class PayoutRequest { - "amount": Amount; - "billingAddress"?: Address | null; - "card"?: Card | null; + 'amount': Amount; + 'billingAddress'?: Address | null; + 'card'?: Card | null; /** * An integer value that is added to the normal fraud score. The value can be either positive or negative. */ - "fraudOffset"?: number; - "fundSource"?: FundSource | null; + 'fraudOffset'?: number; + 'fundSource'?: FundSource | null; /** * The merchant account identifier, with which you want to process the transaction. */ - "merchantAccount": string; - "recurring"?: Recurring | null; + 'merchantAccount': string; + 'recurring'?: Recurring | null; /** * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ - "reference": string; + 'reference': string; /** * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. */ - "selectedRecurringDetailReference"?: string; + 'selectedRecurringDetailReference'?: string; /** * The shopper\'s email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require `shopperEmail` for all browser-based and mobile implementations. */ - "shopperEmail"?: string; + 'shopperEmail'?: string; /** * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ - "shopperInteraction"?: PayoutRequest.ShopperInteractionEnum; - "shopperName"?: Name | null; + 'shopperInteraction'?: PayoutRequest.ShopperInteractionEnum; + 'shopperName'?: Name | null; /** * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address. */ - "shopperReference"?: string; + 'shopperReference'?: string; /** * The shopper\'s telephone number. */ - "telephoneNumber"?: string; - - static readonly discriminator: string | undefined = undefined; + 'telephoneNumber'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "Address | null", - "format": "" + "type": "Address | null" }, { "name": "card", "baseName": "card", - "type": "Card | null", - "format": "" + "type": "Card | null" }, { "name": "fraudOffset", "baseName": "fraudOffset", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "fundSource", "baseName": "fundSource", - "type": "FundSource | null", - "format": "" + "type": "FundSource | null" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurring", "baseName": "recurring", - "type": "Recurring | null", - "format": "" + "type": "Recurring | null" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "selectedRecurringDetailReference", "baseName": "selectedRecurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperEmail", "baseName": "shopperEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperInteraction", "baseName": "shopperInteraction", - "type": "PayoutRequest.ShopperInteractionEnum", - "format": "" + "type": "PayoutRequest.ShopperInteractionEnum" }, { "name": "shopperName", "baseName": "shopperName", - "type": "Name | null", - "format": "" + "type": "Name | null" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "telephoneNumber", "baseName": "telephoneNumber", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PayoutRequest.attributeTypeMap; } - - public constructor() { - } } export namespace PayoutRequest { diff --git a/src/typings/payout/payoutResponse.ts b/src/typings/payout/payoutResponse.ts index 65c5519a8..403880054 100644 --- a/src/typings/payout/payoutResponse.ts +++ b/src/typings/payout/payoutResponse.ts @@ -7,128 +7,111 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { FraudResult } from "./fraudResult"; - +import { Amount } from './amount'; +import { FraudResult } from './fraudResult'; export class PayoutResponse { /** * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. */ - "additionalData"?: { [key: string]: string; }; + 'additionalData'?: { [key: string]: string; }; /** * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. */ - "authCode"?: string; - "dccAmount"?: Amount | null; + 'authCode'?: string; + 'dccAmount'?: Amount | null; /** * Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ - "dccSignature"?: string; - "fraudResult"?: FraudResult | null; + 'dccSignature'?: string; + 'fraudResult'?: FraudResult | null; /** * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. */ - "issuerUrl"?: string; + 'issuerUrl'?: string; /** * The payment session. */ - "md"?: string; + 'md'?: string; /** * The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure). */ - "paRequest"?: string; + 'paRequest'?: string; /** * Adyen\'s 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ - "pspReference"?: string; + 'pspReference'?: string; /** * If the payment\'s authorisation is refused or an error occurs during authorisation, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). */ - "refusalReason"?: string; + 'refusalReason'?: string; /** * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper\'s device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. */ - "resultCode"?: PayoutResponse.ResultCodeEnum; - - static readonly discriminator: string | undefined = undefined; + 'resultCode'?: PayoutResponse.ResultCodeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "authCode", "baseName": "authCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "dccAmount", "baseName": "dccAmount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "dccSignature", "baseName": "dccSignature", - "type": "string", - "format": "" + "type": "string" }, { "name": "fraudResult", "baseName": "fraudResult", - "type": "FraudResult | null", - "format": "" + "type": "FraudResult | null" }, { "name": "issuerUrl", "baseName": "issuerUrl", - "type": "string", - "format": "" + "type": "string" }, { "name": "md", "baseName": "md", - "type": "string", - "format": "" + "type": "string" }, { "name": "paRequest", "baseName": "paRequest", - "type": "string", - "format": "" + "type": "string" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "refusalReason", "baseName": "refusalReason", - "type": "string", - "format": "" + "type": "string" }, { "name": "resultCode", "baseName": "resultCode", - "type": "PayoutResponse.ResultCodeEnum", - "format": "" + "type": "PayoutResponse.ResultCodeEnum" } ]; static getAttributeTypeMap() { return PayoutResponse.attributeTypeMap; } - - public constructor() { - } } export namespace PayoutResponse { diff --git a/src/typings/payout/recurring.ts b/src/typings/payout/recurring.ts index fba92e9b7..a65fef7c6 100644 --- a/src/typings/payout/recurring.ts +++ b/src/typings/payout/recurring.ts @@ -12,66 +12,56 @@ export class Recurring { /** * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). */ - "contract"?: Recurring.ContractEnum; + 'contract'?: Recurring.ContractEnum; /** * A descriptive name for this detail. */ - "recurringDetailName"?: string; + 'recurringDetailName'?: string; /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. */ - "recurringExpiry"?: Date; + 'recurringExpiry'?: Date; /** * Minimum number of days between authorisations. Only for 3D Secure 2. */ - "recurringFrequency"?: string; + 'recurringFrequency'?: string; /** * The name of the token service. */ - "tokenService"?: Recurring.TokenServiceEnum; + 'tokenService'?: Recurring.TokenServiceEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "contract", "baseName": "contract", - "type": "Recurring.ContractEnum", - "format": "" + "type": "Recurring.ContractEnum" }, { "name": "recurringDetailName", "baseName": "recurringDetailName", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringExpiry", "baseName": "recurringExpiry", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "recurringFrequency", "baseName": "recurringFrequency", - "type": "string", - "format": "" + "type": "string" }, { "name": "tokenService", "baseName": "tokenService", - "type": "Recurring.TokenServiceEnum", - "format": "" + "type": "Recurring.TokenServiceEnum" } ]; static getAttributeTypeMap() { return Recurring.attributeTypeMap; } - - public constructor() { - } } export namespace Recurring { diff --git a/src/typings/payout/responseAdditionalData3DSecure.ts b/src/typings/payout/responseAdditionalData3DSecure.ts index ca5f3ef4e..c0576b1a7 100644 --- a/src/typings/payout/responseAdditionalData3DSecure.ts +++ b/src/typings/payout/responseAdditionalData3DSecure.ts @@ -12,65 +12,55 @@ export class ResponseAdditionalData3DSecure { /** * Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. */ - "cardHolderInfo"?: string; + 'cardHolderInfo'?: string; /** * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. */ - "cavv"?: string; + 'cavv'?: string; /** * The CAVV algorithm used. */ - "cavvAlgorithm"?: string; + 'cavvAlgorithm'?: string; /** * Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** */ - "scaExemptionRequested"?: string; + 'scaExemptionRequested'?: string; /** * Indicates whether a card is enrolled for 3D Secure 2. */ - "threeds2_cardEnrolled"?: boolean; + 'threeds2_cardEnrolled'?: boolean; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "cardHolderInfo", "baseName": "cardHolderInfo", - "type": "string", - "format": "" + "type": "string" }, { "name": "cavv", "baseName": "cavv", - "type": "string", - "format": "" + "type": "string" }, { "name": "cavvAlgorithm", "baseName": "cavvAlgorithm", - "type": "string", - "format": "" + "type": "string" }, { "name": "scaExemptionRequested", "baseName": "scaExemptionRequested", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeds2_cardEnrolled", "baseName": "threeds2.cardEnrolled", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return ResponseAdditionalData3DSecure.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payout/responseAdditionalDataBillingAddress.ts b/src/typings/payout/responseAdditionalDataBillingAddress.ts index 850fc7296..29314a0bc 100644 --- a/src/typings/payout/responseAdditionalDataBillingAddress.ts +++ b/src/typings/payout/responseAdditionalDataBillingAddress.ts @@ -12,75 +12,64 @@ export class ResponseAdditionalDataBillingAddress { /** * The billing address city passed in the payment request. */ - "billingAddress_city"?: string; + 'billingAddress_city'?: string; /** * The billing address country passed in the payment request. Example: NL */ - "billingAddress_country"?: string; + 'billingAddress_country'?: string; /** * The billing address house number or name passed in the payment request. */ - "billingAddress_houseNumberOrName"?: string; + 'billingAddress_houseNumberOrName'?: string; /** * The billing address postal code passed in the payment request. Example: 1011 DJ */ - "billingAddress_postalCode"?: string; + 'billingAddress_postalCode'?: string; /** * The billing address state or province passed in the payment request. Example: NH */ - "billingAddress_stateOrProvince"?: string; + 'billingAddress_stateOrProvince'?: string; /** * The billing address street passed in the payment request. */ - "billingAddress_street"?: string; + 'billingAddress_street'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "billingAddress_city", "baseName": "billingAddress.city", - "type": "string", - "format": "" + "type": "string" }, { "name": "billingAddress_country", "baseName": "billingAddress.country", - "type": "string", - "format": "" + "type": "string" }, { "name": "billingAddress_houseNumberOrName", "baseName": "billingAddress.houseNumberOrName", - "type": "string", - "format": "" + "type": "string" }, { "name": "billingAddress_postalCode", "baseName": "billingAddress.postalCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "billingAddress_stateOrProvince", "baseName": "billingAddress.stateOrProvince", - "type": "string", - "format": "" + "type": "string" }, { "name": "billingAddress_street", "baseName": "billingAddress.street", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ResponseAdditionalDataBillingAddress.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payout/responseAdditionalDataCard.ts b/src/typings/payout/responseAdditionalDataCard.ts index 9ad24e59f..edd3b3df3 100644 --- a/src/typings/payout/responseAdditionalDataCard.ts +++ b/src/typings/payout/responseAdditionalDataCard.ts @@ -12,106 +12,92 @@ export class ResponseAdditionalDataCard { /** * The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 */ - "cardBin"?: string; + 'cardBin'?: string; /** * The cardholder name passed in the payment request. */ - "cardHolderName"?: string; + 'cardHolderName'?: string; /** * The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. */ - "cardIssuingBank"?: string; + 'cardIssuingBank'?: string; /** * The country where the card was issued. Example: US */ - "cardIssuingCountry"?: string; + 'cardIssuingCountry'?: string; /** * The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD */ - "cardIssuingCurrency"?: string; + 'cardIssuingCurrency'?: string; /** * The card payment method used for the transaction. Example: amex */ - "cardPaymentMethod"?: string; + 'cardPaymentMethod'?: string; /** * The Card Product ID represents the type of card following card scheme product definitions and can be returned for Adyen Acquiring service level payments. Possible values Visa: * **A** - Visa Traditional * **B** - Visa Traditional Rewards * **C** - Visa Signature * **D** - Visa Signature Preferred * **F** - Visa Classic Possible values Mastercard: * **MCC** - Mastercard Card * **MCE** - Mastercard Electronic Card * **MCF** - Mastercard Corporate Fleet Card * **MCG** - Gold Mastercard Card * **MCH** - Mastercard Premium Charge * **MCI** - Mastercard Select Debit */ - "cardProductId"?: ResponseAdditionalDataCard.CardProductIdEnum; + 'cardProductId'?: ResponseAdditionalDataCard.CardProductIdEnum; /** * The last four digits of a card number. > Returned only in case of a card payment. */ - "cardSummary"?: string; + 'cardSummary'?: string; /** * The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 */ - "issuerBin"?: string; + 'issuerBin'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "cardBin", "baseName": "cardBin", - "type": "string", - "format": "" + "type": "string" }, { "name": "cardHolderName", "baseName": "cardHolderName", - "type": "string", - "format": "" + "type": "string" }, { "name": "cardIssuingBank", "baseName": "cardIssuingBank", - "type": "string", - "format": "" + "type": "string" }, { "name": "cardIssuingCountry", "baseName": "cardIssuingCountry", - "type": "string", - "format": "" + "type": "string" }, { "name": "cardIssuingCurrency", "baseName": "cardIssuingCurrency", - "type": "string", - "format": "" + "type": "string" }, { "name": "cardPaymentMethod", "baseName": "cardPaymentMethod", - "type": "string", - "format": "" + "type": "string" }, { "name": "cardProductId", "baseName": "cardProductId", - "type": "ResponseAdditionalDataCard.CardProductIdEnum", - "format": "" + "type": "ResponseAdditionalDataCard.CardProductIdEnum" }, { "name": "cardSummary", "baseName": "cardSummary", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuerBin", "baseName": "issuerBin", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ResponseAdditionalDataCard.attributeTypeMap; } - - public constructor() { - } } export namespace ResponseAdditionalDataCard { diff --git a/src/typings/payout/responseAdditionalDataCommon.ts b/src/typings/payout/responseAdditionalDataCommon.ts index bb603c7f1..22303ee9e 100644 --- a/src/typings/payout/responseAdditionalDataCommon.ts +++ b/src/typings/payout/responseAdditionalDataCommon.ts @@ -12,652 +12,584 @@ export class ResponseAdditionalDataCommon { /** * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. */ - "acquirerAccountCode"?: string; + 'acquirerAccountCode'?: string; /** * The name of the acquirer processing the payment request. Example: TestPmmAcquirer */ - "acquirerCode"?: string; + 'acquirerCode'?: string; /** * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 */ - "acquirerReference"?: string; + 'acquirerReference'?: string; /** * The Adyen alias of the card. Example: H167852639363479 */ - "alias"?: string; + 'alias'?: string; /** * The type of the card alias. Example: Default */ - "aliasType"?: string; + 'aliasType'?: string; /** * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 */ - "authCode"?: string; + 'authCode'?: string; /** * Merchant ID known by the acquirer. */ - "authorisationMid"?: string; + 'authorisationMid'?: string; /** * The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ - "authorisedAmountCurrency"?: string; + 'authorisedAmountCurrency'?: string; /** * Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). */ - "authorisedAmountValue"?: string; + 'authorisedAmountValue'?: string; /** * The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). */ - "avsResult"?: string; + 'avsResult'?: string; /** * Raw AVS result received from the acquirer, where available. Example: D */ - "avsResultRaw"?: string; + 'avsResultRaw'?: string; /** * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. */ - "bic"?: string; + 'bic'?: string; /** * Includes the co-branded card information. */ - "coBrandedWith"?: string; + 'coBrandedWith'?: string; /** * The result of CVC verification. */ - "cvcResult"?: string; + 'cvcResult'?: string; /** * The raw result of CVC verification. */ - "cvcResultRaw"?: string; + 'cvcResultRaw'?: string; /** * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. */ - "dsTransID"?: string; + 'dsTransID'?: string; /** * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 */ - "eci"?: string; + 'eci'?: string; /** * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. */ - "expiryDate"?: string; + 'expiryDate'?: string; /** * The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR */ - "extraCostsCurrency"?: string; + 'extraCostsCurrency'?: string; /** * The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. */ - "extraCostsValue"?: string; + 'extraCostsValue'?: string; /** * The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. */ - "fraudCheck__itemNr__FraudCheckname"?: string; + 'fraudCheck__itemNr__FraudCheckname'?: string; /** * Indicates if the payment is sent to manual review. */ - "fraudManualReview"?: string; + 'fraudManualReview'?: string; /** * The fraud result properties of the payment. */ - "fraudResultType"?: ResponseAdditionalDataCommon.FraudResultTypeEnum; + 'fraudResultType'?: ResponseAdditionalDataCommon.FraudResultTypeEnum; /** * The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh */ - "fraudRiskLevel"?: ResponseAdditionalDataCommon.FraudRiskLevelEnum; + 'fraudRiskLevel'?: ResponseAdditionalDataCommon.FraudRiskLevelEnum; /** * Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen\'s end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. */ - "fundingSource"?: string; + 'fundingSource'?: string; /** * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". */ - "fundsAvailability"?: string; + 'fundsAvailability'?: string; /** * Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card */ - "inferredRefusalReason"?: string; + 'inferredRefusalReason'?: string; /** * Indicates if the card is used for business purposes only. */ - "isCardCommercial"?: string; + 'isCardCommercial'?: string; /** * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP */ - "issuerCountry"?: string; + 'issuerCountry'?: string; /** * A Boolean value indicating whether a liability shift was offered for this payment. */ - "liabilityShift"?: string; + 'liabilityShift'?: string; /** * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. */ - "mcBankNetReferenceNumber"?: string; + 'mcBankNetReferenceNumber'?: string; /** * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). */ - "merchantAdviceCode"?: string; + 'merchantAdviceCode'?: string; /** * The reference provided for the transaction. */ - "merchantReference"?: string; + 'merchantReference'?: string; /** * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. */ - "networkTxReference"?: string; + 'networkTxReference'?: string; /** * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. */ - "ownerName"?: string; + 'ownerName'?: string; /** * The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. */ - "paymentAccountReference"?: string; + 'paymentAccountReference'?: string; /** * The payment method used in the transaction. */ - "paymentMethod"?: string; + 'paymentMethod'?: string; /** * The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro */ - "paymentMethodVariant"?: string; + 'paymentMethodVariant'?: string; /** * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) */ - "payoutEligible"?: string; + 'payoutEligible'?: string; /** * The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder */ - "realtimeAccountUpdaterStatus"?: string; + 'realtimeAccountUpdaterStatus'?: string; /** * Message to be displayed on the terminal. */ - "receiptFreeText"?: string; + 'receiptFreeText'?: string; /** * The recurring contract types applicable to the transaction. */ - "recurring_contractTypes"?: string; + 'recurring_contractTypes'?: string; /** * The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen\'s end. To enable it, contact the Support Team. */ - "recurring_firstPspReference"?: string; + 'recurring_firstPspReference'?: string; /** * The reference that uniquely identifies the recurring transaction. * * @deprecated since Adyen Payout API v68 * Use tokenization.storedPaymentMethodId instead. */ - "recurring_recurringDetailReference"?: string; + 'recurring_recurringDetailReference'?: string; /** * The provided reference of the shopper for a recurring transaction. * * @deprecated since Adyen Payout API v68 * Use tokenization.shopperReference instead. */ - "recurring_shopperReference"?: string; + 'recurring_shopperReference'?: string; /** * The processing model used for the recurring transaction. */ - "recurringProcessingModel"?: ResponseAdditionalDataCommon.RecurringProcessingModelEnum; + 'recurringProcessingModel'?: ResponseAdditionalDataCommon.RecurringProcessingModelEnum; /** * If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true */ - "referred"?: string; + 'referred'?: string; /** * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED */ - "refusalReasonRaw"?: string; + 'refusalReasonRaw'?: string; /** * The amount of the payment request. */ - "requestAmount"?: string; + 'requestAmount'?: string; /** * The currency of the payment request. */ - "requestCurrencyCode"?: string; + 'requestCurrencyCode'?: string; /** * The shopper interaction type of the payment request. Example: Ecommerce */ - "shopperInteraction"?: string; + 'shopperInteraction'?: string; /** * The shopperReference passed in the payment request. Example: AdyenTestShopperXX */ - "shopperReference"?: string; + 'shopperReference'?: string; /** * The terminal ID used in a point-of-sale payment. Example: 06022622 */ - "terminalId"?: string; + 'terminalId'?: string; /** * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true */ - "threeDAuthenticated"?: string; + 'threeDAuthenticated'?: string; /** * The raw 3DS authentication result from the card issuer. Example: N */ - "threeDAuthenticatedResponse"?: string; + 'threeDAuthenticatedResponse'?: string; /** * A Boolean value indicating whether 3DS was offered for this payment. Example: true */ - "threeDOffered"?: string; + 'threeDOffered'?: string; /** * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y */ - "threeDOfferedResponse"?: string; + 'threeDOfferedResponse'?: string; /** * The 3D Secure 2 version. */ - "threeDSVersion"?: string; + 'threeDSVersion'?: string; /** * The reference for the shopper that you sent when tokenizing the payment details. */ - "tokenization_shopperReference"?: string; + 'tokenization_shopperReference'?: string; /** * The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored. */ - "tokenization_store_operationType"?: ResponseAdditionalDataCommon.TokenizationStoreOperationTypeEnum; + 'tokenization_store_operationType'?: ResponseAdditionalDataCommon.TokenizationStoreOperationTypeEnum; /** * The reference that uniquely identifies tokenized payment details. */ - "tokenization_storedPaymentMethodId"?: string; + 'tokenization_storedPaymentMethodId'?: string; /** * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. */ - "visaTransactionId"?: string; + 'visaTransactionId'?: string; /** * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse \'N\' or \'Y\'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= */ - "xid"?: string; + 'xid'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "acquirerAccountCode", "baseName": "acquirerAccountCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "acquirerCode", "baseName": "acquirerCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "acquirerReference", "baseName": "acquirerReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "alias", "baseName": "alias", - "type": "string", - "format": "" + "type": "string" }, { "name": "aliasType", "baseName": "aliasType", - "type": "string", - "format": "" + "type": "string" }, { "name": "authCode", "baseName": "authCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "authorisationMid", "baseName": "authorisationMid", - "type": "string", - "format": "" + "type": "string" }, { "name": "authorisedAmountCurrency", "baseName": "authorisedAmountCurrency", - "type": "string", - "format": "" + "type": "string" }, { "name": "authorisedAmountValue", "baseName": "authorisedAmountValue", - "type": "string", - "format": "" + "type": "string" }, { "name": "avsResult", "baseName": "avsResult", - "type": "string", - "format": "" + "type": "string" }, { "name": "avsResultRaw", "baseName": "avsResultRaw", - "type": "string", - "format": "" + "type": "string" }, { "name": "bic", "baseName": "bic", - "type": "string", - "format": "" + "type": "string" }, { "name": "coBrandedWith", "baseName": "coBrandedWith", - "type": "string", - "format": "" + "type": "string" }, { "name": "cvcResult", "baseName": "cvcResult", - "type": "string", - "format": "" + "type": "string" }, { "name": "cvcResultRaw", "baseName": "cvcResultRaw", - "type": "string", - "format": "" + "type": "string" }, { "name": "dsTransID", "baseName": "dsTransID", - "type": "string", - "format": "" + "type": "string" }, { "name": "eci", "baseName": "eci", - "type": "string", - "format": "" + "type": "string" }, { "name": "expiryDate", "baseName": "expiryDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "extraCostsCurrency", "baseName": "extraCostsCurrency", - "type": "string", - "format": "" + "type": "string" }, { "name": "extraCostsValue", "baseName": "extraCostsValue", - "type": "string", - "format": "" + "type": "string" }, { "name": "fraudCheck__itemNr__FraudCheckname", "baseName": "fraudCheck-[itemNr]-[FraudCheckname]", - "type": "string", - "format": "" + "type": "string" }, { "name": "fraudManualReview", "baseName": "fraudManualReview", - "type": "string", - "format": "" + "type": "string" }, { "name": "fraudResultType", "baseName": "fraudResultType", - "type": "ResponseAdditionalDataCommon.FraudResultTypeEnum", - "format": "" + "type": "ResponseAdditionalDataCommon.FraudResultTypeEnum" }, { "name": "fraudRiskLevel", "baseName": "fraudRiskLevel", - "type": "ResponseAdditionalDataCommon.FraudRiskLevelEnum", - "format": "" + "type": "ResponseAdditionalDataCommon.FraudRiskLevelEnum" }, { "name": "fundingSource", "baseName": "fundingSource", - "type": "string", - "format": "" + "type": "string" }, { "name": "fundsAvailability", "baseName": "fundsAvailability", - "type": "string", - "format": "" + "type": "string" }, { "name": "inferredRefusalReason", "baseName": "inferredRefusalReason", - "type": "string", - "format": "" + "type": "string" }, { "name": "isCardCommercial", "baseName": "isCardCommercial", - "type": "string", - "format": "" + "type": "string" }, { "name": "issuerCountry", "baseName": "issuerCountry", - "type": "string", - "format": "" + "type": "string" }, { "name": "liabilityShift", "baseName": "liabilityShift", - "type": "string", - "format": "" + "type": "string" }, { "name": "mcBankNetReferenceNumber", "baseName": "mcBankNetReferenceNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAdviceCode", "baseName": "merchantAdviceCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantReference", "baseName": "merchantReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "networkTxReference", "baseName": "networkTxReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "ownerName", "baseName": "ownerName", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentAccountReference", "baseName": "paymentAccountReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMethod", "baseName": "paymentMethod", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMethodVariant", "baseName": "paymentMethodVariant", - "type": "string", - "format": "" + "type": "string" }, { "name": "payoutEligible", "baseName": "payoutEligible", - "type": "string", - "format": "" + "type": "string" }, { "name": "realtimeAccountUpdaterStatus", "baseName": "realtimeAccountUpdaterStatus", - "type": "string", - "format": "" + "type": "string" }, { "name": "receiptFreeText", "baseName": "receiptFreeText", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurring_contractTypes", "baseName": "recurring.contractTypes", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurring_firstPspReference", "baseName": "recurring.firstPspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurring_recurringDetailReference", "baseName": "recurring.recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurring_shopperReference", "baseName": "recurring.shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringProcessingModel", "baseName": "recurringProcessingModel", - "type": "ResponseAdditionalDataCommon.RecurringProcessingModelEnum", - "format": "" + "type": "ResponseAdditionalDataCommon.RecurringProcessingModelEnum" }, { "name": "referred", "baseName": "referred", - "type": "string", - "format": "" + "type": "string" }, { "name": "refusalReasonRaw", "baseName": "refusalReasonRaw", - "type": "string", - "format": "" + "type": "string" }, { "name": "requestAmount", "baseName": "requestAmount", - "type": "string", - "format": "" + "type": "string" }, { "name": "requestCurrencyCode", "baseName": "requestCurrencyCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperInteraction", "baseName": "shopperInteraction", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "terminalId", "baseName": "terminalId", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDAuthenticated", "baseName": "threeDAuthenticated", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDAuthenticatedResponse", "baseName": "threeDAuthenticatedResponse", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDOffered", "baseName": "threeDOffered", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDOfferedResponse", "baseName": "threeDOfferedResponse", - "type": "string", - "format": "" + "type": "string" }, { "name": "threeDSVersion", "baseName": "threeDSVersion", - "type": "string", - "format": "" + "type": "string" }, { "name": "tokenization_shopperReference", "baseName": "tokenization.shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "tokenization_store_operationType", "baseName": "tokenization.store.operationType", - "type": "ResponseAdditionalDataCommon.TokenizationStoreOperationTypeEnum", - "format": "" + "type": "ResponseAdditionalDataCommon.TokenizationStoreOperationTypeEnum" }, { "name": "tokenization_storedPaymentMethodId", "baseName": "tokenization.storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" }, { "name": "visaTransactionId", "baseName": "visaTransactionId", - "type": "string", - "format": "" + "type": "string" }, { "name": "xid", "baseName": "xid", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ResponseAdditionalDataCommon.attributeTypeMap; } - - public constructor() { - } } export namespace ResponseAdditionalDataCommon { diff --git a/src/typings/payout/responseAdditionalDataDomesticError.ts b/src/typings/payout/responseAdditionalDataDomesticError.ts index 608b0b0cc..a472086fd 100644 --- a/src/typings/payout/responseAdditionalDataDomesticError.ts +++ b/src/typings/payout/responseAdditionalDataDomesticError.ts @@ -12,35 +12,28 @@ export class ResponseAdditionalDataDomesticError { /** * The reason the transaction was declined, given by the local issuer. Currently available for merchants in Japan. */ - "domesticRefusalReasonRaw"?: string; + 'domesticRefusalReasonRaw'?: string; /** * The action the shopper should take, in a local language. Currently available in Japanese, for merchants in Japan. */ - "domesticShopperAdvice"?: string; + 'domesticShopperAdvice'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "domesticRefusalReasonRaw", "baseName": "domesticRefusalReasonRaw", - "type": "string", - "format": "" + "type": "string" }, { "name": "domesticShopperAdvice", "baseName": "domesticShopperAdvice", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ResponseAdditionalDataDomesticError.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payout/responseAdditionalDataInstallments.ts b/src/typings/payout/responseAdditionalDataInstallments.ts index eada22276..f5f8c4053 100644 --- a/src/typings/payout/responseAdditionalDataInstallments.ts +++ b/src/typings/payout/responseAdditionalDataInstallments.ts @@ -12,135 +12,118 @@ export class ResponseAdditionalDataInstallments { /** * Type of installment. The value of `installmentType` should be **IssuerFinanced**. */ - "installmentPaymentData_installmentType"?: string; + 'installmentPaymentData_installmentType'?: string; /** * Annual interest rate. */ - "installmentPaymentData_option_itemNr_annualPercentageRate"?: string; + 'installmentPaymentData_option_itemNr_annualPercentageRate'?: string; /** * First Installment Amount in minor units. */ - "installmentPaymentData_option_itemNr_firstInstallmentAmount"?: string; + 'installmentPaymentData_option_itemNr_firstInstallmentAmount'?: string; /** * Installment fee amount in minor units. */ - "installmentPaymentData_option_itemNr_installmentFee"?: string; + 'installmentPaymentData_option_itemNr_installmentFee'?: string; /** * Interest rate for the installment period. */ - "installmentPaymentData_option_itemNr_interestRate"?: string; + 'installmentPaymentData_option_itemNr_interestRate'?: string; /** * Maximum number of installments possible for this payment. */ - "installmentPaymentData_option_itemNr_maximumNumberOfInstallments"?: string; + 'installmentPaymentData_option_itemNr_maximumNumberOfInstallments'?: string; /** * Minimum number of installments possible for this payment. */ - "installmentPaymentData_option_itemNr_minimumNumberOfInstallments"?: string; + 'installmentPaymentData_option_itemNr_minimumNumberOfInstallments'?: string; /** * Total number of installments possible for this payment. */ - "installmentPaymentData_option_itemNr_numberOfInstallments"?: string; + 'installmentPaymentData_option_itemNr_numberOfInstallments'?: string; /** * Subsequent Installment Amount in minor units. */ - "installmentPaymentData_option_itemNr_subsequentInstallmentAmount"?: string; + 'installmentPaymentData_option_itemNr_subsequentInstallmentAmount'?: string; /** * Total amount in minor units. */ - "installmentPaymentData_option_itemNr_totalAmountDue"?: string; + 'installmentPaymentData_option_itemNr_totalAmountDue'?: string; /** * Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments */ - "installmentPaymentData_paymentOptions"?: string; + 'installmentPaymentData_paymentOptions'?: string; /** * The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. */ - "installments_value"?: string; + 'installments_value'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "installmentPaymentData_installmentType", "baseName": "installmentPaymentData.installmentType", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentPaymentData_option_itemNr_annualPercentageRate", "baseName": "installmentPaymentData.option[itemNr].annualPercentageRate", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentPaymentData_option_itemNr_firstInstallmentAmount", "baseName": "installmentPaymentData.option[itemNr].firstInstallmentAmount", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentPaymentData_option_itemNr_installmentFee", "baseName": "installmentPaymentData.option[itemNr].installmentFee", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentPaymentData_option_itemNr_interestRate", "baseName": "installmentPaymentData.option[itemNr].interestRate", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentPaymentData_option_itemNr_maximumNumberOfInstallments", "baseName": "installmentPaymentData.option[itemNr].maximumNumberOfInstallments", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentPaymentData_option_itemNr_minimumNumberOfInstallments", "baseName": "installmentPaymentData.option[itemNr].minimumNumberOfInstallments", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentPaymentData_option_itemNr_numberOfInstallments", "baseName": "installmentPaymentData.option[itemNr].numberOfInstallments", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentPaymentData_option_itemNr_subsequentInstallmentAmount", "baseName": "installmentPaymentData.option[itemNr].subsequentInstallmentAmount", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentPaymentData_option_itemNr_totalAmountDue", "baseName": "installmentPaymentData.option[itemNr].totalAmountDue", - "type": "string", - "format": "" + "type": "string" }, { "name": "installmentPaymentData_paymentOptions", "baseName": "installmentPaymentData.paymentOptions", - "type": "string", - "format": "" + "type": "string" }, { "name": "installments_value", "baseName": "installments.value", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ResponseAdditionalDataInstallments.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payout/responseAdditionalDataNetworkTokens.ts b/src/typings/payout/responseAdditionalDataNetworkTokens.ts index 0116c3f81..0879c5e11 100644 --- a/src/typings/payout/responseAdditionalDataNetworkTokens.ts +++ b/src/typings/payout/responseAdditionalDataNetworkTokens.ts @@ -12,45 +12,37 @@ export class ResponseAdditionalDataNetworkTokens { /** * Indicates whether a network token is available for the specified card. */ - "networkToken_available"?: string; + 'networkToken_available'?: string; /** * The Bank Identification Number of a tokenized card, which is the first six digits of a card number. */ - "networkToken_bin"?: string; + 'networkToken_bin'?: string; /** * The last four digits of a network token. */ - "networkToken_tokenSummary"?: string; + 'networkToken_tokenSummary'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "networkToken_available", "baseName": "networkToken.available", - "type": "string", - "format": "" + "type": "string" }, { "name": "networkToken_bin", "baseName": "networkToken.bin", - "type": "string", - "format": "" + "type": "string" }, { "name": "networkToken_tokenSummary", "baseName": "networkToken.tokenSummary", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ResponseAdditionalDataNetworkTokens.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payout/responseAdditionalDataOpi.ts b/src/typings/payout/responseAdditionalDataOpi.ts index d18eb8e38..234c6154e 100644 --- a/src/typings/payout/responseAdditionalDataOpi.ts +++ b/src/typings/payout/responseAdditionalDataOpi.ts @@ -12,25 +12,19 @@ export class ResponseAdditionalDataOpi { /** * Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). */ - "opi_transToken"?: string; + 'opi_transToken'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "opi_transToken", "baseName": "opi.transToken", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ResponseAdditionalDataOpi.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payout/responseAdditionalDataSepa.ts b/src/typings/payout/responseAdditionalDataSepa.ts index 43e2c5931..e28f575c9 100644 --- a/src/typings/payout/responseAdditionalDataSepa.ts +++ b/src/typings/payout/responseAdditionalDataSepa.ts @@ -12,45 +12,37 @@ export class ResponseAdditionalDataSepa { /** * The transaction signature date. Format: yyyy-MM-dd */ - "sepadirectdebit_dateOfSignature"?: string; + 'sepadirectdebit_dateOfSignature'?: string; /** * Its value corresponds to the pspReference value of the transaction. */ - "sepadirectdebit_mandateId"?: string; + 'sepadirectdebit_mandateId'?: 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; + 'sepadirectdebit_sequenceType'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "sepadirectdebit_dateOfSignature", "baseName": "sepadirectdebit.dateOfSignature", - "type": "string", - "format": "" + "type": "string" }, { "name": "sepadirectdebit_mandateId", "baseName": "sepadirectdebit.mandateId", - "type": "string", - "format": "" + "type": "string" }, { "name": "sepadirectdebit_sequenceType", "baseName": "sepadirectdebit.sequenceType", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ResponseAdditionalDataSepa.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payout/serviceError.ts b/src/typings/payout/serviceError.ts index b70dfa207..c3a2a7d02 100644 --- a/src/typings/payout/serviceError.ts +++ b/src/typings/payout/serviceError.ts @@ -12,75 +12,64 @@ export class ServiceError { /** * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. */ - "additionalData"?: { [key: string]: string; }; + 'additionalData'?: { [key: string]: string; }; /** * The error code mapped to the error message. */ - "errorCode"?: string; + 'errorCode'?: string; /** * The category of the error. */ - "errorType"?: string; + 'errorType'?: string; /** * A short explanation of the issue. */ - "message"?: string; + 'message'?: string; /** * The PSP reference of the payment. */ - "pspReference"?: string; + 'pspReference'?: string; /** * The HTTP response status. */ - "status"?: number; + 'status'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "errorCode", "baseName": "errorCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "errorType", "baseName": "errorType", - "type": "string", - "format": "" + "type": "string" }, { "name": "message", "baseName": "message", - "type": "string", - "format": "" + "type": "string" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return ServiceError.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payout/storeDetailAndSubmitRequest.ts b/src/typings/payout/storeDetailAndSubmitRequest.ts index 8fc0f3266..bece69ec2 100644 --- a/src/typings/payout/storeDetailAndSubmitRequest.ts +++ b/src/typings/payout/storeDetailAndSubmitRequest.ts @@ -7,200 +7,175 @@ * Do not edit this class manually. */ -import { Address } from "./address"; -import { Amount } from "./amount"; -import { BankAccount } from "./bankAccount"; -import { Card } from "./card"; -import { Name } from "./name"; -import { Recurring } from "./recurring"; - +import { Address } from './address'; +import { Amount } from './amount'; +import { BankAccount } from './bankAccount'; +import { Card } from './card'; +import { Name } from './name'; +import { Recurring } from './recurring'; export class StoreDetailAndSubmitRequest { /** * This field contains additional data, which may be required for a particular request. */ - "additionalData"?: { [key: string]: string; }; - "amount": Amount; - "bank"?: BankAccount | null; - "billingAddress"?: Address | null; - "card"?: Card | null; + 'additionalData'?: { [key: string]: string; }; + 'amount': Amount; + 'bank'?: BankAccount | null; + 'billingAddress'?: Address | null; + 'card'?: Card | null; /** * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. */ - "dateOfBirth": string; + 'dateOfBirth': string; /** * The type of the entity the payout is processed for. */ - "entityType": StoreDetailAndSubmitRequest.EntityTypeEnum; + 'entityType': StoreDetailAndSubmitRequest.EntityTypeEnum; /** * An integer value that is added to the normal fraud score. The value can be either positive or negative. */ - "fraudOffset"?: number; + 'fraudOffset'?: number; /** * The merchant account identifier, with which you want to process the transaction. */ - "merchantAccount": string; + 'merchantAccount': string; /** * The shopper\'s nationality. A valid value is an ISO 2-character country code (e.g. \'NL\'). */ - "nationality": string; - "recurring": Recurring; + 'nationality': string; + 'recurring': Recurring; /** * The merchant reference for this payment. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. */ - "reference": string; + 'reference': string; /** * The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. */ - "selectedBrand"?: string; + 'selectedBrand'?: string; /** * The shopper\'s email address. */ - "shopperEmail": string; - "shopperName"?: Name | null; + 'shopperEmail': string; + 'shopperName'?: Name | null; /** * The shopper\'s reference for the payment transaction. */ - "shopperReference": string; + 'shopperReference': string; /** * The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). */ - "shopperStatement"?: string; + 'shopperStatement'?: string; /** * The shopper\'s social security number. */ - "socialSecurityNumber"?: string; + 'socialSecurityNumber'?: string; /** * The shopper\'s phone number. */ - "telephoneNumber"?: string; - - static readonly discriminator: string | undefined = undefined; + 'telephoneNumber'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "bank", "baseName": "bank", - "type": "BankAccount | null", - "format": "" + "type": "BankAccount | null" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "Address | null", - "format": "" + "type": "Address | null" }, { "name": "card", "baseName": "card", - "type": "Card | null", - "format": "" + "type": "Card | null" }, { "name": "dateOfBirth", "baseName": "dateOfBirth", - "type": "string", - "format": "date" + "type": "string" }, { "name": "entityType", "baseName": "entityType", - "type": "StoreDetailAndSubmitRequest.EntityTypeEnum", - "format": "" + "type": "StoreDetailAndSubmitRequest.EntityTypeEnum" }, { "name": "fraudOffset", "baseName": "fraudOffset", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "nationality", "baseName": "nationality", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurring", "baseName": "recurring", - "type": "Recurring", - "format": "" + "type": "Recurring" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "selectedBrand", "baseName": "selectedBrand", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperEmail", "baseName": "shopperEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperName", "baseName": "shopperName", - "type": "Name | null", - "format": "" + "type": "Name | null" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperStatement", "baseName": "shopperStatement", - "type": "string", - "format": "" + "type": "string" }, { "name": "socialSecurityNumber", "baseName": "socialSecurityNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "telephoneNumber", "baseName": "telephoneNumber", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return StoreDetailAndSubmitRequest.attributeTypeMap; } - - public constructor() { - } } export namespace StoreDetailAndSubmitRequest { diff --git a/src/typings/payout/storeDetailAndSubmitResponse.ts b/src/typings/payout/storeDetailAndSubmitResponse.ts index 412828125..eb2889ba8 100644 --- a/src/typings/payout/storeDetailAndSubmitResponse.ts +++ b/src/typings/payout/storeDetailAndSubmitResponse.ts @@ -12,55 +12,46 @@ export class StoreDetailAndSubmitResponse { /** * This field contains additional data, which may be returned in a particular response. */ - "additionalData"?: { [key: string]: string; }; + 'additionalData'?: { [key: string]: string; }; /** * A new reference to uniquely identify this request. */ - "pspReference": string; + 'pspReference': string; /** * In case of refusal, an informational message for the reason. */ - "refusalReason"?: string; + 'refusalReason'?: string; /** * The response: * In case of success is payout-submit-received. * In case of an error, an informational message is returned. */ - "resultCode": string; + 'resultCode': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "refusalReason", "baseName": "refusalReason", - "type": "string", - "format": "" + "type": "string" }, { "name": "resultCode", "baseName": "resultCode", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return StoreDetailAndSubmitResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payout/storeDetailRequest.ts b/src/typings/payout/storeDetailRequest.ts index 8b74e34eb..47262336c 100644 --- a/src/typings/payout/storeDetailRequest.ts +++ b/src/typings/payout/storeDetailRequest.ts @@ -7,172 +7,150 @@ * Do not edit this class manually. */ -import { Address } from "./address"; -import { BankAccount } from "./bankAccount"; -import { Card } from "./card"; -import { Name } from "./name"; -import { Recurring } from "./recurring"; - +import { Address } from './address'; +import { BankAccount } from './bankAccount'; +import { Card } from './card'; +import { Name } from './name'; +import { Recurring } from './recurring'; export class StoreDetailRequest { /** * This field contains additional data, which may be required for a particular request. */ - "additionalData"?: { [key: string]: string; }; - "bank"?: BankAccount | null; - "billingAddress"?: Address | null; - "card"?: Card | null; + 'additionalData'?: { [key: string]: string; }; + 'bank'?: BankAccount | null; + 'billingAddress'?: Address | null; + 'card'?: Card | null; /** * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. */ - "dateOfBirth": string; + 'dateOfBirth': string; /** * The type of the entity the payout is processed for. */ - "entityType": StoreDetailRequest.EntityTypeEnum; + 'entityType': StoreDetailRequest.EntityTypeEnum; /** * An integer value that is added to the normal fraud score. The value can be either positive or negative. */ - "fraudOffset"?: number; + 'fraudOffset'?: number; /** * The merchant account identifier, with which you want to process the transaction. */ - "merchantAccount": string; + 'merchantAccount': string; /** * The shopper\'s nationality. A valid value is an ISO 2-character country code (e.g. \'NL\'). */ - "nationality": string; - "recurring": Recurring; + 'nationality': string; + 'recurring': Recurring; /** * The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. */ - "selectedBrand"?: string; + 'selectedBrand'?: string; /** * The shopper\'s email address. */ - "shopperEmail": string; - "shopperName"?: Name | null; + 'shopperEmail': string; + 'shopperName'?: Name | null; /** * The shopper\'s reference for the payment transaction. */ - "shopperReference": string; + 'shopperReference': string; /** * The shopper\'s social security number. */ - "socialSecurityNumber"?: string; + 'socialSecurityNumber'?: string; /** * The shopper\'s phone number. */ - "telephoneNumber"?: string; - - static readonly discriminator: string | undefined = undefined; + 'telephoneNumber'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "bank", "baseName": "bank", - "type": "BankAccount | null", - "format": "" + "type": "BankAccount | null" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "Address | null", - "format": "" + "type": "Address | null" }, { "name": "card", "baseName": "card", - "type": "Card | null", - "format": "" + "type": "Card | null" }, { "name": "dateOfBirth", "baseName": "dateOfBirth", - "type": "string", - "format": "date" + "type": "string" }, { "name": "entityType", "baseName": "entityType", - "type": "StoreDetailRequest.EntityTypeEnum", - "format": "" + "type": "StoreDetailRequest.EntityTypeEnum" }, { "name": "fraudOffset", "baseName": "fraudOffset", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "nationality", "baseName": "nationality", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurring", "baseName": "recurring", - "type": "Recurring", - "format": "" + "type": "Recurring" }, { "name": "selectedBrand", "baseName": "selectedBrand", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperEmail", "baseName": "shopperEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperName", "baseName": "shopperName", - "type": "Name | null", - "format": "" + "type": "Name | null" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "socialSecurityNumber", "baseName": "socialSecurityNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "telephoneNumber", "baseName": "telephoneNumber", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return StoreDetailRequest.attributeTypeMap; } - - public constructor() { - } } export namespace StoreDetailRequest { diff --git a/src/typings/payout/storeDetailResponse.ts b/src/typings/payout/storeDetailResponse.ts index e33e62b1b..5f2c484b7 100644 --- a/src/typings/payout/storeDetailResponse.ts +++ b/src/typings/payout/storeDetailResponse.ts @@ -12,55 +12,46 @@ export class StoreDetailResponse { /** * This field contains additional data, which may be returned in a particular response. */ - "additionalData"?: { [key: string]: string; }; + 'additionalData'?: { [key: string]: string; }; /** * A new reference to uniquely identify this request. */ - "pspReference": string; + 'pspReference': string; /** * The token which you can use later on for submitting the payout. */ - "recurringDetailReference": string; + 'recurringDetailReference': string; /** * The result code of the transaction. `Success` indicates that the details were stored successfully. */ - "resultCode": string; + 'resultCode': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "resultCode", "baseName": "resultCode", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return StoreDetailResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/payout/submitRequest.ts b/src/typings/payout/submitRequest.ts index 0431a34a6..2563f23ba 100644 --- a/src/typings/payout/submitRequest.ts +++ b/src/typings/payout/submitRequest.ts @@ -7,166 +7,145 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { Name } from "./name"; -import { Recurring } from "./recurring"; - +import { Amount } from './amount'; +import { Name } from './name'; +import { Recurring } from './recurring'; export class SubmitRequest { /** * This field contains additional data, which may be required for a particular request. */ - "additionalData"?: { [key: string]: string; }; - "amount": Amount; + 'additionalData'?: { [key: string]: string; }; + 'amount': Amount; /** * The date of birth. Format: ISO-8601; example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. > This field is required to update the existing `dateOfBirth` that is associated with this recurring contract. */ - "dateOfBirth"?: string; + 'dateOfBirth'?: string; /** * The type of the entity the payout is processed for. Allowed values: * NaturalPerson * Company > This field is required to update the existing `entityType` that is associated with this recurring contract. */ - "entityType"?: SubmitRequest.EntityTypeEnum; + 'entityType'?: SubmitRequest.EntityTypeEnum; /** * An integer value that is added to the normal fraud score. The value can be either positive or negative. */ - "fraudOffset"?: number; + 'fraudOffset'?: number; /** * The merchant account identifier you want to process the transaction request with. */ - "merchantAccount": string; + 'merchantAccount': string; /** * The shopper\'s nationality. A valid value is an ISO 2-character country code (e.g. \'NL\'). > This field is required to update the existing nationality that is associated with this recurring contract. */ - "nationality"?: string; - "recurring": Recurring; + 'nationality'?: string; + 'recurring': Recurring; /** * The merchant reference for this payout. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. */ - "reference": string; + 'reference': string; /** * This is the `recurringDetailReference` you want to use for this payout. You can use the value LATEST to select the most recently used recurring detail. */ - "selectedRecurringDetailReference": string; + 'selectedRecurringDetailReference': string; /** * The shopper\'s email address. */ - "shopperEmail": string; - "shopperName"?: Name | null; + 'shopperEmail': string; + 'shopperName'?: Name | null; /** * The shopper\'s reference for the payout transaction. */ - "shopperReference": string; + 'shopperReference': string; /** * The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). */ - "shopperStatement"?: string; + 'shopperStatement'?: string; /** * The shopper\'s social security number. */ - "socialSecurityNumber"?: string; - - static readonly discriminator: string | undefined = undefined; + 'socialSecurityNumber'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "dateOfBirth", "baseName": "dateOfBirth", - "type": "string", - "format": "date" + "type": "string" }, { "name": "entityType", "baseName": "entityType", - "type": "SubmitRequest.EntityTypeEnum", - "format": "" + "type": "SubmitRequest.EntityTypeEnum" }, { "name": "fraudOffset", "baseName": "fraudOffset", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "nationality", "baseName": "nationality", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurring", "baseName": "recurring", - "type": "Recurring", - "format": "" + "type": "Recurring" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "selectedRecurringDetailReference", "baseName": "selectedRecurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperEmail", "baseName": "shopperEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperName", "baseName": "shopperName", - "type": "Name | null", - "format": "" + "type": "Name | null" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperStatement", "baseName": "shopperStatement", - "type": "string", - "format": "" + "type": "string" }, { "name": "socialSecurityNumber", "baseName": "socialSecurityNumber", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return SubmitRequest.attributeTypeMap; } - - public constructor() { - } } export namespace SubmitRequest { diff --git a/src/typings/payout/submitResponse.ts b/src/typings/payout/submitResponse.ts index 4019d7bc9..4f574e09f 100644 --- a/src/typings/payout/submitResponse.ts +++ b/src/typings/payout/submitResponse.ts @@ -12,55 +12,46 @@ export class SubmitResponse { /** * This field contains additional data, which may be returned in a particular response. */ - "additionalData"?: { [key: string]: string; }; + 'additionalData'?: { [key: string]: string; }; /** * A new reference to uniquely identify this request. */ - "pspReference": string; + 'pspReference': string; /** * In case of refusal, an informational message for the reason. */ - "refusalReason"?: string; + 'refusalReason'?: string; /** * The response: * In case of success, it is `payout-submit-received`. * In case of an error, an informational message is returned. */ - "resultCode": string; + 'resultCode': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "refusalReason", "baseName": "refusalReason", - "type": "string", - "format": "" + "type": "string" }, { "name": "resultCode", "baseName": "resultCode", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return SubmitResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/posMobile/createSessionRequest.ts b/src/typings/posMobile/createSessionRequest.ts index 9dd55caae..f32097f74 100644 --- a/src/typings/posMobile/createSessionRequest.ts +++ b/src/typings/posMobile/createSessionRequest.ts @@ -12,45 +12,37 @@ export class CreateSessionRequest { /** * The unique identifier of your merchant account. */ - "merchantAccount": string; + 'merchantAccount': string; /** * The setup token provided by the POS Mobile SDK. - When using the Android POS Mobile SDK, obtain the token through the `AuthenticationService.authenticate(setupToken)` callback of `AuthenticationService`. - When using the iOS POS Mobile SDK, obtain the token through the `PaymentServiceDelegate.register(with:)` callback of `PaymentServiceDelegate`. */ - "setupToken": string; + 'setupToken': string; /** * The unique identifier of the store that you want to process transactions for. */ - "store"?: string; + 'store'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "setupToken", "baseName": "setupToken", - "type": "string", - "format": "" + "type": "string" }, { "name": "store", "baseName": "store", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CreateSessionRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/posMobile/createSessionResponse.ts b/src/typings/posMobile/createSessionResponse.ts index d54d5b54b..037def225 100644 --- a/src/typings/posMobile/createSessionResponse.ts +++ b/src/typings/posMobile/createSessionResponse.ts @@ -12,65 +12,55 @@ export class CreateSessionResponse { /** * The unique identifier of the session. */ - "id"?: string; + 'id'?: string; /** * The unique identifier of the SDK installation. If you create the [Terminal API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api/) transaction request on your backend, use this as the `POIID` in the `MessageHeader` of the request. */ - "installationId"?: string; + 'installationId'?: string; /** * The unique identifier of your merchant account. */ - "merchantAccount"?: string; + 'merchantAccount'?: string; /** * The data that the SDK uses to authenticate responses from the Adyen payments platform. Pass this value to your POS app. */ - "sdkData"?: string; + 'sdkData'?: string; /** * The unique identifier of the store that you want to process transactions for. */ - "store"?: string; + 'store'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "installationId", "baseName": "installationId", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "sdkData", "baseName": "sdkData", - "type": "string", - "format": "" + "type": "string" }, { "name": "store", "baseName": "store", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CreateSessionResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/posMobile/models.ts b/src/typings/posMobile/models.ts index fba31d35b..ab302deb8 100644 --- a/src/typings/posMobile/models.ts +++ b/src/typings/posMobile/models.ts @@ -1,5 +1,150 @@ -export * from "./createSessionRequest" -export * from "./createSessionResponse" +/* + * The version of the OpenAPI document: v68 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ -// serializing and deserializing typed objects -export * from "./objectSerializer" \ No newline at end of file + +export * from './createSessionRequest'; +export * from './createSessionResponse'; + + +import { CreateSessionRequest } from './createSessionRequest'; +import { CreateSessionResponse } from './createSessionResponse'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { +} + +let typeMap: {[index: string]: any} = { + "CreateSessionRequest": CreateSessionRequest, + "CreateSessionResponse": CreateSessionResponse, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/posMobile/objectSerializer.ts b/src/typings/posMobile/objectSerializer.ts deleted file mode 100644 index 46d647e13..000000000 --- a/src/typings/posMobile/objectSerializer.ts +++ /dev/null @@ -1,347 +0,0 @@ -export * from "./models"; - -import { CreateSessionRequest } from "./createSessionRequest"; -import { CreateSessionResponse } from "./createSessionResponse"; - -/* tslint:disable:no-unused-variable */ -let primitives = [ - "string", - "boolean", - "double", - "integer", - "long", - "float", - "number", - "any" - ]; - -let enumsMap: Set = new Set([ -]); - -let typeMap: {[index: string]: any} = { - "CreateSessionRequest": CreateSessionRequest, - "CreateSessionResponse": CreateSessionResponse, -} - -type MimeTypeDescriptor = { - type: string; - subtype: string; - subtypeTokens: string[]; -}; - -/** - * Every mime-type consists of a type, subtype, and optional parameters. - * The subtype can be composite, including information about the content format. - * For example: `application/json-patch+json`, `application/merge-patch+json`. - * - * This helper transforms a string mime-type into an internal representation. - * This simplifies the implementation of predicates that in turn define common rules for parsing or stringifying - * the payload. - */ -const parseMimeType = (mimeType: string): MimeTypeDescriptor => { - const [type = '', subtype = ''] = mimeType.split('/'); - return { - type, - subtype, - subtypeTokens: subtype.split('+'), - }; -}; - -type MimeTypePredicate = (mimeType: string) => boolean; - -// This factory creates a predicate function that checks a string mime-type against defined rules. -const mimeTypePredicateFactory = (predicate: (descriptor: MimeTypeDescriptor) => boolean): MimeTypePredicate => (mimeType) => predicate(parseMimeType(mimeType)); - -// Use this factory when you need to define a simple predicate based only on type and, if applicable, subtype. -const mimeTypeSimplePredicateFactory = (type: string, subtype?: string): MimeTypePredicate => mimeTypePredicateFactory((descriptor) => { - if (descriptor.type !== type) return false; - if (subtype != null && descriptor.subtype !== subtype) return false; - return true; -}); - -// Creating a set of named predicates that will help us determine how to handle different mime-types -const isTextLikeMimeType = mimeTypeSimplePredicateFactory('text'); -const isJsonMimeType = mimeTypeSimplePredicateFactory('application', 'json'); -const isJsonLikeMimeType = mimeTypePredicateFactory((descriptor) => descriptor.type === 'application' && descriptor.subtypeTokens.some((item) => item === 'json')); -const isOctetStreamMimeType = mimeTypeSimplePredicateFactory('application', 'octet-stream'); -const isFormUrlencodedMimeType = mimeTypeSimplePredicateFactory('application', 'x-www-form-urlencoded'); - -// Defining a list of mime-types in the order of prioritization for handling. -const supportedMimeTypePredicatesWithPriority: MimeTypePredicate[] = [ - isJsonMimeType, - isJsonLikeMimeType, - isTextLikeMimeType, - isOctetStreamMimeType, - isFormUrlencodedMimeType, -]; - -const nullableSuffix = " | null"; -const optionalSuffix = " | undefined"; -const arrayPrefix = "Array<"; -const arraySuffix = ">"; -const mapPrefix = "{ [key: string]: "; -const mapSuffix = "; }"; - -export class ObjectSerializer { - public static findCorrectType(data: any, expectedType: string) { - if (data == undefined) { - return expectedType; - } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { - return expectedType; - } else if (expectedType === "Date") { - return expectedType; - } else { - if (enumsMap.has(expectedType)) { - return expectedType; - } - - if (!typeMap[expectedType]) { - return expectedType; // w/e we don't know the type - } - - // Check the discriminator - let discriminatorProperty = typeMap[expectedType].discriminator; - if (discriminatorProperty == null) { - return expectedType; // the type does not have a discriminator. use it. - } else { - if (data[discriminatorProperty]) { - var discriminatorType = data[discriminatorProperty]; - let mapping = typeMap[expectedType].mapping; - if (mapping != undefined && mapping[discriminatorType]) { - return mapping[discriminatorType]; // use the type given in the discriminator - } else if(typeMap[discriminatorType]) { - return discriminatorType; - } else { - return expectedType; // discriminator did not map to a type - } - } else { - return expectedType; // discriminator was not present (or an empty string) - } - } - } - } - - /** - * Serializes a value into a plain JSON-compatible object based on its type. - * - * Supports primitives, arrays, maps, dates, enums, and classes defined in `typeMap`. - * Falls back to raw data if type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The value to serialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A JSON-compatible representation of `data`. - */ - public static serialize(data: any, type: string, format: string = ""): any { - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.serialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.serialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - if (format == "date") { - let month = data.getMonth()+1 - month = month < 10 ? "0" + month.toString() : month.toString() - let day = data.getDate(); - day = day < 10 ? "0" + day.toString() : day.toString(); - - return data.getFullYear() + "-" + month + "-" + day; - } else { - return data.toISOString(); - } - } else { - if (enumsMap.has(type)) { - return data; - } - if (!typeMap[type]) { // in case we dont know the type - return data; - } - - // Get the actual type of this object - type = this.findCorrectType(data, type); - - const clazz = typeMap[type]; - - // Safe check for getAttributeTypeMap - if (typeof clazz.getAttributeTypeMap !== "function") { - return { ...data }; // fallback: shallow copy - } - - // get the map for the correct type. - let attributeTypes = typeMap[type].getAttributeTypeMap(); - let instance: {[index: string]: any} = {}; - for (let attributeType of attributeTypes) { - instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format); - } - return instance; - } - } - - /** - * Deserializes a plain JSON-compatible object into a typed instance. - * - * Handles primitives, arrays, maps, dates, enums, and known classes from `typeMap`. - * Uses discriminators when available to resolve polymorphic types. - * Falls back to raw data if the type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The raw input to deserialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A deserialized instance or value of `data`. - */ - public static deserialize(data: any, type: string, format: string = ""): any { - // polymorphism may change the actual type. - type = ObjectSerializer.findCorrectType(data, type); - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.deserialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.deserialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - return new Date(data); - } else { - if (enumsMap.has(type)) {// is Enum - return data; - } - - if (!typeMap[type]) { // dont know the type - return data; - } - let instance = new typeMap[type](); - - // Safe check for getAttributeTypeMap - if (typeof typeMap[type].getAttributeTypeMap !== "function") { - Object.assign(instance, data); // fallback: shallow copy - return instance; - } - - let attributeTypes = typeMap[type].getAttributeTypeMap(); - for (let attributeType of attributeTypes) { - let value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format); - if (value !== undefined) { - instance[attributeType.name] = value; - } - } - return instance; - } - } - - - /** - * Normalize media type - * - * We currently do not handle any media types attributes, i.e. anything - * after a semicolon. All content is assumed to be UTF-8 compatible. - */ - public static normalizeMediaType(mediaType: string | undefined): string | undefined { - if (mediaType === undefined) { - return undefined; - } - return (mediaType.split(";")[0] ?? '').trim().toLowerCase(); - } - - /** - * From a list of possible media types, choose the one we can handle best. - * - * The order of the given media types does not have any impact on the choice - * made. - */ - public static getPreferredMediaType(mediaTypes: Array): string { - /** According to OAS 3 we should default to json */ - if (mediaTypes.length === 0) { - return "application/json"; - } - - const normalMediaTypes = mediaTypes.map(ObjectSerializer.normalizeMediaType); - - for (const predicate of supportedMimeTypePredicatesWithPriority) { - for (const mediaType of normalMediaTypes) { - if (mediaType != null && predicate(mediaType)) { - return mediaType; - } - } - } - - throw new Error("None of the given media types are supported: " + mediaTypes.join(", ")); - } - - /** - * Convert data to a string according the given media type - */ - public static stringify(data: any, mediaType: string): string { - if (isTextLikeMimeType(mediaType)) { - return String(data); - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.stringify(data); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify."); - } - - /** - * Parse data from a string according to the given media type - */ - public static parse(rawData: string, mediaType: string | undefined) { - if (mediaType === undefined) { - throw new Error("Cannot parse content. No Content-Type defined."); - } - - if (isTextLikeMimeType(mediaType)) { - return rawData; - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.parse(rawData); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse."); - } -} diff --git a/src/typings/recurring/address.ts b/src/typings/recurring/address.ts index 5700753c3..9fa047bfc 100644 --- a/src/typings/recurring/address.ts +++ b/src/typings/recurring/address.ts @@ -12,75 +12,64 @@ export class Address { /** * The name of the city. Maximum length: 3000 characters. */ - "city": string; + 'city': string; /** * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don\'t know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ - "country": string; + 'country': string; /** * The number or name of the house. Maximum length: 3000 characters. */ - "houseNumberOrName": string; + 'houseNumberOrName': string; /** * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. */ - "postalCode": string; + 'postalCode': string; /** * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ - "stateOrProvince"?: string; + 'stateOrProvince'?: string; /** * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. */ - "street": string; + 'street': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "city", "baseName": "city", - "type": "string", - "format": "" + "type": "string" }, { "name": "country", "baseName": "country", - "type": "string", - "format": "" + "type": "string" }, { "name": "houseNumberOrName", "baseName": "houseNumberOrName", - "type": "string", - "format": "" + "type": "string" }, { "name": "postalCode", "baseName": "postalCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "stateOrProvince", "baseName": "stateOrProvince", - "type": "string", - "format": "" + "type": "string" }, { "name": "street", "baseName": "street", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Address.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/recurring/amount.ts b/src/typings/recurring/amount.ts index 4ce25c0bd..c6b8414c1 100644 --- a/src/typings/recurring/amount.ts +++ b/src/typings/recurring/amount.ts @@ -12,35 +12,28 @@ export class Amount { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ - "currency": string; + 'currency': string; /** * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ - "value": number; + 'value': number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "number", - "format": "int64" + "type": "number" } ]; static getAttributeTypeMap() { return Amount.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/recurring/bankAccount.ts b/src/typings/recurring/bankAccount.ts index 2ce514dde..de0b7b459 100644 --- a/src/typings/recurring/bankAccount.ts +++ b/src/typings/recurring/bankAccount.ts @@ -12,105 +12,91 @@ export class BankAccount { /** * The bank account number (without separators). */ - "bankAccountNumber"?: string; + 'bankAccountNumber'?: string; /** * The bank city. */ - "bankCity"?: string; + 'bankCity'?: string; /** * The location id of the bank. The field value is `nil` in most cases. */ - "bankLocationId"?: string; + 'bankLocationId'?: string; /** * The name of the bank. */ - "bankName"?: string; + 'bankName'?: string; /** * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. */ - "bic"?: string; + 'bic'?: string; /** * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. \'NL\'). */ - "countryCode"?: string; + 'countryCode'?: string; /** * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). */ - "iban"?: string; + 'iban'?: string; /** * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don\'t accept \'ø\'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don\'t match the required format, the response returns the error message: 203 \'Invalid bank account holder name\'. */ - "ownerName"?: string; + 'ownerName'?: string; /** * The bank account holder\'s tax ID. */ - "taxId"?: string; + 'taxId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "bankAccountNumber", "baseName": "bankAccountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankCity", "baseName": "bankCity", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankLocationId", "baseName": "bankLocationId", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankName", "baseName": "bankName", - "type": "string", - "format": "" + "type": "string" }, { "name": "bic", "baseName": "bic", - "type": "string", - "format": "" + "type": "string" }, { "name": "countryCode", "baseName": "countryCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "iban", "baseName": "iban", - "type": "string", - "format": "" + "type": "string" }, { "name": "ownerName", "baseName": "ownerName", - "type": "string", - "format": "" + "type": "string" }, { "name": "taxId", "baseName": "taxId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return BankAccount.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/recurring/card.ts b/src/typings/recurring/card.ts index 1e477973a..70d38a7d0 100644 --- a/src/typings/recurring/card.ts +++ b/src/typings/recurring/card.ts @@ -12,95 +12,82 @@ export class Card { /** * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. */ - "cvc"?: string; + 'cvc'?: string; /** * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November */ - "expiryMonth"?: string; + 'expiryMonth'?: string; /** * The card expiry year. Format: 4 digits. For example: 2020 */ - "expiryYear"?: string; + 'expiryYear'?: string; /** * The name of the cardholder, as printed on the card. */ - "holderName"?: string; + 'holderName'?: string; /** * The issue number of the card (for some UK debit cards only). */ - "issueNumber"?: string; + 'issueNumber'?: string; /** * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. */ - "number"?: string; + 'number'?: string; /** * The month component of the start date (for some UK debit cards only). */ - "startMonth"?: string; + 'startMonth'?: string; /** * The year component of the start date (for some UK debit cards only). */ - "startYear"?: string; + 'startYear'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "cvc", "baseName": "cvc", - "type": "string", - "format": "" + "type": "string" }, { "name": "expiryMonth", "baseName": "expiryMonth", - "type": "string", - "format": "" + "type": "string" }, { "name": "expiryYear", "baseName": "expiryYear", - "type": "string", - "format": "" + "type": "string" }, { "name": "holderName", "baseName": "holderName", - "type": "string", - "format": "" + "type": "string" }, { "name": "issueNumber", "baseName": "issueNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "number", "baseName": "number", - "type": "string", - "format": "" + "type": "string" }, { "name": "startMonth", "baseName": "startMonth", - "type": "string", - "format": "" + "type": "string" }, { "name": "startYear", "baseName": "startYear", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Card.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/recurring/createPermitRequest.ts b/src/typings/recurring/createPermitRequest.ts index 023d951f4..ae2f521d2 100644 --- a/src/typings/recurring/createPermitRequest.ts +++ b/src/typings/recurring/createPermitRequest.ts @@ -7,62 +7,52 @@ * Do not edit this class manually. */ -import { Permit } from "./permit"; - +import { Permit } from './permit'; export class CreatePermitRequest { /** * The merchant account identifier, with which you want to process the transaction. */ - "merchantAccount": string; + 'merchantAccount': string; /** * The permits to create for this recurring contract. */ - "permits": Array; + 'permits': Array; /** * The recurring contract the new permits will use. */ - "recurringDetailReference": string; + 'recurringDetailReference': string; /** * The shopper\'s reference to uniquely identify this shopper (e.g. user ID or account ID). */ - "shopperReference": string; - - static readonly discriminator: string | undefined = undefined; + 'shopperReference': string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "permits", "baseName": "permits", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CreatePermitRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/recurring/createPermitResult.ts b/src/typings/recurring/createPermitResult.ts index 03d4b0be6..76834a733 100644 --- a/src/typings/recurring/createPermitResult.ts +++ b/src/typings/recurring/createPermitResult.ts @@ -7,42 +7,34 @@ * Do not edit this class manually. */ -import { PermitResult } from "./permitResult"; - +import { PermitResult } from './permitResult'; export class CreatePermitResult { /** * List of new permits. */ - "permitResultList"?: Array; + 'permitResultList'?: Array; /** * A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request. */ - "pspReference"?: string; - - static readonly discriminator: string | undefined = undefined; + 'pspReference'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "permitResultList", "baseName": "permitResultList", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CreatePermitResult.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/recurring/disablePermitRequest.ts b/src/typings/recurring/disablePermitRequest.ts index 2a839b72f..f91c7ec7e 100644 --- a/src/typings/recurring/disablePermitRequest.ts +++ b/src/typings/recurring/disablePermitRequest.ts @@ -12,35 +12,28 @@ export class DisablePermitRequest { /** * The merchant account identifier, with which you want to process the transaction. */ - "merchantAccount": string; + 'merchantAccount': string; /** * The permit token to disable. */ - "token": string; + 'token': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "token", "baseName": "token", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return DisablePermitRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/recurring/disablePermitResult.ts b/src/typings/recurring/disablePermitResult.ts index b43cce018..e3453c3a3 100644 --- a/src/typings/recurring/disablePermitResult.ts +++ b/src/typings/recurring/disablePermitResult.ts @@ -12,35 +12,28 @@ export class DisablePermitResult { /** * A unique reference associated with the request. This value is globally unique; quote it when communicating with us about this request. */ - "pspReference"?: string; + 'pspReference'?: string; /** * Status of the disable request. */ - "status"?: string; + 'status'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return DisablePermitResult.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/recurring/disableRequest.ts b/src/typings/recurring/disableRequest.ts index 4cc1b4681..e5781012c 100644 --- a/src/typings/recurring/disableRequest.ts +++ b/src/typings/recurring/disableRequest.ts @@ -12,55 +12,46 @@ export class DisableRequest { /** * Specify the contract if you only want to disable a specific use. This field can be set to one of the following values, or to their combination (comma-separated): * ONECLICK * RECURRING * PAYOUT */ - "contract"?: string; + 'contract'?: string; /** * The merchant account identifier with which you want to process the transaction. */ - "merchantAccount": string; + 'merchantAccount': string; /** * The ID that uniquely identifies the recurring detail reference. If it is not provided, the whole recurring contract of the `shopperReference` will be disabled, which includes all recurring details. */ - "recurringDetailReference"?: string; + 'recurringDetailReference'?: string; /** * The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment. */ - "shopperReference": string; + 'shopperReference': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "contract", "baseName": "contract", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return DisableRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/recurring/disableResult.ts b/src/typings/recurring/disableResult.ts index 58b1fbc0d..389891c2f 100644 --- a/src/typings/recurring/disableResult.ts +++ b/src/typings/recurring/disableResult.ts @@ -12,25 +12,19 @@ export class DisableResult { /** * Depending on whether a specific recurring detail was in the request, result is either [detail-successfully-disabled] or [all-details-successfully-disabled]. */ - "response"?: string; + 'response'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "response", "baseName": "response", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return DisableResult.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/recurring/models.ts b/src/typings/recurring/models.ts index d919c584f..69b1cb3ce 100644 --- a/src/typings/recurring/models.ts +++ b/src/typings/recurring/models.ts @@ -1,28 +1,221 @@ -export * from "./address" -export * from "./amount" -export * from "./bankAccount" -export * from "./card" -export * from "./createPermitRequest" -export * from "./createPermitResult" -export * from "./disablePermitRequest" -export * from "./disablePermitResult" -export * from "./disableRequest" -export * from "./disableResult" -export * from "./name" -export * from "./notifyShopperRequest" -export * from "./notifyShopperResult" -export * from "./permit" -export * from "./permitRestriction" -export * from "./permitResult" -export * from "./recurring" -export * from "./recurringDetail" -export * from "./recurringDetailWrapper" -export * from "./recurringDetailsRequest" -export * from "./recurringDetailsResult" -export * from "./scheduleAccountUpdaterRequest" -export * from "./scheduleAccountUpdaterResult" -export * from "./serviceError" -export * from "./tokenDetails" - -// serializing and deserializing typed objects -export * from "./objectSerializer" \ No newline at end of file +/* + * The version of the OpenAPI document: v68 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export * from './address'; +export * from './amount'; +export * from './bankAccount'; +export * from './card'; +export * from './createPermitRequest'; +export * from './createPermitResult'; +export * from './disablePermitRequest'; +export * from './disablePermitResult'; +export * from './disableRequest'; +export * from './disableResult'; +export * from './name'; +export * from './notifyShopperRequest'; +export * from './notifyShopperResult'; +export * from './permit'; +export * from './permitRestriction'; +export * from './permitResult'; +export * from './recurring'; +export * from './recurringDetail'; +export * from './recurringDetailWrapper'; +export * from './recurringDetailsRequest'; +export * from './recurringDetailsResult'; +export * from './scheduleAccountUpdaterRequest'; +export * from './scheduleAccountUpdaterResult'; +export * from './serviceError'; +export * from './tokenDetails'; + + +import { Address } from './address'; +import { Amount } from './amount'; +import { BankAccount } from './bankAccount'; +import { Card } from './card'; +import { CreatePermitRequest } from './createPermitRequest'; +import { CreatePermitResult } from './createPermitResult'; +import { DisablePermitRequest } from './disablePermitRequest'; +import { DisablePermitResult } from './disablePermitResult'; +import { DisableRequest } from './disableRequest'; +import { DisableResult } from './disableResult'; +import { Name } from './name'; +import { NotifyShopperRequest } from './notifyShopperRequest'; +import { NotifyShopperResult } from './notifyShopperResult'; +import { Permit } from './permit'; +import { PermitRestriction } from './permitRestriction'; +import { PermitResult } from './permitResult'; +import { Recurring } from './recurring'; +import { RecurringDetail } from './recurringDetail'; +import { RecurringDetailWrapper } from './recurringDetailWrapper'; +import { RecurringDetailsRequest } from './recurringDetailsRequest'; +import { RecurringDetailsResult } from './recurringDetailsResult'; +import { ScheduleAccountUpdaterRequest } from './scheduleAccountUpdaterRequest'; +import { ScheduleAccountUpdaterResult } from './scheduleAccountUpdaterResult'; +import { ServiceError } from './serviceError'; +import { TokenDetails } from './tokenDetails'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "Recurring.ContractEnum": Recurring.ContractEnum, + "Recurring.TokenServiceEnum": Recurring.TokenServiceEnum, +} + +let typeMap: {[index: string]: any} = { + "Address": Address, + "Amount": Amount, + "BankAccount": BankAccount, + "Card": Card, + "CreatePermitRequest": CreatePermitRequest, + "CreatePermitResult": CreatePermitResult, + "DisablePermitRequest": DisablePermitRequest, + "DisablePermitResult": DisablePermitResult, + "DisableRequest": DisableRequest, + "DisableResult": DisableResult, + "Name": Name, + "NotifyShopperRequest": NotifyShopperRequest, + "NotifyShopperResult": NotifyShopperResult, + "Permit": Permit, + "PermitRestriction": PermitRestriction, + "PermitResult": PermitResult, + "Recurring": Recurring, + "RecurringDetail": RecurringDetail, + "RecurringDetailWrapper": RecurringDetailWrapper, + "RecurringDetailsRequest": RecurringDetailsRequest, + "RecurringDetailsResult": RecurringDetailsResult, + "ScheduleAccountUpdaterRequest": ScheduleAccountUpdaterRequest, + "ScheduleAccountUpdaterResult": ScheduleAccountUpdaterResult, + "ServiceError": ServiceError, + "TokenDetails": TokenDetails, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/recurring/name.ts b/src/typings/recurring/name.ts index 131e35744..2248b74d2 100644 --- a/src/typings/recurring/name.ts +++ b/src/typings/recurring/name.ts @@ -12,35 +12,28 @@ export class Name { /** * The first name. */ - "firstName": string; + 'firstName': string; /** * The last name. */ - "lastName": string; + 'lastName': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "firstName", "baseName": "firstName", - "type": "string", - "format": "" + "type": "string" }, { "name": "lastName", "baseName": "lastName", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Name.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/recurring/notifyShopperRequest.ts b/src/typings/recurring/notifyShopperRequest.ts index db8827121..0d15b45e8 100644 --- a/src/typings/recurring/notifyShopperRequest.ts +++ b/src/typings/recurring/notifyShopperRequest.ts @@ -7,109 +7,94 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class NotifyShopperRequest { - "amount": Amount; + 'amount': Amount; /** * Date on which the subscription amount will be debited from the shopper. In YYYY-MM-DD format */ - "billingDate"?: string; + 'billingDate'?: string; /** * Sequence of the debit. Depends on Frequency and Billing Attempts Rule. */ - "billingSequenceNumber"?: string; + 'billingSequenceNumber'?: string; /** * Reference of Pre-debit notification that is displayed to the shopper. Optional field. Maps to reference if missing */ - "displayedReference"?: string; + 'displayedReference'?: string; /** * The merchant account identifier with which you want to process the transaction. */ - "merchantAccount": string; + 'merchantAccount': string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "recurringDetailReference"?: string; + 'recurringDetailReference'?: string; /** * Pre-debit notification reference sent by the merchant. This is a mandatory field */ - "reference": string; + 'reference': string; /** * The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment. */ - "shopperReference": string; + 'shopperReference': string; /** * This is the `recurringDetailReference` returned in the response when you created the token. */ - "storedPaymentMethodId"?: string; - - static readonly discriminator: string | undefined = undefined; + 'storedPaymentMethodId'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "billingDate", "baseName": "billingDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "billingSequenceNumber", "baseName": "billingSequenceNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "displayedReference", "baseName": "displayedReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return NotifyShopperRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/recurring/notifyShopperResult.ts b/src/typings/recurring/notifyShopperResult.ts index ee93f9ae7..8f69bdcca 100644 --- a/src/typings/recurring/notifyShopperResult.ts +++ b/src/typings/recurring/notifyShopperResult.ts @@ -12,85 +12,73 @@ export class NotifyShopperResult { /** * Reference of Pre-debit notification that is displayed to the shopper */ - "displayedReference"?: string; + 'displayedReference'?: string; /** * A simple description of the `resultCode`. */ - "message"?: string; + 'message'?: string; /** * The unique reference that is associated with the request. */ - "pspReference"?: string; + 'pspReference'?: string; /** * Reference of Pre-debit notification sent in my the merchant */ - "reference"?: string; + 'reference'?: string; /** * The code indicating the status of notification. */ - "resultCode"?: string; + 'resultCode'?: string; /** * The unique reference for the request sent downstream. */ - "shopperNotificationReference"?: string; + 'shopperNotificationReference'?: string; /** * This is the recurringDetailReference returned in the response when token was created */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "displayedReference", "baseName": "displayedReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "message", "baseName": "message", - "type": "string", - "format": "" + "type": "string" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "resultCode", "baseName": "resultCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperNotificationReference", "baseName": "shopperNotificationReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return NotifyShopperResult.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/recurring/objectSerializer.ts b/src/typings/recurring/objectSerializer.ts deleted file mode 100644 index 901d49c85..000000000 --- a/src/typings/recurring/objectSerializer.ts +++ /dev/null @@ -1,395 +0,0 @@ -export * from "./models"; - -import { Address } from "./address"; -import { Amount } from "./amount"; -import { BankAccount } from "./bankAccount"; -import { Card } from "./card"; -import { CreatePermitRequest } from "./createPermitRequest"; -import { CreatePermitResult } from "./createPermitResult"; -import { DisablePermitRequest } from "./disablePermitRequest"; -import { DisablePermitResult } from "./disablePermitResult"; -import { DisableRequest } from "./disableRequest"; -import { DisableResult } from "./disableResult"; -import { Name } from "./name"; -import { NotifyShopperRequest } from "./notifyShopperRequest"; -import { NotifyShopperResult } from "./notifyShopperResult"; -import { Permit } from "./permit"; -import { PermitRestriction } from "./permitRestriction"; -import { PermitResult } from "./permitResult"; -import { Recurring } from "./recurring"; -import { RecurringDetail } from "./recurringDetail"; -import { RecurringDetailWrapper } from "./recurringDetailWrapper"; -import { RecurringDetailsRequest } from "./recurringDetailsRequest"; -import { RecurringDetailsResult } from "./recurringDetailsResult"; -import { ScheduleAccountUpdaterRequest } from "./scheduleAccountUpdaterRequest"; -import { ScheduleAccountUpdaterResult } from "./scheduleAccountUpdaterResult"; -import { ServiceError } from "./serviceError"; -import { TokenDetails } from "./tokenDetails"; - -/* tslint:disable:no-unused-variable */ -let primitives = [ - "string", - "boolean", - "double", - "integer", - "long", - "float", - "number", - "any" - ]; - -let enumsMap: Set = new Set([ - "Recurring.ContractEnum", - "Recurring.TokenServiceEnum", -]); - -let typeMap: {[index: string]: any} = { - "Address": Address, - "Amount": Amount, - "BankAccount": BankAccount, - "Card": Card, - "CreatePermitRequest": CreatePermitRequest, - "CreatePermitResult": CreatePermitResult, - "DisablePermitRequest": DisablePermitRequest, - "DisablePermitResult": DisablePermitResult, - "DisableRequest": DisableRequest, - "DisableResult": DisableResult, - "Name": Name, - "NotifyShopperRequest": NotifyShopperRequest, - "NotifyShopperResult": NotifyShopperResult, - "Permit": Permit, - "PermitRestriction": PermitRestriction, - "PermitResult": PermitResult, - "Recurring": Recurring, - "RecurringDetail": RecurringDetail, - "RecurringDetailWrapper": RecurringDetailWrapper, - "RecurringDetailsRequest": RecurringDetailsRequest, - "RecurringDetailsResult": RecurringDetailsResult, - "ScheduleAccountUpdaterRequest": ScheduleAccountUpdaterRequest, - "ScheduleAccountUpdaterResult": ScheduleAccountUpdaterResult, - "ServiceError": ServiceError, - "TokenDetails": TokenDetails, -} - -type MimeTypeDescriptor = { - type: string; - subtype: string; - subtypeTokens: string[]; -}; - -/** - * Every mime-type consists of a type, subtype, and optional parameters. - * The subtype can be composite, including information about the content format. - * For example: `application/json-patch+json`, `application/merge-patch+json`. - * - * This helper transforms a string mime-type into an internal representation. - * This simplifies the implementation of predicates that in turn define common rules for parsing or stringifying - * the payload. - */ -const parseMimeType = (mimeType: string): MimeTypeDescriptor => { - const [type = '', subtype = ''] = mimeType.split('/'); - return { - type, - subtype, - subtypeTokens: subtype.split('+'), - }; -}; - -type MimeTypePredicate = (mimeType: string) => boolean; - -// This factory creates a predicate function that checks a string mime-type against defined rules. -const mimeTypePredicateFactory = (predicate: (descriptor: MimeTypeDescriptor) => boolean): MimeTypePredicate => (mimeType) => predicate(parseMimeType(mimeType)); - -// Use this factory when you need to define a simple predicate based only on type and, if applicable, subtype. -const mimeTypeSimplePredicateFactory = (type: string, subtype?: string): MimeTypePredicate => mimeTypePredicateFactory((descriptor) => { - if (descriptor.type !== type) return false; - if (subtype != null && descriptor.subtype !== subtype) return false; - return true; -}); - -// Creating a set of named predicates that will help us determine how to handle different mime-types -const isTextLikeMimeType = mimeTypeSimplePredicateFactory('text'); -const isJsonMimeType = mimeTypeSimplePredicateFactory('application', 'json'); -const isJsonLikeMimeType = mimeTypePredicateFactory((descriptor) => descriptor.type === 'application' && descriptor.subtypeTokens.some((item) => item === 'json')); -const isOctetStreamMimeType = mimeTypeSimplePredicateFactory('application', 'octet-stream'); -const isFormUrlencodedMimeType = mimeTypeSimplePredicateFactory('application', 'x-www-form-urlencoded'); - -// Defining a list of mime-types in the order of prioritization for handling. -const supportedMimeTypePredicatesWithPriority: MimeTypePredicate[] = [ - isJsonMimeType, - isJsonLikeMimeType, - isTextLikeMimeType, - isOctetStreamMimeType, - isFormUrlencodedMimeType, -]; - -const nullableSuffix = " | null"; -const optionalSuffix = " | undefined"; -const arrayPrefix = "Array<"; -const arraySuffix = ">"; -const mapPrefix = "{ [key: string]: "; -const mapSuffix = "; }"; - -export class ObjectSerializer { - public static findCorrectType(data: any, expectedType: string) { - if (data == undefined) { - return expectedType; - } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { - return expectedType; - } else if (expectedType === "Date") { - return expectedType; - } else { - if (enumsMap.has(expectedType)) { - return expectedType; - } - - if (!typeMap[expectedType]) { - return expectedType; // w/e we don't know the type - } - - // Check the discriminator - let discriminatorProperty = typeMap[expectedType].discriminator; - if (discriminatorProperty == null) { - return expectedType; // the type does not have a discriminator. use it. - } else { - if (data[discriminatorProperty]) { - var discriminatorType = data[discriminatorProperty]; - let mapping = typeMap[expectedType].mapping; - if (mapping != undefined && mapping[discriminatorType]) { - return mapping[discriminatorType]; // use the type given in the discriminator - } else if(typeMap[discriminatorType]) { - return discriminatorType; - } else { - return expectedType; // discriminator did not map to a type - } - } else { - return expectedType; // discriminator was not present (or an empty string) - } - } - } - } - - /** - * Serializes a value into a plain JSON-compatible object based on its type. - * - * Supports primitives, arrays, maps, dates, enums, and classes defined in `typeMap`. - * Falls back to raw data if type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The value to serialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A JSON-compatible representation of `data`. - */ - public static serialize(data: any, type: string, format: string = ""): any { - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.serialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.serialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - if (format == "date") { - let month = data.getMonth()+1 - month = month < 10 ? "0" + month.toString() : month.toString() - let day = data.getDate(); - day = day < 10 ? "0" + day.toString() : day.toString(); - - return data.getFullYear() + "-" + month + "-" + day; - } else { - return data.toISOString(); - } - } else { - if (enumsMap.has(type)) { - return data; - } - if (!typeMap[type]) { // in case we dont know the type - return data; - } - - // Get the actual type of this object - type = this.findCorrectType(data, type); - - const clazz = typeMap[type]; - - // Safe check for getAttributeTypeMap - if (typeof clazz.getAttributeTypeMap !== "function") { - return { ...data }; // fallback: shallow copy - } - - // get the map for the correct type. - let attributeTypes = typeMap[type].getAttributeTypeMap(); - let instance: {[index: string]: any} = {}; - for (let attributeType of attributeTypes) { - instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format); - } - return instance; - } - } - - /** - * Deserializes a plain JSON-compatible object into a typed instance. - * - * Handles primitives, arrays, maps, dates, enums, and known classes from `typeMap`. - * Uses discriminators when available to resolve polymorphic types. - * Falls back to raw data if the type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The raw input to deserialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A deserialized instance or value of `data`. - */ - public static deserialize(data: any, type: string, format: string = ""): any { - // polymorphism may change the actual type. - type = ObjectSerializer.findCorrectType(data, type); - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.deserialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.deserialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - return new Date(data); - } else { - if (enumsMap.has(type)) {// is Enum - return data; - } - - if (!typeMap[type]) { // dont know the type - return data; - } - let instance = new typeMap[type](); - - // Safe check for getAttributeTypeMap - if (typeof typeMap[type].getAttributeTypeMap !== "function") { - Object.assign(instance, data); // fallback: shallow copy - return instance; - } - - let attributeTypes = typeMap[type].getAttributeTypeMap(); - for (let attributeType of attributeTypes) { - let value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format); - if (value !== undefined) { - instance[attributeType.name] = value; - } - } - return instance; - } - } - - - /** - * Normalize media type - * - * We currently do not handle any media types attributes, i.e. anything - * after a semicolon. All content is assumed to be UTF-8 compatible. - */ - public static normalizeMediaType(mediaType: string | undefined): string | undefined { - if (mediaType === undefined) { - return undefined; - } - return (mediaType.split(";")[0] ?? '').trim().toLowerCase(); - } - - /** - * From a list of possible media types, choose the one we can handle best. - * - * The order of the given media types does not have any impact on the choice - * made. - */ - public static getPreferredMediaType(mediaTypes: Array): string { - /** According to OAS 3 we should default to json */ - if (mediaTypes.length === 0) { - return "application/json"; - } - - const normalMediaTypes = mediaTypes.map(ObjectSerializer.normalizeMediaType); - - for (const predicate of supportedMimeTypePredicatesWithPriority) { - for (const mediaType of normalMediaTypes) { - if (mediaType != null && predicate(mediaType)) { - return mediaType; - } - } - } - - throw new Error("None of the given media types are supported: " + mediaTypes.join(", ")); - } - - /** - * Convert data to a string according the given media type - */ - public static stringify(data: any, mediaType: string): string { - if (isTextLikeMimeType(mediaType)) { - return String(data); - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.stringify(data); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify."); - } - - /** - * Parse data from a string according to the given media type - */ - public static parse(rawData: string, mediaType: string | undefined) { - if (mediaType === undefined) { - throw new Error("Cannot parse content. No Content-Type defined."); - } - - if (isTextLikeMimeType(mediaType)) { - return rawData; - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.parse(rawData); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse."); - } -} diff --git a/src/typings/recurring/permit.ts b/src/typings/recurring/permit.ts index dfd75130b..d8c84c365 100644 --- a/src/typings/recurring/permit.ts +++ b/src/typings/recurring/permit.ts @@ -7,69 +7,58 @@ * Do not edit this class manually. */ -import { PermitRestriction } from "./permitRestriction"; - +import { PermitRestriction } from './permitRestriction'; export class Permit { /** * Partner ID (when using the permit-per-partner token sharing model). */ - "partnerId"?: string; + 'partnerId'?: string; /** * The profile to apply to this permit (when using the shared permits model). */ - "profileReference"?: string; - "restriction"?: PermitRestriction | null; + 'profileReference'?: string; + 'restriction'?: PermitRestriction | null; /** * The key to link permit requests to permit results. */ - "resultKey"?: string; + 'resultKey'?: string; /** * The expiry date for this permit. */ - "validTillDate"?: Date; - - static readonly discriminator: string | undefined = undefined; + 'validTillDate'?: Date; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "partnerId", "baseName": "partnerId", - "type": "string", - "format": "" + "type": "string" }, { "name": "profileReference", "baseName": "profileReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "restriction", "baseName": "restriction", - "type": "PermitRestriction | null", - "format": "" + "type": "PermitRestriction | null" }, { "name": "resultKey", "baseName": "resultKey", - "type": "string", - "format": "" + "type": "string" }, { "name": "validTillDate", "baseName": "validTillDate", - "type": "Date", - "format": "date-time" + "type": "Date" } ]; static getAttributeTypeMap() { return Permit.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/recurring/permitRestriction.ts b/src/typings/recurring/permitRestriction.ts index c56cc729d..55725ff20 100644 --- a/src/typings/recurring/permitRestriction.ts +++ b/src/typings/recurring/permitRestriction.ts @@ -7,46 +7,37 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class PermitRestriction { - "maxAmount"?: Amount | null; - "singleTransactionLimit"?: Amount | null; + 'maxAmount'?: Amount | null; + 'singleTransactionLimit'?: Amount | null; /** * Only a single payment can be made using this permit if set to true, otherwise multiple payments are allowed. */ - "singleUse"?: boolean; - - static readonly discriminator: string | undefined = undefined; + 'singleUse'?: boolean; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "maxAmount", "baseName": "maxAmount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "singleTransactionLimit", "baseName": "singleTransactionLimit", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "singleUse", "baseName": "singleUse", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return PermitRestriction.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/recurring/permitResult.ts b/src/typings/recurring/permitResult.ts index 9384413de..2d0a1d514 100644 --- a/src/typings/recurring/permitResult.ts +++ b/src/typings/recurring/permitResult.ts @@ -12,35 +12,28 @@ export class PermitResult { /** * The key to link permit requests to permit results. */ - "resultKey"?: string; + 'resultKey'?: string; /** * The permit token which is used to make payments by the partner company. */ - "token"?: string; + 'token'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "resultKey", "baseName": "resultKey", - "type": "string", - "format": "" + "type": "string" }, { "name": "token", "baseName": "token", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PermitResult.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/recurring/recurring.ts b/src/typings/recurring/recurring.ts index fba92e9b7..a65fef7c6 100644 --- a/src/typings/recurring/recurring.ts +++ b/src/typings/recurring/recurring.ts @@ -12,66 +12,56 @@ export class Recurring { /** * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). */ - "contract"?: Recurring.ContractEnum; + 'contract'?: Recurring.ContractEnum; /** * A descriptive name for this detail. */ - "recurringDetailName"?: string; + 'recurringDetailName'?: string; /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. */ - "recurringExpiry"?: Date; + 'recurringExpiry'?: Date; /** * Minimum number of days between authorisations. Only for 3D Secure 2. */ - "recurringFrequency"?: string; + 'recurringFrequency'?: string; /** * The name of the token service. */ - "tokenService"?: Recurring.TokenServiceEnum; + 'tokenService'?: Recurring.TokenServiceEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "contract", "baseName": "contract", - "type": "Recurring.ContractEnum", - "format": "" + "type": "Recurring.ContractEnum" }, { "name": "recurringDetailName", "baseName": "recurringDetailName", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringExpiry", "baseName": "recurringExpiry", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "recurringFrequency", "baseName": "recurringFrequency", - "type": "string", - "format": "" + "type": "string" }, { "name": "tokenService", "baseName": "tokenService", - "type": "Recurring.TokenServiceEnum", - "format": "" + "type": "Recurring.TokenServiceEnum" } ]; static getAttributeTypeMap() { return Recurring.attributeTypeMap; } - - public constructor() { - } } export namespace Recurring { diff --git a/src/typings/recurring/recurringDetail.ts b/src/typings/recurring/recurringDetail.ts index 36639a60a..e169b3b72 100644 --- a/src/typings/recurring/recurringDetail.ts +++ b/src/typings/recurring/recurringDetail.ts @@ -7,181 +7,158 @@ * Do not edit this class manually. */ -import { Address } from "./address"; -import { BankAccount } from "./bankAccount"; -import { Card } from "./card"; -import { Name } from "./name"; -import { TokenDetails } from "./tokenDetails"; - +import { Address } from './address'; +import { BankAccount } from './bankAccount'; +import { Card } from './card'; +import { Name } from './name'; +import { TokenDetails } from './tokenDetails'; export class RecurringDetail { /** * This field contains additional data, which may be returned in a particular response. The additionalData object consists of entries, each of which includes the key and value. */ - "additionalData"?: { [key: string]: string; }; + 'additionalData'?: { [key: string]: string; }; /** * The alias of the credit card number. Applies only to recurring contracts storing credit card details */ - "alias"?: string; + 'alias'?: string; /** * The alias type of the credit card number. Applies only to recurring contracts storing credit card details. */ - "aliasType"?: string; - "bank"?: BankAccount | null; - "billingAddress"?: Address | null; - "card"?: Card | null; + 'aliasType'?: string; + 'bank'?: BankAccount | null; + 'billingAddress'?: Address | null; + 'card'?: Card | null; /** * Types of recurring contracts. */ - "contractTypes"?: Array; + 'contractTypes'?: Array; /** * The date when the recurring details were created. */ - "creationDate"?: Date; + 'creationDate'?: Date; /** * The `pspReference` of the first recurring payment that created the recurring detail. */ - "firstPspReference"?: string; + 'firstPspReference'?: string; /** * An optional descriptive name for this recurring detail. */ - "name"?: string; + 'name'?: string; /** * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. */ - "networkTxReference"?: string; + 'networkTxReference'?: string; /** * The type or sub-brand of a payment method used, e.g. Visa Debit, Visa Corporate, etc. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). */ - "paymentMethodVariant"?: string; + 'paymentMethodVariant'?: string; /** * The reference that uniquely identifies the recurring detail. */ - "recurringDetailReference": string; - "shopperName"?: Name | null; + 'recurringDetailReference': string; + 'shopperName'?: Name | null; /** * A shopper\'s social security number (only in countries where it is legal to collect). */ - "socialSecurityNumber"?: string; - "tokenDetails"?: TokenDetails | null; + 'socialSecurityNumber'?: string; + 'tokenDetails'?: TokenDetails | null; /** * The payment method, such as “mc\", \"visa\", \"ideal\", \"paypal\". */ - "variant": string; - - static readonly discriminator: string | undefined = undefined; + 'variant': string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "alias", "baseName": "alias", - "type": "string", - "format": "" + "type": "string" }, { "name": "aliasType", "baseName": "aliasType", - "type": "string", - "format": "" + "type": "string" }, { "name": "bank", "baseName": "bank", - "type": "BankAccount | null", - "format": "" + "type": "BankAccount | null" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "Address | null", - "format": "" + "type": "Address | null" }, { "name": "card", "baseName": "card", - "type": "Card | null", - "format": "" + "type": "Card | null" }, { "name": "contractTypes", "baseName": "contractTypes", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "creationDate", "baseName": "creationDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "firstPspReference", "baseName": "firstPspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "networkTxReference", "baseName": "networkTxReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMethodVariant", "baseName": "paymentMethodVariant", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperName", "baseName": "shopperName", - "type": "Name | null", - "format": "" + "type": "Name | null" }, { "name": "socialSecurityNumber", "baseName": "socialSecurityNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "tokenDetails", "baseName": "tokenDetails", - "type": "TokenDetails | null", - "format": "" + "type": "TokenDetails | null" }, { "name": "variant", "baseName": "variant", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return RecurringDetail.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/recurring/recurringDetailWrapper.ts b/src/typings/recurring/recurringDetailWrapper.ts index f8d4fbef1..03dfe2361 100644 --- a/src/typings/recurring/recurringDetailWrapper.ts +++ b/src/typings/recurring/recurringDetailWrapper.ts @@ -7,29 +7,22 @@ * Do not edit this class manually. */ -import { RecurringDetail } from "./recurringDetail"; - +import { RecurringDetail } from './recurringDetail'; export class RecurringDetailWrapper { - "RecurringDetail"?: RecurringDetail | null; - - static readonly discriminator: string | undefined = undefined; + 'RecurringDetail'?: RecurringDetail | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "RecurringDetail", "baseName": "RecurringDetail", - "type": "RecurringDetail | null", - "format": "" + "type": "RecurringDetail | null" } ]; static getAttributeTypeMap() { return RecurringDetailWrapper.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/recurring/recurringDetailsRequest.ts b/src/typings/recurring/recurringDetailsRequest.ts index 92e312fd0..293f2a2fc 100644 --- a/src/typings/recurring/recurringDetailsRequest.ts +++ b/src/typings/recurring/recurringDetailsRequest.ts @@ -7,49 +7,40 @@ * Do not edit this class manually. */ -import { Recurring } from "./recurring"; - +import { Recurring } from './recurring'; export class RecurringDetailsRequest { /** * The merchant account identifier you want to process the (transaction) request with. */ - "merchantAccount": string; - "recurring"?: Recurring | null; + 'merchantAccount': string; + 'recurring'?: Recurring | null; /** * The reference you use to uniquely identify the shopper (e.g. user ID or account ID). */ - "shopperReference": string; - - static readonly discriminator: string | undefined = undefined; + 'shopperReference': string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "recurring", "baseName": "recurring", - "type": "Recurring | null", - "format": "" + "type": "Recurring | null" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return RecurringDetailsRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/recurring/recurringDetailsResult.ts b/src/typings/recurring/recurringDetailsResult.ts index cc3c8f878..e4e5d6952 100644 --- a/src/typings/recurring/recurringDetailsResult.ts +++ b/src/typings/recurring/recurringDetailsResult.ts @@ -7,62 +7,52 @@ * Do not edit this class manually. */ -import { RecurringDetailWrapper } from "./recurringDetailWrapper"; - +import { RecurringDetailWrapper } from './recurringDetailWrapper'; export class RecurringDetailsResult { /** * The date when the recurring details were created. */ - "creationDate"?: Date; + 'creationDate'?: Date; /** * Payment details stored for recurring payments. */ - "details"?: Array; + 'details'?: Array; /** * The most recent email for this shopper (if available). */ - "lastKnownShopperEmail"?: string; + 'lastKnownShopperEmail'?: string; /** * The reference you use to uniquely identify the shopper (e.g. user ID or account ID). */ - "shopperReference"?: string; - - static readonly discriminator: string | undefined = undefined; + 'shopperReference'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "creationDate", "baseName": "creationDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "details", "baseName": "details", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "lastKnownShopperEmail", "baseName": "lastKnownShopperEmail", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return RecurringDetailsResult.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/recurring/scheduleAccountUpdaterRequest.ts b/src/typings/recurring/scheduleAccountUpdaterRequest.ts index 2fdcebd54..22083e84b 100644 --- a/src/typings/recurring/scheduleAccountUpdaterRequest.ts +++ b/src/typings/recurring/scheduleAccountUpdaterRequest.ts @@ -7,79 +7,67 @@ * Do not edit this class manually. */ -import { Card } from "./card"; - +import { Card } from './card'; export class ScheduleAccountUpdaterRequest { /** * This field contains additional data, which may be required for a particular request. */ - "additionalData"?: { [key: string]: string; }; - "card"?: Card | null; + 'additionalData'?: { [key: string]: string; }; + 'card'?: Card | null; /** * Account of the merchant. */ - "merchantAccount": string; + 'merchantAccount': string; /** * A reference that merchants can apply for the call. */ - "reference": string; + 'reference': string; /** * The selected detail recurring reference. Optional if `card` is provided. */ - "selectedRecurringDetailReference"?: string; + 'selectedRecurringDetailReference'?: string; /** * The reference of the shopper that owns the recurring contract. Optional if `card` is provided. */ - "shopperReference"?: string; - - static readonly discriminator: string | undefined = undefined; + 'shopperReference'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "card", "baseName": "card", - "type": "Card | null", - "format": "" + "type": "Card | null" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "selectedRecurringDetailReference", "baseName": "selectedRecurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ScheduleAccountUpdaterRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/recurring/scheduleAccountUpdaterResult.ts b/src/typings/recurring/scheduleAccountUpdaterResult.ts index 15e5f63c6..84ca2762a 100644 --- a/src/typings/recurring/scheduleAccountUpdaterResult.ts +++ b/src/typings/recurring/scheduleAccountUpdaterResult.ts @@ -12,35 +12,28 @@ export class ScheduleAccountUpdaterResult { /** * Adyen\'s 16-character unique reference associated with the transaction. This value is globally unique; quote it when communicating with us about this request. */ - "pspReference": string; + 'pspReference': string; /** * The result of scheduling an Account Updater. If scheduling was successful, this field returns **Success**; otherwise it contains the error message. */ - "result": string; + 'result': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "result", "baseName": "result", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ScheduleAccountUpdaterResult.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/recurring/serviceError.ts b/src/typings/recurring/serviceError.ts index b70dfa207..c3a2a7d02 100644 --- a/src/typings/recurring/serviceError.ts +++ b/src/typings/recurring/serviceError.ts @@ -12,75 +12,64 @@ export class ServiceError { /** * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. */ - "additionalData"?: { [key: string]: string; }; + 'additionalData'?: { [key: string]: string; }; /** * The error code mapped to the error message. */ - "errorCode"?: string; + 'errorCode'?: string; /** * The category of the error. */ - "errorType"?: string; + 'errorType'?: string; /** * A short explanation of the issue. */ - "message"?: string; + 'message'?: string; /** * The PSP reference of the payment. */ - "pspReference"?: string; + 'pspReference'?: string; /** * The HTTP response status. */ - "status"?: number; + 'status'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "errorCode", "baseName": "errorCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "errorType", "baseName": "errorType", - "type": "string", - "format": "" + "type": "string" }, { "name": "message", "baseName": "message", - "type": "string", - "format": "" + "type": "string" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return ServiceError.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/recurring/tokenDetails.ts b/src/typings/recurring/tokenDetails.ts index 311f212c9..d63eecf31 100644 --- a/src/typings/recurring/tokenDetails.ts +++ b/src/typings/recurring/tokenDetails.ts @@ -9,32 +9,25 @@ export class TokenDetails { - "tokenData"?: { [key: string]: string; }; - "tokenDataType"?: string; + 'tokenData'?: { [key: string]: string; }; + 'tokenDataType'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "tokenData", "baseName": "tokenData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "tokenDataType", "baseName": "tokenDataType", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TokenDetails.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/reportWebhooks/balancePlatformNotificationResponse.ts b/src/typings/reportWebhooks/balancePlatformNotificationResponse.ts index 18122d640..74120e5ab 100644 --- a/src/typings/reportWebhooks/balancePlatformNotificationResponse.ts +++ b/src/typings/reportWebhooks/balancePlatformNotificationResponse.ts @@ -12,25 +12,19 @@ export class BalancePlatformNotificationResponse { /** * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). */ - "notificationResponse"?: string; + 'notificationResponse'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "notificationResponse", "baseName": "notificationResponse", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return BalancePlatformNotificationResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/reportWebhooks/models.ts b/src/typings/reportWebhooks/models.ts index d4d074727..66ce762b1 100644 --- a/src/typings/reportWebhooks/models.ts +++ b/src/typings/reportWebhooks/models.ts @@ -1,8 +1,160 @@ -export * from "./balancePlatformNotificationResponse" -export * from "./reportNotificationData" -export * from "./reportNotificationRequest" -export * from "./resource" -export * from "./resourceReference" - -// serializing and deserializing typed objects -export * from "./objectSerializer" \ No newline at end of file +/* + * The version of the OpenAPI document: v1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export * from './balancePlatformNotificationResponse'; +export * from './reportNotificationData'; +export * from './reportNotificationRequest'; +export * from './resource'; +export * from './resourceReference'; + + +import { BalancePlatformNotificationResponse } from './balancePlatformNotificationResponse'; +import { ReportNotificationData } from './reportNotificationData'; +import { ReportNotificationRequest } from './reportNotificationRequest'; +import { Resource } from './resource'; +import { ResourceReference } from './resourceReference'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "ReportNotificationRequest.TypeEnum": ReportNotificationRequest.TypeEnum, +} + +let typeMap: {[index: string]: any} = { + "BalancePlatformNotificationResponse": BalancePlatformNotificationResponse, + "ReportNotificationData": ReportNotificationData, + "ReportNotificationRequest": ReportNotificationRequest, + "Resource": Resource, + "ResourceReference": ResourceReference, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/reportWebhooks/objectSerializer.ts b/src/typings/reportWebhooks/objectSerializer.ts deleted file mode 100644 index 078566734..000000000 --- a/src/typings/reportWebhooks/objectSerializer.ts +++ /dev/null @@ -1,354 +0,0 @@ -export * from "./models"; - -import { BalancePlatformNotificationResponse } from "./balancePlatformNotificationResponse"; -import { ReportNotificationData } from "./reportNotificationData"; -import { ReportNotificationRequest } from "./reportNotificationRequest"; -import { Resource } from "./resource"; -import { ResourceReference } from "./resourceReference"; - -/* tslint:disable:no-unused-variable */ -let primitives = [ - "string", - "boolean", - "double", - "integer", - "long", - "float", - "number", - "any" - ]; - -let enumsMap: Set = new Set([ - "ReportNotificationRequest.TypeEnum", -]); - -let typeMap: {[index: string]: any} = { - "BalancePlatformNotificationResponse": BalancePlatformNotificationResponse, - "ReportNotificationData": ReportNotificationData, - "ReportNotificationRequest": ReportNotificationRequest, - "Resource": Resource, - "ResourceReference": ResourceReference, -} - -type MimeTypeDescriptor = { - type: string; - subtype: string; - subtypeTokens: string[]; -}; - -/** - * Every mime-type consists of a type, subtype, and optional parameters. - * The subtype can be composite, including information about the content format. - * For example: `application/json-patch+json`, `application/merge-patch+json`. - * - * This helper transforms a string mime-type into an internal representation. - * This simplifies the implementation of predicates that in turn define common rules for parsing or stringifying - * the payload. - */ -const parseMimeType = (mimeType: string): MimeTypeDescriptor => { - const [type = '', subtype = ''] = mimeType.split('/'); - return { - type, - subtype, - subtypeTokens: subtype.split('+'), - }; -}; - -type MimeTypePredicate = (mimeType: string) => boolean; - -// This factory creates a predicate function that checks a string mime-type against defined rules. -const mimeTypePredicateFactory = (predicate: (descriptor: MimeTypeDescriptor) => boolean): MimeTypePredicate => (mimeType) => predicate(parseMimeType(mimeType)); - -// Use this factory when you need to define a simple predicate based only on type and, if applicable, subtype. -const mimeTypeSimplePredicateFactory = (type: string, subtype?: string): MimeTypePredicate => mimeTypePredicateFactory((descriptor) => { - if (descriptor.type !== type) return false; - if (subtype != null && descriptor.subtype !== subtype) return false; - return true; -}); - -// Creating a set of named predicates that will help us determine how to handle different mime-types -const isTextLikeMimeType = mimeTypeSimplePredicateFactory('text'); -const isJsonMimeType = mimeTypeSimplePredicateFactory('application', 'json'); -const isJsonLikeMimeType = mimeTypePredicateFactory((descriptor) => descriptor.type === 'application' && descriptor.subtypeTokens.some((item) => item === 'json')); -const isOctetStreamMimeType = mimeTypeSimplePredicateFactory('application', 'octet-stream'); -const isFormUrlencodedMimeType = mimeTypeSimplePredicateFactory('application', 'x-www-form-urlencoded'); - -// Defining a list of mime-types in the order of prioritization for handling. -const supportedMimeTypePredicatesWithPriority: MimeTypePredicate[] = [ - isJsonMimeType, - isJsonLikeMimeType, - isTextLikeMimeType, - isOctetStreamMimeType, - isFormUrlencodedMimeType, -]; - -const nullableSuffix = " | null"; -const optionalSuffix = " | undefined"; -const arrayPrefix = "Array<"; -const arraySuffix = ">"; -const mapPrefix = "{ [key: string]: "; -const mapSuffix = "; }"; - -export class ObjectSerializer { - public static findCorrectType(data: any, expectedType: string) { - if (data == undefined) { - return expectedType; - } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { - return expectedType; - } else if (expectedType === "Date") { - return expectedType; - } else { - if (enumsMap.has(expectedType)) { - return expectedType; - } - - if (!typeMap[expectedType]) { - return expectedType; // w/e we don't know the type - } - - // Check the discriminator - let discriminatorProperty = typeMap[expectedType].discriminator; - if (discriminatorProperty == null) { - return expectedType; // the type does not have a discriminator. use it. - } else { - if (data[discriminatorProperty]) { - var discriminatorType = data[discriminatorProperty]; - let mapping = typeMap[expectedType].mapping; - if (mapping != undefined && mapping[discriminatorType]) { - return mapping[discriminatorType]; // use the type given in the discriminator - } else if(typeMap[discriminatorType]) { - return discriminatorType; - } else { - return expectedType; // discriminator did not map to a type - } - } else { - return expectedType; // discriminator was not present (or an empty string) - } - } - } - } - - /** - * Serializes a value into a plain JSON-compatible object based on its type. - * - * Supports primitives, arrays, maps, dates, enums, and classes defined in `typeMap`. - * Falls back to raw data if type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The value to serialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A JSON-compatible representation of `data`. - */ - public static serialize(data: any, type: string, format: string = ""): any { - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.serialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.serialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - if (format == "date") { - let month = data.getMonth()+1 - month = month < 10 ? "0" + month.toString() : month.toString() - let day = data.getDate(); - day = day < 10 ? "0" + day.toString() : day.toString(); - - return data.getFullYear() + "-" + month + "-" + day; - } else { - return data.toISOString(); - } - } else { - if (enumsMap.has(type)) { - return data; - } - if (!typeMap[type]) { // in case we dont know the type - return data; - } - - // Get the actual type of this object - type = this.findCorrectType(data, type); - - const clazz = typeMap[type]; - - // Safe check for getAttributeTypeMap - if (typeof clazz.getAttributeTypeMap !== "function") { - return { ...data }; // fallback: shallow copy - } - - // get the map for the correct type. - let attributeTypes = typeMap[type].getAttributeTypeMap(); - let instance: {[index: string]: any} = {}; - for (let attributeType of attributeTypes) { - instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format); - } - return instance; - } - } - - /** - * Deserializes a plain JSON-compatible object into a typed instance. - * - * Handles primitives, arrays, maps, dates, enums, and known classes from `typeMap`. - * Uses discriminators when available to resolve polymorphic types. - * Falls back to raw data if the type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The raw input to deserialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A deserialized instance or value of `data`. - */ - public static deserialize(data: any, type: string, format: string = ""): any { - // polymorphism may change the actual type. - type = ObjectSerializer.findCorrectType(data, type); - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.deserialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.deserialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - return new Date(data); - } else { - if (enumsMap.has(type)) {// is Enum - return data; - } - - if (!typeMap[type]) { // dont know the type - return data; - } - let instance = new typeMap[type](); - - // Safe check for getAttributeTypeMap - if (typeof typeMap[type].getAttributeTypeMap !== "function") { - Object.assign(instance, data); // fallback: shallow copy - return instance; - } - - let attributeTypes = typeMap[type].getAttributeTypeMap(); - for (let attributeType of attributeTypes) { - let value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format); - if (value !== undefined) { - instance[attributeType.name] = value; - } - } - return instance; - } - } - - - /** - * Normalize media type - * - * We currently do not handle any media types attributes, i.e. anything - * after a semicolon. All content is assumed to be UTF-8 compatible. - */ - public static normalizeMediaType(mediaType: string | undefined): string | undefined { - if (mediaType === undefined) { - return undefined; - } - return (mediaType.split(";")[0] ?? '').trim().toLowerCase(); - } - - /** - * From a list of possible media types, choose the one we can handle best. - * - * The order of the given media types does not have any impact on the choice - * made. - */ - public static getPreferredMediaType(mediaTypes: Array): string { - /** According to OAS 3 we should default to json */ - if (mediaTypes.length === 0) { - return "application/json"; - } - - const normalMediaTypes = mediaTypes.map(ObjectSerializer.normalizeMediaType); - - for (const predicate of supportedMimeTypePredicatesWithPriority) { - for (const mediaType of normalMediaTypes) { - if (mediaType != null && predicate(mediaType)) { - return mediaType; - } - } - } - - throw new Error("None of the given media types are supported: " + mediaTypes.join(", ")); - } - - /** - * Convert data to a string according the given media type - */ - public static stringify(data: any, mediaType: string): string { - if (isTextLikeMimeType(mediaType)) { - return String(data); - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.stringify(data); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify."); - } - - /** - * Parse data from a string according to the given media type - */ - public static parse(rawData: string, mediaType: string | undefined) { - if (mediaType === undefined) { - throw new Error("Cannot parse content. No Content-Type defined."); - } - - if (isTextLikeMimeType(mediaType)) { - return rawData; - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.parse(rawData); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse."); - } -} diff --git a/src/typings/reportWebhooks/reportNotificationData.ts b/src/typings/reportWebhooks/reportNotificationData.ts index bd9cfde78..2bd4465b4 100644 --- a/src/typings/reportWebhooks/reportNotificationData.ts +++ b/src/typings/reportWebhooks/reportNotificationData.ts @@ -7,96 +7,82 @@ * Do not edit this class manually. */ -import { ResourceReference } from "./resourceReference"; - +import { ResourceReference } from './resourceReference'; export class ReportNotificationData { - "accountHolder"?: ResourceReference | null; - "balanceAccount"?: ResourceReference | null; + 'accountHolder'?: ResourceReference | null; + 'balanceAccount'?: ResourceReference | null; /** * The unique identifier of the balance platform. */ - "balancePlatform"?: string; + 'balancePlatform'?: string; /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. */ - "creationDate"?: Date; + 'creationDate'?: Date; /** * The URL at which you can download the report. To download, you must authenticate your GET request with your [API credentials](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/overview). */ - "downloadUrl": string; + 'downloadUrl': string; /** * The filename of the report. */ - "fileName": string; + 'fileName': string; /** * The ID of the resource. */ - "id"?: string; + 'id'?: string; /** * The type of report. Possible values: - `balanceplatform_accounting_interactive_report` - `balanceplatform_accounting_report` - `balanceplatform_balance_report` - `balanceplatform_fee_report` - `balanceplatform_payment_instrument_report` - `balanceplatform_payout_report` - `balanceplatform_statement_report` */ - "reportType": string; - - static readonly discriminator: string | undefined = undefined; + 'reportType': string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountHolder", "baseName": "accountHolder", - "type": "ResourceReference | null", - "format": "" + "type": "ResourceReference | null" }, { "name": "balanceAccount", "baseName": "balanceAccount", - "type": "ResourceReference | null", - "format": "" + "type": "ResourceReference | null" }, { "name": "balancePlatform", "baseName": "balancePlatform", - "type": "string", - "format": "" + "type": "string" }, { "name": "creationDate", "baseName": "creationDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "downloadUrl", "baseName": "downloadUrl", - "type": "string", - "format": "" + "type": "string" }, { "name": "fileName", "baseName": "fileName", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "reportType", "baseName": "reportType", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ReportNotificationData.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/reportWebhooks/reportNotificationRequest.ts b/src/typings/reportWebhooks/reportNotificationRequest.ts index 5ccd9fa35..ea5546123 100644 --- a/src/typings/reportWebhooks/reportNotificationRequest.ts +++ b/src/typings/reportWebhooks/reportNotificationRequest.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { ReportNotificationData } from "./reportNotificationData"; - +import { ReportNotificationData } from './reportNotificationData'; export class ReportNotificationRequest { - "data": ReportNotificationData; + 'data': ReportNotificationData; /** * The environment from which the webhook originated. Possible values: **test**, **live**. */ - "environment": string; + 'environment': string; /** * When the event was queued. */ - "timestamp"?: Date; + 'timestamp'?: Date; /** * Type of webhook. */ - "type": ReportNotificationRequest.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': ReportNotificationRequest.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "ReportNotificationData", - "format": "" + "type": "ReportNotificationData" }, { "name": "environment", "baseName": "environment", - "type": "string", - "format": "" + "type": "string" }, { "name": "timestamp", "baseName": "timestamp", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "type", "baseName": "type", - "type": "ReportNotificationRequest.TypeEnum", - "format": "" + "type": "ReportNotificationRequest.TypeEnum" } ]; static getAttributeTypeMap() { return ReportNotificationRequest.attributeTypeMap; } - - public constructor() { - } } export namespace ReportNotificationRequest { diff --git a/src/typings/reportWebhooks/reportWebhooksHandler.ts b/src/typings/reportWebhooks/reportWebhooksHandler.ts deleted file mode 100644 index d3b77e6af..000000000 --- a/src/typings/reportWebhooks/reportWebhooksHandler.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* - * The version of the OpenAPI document: v1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit this class manually. - */ - -import { reportWebhooks } from ".."; - -/** - * Union type for all supported webhook requests. - * Allows generic handling of configuration-related webhook events. - */ -export type GenericWebhook = - | reportWebhooks.ReportNotificationRequest; - -/** - * Handler for processing ReportWebhooks. - * - * This class provides functionality to deserialize the payload of ReportWebhooks events. - */ -export class ReportWebhooksHandler { - - private readonly payload: Record; - - public constructor(jsonPayload: string) { - this.payload = JSON.parse(jsonPayload); - } - - /** - * This method checks the type of the webhook payload and returns the appropriate deserialized object. - * - * @returns A deserialized object of type GenericWebhook. - * @throws Error if the type is not recognized. - */ - public getGenericWebhook(): GenericWebhook { - - const type = this.payload["type"]; - - if(Object.values(reportWebhooks.ReportNotificationRequest.TypeEnum).includes(type)) { - return this.getReportNotificationRequest(); - } - - throw new Error("Could not parse the json payload: " + this.payload); - - } - - /** - * Deserialize the webhook payload into a ReportNotificationRequest - * - * @returns Deserialized ReportNotificationRequest object. - */ - public getReportNotificationRequest(): reportWebhooks.ReportNotificationRequest { - return reportWebhooks.ObjectSerializer.deserialize(this.payload, "ReportNotificationRequest"); - } - -} \ No newline at end of file diff --git a/src/typings/reportWebhooks/resource.ts b/src/typings/reportWebhooks/resource.ts index f45de4906..fc75f96d4 100644 --- a/src/typings/reportWebhooks/resource.ts +++ b/src/typings/reportWebhooks/resource.ts @@ -12,45 +12,37 @@ export class Resource { /** * The unique identifier of the balance platform. */ - "balancePlatform"?: string; + 'balancePlatform'?: string; /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. */ - "creationDate"?: Date; + 'creationDate'?: Date; /** * The ID of the resource. */ - "id"?: string; + 'id'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balancePlatform", "baseName": "balancePlatform", - "type": "string", - "format": "" + "type": "string" }, { "name": "creationDate", "baseName": "creationDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Resource.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/reportWebhooks/resourceReference.ts b/src/typings/reportWebhooks/resourceReference.ts index 27243d873..562106158 100644 --- a/src/typings/reportWebhooks/resourceReference.ts +++ b/src/typings/reportWebhooks/resourceReference.ts @@ -12,45 +12,37 @@ export class ResourceReference { /** * The description of the resource. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the resource. */ - "id"?: string; + 'id'?: string; /** * The reference for the resource. */ - "reference"?: string; + 'reference'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ResourceReference.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/sessionAuthentication/accountHolderResource.ts b/src/typings/sessionAuthentication/accountHolderResource.ts index 0e4256382..6e45f3115 100644 --- a/src/typings/sessionAuthentication/accountHolderResource.ts +++ b/src/typings/sessionAuthentication/accountHolderResource.ts @@ -7,35 +7,27 @@ * Do not edit this class manually. */ -import { Resource } from "./resource"; - +import { AccountHolderResourceAllOf } from './accountHolderResourceAllOf'; +import { Resource } from './resource'; +import { ResourceType } from './resourceType'; export class AccountHolderResource extends Resource { /** * The unique identifier of the resource connected to the component. For [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the account holder linked to the balance account shown in the component. */ - "accountHolderId": string; - - static override readonly discriminator: string | undefined = undefined; + 'accountHolderId': string; - static override readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static override readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountHolderId", "baseName": "accountHolderId", - "type": "string", - "format": "" + "type": "string" } ]; - static override getAttributeTypeMap() { + static getAttributeTypeMap() { return super.getAttributeTypeMap().concat(AccountHolderResource.attributeTypeMap); } - - public constructor() { - super(); - } } -export namespace AccountHolderResource { -} diff --git a/src/typings/sessionAuthentication/accountHolderResourceAllOf.ts b/src/typings/sessionAuthentication/accountHolderResourceAllOf.ts new file mode 100644 index 000000000..e838056d5 --- /dev/null +++ b/src/typings/sessionAuthentication/accountHolderResourceAllOf.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v1 + * + * + * 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 AccountHolderResourceAllOf { + /** + * The unique identifier of the resource connected to the component. For [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the account holder linked to the balance account shown in the component. + */ + 'accountHolderId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountHolderId", + "baseName": "accountHolderId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AccountHolderResourceAllOf.attributeTypeMap; + } +} + diff --git a/src/typings/sessionAuthentication/authenticationSessionRequest.ts b/src/typings/sessionAuthentication/authenticationSessionRequest.ts index 065455241..98259d0a5 100644 --- a/src/typings/sessionAuthentication/authenticationSessionRequest.ts +++ b/src/typings/sessionAuthentication/authenticationSessionRequest.ts @@ -7,49 +7,38 @@ * Do not edit this class manually. */ -import { Policy } from "./policy"; -import { ProductType } from "./productType"; - +import { Policy } from './policy'; +import { ProductType } from './productType'; export class AuthenticationSessionRequest { /** * The URL where the component will appear. In your live environment, you must protect the URL with an SSL certificate and ensure that it starts with `https://`. */ - "allowOrigin": string; - "policy": Policy; - "product": ProductType; - - static readonly discriminator: string | undefined = undefined; + 'allowOrigin': string; + 'policy': Policy; + 'product': ProductType; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "allowOrigin", "baseName": "allowOrigin", - "type": "string", - "format": "" + "type": "string" }, { "name": "policy", "baseName": "policy", - "type": "Policy", - "format": "" + "type": "Policy" }, { "name": "product", "baseName": "product", - "type": "ProductType", - "format": "" + "type": "ProductType" } ]; static getAttributeTypeMap() { return AuthenticationSessionRequest.attributeTypeMap; } - - public constructor() { - } } -export namespace AuthenticationSessionRequest { -} diff --git a/src/typings/sessionAuthentication/authenticationSessionResponse.ts b/src/typings/sessionAuthentication/authenticationSessionResponse.ts index 587c80f76..76f6c5eb1 100644 --- a/src/typings/sessionAuthentication/authenticationSessionResponse.ts +++ b/src/typings/sessionAuthentication/authenticationSessionResponse.ts @@ -12,35 +12,28 @@ export class AuthenticationSessionResponse { /** * The unique identifier of the session. */ - "id"?: string; + 'id'?: string; /** * The session token created. */ - "token"?: string; + 'token'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "token", "baseName": "token", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return AuthenticationSessionResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/sessionAuthentication/balanceAccountResource.ts b/src/typings/sessionAuthentication/balanceAccountResource.ts index ed6c1231e..2965f2349 100644 --- a/src/typings/sessionAuthentication/balanceAccountResource.ts +++ b/src/typings/sessionAuthentication/balanceAccountResource.ts @@ -7,32 +7,24 @@ * Do not edit this class manually. */ -import { Resource } from "./resource"; - +import { BalanceAccountResourceAllOf } from './balanceAccountResourceAllOf'; +import { Resource } from './resource'; +import { ResourceType } from './resourceType'; export class BalanceAccountResource extends Resource { - "balanceAccountId": string; - - static override readonly discriminator: string | undefined = undefined; + 'balanceAccountId': string; - static override readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static override readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balanceAccountId", "baseName": "balanceAccountId", - "type": "string", - "format": "" + "type": "string" } ]; - static override getAttributeTypeMap() { + static getAttributeTypeMap() { return super.getAttributeTypeMap().concat(BalanceAccountResource.attributeTypeMap); } - - public constructor() { - super(); - } } -export namespace BalanceAccountResource { -} diff --git a/src/typings/sessionAuthentication/balanceAccountResourceAllOf.ts b/src/typings/sessionAuthentication/balanceAccountResourceAllOf.ts new file mode 100644 index 000000000..46914f9bb --- /dev/null +++ b/src/typings/sessionAuthentication/balanceAccountResourceAllOf.ts @@ -0,0 +1,27 @@ +/* + * The version of the OpenAPI document: v1 + * + * + * 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 BalanceAccountResourceAllOf { + 'balanceAccountId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "balanceAccountId", + "baseName": "balanceAccountId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return BalanceAccountResourceAllOf.attributeTypeMap; + } +} + diff --git a/src/typings/sessionAuthentication/defaultErrorResponseEntity.ts b/src/typings/sessionAuthentication/defaultErrorResponseEntity.ts index ec4bf859a..e2529fc9b 100644 --- a/src/typings/sessionAuthentication/defaultErrorResponseEntity.ts +++ b/src/typings/sessionAuthentication/defaultErrorResponseEntity.ts @@ -7,106 +7,91 @@ * Do not edit this class manually. */ -import { InvalidField } from "./invalidField"; +import { InvalidField } from './invalidField'; /** * Standardized error response following RFC-7807 format */ - - export class DefaultErrorResponseEntity { /** * A human-readable explanation specific to this occurrence of the problem. */ - "detail"?: string; + 'detail'?: string; /** * Unique business error code. */ - "errorCode"?: string; + 'errorCode'?: string; /** * A URI that identifies the specific occurrence of the problem if applicable. */ - "instance"?: string; + 'instance'?: string; /** * Array of fields with validation errors when applicable. */ - "invalidFields"?: Array; + 'invalidFields'?: Array; /** * The unique reference for the request. */ - "requestId"?: string; + 'requestId'?: string; /** * The HTTP status code. */ - "status"?: number; + 'status'?: number; /** * A short, human-readable summary of the problem type. */ - "title"?: string; + 'title'?: string; /** * A URI that identifies the validation error type. It points to human-readable documentation for the problem type. */ - "type"?: string; - - static readonly discriminator: string | undefined = undefined; + 'type'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "detail", "baseName": "detail", - "type": "string", - "format": "" + "type": "string" }, { "name": "errorCode", "baseName": "errorCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "instance", "baseName": "instance", - "type": "string", - "format": "" + "type": "string" }, { "name": "invalidFields", "baseName": "invalidFields", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "requestId", "baseName": "requestId", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "title", "baseName": "title", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return DefaultErrorResponseEntity.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/sessionAuthentication/invalidField.ts b/src/typings/sessionAuthentication/invalidField.ts index d558415f1..c0aa8956a 100644 --- a/src/typings/sessionAuthentication/invalidField.ts +++ b/src/typings/sessionAuthentication/invalidField.ts @@ -12,45 +12,37 @@ export class InvalidField { /** * The field that has an invalid value. */ - "name": string; + 'name': string; /** * The invalid value. */ - "value": string; + 'value': string; /** * Description of the validation error. */ - "message": string; + 'message': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "string", - "format": "" + "type": "string" }, { "name": "message", "baseName": "message", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return InvalidField.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/sessionAuthentication/legalEntityResource.ts b/src/typings/sessionAuthentication/legalEntityResource.ts index c4851e41c..1d09a6a8e 100644 --- a/src/typings/sessionAuthentication/legalEntityResource.ts +++ b/src/typings/sessionAuthentication/legalEntityResource.ts @@ -7,35 +7,27 @@ * Do not edit this class manually. */ -import { Resource } from "./resource"; - +import { LegalEntityResourceAllOf } from './legalEntityResourceAllOf'; +import { Resource } from './resource'; +import { ResourceType } from './resourceType'; export class LegalEntityResource extends Resource { /** * The unique identifier of the resource connected to the component. For [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the legal entity that has a contractual relationship with your platform and owns the [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). For sole proprietorships, this is the legal entity of the individual owner. */ - "legalEntityId": string; - - static override readonly discriminator: string | undefined = undefined; + 'legalEntityId': string; - static override readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static override readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "legalEntityId", "baseName": "legalEntityId", - "type": "string", - "format": "" + "type": "string" } ]; - static override getAttributeTypeMap() { + static getAttributeTypeMap() { return super.getAttributeTypeMap().concat(LegalEntityResource.attributeTypeMap); } - - public constructor() { - super(); - } } -export namespace LegalEntityResource { -} diff --git a/src/typings/sessionAuthentication/legalEntityResourceAllOf.ts b/src/typings/sessionAuthentication/legalEntityResourceAllOf.ts new file mode 100644 index 000000000..03a2f6c58 --- /dev/null +++ b/src/typings/sessionAuthentication/legalEntityResourceAllOf.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v1 + * + * + * 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 LegalEntityResourceAllOf { + /** + * The unique identifier of the resource connected to the component. For [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the legal entity that has a contractual relationship with your platform and owns the [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). For sole proprietorships, this is the legal entity of the individual owner. + */ + 'legalEntityId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "legalEntityId", + "baseName": "legalEntityId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return LegalEntityResourceAllOf.attributeTypeMap; + } +} + diff --git a/src/typings/sessionAuthentication/merchantAccountResource.ts b/src/typings/sessionAuthentication/merchantAccountResource.ts index cfed80104..79e4c27d8 100644 --- a/src/typings/sessionAuthentication/merchantAccountResource.ts +++ b/src/typings/sessionAuthentication/merchantAccountResource.ts @@ -7,32 +7,24 @@ * Do not edit this class manually. */ -import { Resource } from "./resource"; - +import { MerchantAccountResourceAllOf } from './merchantAccountResourceAllOf'; +import { Resource } from './resource'; +import { ResourceType } from './resourceType'; export class MerchantAccountResource extends Resource { - "merchantAccountCode"?: string; - - static override readonly discriminator: string | undefined = undefined; + 'merchantAccountCode'?: string; - static override readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static override readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "merchantAccountCode", "baseName": "merchantAccountCode", - "type": "string", - "format": "" + "type": "string" } ]; - static override getAttributeTypeMap() { + static getAttributeTypeMap() { return super.getAttributeTypeMap().concat(MerchantAccountResource.attributeTypeMap); } - - public constructor() { - super(); - } } -export namespace MerchantAccountResource { -} diff --git a/src/typings/sessionAuthentication/merchantAccountResourceAllOf.ts b/src/typings/sessionAuthentication/merchantAccountResourceAllOf.ts new file mode 100644 index 000000000..53e5fdc0e --- /dev/null +++ b/src/typings/sessionAuthentication/merchantAccountResourceAllOf.ts @@ -0,0 +1,27 @@ +/* + * The version of the OpenAPI document: v1 + * + * + * 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 MerchantAccountResourceAllOf { + 'merchantAccountCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "merchantAccountCode", + "baseName": "merchantAccountCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return MerchantAccountResourceAllOf.attributeTypeMap; + } +} + diff --git a/src/typings/sessionAuthentication/models.ts b/src/typings/sessionAuthentication/models.ts index 1f20a98a5..b8633ab5c 100644 --- a/src/typings/sessionAuthentication/models.ts +++ b/src/typings/sessionAuthentication/models.ts @@ -1,16 +1,198 @@ -export * from "./accountHolderResource" -export * from "./authenticationSessionRequest" -export * from "./authenticationSessionResponse" -export * from "./balanceAccountResource" -export * from "./defaultErrorResponseEntity" -export * from "./invalidField" -export * from "./legalEntityResource" -export * from "./merchantAccountResource" -export * from "./paymentInstrumentResource" -export * from "./policy" -export * from "./productType" -export * from "./resource" -export * from "./resourceType" - -// serializing and deserializing typed objects -export * from "./objectSerializer" \ No newline at end of file +/* + * The version of the OpenAPI document: v1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export * from './accountHolderResource'; +export * from './accountHolderResourceAllOf'; +export * from './authenticationSessionRequest'; +export * from './authenticationSessionResponse'; +export * from './balanceAccountResource'; +export * from './balanceAccountResourceAllOf'; +export * from './defaultErrorResponseEntity'; +export * from './invalidField'; +export * from './legalEntityResource'; +export * from './legalEntityResourceAllOf'; +export * from './merchantAccountResource'; +export * from './merchantAccountResourceAllOf'; +export * from './paymentInstrumentResource'; +export * from './paymentInstrumentResourceAllOf'; +export * from './policy'; +export * from './productType'; +export * from './resource'; +export * from './resourceType'; + + +import { AccountHolderResource } from './accountHolderResource'; +import { AccountHolderResourceAllOf } from './accountHolderResourceAllOf'; +import { AuthenticationSessionRequest } from './authenticationSessionRequest'; +import { AuthenticationSessionResponse } from './authenticationSessionResponse'; +import { BalanceAccountResource } from './balanceAccountResource'; +import { BalanceAccountResourceAllOf } from './balanceAccountResourceAllOf'; +import { DefaultErrorResponseEntity } from './defaultErrorResponseEntity'; +import { InvalidField } from './invalidField'; +import { LegalEntityResource } from './legalEntityResource'; +import { LegalEntityResourceAllOf } from './legalEntityResourceAllOf'; +import { MerchantAccountResource } from './merchantAccountResource'; +import { MerchantAccountResourceAllOf } from './merchantAccountResourceAllOf'; +import { PaymentInstrumentResource } from './paymentInstrumentResource'; +import { PaymentInstrumentResourceAllOf } from './paymentInstrumentResourceAllOf'; +import { Policy } from './policy'; +import { ProductType } from './productType'; +import { Resource } from './resource'; +import { ResourceType } from './resourceType'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "ProductType": ProductType, + "ResourceType": ResourceType, +} + +let typeMap: {[index: string]: any} = { + "AccountHolderResource": AccountHolderResource, + "AccountHolderResourceAllOf": AccountHolderResourceAllOf, + "AuthenticationSessionRequest": AuthenticationSessionRequest, + "AuthenticationSessionResponse": AuthenticationSessionResponse, + "BalanceAccountResource": BalanceAccountResource, + "BalanceAccountResourceAllOf": BalanceAccountResourceAllOf, + "DefaultErrorResponseEntity": DefaultErrorResponseEntity, + "InvalidField": InvalidField, + "LegalEntityResource": LegalEntityResource, + "LegalEntityResourceAllOf": LegalEntityResourceAllOf, + "MerchantAccountResource": MerchantAccountResource, + "MerchantAccountResourceAllOf": MerchantAccountResourceAllOf, + "PaymentInstrumentResource": PaymentInstrumentResource, + "PaymentInstrumentResourceAllOf": PaymentInstrumentResourceAllOf, + "Policy": Policy, + "Resource": Resource, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/sessionAuthentication/objectSerializer.ts b/src/typings/sessionAuthentication/objectSerializer.ts deleted file mode 100644 index 1fd26b326..000000000 --- a/src/typings/sessionAuthentication/objectSerializer.ts +++ /dev/null @@ -1,374 +0,0 @@ -export * from "./models"; - -import { AccountHolderResource } from "./accountHolderResource"; -import { AuthenticationSessionRequest } from "./authenticationSessionRequest"; -import { AuthenticationSessionResponse } from "./authenticationSessionResponse"; -import { BalanceAccountResource } from "./balanceAccountResource"; -import { DefaultErrorResponseEntity } from "./defaultErrorResponseEntity"; -import { InvalidField } from "./invalidField"; -import { LegalEntityResource } from "./legalEntityResource"; -import { MerchantAccountResource } from "./merchantAccountResource"; -import { PaymentInstrumentResource } from "./paymentInstrumentResource"; -import { Policy } from "./policy"; -import { ProductType } from "./productType"; -import { Resource } from "./resource"; -import { ResourceType } from "./resourceType"; - -/* tslint:disable:no-unused-variable */ -let primitives = [ - "string", - "boolean", - "double", - "integer", - "long", - "float", - "number", - "any" - ]; - -let enumsMap: Set = new Set([ - ProductType.Onboarding, - ProductType.Platform, - ResourceType.LegalEntity, - ResourceType.BalanceAccount, - ResourceType.AccountHolder, - ResourceType.MerchantAccount, - ResourceType.PaymentInstrument, -]); - -let typeMap: {[index: string]: any} = { - "AccountHolderResource": AccountHolderResource, - "AuthenticationSessionRequest": AuthenticationSessionRequest, - "AuthenticationSessionResponse": AuthenticationSessionResponse, - "BalanceAccountResource": BalanceAccountResource, - "DefaultErrorResponseEntity": DefaultErrorResponseEntity, - "InvalidField": InvalidField, - "LegalEntityResource": LegalEntityResource, - "MerchantAccountResource": MerchantAccountResource, - "PaymentInstrumentResource": PaymentInstrumentResource, - "Policy": Policy, - "Resource": Resource, -} - -type MimeTypeDescriptor = { - type: string; - subtype: string; - subtypeTokens: string[]; -}; - -/** - * Every mime-type consists of a type, subtype, and optional parameters. - * The subtype can be composite, including information about the content format. - * For example: `application/json-patch+json`, `application/merge-patch+json`. - * - * This helper transforms a string mime-type into an internal representation. - * This simplifies the implementation of predicates that in turn define common rules for parsing or stringifying - * the payload. - */ -const parseMimeType = (mimeType: string): MimeTypeDescriptor => { - const [type = '', subtype = ''] = mimeType.split('/'); - return { - type, - subtype, - subtypeTokens: subtype.split('+'), - }; -}; - -type MimeTypePredicate = (mimeType: string) => boolean; - -// This factory creates a predicate function that checks a string mime-type against defined rules. -const mimeTypePredicateFactory = (predicate: (descriptor: MimeTypeDescriptor) => boolean): MimeTypePredicate => (mimeType) => predicate(parseMimeType(mimeType)); - -// Use this factory when you need to define a simple predicate based only on type and, if applicable, subtype. -const mimeTypeSimplePredicateFactory = (type: string, subtype?: string): MimeTypePredicate => mimeTypePredicateFactory((descriptor) => { - if (descriptor.type !== type) return false; - if (subtype != null && descriptor.subtype !== subtype) return false; - return true; -}); - -// Creating a set of named predicates that will help us determine how to handle different mime-types -const isTextLikeMimeType = mimeTypeSimplePredicateFactory('text'); -const isJsonMimeType = mimeTypeSimplePredicateFactory('application', 'json'); -const isJsonLikeMimeType = mimeTypePredicateFactory((descriptor) => descriptor.type === 'application' && descriptor.subtypeTokens.some((item) => item === 'json')); -const isOctetStreamMimeType = mimeTypeSimplePredicateFactory('application', 'octet-stream'); -const isFormUrlencodedMimeType = mimeTypeSimplePredicateFactory('application', 'x-www-form-urlencoded'); - -// Defining a list of mime-types in the order of prioritization for handling. -const supportedMimeTypePredicatesWithPriority: MimeTypePredicate[] = [ - isJsonMimeType, - isJsonLikeMimeType, - isTextLikeMimeType, - isOctetStreamMimeType, - isFormUrlencodedMimeType, -]; - -const nullableSuffix = " | null"; -const optionalSuffix = " | undefined"; -const arrayPrefix = "Array<"; -const arraySuffix = ">"; -const mapPrefix = "{ [key: string]: "; -const mapSuffix = "; }"; - -export class ObjectSerializer { - public static findCorrectType(data: any, expectedType: string) { - if (data == undefined) { - return expectedType; - } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { - return expectedType; - } else if (expectedType === "Date") { - return expectedType; - } else { - if (enumsMap.has(expectedType)) { - return expectedType; - } - - if (!typeMap[expectedType]) { - return expectedType; // w/e we don't know the type - } - - // Check the discriminator - let discriminatorProperty = typeMap[expectedType].discriminator; - if (discriminatorProperty == null) { - return expectedType; // the type does not have a discriminator. use it. - } else { - if (data[discriminatorProperty]) { - var discriminatorType = data[discriminatorProperty]; - let mapping = typeMap[expectedType].mapping; - if (mapping != undefined && mapping[discriminatorType]) { - return mapping[discriminatorType]; // use the type given in the discriminator - } else if(typeMap[discriminatorType]) { - return discriminatorType; - } else { - return expectedType; // discriminator did not map to a type - } - } else { - return expectedType; // discriminator was not present (or an empty string) - } - } - } - } - - /** - * Serializes a value into a plain JSON-compatible object based on its type. - * - * Supports primitives, arrays, maps, dates, enums, and classes defined in `typeMap`. - * Falls back to raw data if type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The value to serialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A JSON-compatible representation of `data`. - */ - public static serialize(data: any, type: string, format: string = ""): any { - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.serialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.serialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - if (format == "date") { - let month = data.getMonth()+1 - month = month < 10 ? "0" + month.toString() : month.toString() - let day = data.getDate(); - day = day < 10 ? "0" + day.toString() : day.toString(); - - return data.getFullYear() + "-" + month + "-" + day; - } else { - return data.toISOString(); - } - } else { - if (enumsMap.has(type)) { - return data; - } - if (!typeMap[type]) { // in case we dont know the type - return data; - } - - // Get the actual type of this object - type = this.findCorrectType(data, type); - - const clazz = typeMap[type]; - - // Safe check for getAttributeTypeMap - if (typeof clazz.getAttributeTypeMap !== "function") { - return { ...data }; // fallback: shallow copy - } - - // get the map for the correct type. - let attributeTypes = typeMap[type].getAttributeTypeMap(); - let instance: {[index: string]: any} = {}; - for (let attributeType of attributeTypes) { - instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format); - } - return instance; - } - } - - /** - * Deserializes a plain JSON-compatible object into a typed instance. - * - * Handles primitives, arrays, maps, dates, enums, and known classes from `typeMap`. - * Uses discriminators when available to resolve polymorphic types. - * Falls back to raw data if the type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The raw input to deserialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A deserialized instance or value of `data`. - */ - public static deserialize(data: any, type: string, format: string = ""): any { - // polymorphism may change the actual type. - type = ObjectSerializer.findCorrectType(data, type); - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.deserialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.deserialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - return new Date(data); - } else { - if (enumsMap.has(type)) {// is Enum - return data; - } - - if (!typeMap[type]) { // dont know the type - return data; - } - let instance = new typeMap[type](); - - // Safe check for getAttributeTypeMap - if (typeof typeMap[type].getAttributeTypeMap !== "function") { - Object.assign(instance, data); // fallback: shallow copy - return instance; - } - - let attributeTypes = typeMap[type].getAttributeTypeMap(); - for (let attributeType of attributeTypes) { - let value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format); - if (value !== undefined) { - instance[attributeType.name] = value; - } - } - return instance; - } - } - - - /** - * Normalize media type - * - * We currently do not handle any media types attributes, i.e. anything - * after a semicolon. All content is assumed to be UTF-8 compatible. - */ - public static normalizeMediaType(mediaType: string | undefined): string | undefined { - if (mediaType === undefined) { - return undefined; - } - return (mediaType.split(";")[0] ?? '').trim().toLowerCase(); - } - - /** - * From a list of possible media types, choose the one we can handle best. - * - * The order of the given media types does not have any impact on the choice - * made. - */ - public static getPreferredMediaType(mediaTypes: Array): string { - /** According to OAS 3 we should default to json */ - if (mediaTypes.length === 0) { - return "application/json"; - } - - const normalMediaTypes = mediaTypes.map(ObjectSerializer.normalizeMediaType); - - for (const predicate of supportedMimeTypePredicatesWithPriority) { - for (const mediaType of normalMediaTypes) { - if (mediaType != null && predicate(mediaType)) { - return mediaType; - } - } - } - - throw new Error("None of the given media types are supported: " + mediaTypes.join(", ")); - } - - /** - * Convert data to a string according the given media type - */ - public static stringify(data: any, mediaType: string): string { - if (isTextLikeMimeType(mediaType)) { - return String(data); - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.stringify(data); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify."); - } - - /** - * Parse data from a string according to the given media type - */ - public static parse(rawData: string, mediaType: string | undefined) { - if (mediaType === undefined) { - throw new Error("Cannot parse content. No Content-Type defined."); - } - - if (isTextLikeMimeType(mediaType)) { - return rawData; - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.parse(rawData); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse."); - } -} diff --git a/src/typings/sessionAuthentication/paymentInstrumentResource.ts b/src/typings/sessionAuthentication/paymentInstrumentResource.ts index 77be55c8d..6b9087f3d 100644 --- a/src/typings/sessionAuthentication/paymentInstrumentResource.ts +++ b/src/typings/sessionAuthentication/paymentInstrumentResource.ts @@ -7,32 +7,24 @@ * Do not edit this class manually. */ -import { Resource } from "./resource"; - +import { PaymentInstrumentResourceAllOf } from './paymentInstrumentResourceAllOf'; +import { Resource } from './resource'; +import { ResourceType } from './resourceType'; export class PaymentInstrumentResource extends Resource { - "paymentInstrumentId": string; - - static override readonly discriminator: string | undefined = undefined; + 'paymentInstrumentId': string; - static override readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static override readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "paymentInstrumentId", "baseName": "paymentInstrumentId", - "type": "string", - "format": "" + "type": "string" } ]; - static override getAttributeTypeMap() { + static getAttributeTypeMap() { return super.getAttributeTypeMap().concat(PaymentInstrumentResource.attributeTypeMap); } - - public constructor() { - super(); - } } -export namespace PaymentInstrumentResource { -} diff --git a/src/typings/sessionAuthentication/paymentInstrumentResourceAllOf.ts b/src/typings/sessionAuthentication/paymentInstrumentResourceAllOf.ts new file mode 100644 index 000000000..ab8d52fb7 --- /dev/null +++ b/src/typings/sessionAuthentication/paymentInstrumentResourceAllOf.ts @@ -0,0 +1,27 @@ +/* + * The version of the OpenAPI document: v1 + * + * + * 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 PaymentInstrumentResourceAllOf { + 'paymentInstrumentId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "paymentInstrumentId", + "baseName": "paymentInstrumentId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentInstrumentResourceAllOf.attributeTypeMap; + } +} + diff --git a/src/typings/sessionAuthentication/policy.ts b/src/typings/sessionAuthentication/policy.ts index bd2a2895f..f01be6bf2 100644 --- a/src/typings/sessionAuthentication/policy.ts +++ b/src/typings/sessionAuthentication/policy.ts @@ -7,42 +7,34 @@ * Do not edit this class manually. */ -import { Resource } from "./resource"; - +import { Resource } from './resource'; export class Policy { /** * An object containing the type and the unique identifier of the user of the component. For [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the ID of the legal entity that has a contractual relationship with your platform. For sole proprietorships, use the ID of the legal entity of the individual owner. For [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the ID of the account holder that is associated with the balance account shown in the component. */ - "resources"?: Set; + 'resources'?: Set; /** * The name of the role required to use the component. */ - "roles"?: Set; - - static readonly discriminator: string | undefined = undefined; + 'roles'?: Set; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "resources", "baseName": "resources", - "type": "Set", - "format": "" + "type": "Set" }, { "name": "roles", "baseName": "roles", - "type": "Set", - "format": "" + "type": "Set" } ]; static getAttributeTypeMap() { return Policy.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/sessionAuthentication/productType.ts b/src/typings/sessionAuthentication/productType.ts index 17d251a09..80b01612e 100644 --- a/src/typings/sessionAuthentication/productType.ts +++ b/src/typings/sessionAuthentication/productType.ts @@ -7,6 +7,7 @@ * Do not edit this class manually. */ + export enum ProductType { Onboarding = 'onboarding', Platform = 'platform' diff --git a/src/typings/sessionAuthentication/resource.ts b/src/typings/sessionAuthentication/resource.ts index 6dc0a4bea..f455a93a1 100644 --- a/src/typings/sessionAuthentication/resource.ts +++ b/src/typings/sessionAuthentication/resource.ts @@ -7,38 +7,22 @@ * Do not edit this class manually. */ -import { ResourceType } from "./resourceType"; - +import { ResourceType } from './resourceType'; export class Resource { - "type"?: ResourceType; - - static readonly discriminator: string | undefined = "type"; + 'type'?: ResourceType; - static readonly mapping: {[index: string]: string} | undefined = { - "accountHolder": "AccountHolderResource", - "balanceAccount": "BalanceAccountResource", - "legalEntity": "LegalEntityResource", - "merchantAccount": "MerchantAccountResource", - "paymentInstrument": "PaymentInstrumentResource", - }; + static discriminator: string | undefined = "type"; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "type", "baseName": "type", - "type": "ResourceType", - "format": "" + "type": "ResourceType" } ]; static getAttributeTypeMap() { return Resource.attributeTypeMap; } - - public constructor() { - //this.type = "Resource"; - } } -export namespace Resource { -} diff --git a/src/typings/sessionAuthentication/resourceType.ts b/src/typings/sessionAuthentication/resourceType.ts index 7a3cfe7e0..aafed1e6c 100644 --- a/src/typings/sessionAuthentication/resourceType.ts +++ b/src/typings/sessionAuthentication/resourceType.ts @@ -7,6 +7,7 @@ * Do not edit this class manually. */ + export enum ResourceType { LegalEntity = 'legalEntity', BalanceAccount = 'balanceAccount', diff --git a/src/typings/storedValue/amount.ts b/src/typings/storedValue/amount.ts index 2e2309307..fbf0e2e11 100644 --- a/src/typings/storedValue/amount.ts +++ b/src/typings/storedValue/amount.ts @@ -12,35 +12,28 @@ export class Amount { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ - "currency": string; + 'currency': string; /** * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ - "value": number; + 'value': number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "number", - "format": "int64" + "type": "number" } ]; static getAttributeTypeMap() { return Amount.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/storedValue/models.ts b/src/typings/storedValue/models.ts index d5b136df6..a6828afed 100644 --- a/src/typings/storedValue/models.ts +++ b/src/typings/storedValue/models.ts @@ -1,17 +1,199 @@ -export * from "./amount" -export * from "./serviceError" -export * from "./storedValueBalanceCheckRequest" -export * from "./storedValueBalanceCheckResponse" -export * from "./storedValueBalanceMergeRequest" -export * from "./storedValueBalanceMergeResponse" -export * from "./storedValueIssueRequest" -export * from "./storedValueIssueResponse" -export * from "./storedValueLoadRequest" -export * from "./storedValueLoadResponse" -export * from "./storedValueStatusChangeRequest" -export * from "./storedValueStatusChangeResponse" -export * from "./storedValueVoidRequest" -export * from "./storedValueVoidResponse" - -// serializing and deserializing typed objects -export * from "./objectSerializer" \ No newline at end of file +/* + * The version of the OpenAPI document: v46 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export * from './amount'; +export * from './serviceError'; +export * from './storedValueBalanceCheckRequest'; +export * from './storedValueBalanceCheckResponse'; +export * from './storedValueBalanceMergeRequest'; +export * from './storedValueBalanceMergeResponse'; +export * from './storedValueIssueRequest'; +export * from './storedValueIssueResponse'; +export * from './storedValueLoadRequest'; +export * from './storedValueLoadResponse'; +export * from './storedValueStatusChangeRequest'; +export * from './storedValueStatusChangeResponse'; +export * from './storedValueVoidRequest'; +export * from './storedValueVoidResponse'; + + +import { Amount } from './amount'; +import { ServiceError } from './serviceError'; +import { StoredValueBalanceCheckRequest } from './storedValueBalanceCheckRequest'; +import { StoredValueBalanceCheckResponse } from './storedValueBalanceCheckResponse'; +import { StoredValueBalanceMergeRequest } from './storedValueBalanceMergeRequest'; +import { StoredValueBalanceMergeResponse } from './storedValueBalanceMergeResponse'; +import { StoredValueIssueRequest } from './storedValueIssueRequest'; +import { StoredValueIssueResponse } from './storedValueIssueResponse'; +import { StoredValueLoadRequest } from './storedValueLoadRequest'; +import { StoredValueLoadResponse } from './storedValueLoadResponse'; +import { StoredValueStatusChangeRequest } from './storedValueStatusChangeRequest'; +import { StoredValueStatusChangeResponse } from './storedValueStatusChangeResponse'; +import { StoredValueVoidRequest } from './storedValueVoidRequest'; +import { StoredValueVoidResponse } from './storedValueVoidResponse'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "StoredValueBalanceCheckRequest.ShopperInteractionEnum": StoredValueBalanceCheckRequest.ShopperInteractionEnum, + "StoredValueBalanceCheckResponse.ResultCodeEnum": StoredValueBalanceCheckResponse.ResultCodeEnum, + "StoredValueBalanceMergeRequest.ShopperInteractionEnum": StoredValueBalanceMergeRequest.ShopperInteractionEnum, + "StoredValueBalanceMergeResponse.ResultCodeEnum": StoredValueBalanceMergeResponse.ResultCodeEnum, + "StoredValueIssueRequest.ShopperInteractionEnum": StoredValueIssueRequest.ShopperInteractionEnum, + "StoredValueIssueResponse.ResultCodeEnum": StoredValueIssueResponse.ResultCodeEnum, + "StoredValueLoadRequest.LoadTypeEnum": StoredValueLoadRequest.LoadTypeEnum, + "StoredValueLoadRequest.ShopperInteractionEnum": StoredValueLoadRequest.ShopperInteractionEnum, + "StoredValueLoadResponse.ResultCodeEnum": StoredValueLoadResponse.ResultCodeEnum, + "StoredValueStatusChangeRequest.ShopperInteractionEnum": StoredValueStatusChangeRequest.ShopperInteractionEnum, + "StoredValueStatusChangeRequest.StatusEnum": StoredValueStatusChangeRequest.StatusEnum, + "StoredValueStatusChangeResponse.ResultCodeEnum": StoredValueStatusChangeResponse.ResultCodeEnum, + "StoredValueVoidResponse.ResultCodeEnum": StoredValueVoidResponse.ResultCodeEnum, +} + +let typeMap: {[index: string]: any} = { + "Amount": Amount, + "ServiceError": ServiceError, + "StoredValueBalanceCheckRequest": StoredValueBalanceCheckRequest, + "StoredValueBalanceCheckResponse": StoredValueBalanceCheckResponse, + "StoredValueBalanceMergeRequest": StoredValueBalanceMergeRequest, + "StoredValueBalanceMergeResponse": StoredValueBalanceMergeResponse, + "StoredValueIssueRequest": StoredValueIssueRequest, + "StoredValueIssueResponse": StoredValueIssueResponse, + "StoredValueLoadRequest": StoredValueLoadRequest, + "StoredValueLoadResponse": StoredValueLoadResponse, + "StoredValueStatusChangeRequest": StoredValueStatusChangeRequest, + "StoredValueStatusChangeResponse": StoredValueStatusChangeResponse, + "StoredValueVoidRequest": StoredValueVoidRequest, + "StoredValueVoidResponse": StoredValueVoidResponse, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/storedValue/objectSerializer.ts b/src/typings/storedValue/objectSerializer.ts deleted file mode 100644 index 1485c6bf1..000000000 --- a/src/typings/storedValue/objectSerializer.ts +++ /dev/null @@ -1,384 +0,0 @@ -export * from "./models"; - -import { Amount } from "./amount"; -import { ServiceError } from "./serviceError"; -import { StoredValueBalanceCheckRequest } from "./storedValueBalanceCheckRequest"; -import { StoredValueBalanceCheckResponse } from "./storedValueBalanceCheckResponse"; -import { StoredValueBalanceMergeRequest } from "./storedValueBalanceMergeRequest"; -import { StoredValueBalanceMergeResponse } from "./storedValueBalanceMergeResponse"; -import { StoredValueIssueRequest } from "./storedValueIssueRequest"; -import { StoredValueIssueResponse } from "./storedValueIssueResponse"; -import { StoredValueLoadRequest } from "./storedValueLoadRequest"; -import { StoredValueLoadResponse } from "./storedValueLoadResponse"; -import { StoredValueStatusChangeRequest } from "./storedValueStatusChangeRequest"; -import { StoredValueStatusChangeResponse } from "./storedValueStatusChangeResponse"; -import { StoredValueVoidRequest } from "./storedValueVoidRequest"; -import { StoredValueVoidResponse } from "./storedValueVoidResponse"; - -/* tslint:disable:no-unused-variable */ -let primitives = [ - "string", - "boolean", - "double", - "integer", - "long", - "float", - "number", - "any" - ]; - -let enumsMap: Set = new Set([ - "StoredValueBalanceCheckRequest.ShopperInteractionEnum", - "StoredValueBalanceCheckResponse.ResultCodeEnum", - "StoredValueBalanceMergeRequest.ShopperInteractionEnum", - "StoredValueBalanceMergeResponse.ResultCodeEnum", - "StoredValueIssueRequest.ShopperInteractionEnum", - "StoredValueIssueResponse.ResultCodeEnum", - "StoredValueLoadRequest.LoadTypeEnum", - "StoredValueLoadRequest.ShopperInteractionEnum", - "StoredValueLoadResponse.ResultCodeEnum", - "StoredValueStatusChangeRequest.ShopperInteractionEnum", - "StoredValueStatusChangeRequest.StatusEnum", - "StoredValueStatusChangeResponse.ResultCodeEnum", - "StoredValueVoidResponse.ResultCodeEnum", -]); - -let typeMap: {[index: string]: any} = { - "Amount": Amount, - "ServiceError": ServiceError, - "StoredValueBalanceCheckRequest": StoredValueBalanceCheckRequest, - "StoredValueBalanceCheckResponse": StoredValueBalanceCheckResponse, - "StoredValueBalanceMergeRequest": StoredValueBalanceMergeRequest, - "StoredValueBalanceMergeResponse": StoredValueBalanceMergeResponse, - "StoredValueIssueRequest": StoredValueIssueRequest, - "StoredValueIssueResponse": StoredValueIssueResponse, - "StoredValueLoadRequest": StoredValueLoadRequest, - "StoredValueLoadResponse": StoredValueLoadResponse, - "StoredValueStatusChangeRequest": StoredValueStatusChangeRequest, - "StoredValueStatusChangeResponse": StoredValueStatusChangeResponse, - "StoredValueVoidRequest": StoredValueVoidRequest, - "StoredValueVoidResponse": StoredValueVoidResponse, -} - -type MimeTypeDescriptor = { - type: string; - subtype: string; - subtypeTokens: string[]; -}; - -/** - * Every mime-type consists of a type, subtype, and optional parameters. - * The subtype can be composite, including information about the content format. - * For example: `application/json-patch+json`, `application/merge-patch+json`. - * - * This helper transforms a string mime-type into an internal representation. - * This simplifies the implementation of predicates that in turn define common rules for parsing or stringifying - * the payload. - */ -const parseMimeType = (mimeType: string): MimeTypeDescriptor => { - const [type = '', subtype = ''] = mimeType.split('/'); - return { - type, - subtype, - subtypeTokens: subtype.split('+'), - }; -}; - -type MimeTypePredicate = (mimeType: string) => boolean; - -// This factory creates a predicate function that checks a string mime-type against defined rules. -const mimeTypePredicateFactory = (predicate: (descriptor: MimeTypeDescriptor) => boolean): MimeTypePredicate => (mimeType) => predicate(parseMimeType(mimeType)); - -// Use this factory when you need to define a simple predicate based only on type and, if applicable, subtype. -const mimeTypeSimplePredicateFactory = (type: string, subtype?: string): MimeTypePredicate => mimeTypePredicateFactory((descriptor) => { - if (descriptor.type !== type) return false; - if (subtype != null && descriptor.subtype !== subtype) return false; - return true; -}); - -// Creating a set of named predicates that will help us determine how to handle different mime-types -const isTextLikeMimeType = mimeTypeSimplePredicateFactory('text'); -const isJsonMimeType = mimeTypeSimplePredicateFactory('application', 'json'); -const isJsonLikeMimeType = mimeTypePredicateFactory((descriptor) => descriptor.type === 'application' && descriptor.subtypeTokens.some((item) => item === 'json')); -const isOctetStreamMimeType = mimeTypeSimplePredicateFactory('application', 'octet-stream'); -const isFormUrlencodedMimeType = mimeTypeSimplePredicateFactory('application', 'x-www-form-urlencoded'); - -// Defining a list of mime-types in the order of prioritization for handling. -const supportedMimeTypePredicatesWithPriority: MimeTypePredicate[] = [ - isJsonMimeType, - isJsonLikeMimeType, - isTextLikeMimeType, - isOctetStreamMimeType, - isFormUrlencodedMimeType, -]; - -const nullableSuffix = " | null"; -const optionalSuffix = " | undefined"; -const arrayPrefix = "Array<"; -const arraySuffix = ">"; -const mapPrefix = "{ [key: string]: "; -const mapSuffix = "; }"; - -export class ObjectSerializer { - public static findCorrectType(data: any, expectedType: string) { - if (data == undefined) { - return expectedType; - } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { - return expectedType; - } else if (expectedType === "Date") { - return expectedType; - } else { - if (enumsMap.has(expectedType)) { - return expectedType; - } - - if (!typeMap[expectedType]) { - return expectedType; // w/e we don't know the type - } - - // Check the discriminator - let discriminatorProperty = typeMap[expectedType].discriminator; - if (discriminatorProperty == null) { - return expectedType; // the type does not have a discriminator. use it. - } else { - if (data[discriminatorProperty]) { - var discriminatorType = data[discriminatorProperty]; - let mapping = typeMap[expectedType].mapping; - if (mapping != undefined && mapping[discriminatorType]) { - return mapping[discriminatorType]; // use the type given in the discriminator - } else if(typeMap[discriminatorType]) { - return discriminatorType; - } else { - return expectedType; // discriminator did not map to a type - } - } else { - return expectedType; // discriminator was not present (or an empty string) - } - } - } - } - - /** - * Serializes a value into a plain JSON-compatible object based on its type. - * - * Supports primitives, arrays, maps, dates, enums, and classes defined in `typeMap`. - * Falls back to raw data if type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The value to serialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A JSON-compatible representation of `data`. - */ - public static serialize(data: any, type: string, format: string = ""): any { - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.serialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.serialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - if (format == "date") { - let month = data.getMonth()+1 - month = month < 10 ? "0" + month.toString() : month.toString() - let day = data.getDate(); - day = day < 10 ? "0" + day.toString() : day.toString(); - - return data.getFullYear() + "-" + month + "-" + day; - } else { - return data.toISOString(); - } - } else { - if (enumsMap.has(type)) { - return data; - } - if (!typeMap[type]) { // in case we dont know the type - return data; - } - - // Get the actual type of this object - type = this.findCorrectType(data, type); - - const clazz = typeMap[type]; - - // Safe check for getAttributeTypeMap - if (typeof clazz.getAttributeTypeMap !== "function") { - return { ...data }; // fallback: shallow copy - } - - // get the map for the correct type. - let attributeTypes = typeMap[type].getAttributeTypeMap(); - let instance: {[index: string]: any} = {}; - for (let attributeType of attributeTypes) { - instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format); - } - return instance; - } - } - - /** - * Deserializes a plain JSON-compatible object into a typed instance. - * - * Handles primitives, arrays, maps, dates, enums, and known classes from `typeMap`. - * Uses discriminators when available to resolve polymorphic types. - * Falls back to raw data if the type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The raw input to deserialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A deserialized instance or value of `data`. - */ - public static deserialize(data: any, type: string, format: string = ""): any { - // polymorphism may change the actual type. - type = ObjectSerializer.findCorrectType(data, type); - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.deserialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.deserialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - return new Date(data); - } else { - if (enumsMap.has(type)) {// is Enum - return data; - } - - if (!typeMap[type]) { // dont know the type - return data; - } - let instance = new typeMap[type](); - - // Safe check for getAttributeTypeMap - if (typeof typeMap[type].getAttributeTypeMap !== "function") { - Object.assign(instance, data); // fallback: shallow copy - return instance; - } - - let attributeTypes = typeMap[type].getAttributeTypeMap(); - for (let attributeType of attributeTypes) { - let value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format); - if (value !== undefined) { - instance[attributeType.name] = value; - } - } - return instance; - } - } - - - /** - * Normalize media type - * - * We currently do not handle any media types attributes, i.e. anything - * after a semicolon. All content is assumed to be UTF-8 compatible. - */ - public static normalizeMediaType(mediaType: string | undefined): string | undefined { - if (mediaType === undefined) { - return undefined; - } - return (mediaType.split(";")[0] ?? '').trim().toLowerCase(); - } - - /** - * From a list of possible media types, choose the one we can handle best. - * - * The order of the given media types does not have any impact on the choice - * made. - */ - public static getPreferredMediaType(mediaTypes: Array): string { - /** According to OAS 3 we should default to json */ - if (mediaTypes.length === 0) { - return "application/json"; - } - - const normalMediaTypes = mediaTypes.map(ObjectSerializer.normalizeMediaType); - - for (const predicate of supportedMimeTypePredicatesWithPriority) { - for (const mediaType of normalMediaTypes) { - if (mediaType != null && predicate(mediaType)) { - return mediaType; - } - } - } - - throw new Error("None of the given media types are supported: " + mediaTypes.join(", ")); - } - - /** - * Convert data to a string according the given media type - */ - public static stringify(data: any, mediaType: string): string { - if (isTextLikeMimeType(mediaType)) { - return String(data); - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.stringify(data); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify."); - } - - /** - * Parse data from a string according to the given media type - */ - public static parse(rawData: string, mediaType: string | undefined) { - if (mediaType === undefined) { - throw new Error("Cannot parse content. No Content-Type defined."); - } - - if (isTextLikeMimeType(mediaType)) { - return rawData; - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.parse(rawData); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse."); - } -} diff --git a/src/typings/storedValue/serviceError.ts b/src/typings/storedValue/serviceError.ts index 270f90ff2..f1116dd22 100644 --- a/src/typings/storedValue/serviceError.ts +++ b/src/typings/storedValue/serviceError.ts @@ -12,75 +12,64 @@ export class ServiceError { /** * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. */ - "additionalData"?: { [key: string]: string; }; + 'additionalData'?: { [key: string]: string; }; /** * The error code mapped to the error message. */ - "errorCode"?: string; + 'errorCode'?: string; /** * The category of the error. */ - "errorType"?: string; + 'errorType'?: string; /** * A short explanation of the issue. */ - "message"?: string; + 'message'?: string; /** * The PSP reference of the payment. */ - "pspReference"?: string; + 'pspReference'?: string; /** * The HTTP response status. */ - "status"?: number; + 'status'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "additionalData", "baseName": "additionalData", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "errorCode", "baseName": "errorCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "errorType", "baseName": "errorType", - "type": "string", - "format": "" + "type": "string" }, { "name": "message", "baseName": "message", - "type": "string", - "format": "" + "type": "string" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return ServiceError.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/storedValue/storedValueBalanceCheckRequest.ts b/src/typings/storedValue/storedValueBalanceCheckRequest.ts index a82bacb5b..70dde2ec7 100644 --- a/src/typings/storedValue/storedValueBalanceCheckRequest.ts +++ b/src/typings/storedValue/storedValueBalanceCheckRequest.ts @@ -7,94 +7,80 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class StoredValueBalanceCheckRequest { - "amount"?: Amount; + 'amount'?: Amount | null; /** * The merchant account identifier, with which you want to process the transaction. */ - "merchantAccount": string; + 'merchantAccount': string; /** * The collection that contains the type of the payment method and its specific information if available */ - "paymentMethod": { [key: string]: string; }; - "recurringDetailReference"?: string; + 'paymentMethod': { [key: string]: string; }; + 'recurringDetailReference'?: string; /** * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ - "reference": string; + 'reference': string; /** * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ - "shopperInteraction"?: StoredValueBalanceCheckRequest.ShopperInteractionEnum; - "shopperReference"?: string; + 'shopperInteraction'?: StoredValueBalanceCheckRequest.ShopperInteractionEnum; + 'shopperReference'?: string; /** * The physical store, for which this payment is processed. */ - "store"?: string; - - static readonly discriminator: string | undefined = undefined; + 'store'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMethod", "baseName": "paymentMethod", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperInteraction", "baseName": "shopperInteraction", - "type": "StoredValueBalanceCheckRequest.ShopperInteractionEnum", - "format": "" + "type": "StoredValueBalanceCheckRequest.ShopperInteractionEnum" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "store", "baseName": "store", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return StoredValueBalanceCheckRequest.attributeTypeMap; } - - public constructor() { - } } export namespace StoredValueBalanceCheckRequest { diff --git a/src/typings/storedValue/storedValueBalanceCheckResponse.ts b/src/typings/storedValue/storedValueBalanceCheckResponse.ts index f2573d9c6..3e5b40215 100644 --- a/src/typings/storedValue/storedValueBalanceCheckResponse.ts +++ b/src/typings/storedValue/storedValueBalanceCheckResponse.ts @@ -7,70 +7,59 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class StoredValueBalanceCheckResponse { - "currentBalance"?: Amount; + 'currentBalance'?: Amount | 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. */ - "pspReference"?: string; + 'pspReference'?: string; /** * If the transaction is refused or an error occurs, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. */ - "refusalReason"?: string; + 'refusalReason'?: string; /** * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. */ - "resultCode"?: StoredValueBalanceCheckResponse.ResultCodeEnum; + 'resultCode'?: StoredValueBalanceCheckResponse.ResultCodeEnum; /** * Raw refusal reason received from the third party, where available */ - "thirdPartyRefusalReason"?: string; - - static readonly discriminator: string | undefined = undefined; + 'thirdPartyRefusalReason'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currentBalance", "baseName": "currentBalance", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "refusalReason", "baseName": "refusalReason", - "type": "string", - "format": "" + "type": "string" }, { "name": "resultCode", "baseName": "resultCode", - "type": "StoredValueBalanceCheckResponse.ResultCodeEnum", - "format": "" + "type": "StoredValueBalanceCheckResponse.ResultCodeEnum" }, { "name": "thirdPartyRefusalReason", "baseName": "thirdPartyRefusalReason", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return StoredValueBalanceCheckResponse.attributeTypeMap; } - - public constructor() { - } } export namespace StoredValueBalanceCheckResponse { diff --git a/src/typings/storedValue/storedValueBalanceMergeRequest.ts b/src/typings/storedValue/storedValueBalanceMergeRequest.ts index 6af08bbb0..a75bea37e 100644 --- a/src/typings/storedValue/storedValueBalanceMergeRequest.ts +++ b/src/typings/storedValue/storedValueBalanceMergeRequest.ts @@ -7,104 +7,89 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class StoredValueBalanceMergeRequest { - "amount"?: Amount; + 'amount'?: Amount | null; /** * The merchant account identifier, with which you want to process the transaction. */ - "merchantAccount": string; + 'merchantAccount': string; /** * The collection that contains the type of the payment method and its specific information if available */ - "paymentMethod": { [key: string]: string; }; - "recurringDetailReference"?: string; + 'paymentMethod': { [key: string]: string; }; + 'recurringDetailReference'?: string; /** * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ - "reference": string; + 'reference': string; /** * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ - "shopperInteraction"?: StoredValueBalanceMergeRequest.ShopperInteractionEnum; - "shopperReference"?: string; + 'shopperInteraction'?: StoredValueBalanceMergeRequest.ShopperInteractionEnum; + 'shopperReference'?: string; /** * The collection that contains the source payment method and its specific information if available. Note that type should not be included since it is inferred from the (target) payment method */ - "sourcePaymentMethod": { [key: string]: string; }; + 'sourcePaymentMethod': { [key: string]: string; }; /** * The physical store, for which this payment is processed. */ - "store"?: string; - - static readonly discriminator: string | undefined = undefined; + 'store'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMethod", "baseName": "paymentMethod", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperInteraction", "baseName": "shopperInteraction", - "type": "StoredValueBalanceMergeRequest.ShopperInteractionEnum", - "format": "" + "type": "StoredValueBalanceMergeRequest.ShopperInteractionEnum" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "sourcePaymentMethod", "baseName": "sourcePaymentMethod", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "store", "baseName": "store", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return StoredValueBalanceMergeRequest.attributeTypeMap; } - - public constructor() { - } } export namespace StoredValueBalanceMergeRequest { diff --git a/src/typings/storedValue/storedValueBalanceMergeResponse.ts b/src/typings/storedValue/storedValueBalanceMergeResponse.ts index 924d347c7..e8aafdbba 100644 --- a/src/typings/storedValue/storedValueBalanceMergeResponse.ts +++ b/src/typings/storedValue/storedValueBalanceMergeResponse.ts @@ -7,80 +7,68 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class StoredValueBalanceMergeResponse { /** * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. */ - "authCode"?: string; - "currentBalance"?: Amount; + 'authCode'?: string; + 'currentBalance'?: Amount | 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. */ - "pspReference"?: string; + 'pspReference'?: string; /** * If the transaction is refused or an error occurs, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. */ - "refusalReason"?: string; + 'refusalReason'?: string; /** * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. */ - "resultCode"?: StoredValueBalanceMergeResponse.ResultCodeEnum; + 'resultCode'?: StoredValueBalanceMergeResponse.ResultCodeEnum; /** * Raw refusal reason received from the third party, where available */ - "thirdPartyRefusalReason"?: string; - - static readonly discriminator: string | undefined = undefined; + 'thirdPartyRefusalReason'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "authCode", "baseName": "authCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "currentBalance", "baseName": "currentBalance", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "refusalReason", "baseName": "refusalReason", - "type": "string", - "format": "" + "type": "string" }, { "name": "resultCode", "baseName": "resultCode", - "type": "StoredValueBalanceMergeResponse.ResultCodeEnum", - "format": "" + "type": "StoredValueBalanceMergeResponse.ResultCodeEnum" }, { "name": "thirdPartyRefusalReason", "baseName": "thirdPartyRefusalReason", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return StoredValueBalanceMergeResponse.attributeTypeMap; } - - public constructor() { - } } export namespace StoredValueBalanceMergeResponse { diff --git a/src/typings/storedValue/storedValueIssueRequest.ts b/src/typings/storedValue/storedValueIssueRequest.ts index 141aee488..b83130538 100644 --- a/src/typings/storedValue/storedValueIssueRequest.ts +++ b/src/typings/storedValue/storedValueIssueRequest.ts @@ -7,94 +7,80 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class StoredValueIssueRequest { - "amount"?: Amount; + 'amount'?: Amount | null; /** * The merchant account identifier, with which you want to process the transaction. */ - "merchantAccount": string; + 'merchantAccount': string; /** * The collection that contains the type of the payment method and its specific information if available */ - "paymentMethod": { [key: string]: string; }; - "recurringDetailReference"?: string; + 'paymentMethod': { [key: string]: string; }; + 'recurringDetailReference'?: string; /** * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ - "reference": string; + 'reference': string; /** * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ - "shopperInteraction"?: StoredValueIssueRequest.ShopperInteractionEnum; - "shopperReference"?: string; + 'shopperInteraction'?: StoredValueIssueRequest.ShopperInteractionEnum; + 'shopperReference'?: string; /** * The physical store, for which this payment is processed. */ - "store"?: string; - - static readonly discriminator: string | undefined = undefined; + 'store'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMethod", "baseName": "paymentMethod", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperInteraction", "baseName": "shopperInteraction", - "type": "StoredValueIssueRequest.ShopperInteractionEnum", - "format": "" + "type": "StoredValueIssueRequest.ShopperInteractionEnum" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "store", "baseName": "store", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return StoredValueIssueRequest.attributeTypeMap; } - - public constructor() { - } } export namespace StoredValueIssueRequest { diff --git a/src/typings/storedValue/storedValueIssueResponse.ts b/src/typings/storedValue/storedValueIssueResponse.ts index 657cb3ece..33ff163a5 100644 --- a/src/typings/storedValue/storedValueIssueResponse.ts +++ b/src/typings/storedValue/storedValueIssueResponse.ts @@ -7,90 +7,77 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class StoredValueIssueResponse { /** * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. */ - "authCode"?: string; - "currentBalance"?: Amount; + 'authCode'?: string; + 'currentBalance'?: Amount | null; /** * The collection that contains the type of the payment method and its specific information if available */ - "paymentMethod"?: { [key: string]: string; }; + 'paymentMethod'?: { [key: string]: string; }; /** * 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. */ - "pspReference"?: string; + 'pspReference'?: string; /** * If the transaction is refused or an error occurs, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. */ - "refusalReason"?: string; + 'refusalReason'?: string; /** * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. */ - "resultCode"?: StoredValueIssueResponse.ResultCodeEnum; + 'resultCode'?: StoredValueIssueResponse.ResultCodeEnum; /** * Raw refusal reason received from the third party, where available */ - "thirdPartyRefusalReason"?: string; - - static readonly discriminator: string | undefined = undefined; + 'thirdPartyRefusalReason'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "authCode", "baseName": "authCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "currentBalance", "baseName": "currentBalance", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "paymentMethod", "baseName": "paymentMethod", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "refusalReason", "baseName": "refusalReason", - "type": "string", - "format": "" + "type": "string" }, { "name": "resultCode", "baseName": "resultCode", - "type": "StoredValueIssueResponse.ResultCodeEnum", - "format": "" + "type": "StoredValueIssueResponse.ResultCodeEnum" }, { "name": "thirdPartyRefusalReason", "baseName": "thirdPartyRefusalReason", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return StoredValueIssueResponse.attributeTypeMap; } - - public constructor() { - } } export namespace StoredValueIssueResponse { diff --git a/src/typings/storedValue/storedValueLoadRequest.ts b/src/typings/storedValue/storedValueLoadRequest.ts index c95067273..56f728dc4 100644 --- a/src/typings/storedValue/storedValueLoadRequest.ts +++ b/src/typings/storedValue/storedValueLoadRequest.ts @@ -7,104 +7,89 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class StoredValueLoadRequest { - "amount": Amount; + 'amount': Amount; /** * The type of load you are trying to do, when absent we default to \'Load\' */ - "loadType"?: StoredValueLoadRequest.LoadTypeEnum; + 'loadType'?: StoredValueLoadRequest.LoadTypeEnum; /** * The merchant account identifier, with which you want to process the transaction. */ - "merchantAccount": string; + 'merchantAccount': string; /** * The collection that contains the type of the payment method and its specific information if available */ - "paymentMethod": { [key: string]: string; }; - "recurringDetailReference"?: string; + 'paymentMethod': { [key: string]: string; }; + 'recurringDetailReference'?: string; /** * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ - "reference": string; + 'reference': string; /** * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ - "shopperInteraction"?: StoredValueLoadRequest.ShopperInteractionEnum; - "shopperReference"?: string; + 'shopperInteraction'?: StoredValueLoadRequest.ShopperInteractionEnum; + 'shopperReference'?: string; /** * The physical store, for which this payment is processed. */ - "store"?: string; - - static readonly discriminator: string | undefined = undefined; + 'store'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "loadType", "baseName": "loadType", - "type": "StoredValueLoadRequest.LoadTypeEnum", - "format": "" + "type": "StoredValueLoadRequest.LoadTypeEnum" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMethod", "baseName": "paymentMethod", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperInteraction", "baseName": "shopperInteraction", - "type": "StoredValueLoadRequest.ShopperInteractionEnum", - "format": "" + "type": "StoredValueLoadRequest.ShopperInteractionEnum" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "store", "baseName": "store", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return StoredValueLoadRequest.attributeTypeMap; } - - public constructor() { - } } export namespace StoredValueLoadRequest { diff --git a/src/typings/storedValue/storedValueLoadResponse.ts b/src/typings/storedValue/storedValueLoadResponse.ts index 8b13d14d8..076d70322 100644 --- a/src/typings/storedValue/storedValueLoadResponse.ts +++ b/src/typings/storedValue/storedValueLoadResponse.ts @@ -7,80 +7,68 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class StoredValueLoadResponse { /** * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. */ - "authCode"?: string; - "currentBalance"?: Amount; + 'authCode'?: string; + 'currentBalance'?: Amount | 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. */ - "pspReference"?: string; + 'pspReference'?: string; /** * If the transaction is refused or an error occurs, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. */ - "refusalReason"?: string; + 'refusalReason'?: string; /** * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. */ - "resultCode"?: StoredValueLoadResponse.ResultCodeEnum; + 'resultCode'?: StoredValueLoadResponse.ResultCodeEnum; /** * Raw refusal reason received from the third party, where available */ - "thirdPartyRefusalReason"?: string; - - static readonly discriminator: string | undefined = undefined; + 'thirdPartyRefusalReason'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "authCode", "baseName": "authCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "currentBalance", "baseName": "currentBalance", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "refusalReason", "baseName": "refusalReason", - "type": "string", - "format": "" + "type": "string" }, { "name": "resultCode", "baseName": "resultCode", - "type": "StoredValueLoadResponse.ResultCodeEnum", - "format": "" + "type": "StoredValueLoadResponse.ResultCodeEnum" }, { "name": "thirdPartyRefusalReason", "baseName": "thirdPartyRefusalReason", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return StoredValueLoadResponse.attributeTypeMap; } - - public constructor() { - } } export namespace StoredValueLoadResponse { diff --git a/src/typings/storedValue/storedValueStatusChangeRequest.ts b/src/typings/storedValue/storedValueStatusChangeRequest.ts index 2d2b6611e..10efa8cdd 100644 --- a/src/typings/storedValue/storedValueStatusChangeRequest.ts +++ b/src/typings/storedValue/storedValueStatusChangeRequest.ts @@ -7,104 +7,89 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class StoredValueStatusChangeRequest { - "amount"?: Amount; + 'amount'?: Amount | null; /** * The merchant account identifier, with which you want to process the transaction. */ - "merchantAccount": string; + 'merchantAccount': string; /** * The collection that contains the type of the payment method and its specific information if available */ - "paymentMethod": { [key: string]: string; }; - "recurringDetailReference"?: string; + 'paymentMethod': { [key: string]: string; }; + 'recurringDetailReference'?: string; /** * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ - "reference": string; + 'reference': string; /** * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ - "shopperInteraction"?: StoredValueStatusChangeRequest.ShopperInteractionEnum; - "shopperReference"?: string; + 'shopperInteraction'?: StoredValueStatusChangeRequest.ShopperInteractionEnum; + 'shopperReference'?: string; /** * The status you want to change to */ - "status": StoredValueStatusChangeRequest.StatusEnum; + 'status': StoredValueStatusChangeRequest.StatusEnum; /** * The physical store, for which this payment is processed. */ - "store"?: string; - - static readonly discriminator: string | undefined = undefined; + 'store'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMethod", "baseName": "paymentMethod", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "recurringDetailReference", "baseName": "recurringDetailReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "shopperInteraction", "baseName": "shopperInteraction", - "type": "StoredValueStatusChangeRequest.ShopperInteractionEnum", - "format": "" + "type": "StoredValueStatusChangeRequest.ShopperInteractionEnum" }, { "name": "shopperReference", "baseName": "shopperReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "StoredValueStatusChangeRequest.StatusEnum", - "format": "" + "type": "StoredValueStatusChangeRequest.StatusEnum" }, { "name": "store", "baseName": "store", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return StoredValueStatusChangeRequest.attributeTypeMap; } - - public constructor() { - } } export namespace StoredValueStatusChangeRequest { diff --git a/src/typings/storedValue/storedValueStatusChangeResponse.ts b/src/typings/storedValue/storedValueStatusChangeResponse.ts index 25b57a76b..722e5830e 100644 --- a/src/typings/storedValue/storedValueStatusChangeResponse.ts +++ b/src/typings/storedValue/storedValueStatusChangeResponse.ts @@ -7,80 +7,68 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class StoredValueStatusChangeResponse { /** * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. */ - "authCode"?: string; - "currentBalance"?: Amount; + 'authCode'?: string; + 'currentBalance'?: Amount | 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. */ - "pspReference"?: string; + 'pspReference'?: string; /** * If the transaction is refused or an error occurs, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. */ - "refusalReason"?: string; + 'refusalReason'?: string; /** * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. */ - "resultCode"?: StoredValueStatusChangeResponse.ResultCodeEnum; + 'resultCode'?: StoredValueStatusChangeResponse.ResultCodeEnum; /** * Raw refusal reason received from the third party, where available */ - "thirdPartyRefusalReason"?: string; - - static readonly discriminator: string | undefined = undefined; + 'thirdPartyRefusalReason'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "authCode", "baseName": "authCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "currentBalance", "baseName": "currentBalance", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "refusalReason", "baseName": "refusalReason", - "type": "string", - "format": "" + "type": "string" }, { "name": "resultCode", "baseName": "resultCode", - "type": "StoredValueStatusChangeResponse.ResultCodeEnum", - "format": "" + "type": "StoredValueStatusChangeResponse.ResultCodeEnum" }, { "name": "thirdPartyRefusalReason", "baseName": "thirdPartyRefusalReason", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return StoredValueStatusChangeResponse.attributeTypeMap; } - - public constructor() { - } } export namespace StoredValueStatusChangeResponse { diff --git a/src/typings/storedValue/storedValueVoidRequest.ts b/src/typings/storedValue/storedValueVoidRequest.ts index 5d8b616f0..3f50b9d9e 100644 --- a/src/typings/storedValue/storedValueVoidRequest.ts +++ b/src/typings/storedValue/storedValueVoidRequest.ts @@ -12,75 +12,64 @@ export class StoredValueVoidRequest { /** * The merchant account identifier, with which you want to process the transaction. */ - "merchantAccount": string; + 'merchantAccount': string; /** * The original pspReference of the payment to modify. */ - "originalReference": string; + 'originalReference': string; /** * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ - "reference"?: string; + 'reference'?: string; /** * The physical store, for which this payment is processed. */ - "store"?: string; + 'store'?: string; /** * The reference of the tender. */ - "tenderReference"?: string; + 'tenderReference'?: string; /** * The unique ID of a POS terminal. */ - "uniqueTerminalId"?: string; + 'uniqueTerminalId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "merchantAccount", "baseName": "merchantAccount", - "type": "string", - "format": "" + "type": "string" }, { "name": "originalReference", "baseName": "originalReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "store", "baseName": "store", - "type": "string", - "format": "" + "type": "string" }, { "name": "tenderReference", "baseName": "tenderReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "uniqueTerminalId", "baseName": "uniqueTerminalId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return StoredValueVoidRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/storedValue/storedValueVoidResponse.ts b/src/typings/storedValue/storedValueVoidResponse.ts index abb33d390..d671f894d 100644 --- a/src/typings/storedValue/storedValueVoidResponse.ts +++ b/src/typings/storedValue/storedValueVoidResponse.ts @@ -7,70 +7,59 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class StoredValueVoidResponse { - "currentBalance"?: Amount; + 'currentBalance'?: Amount | 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. */ - "pspReference"?: string; + 'pspReference'?: string; /** * If the transaction is refused or an error occurs, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. */ - "refusalReason"?: string; + 'refusalReason'?: string; /** * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. */ - "resultCode"?: StoredValueVoidResponse.ResultCodeEnum; + 'resultCode'?: StoredValueVoidResponse.ResultCodeEnum; /** * Raw refusal reason received from the third party, where available */ - "thirdPartyRefusalReason"?: string; - - static readonly discriminator: string | undefined = undefined; + 'thirdPartyRefusalReason'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currentBalance", "baseName": "currentBalance", - "type": "Amount", - "format": "" + "type": "Amount | null" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "refusalReason", "baseName": "refusalReason", - "type": "string", - "format": "" + "type": "string" }, { "name": "resultCode", "baseName": "resultCode", - "type": "StoredValueVoidResponse.ResultCodeEnum", - "format": "" + "type": "StoredValueVoidResponse.ResultCodeEnum" }, { "name": "thirdPartyRefusalReason", "baseName": "thirdPartyRefusalReason", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return StoredValueVoidResponse.attributeTypeMap; } - - public constructor() { - } } export namespace StoredValueVoidResponse { diff --git a/src/typings/transactionWebhooks/amount.ts b/src/typings/transactionWebhooks/amount.ts index cd1649aa4..aea19ca38 100644 --- a/src/typings/transactionWebhooks/amount.ts +++ b/src/typings/transactionWebhooks/amount.ts @@ -12,35 +12,28 @@ export class Amount { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ - "currency": string; + 'currency': string; /** * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ - "value": number; + 'value': number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "number", - "format": "int64" + "type": "number" } ]; static getAttributeTypeMap() { return Amount.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transactionWebhooks/balancePlatformNotificationResponse.ts b/src/typings/transactionWebhooks/balancePlatformNotificationResponse.ts index cdc77073e..3b98b5583 100644 --- a/src/typings/transactionWebhooks/balancePlatformNotificationResponse.ts +++ b/src/typings/transactionWebhooks/balancePlatformNotificationResponse.ts @@ -12,25 +12,19 @@ export class BalancePlatformNotificationResponse { /** * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). */ - "notificationResponse"?: string; + 'notificationResponse'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "notificationResponse", "baseName": "notificationResponse", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return BalancePlatformNotificationResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transactionWebhooks/bankCategoryData.ts b/src/typings/transactionWebhooks/bankCategoryData.ts index a76048a6d..e1c9a7279 100644 --- a/src/typings/transactionWebhooks/bankCategoryData.ts +++ b/src/typings/transactionWebhooks/bankCategoryData.ts @@ -10,38 +10,31 @@ export class BankCategoryData { /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. 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 in [SEPA countries](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. Required for transfers with `category` **bank**. 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"?: BankCategoryData.PriorityEnum; + 'priority'?: BankCategoryData.PriorityEnum; /** * **bank** */ - "type"?: BankCategoryData.TypeEnum; + 'type'?: BankCategoryData.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "priority", "baseName": "priority", - "type": "BankCategoryData.PriorityEnum", - "format": "" + "type": "BankCategoryData.PriorityEnum" }, { "name": "type", "baseName": "type", - "type": "BankCategoryData.TypeEnum", - "format": "" + "type": "BankCategoryData.TypeEnum" } ]; static getAttributeTypeMap() { return BankCategoryData.attributeTypeMap; } - - public constructor() { - } } export namespace BankCategoryData { diff --git a/src/typings/transactionWebhooks/internalCategoryData.ts b/src/typings/transactionWebhooks/internalCategoryData.ts index bd7c5287b..205518bb5 100644 --- a/src/typings/transactionWebhooks/internalCategoryData.ts +++ b/src/typings/transactionWebhooks/internalCategoryData.ts @@ -12,46 +12,38 @@ export class InternalCategoryData { /** * The capture\'s merchant reference included in the transfer. */ - "modificationMerchantReference"?: string; + 'modificationMerchantReference'?: string; /** * The capture reference included in the transfer. */ - "modificationPspReference"?: string; + 'modificationPspReference'?: string; /** * **internal** */ - "type"?: InternalCategoryData.TypeEnum; + 'type'?: InternalCategoryData.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "modificationMerchantReference", "baseName": "modificationMerchantReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "modificationPspReference", "baseName": "modificationPspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "InternalCategoryData.TypeEnum", - "format": "" + "type": "InternalCategoryData.TypeEnum" } ]; static getAttributeTypeMap() { return InternalCategoryData.attributeTypeMap; } - - public constructor() { - } } export namespace InternalCategoryData { diff --git a/src/typings/transactionWebhooks/issuedCard.ts b/src/typings/transactionWebhooks/issuedCard.ts index 44d9c0d9c..2e8564bce 100644 --- a/src/typings/transactionWebhooks/issuedCard.ts +++ b/src/typings/transactionWebhooks/issuedCard.ts @@ -7,101 +7,94 @@ * Do not edit this class manually. */ -import { RelayedAuthorisationData } from "./relayedAuthorisationData"; -import { TransferNotificationValidationFact } from "./transferNotificationValidationFact"; - +import { RelayedAuthorisationData } from './relayedAuthorisationData'; +import { ThreeDSecure } from './threeDSecure'; +import { TransferNotificationValidationFact } from './transferNotificationValidationFact'; export class IssuedCard { /** * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** */ - "authorisationType"?: string; + 'authorisationType'?: string; /** * Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. */ - "panEntryMode"?: IssuedCard.PanEntryModeEnum; + 'panEntryMode'?: IssuedCard.PanEntryModeEnum; /** * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. */ - "processingType"?: IssuedCard.ProcessingTypeEnum; - "relayedAuthorisationData"?: RelayedAuthorisationData | null; + 'processingType'?: IssuedCard.ProcessingTypeEnum; + 'relayedAuthorisationData'?: RelayedAuthorisationData | null; /** * The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. */ - "schemeTraceId"?: string; + 'schemeTraceId'?: string; /** * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. */ - "schemeUniqueTransactionId"?: string; + 'schemeUniqueTransactionId'?: string; + 'threeDSecure'?: ThreeDSecure | null; /** * **issuedCard** */ - "type"?: IssuedCard.TypeEnum; + 'type'?: IssuedCard.TypeEnum; /** * The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. */ - "validationFacts"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'validationFacts'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "authorisationType", "baseName": "authorisationType", - "type": "string", - "format": "" + "type": "string" }, { "name": "panEntryMode", "baseName": "panEntryMode", - "type": "IssuedCard.PanEntryModeEnum", - "format": "" + "type": "IssuedCard.PanEntryModeEnum" }, { "name": "processingType", "baseName": "processingType", - "type": "IssuedCard.ProcessingTypeEnum", - "format": "" + "type": "IssuedCard.ProcessingTypeEnum" }, { "name": "relayedAuthorisationData", "baseName": "relayedAuthorisationData", - "type": "RelayedAuthorisationData | null", - "format": "" + "type": "RelayedAuthorisationData | null" }, { "name": "schemeTraceId", "baseName": "schemeTraceId", - "type": "string", - "format": "" + "type": "string" }, { "name": "schemeUniqueTransactionId", "baseName": "schemeUniqueTransactionId", - "type": "string", - "format": "" + "type": "string" + }, + { + "name": "threeDSecure", + "baseName": "threeDSecure", + "type": "ThreeDSecure | null" }, { "name": "type", "baseName": "type", - "type": "IssuedCard.TypeEnum", - "format": "" + "type": "IssuedCard.TypeEnum" }, { "name": "validationFacts", "baseName": "validationFacts", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return IssuedCard.attributeTypeMap; } - - public constructor() { - } } export namespace IssuedCard { diff --git a/src/typings/transactionWebhooks/models.ts b/src/typings/transactionWebhooks/models.ts index 7f8ba79d0..5293db990 100644 --- a/src/typings/transactionWebhooks/models.ts +++ b/src/typings/transactionWebhooks/models.ts @@ -1,18 +1,199 @@ -export * from "./amount" -export * from "./balancePlatformNotificationResponse" -export * from "./bankCategoryData" -export * from "./internalCategoryData" -export * from "./issuedCard" -export * from "./paymentInstrument" -export * from "./platformPayment" -export * from "./relayedAuthorisationData" -export * from "./resource" -export * from "./resourceReference" -export * from "./transaction" -export * from "./transactionNotificationRequestV4" -export * from "./transferNotificationValidationFact" -export * from "./transferView" -export * from "./transferViewCategoryData" - -// serializing and deserializing typed objects -export * from "./objectSerializer" \ No newline at end of file +/* + * The version of the OpenAPI document: v4 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export * from './amount'; +export * from './balancePlatformNotificationResponse'; +export * from './bankCategoryData'; +export * from './internalCategoryData'; +export * from './issuedCard'; +export * from './paymentInstrument'; +export * from './platformPayment'; +export * from './relayedAuthorisationData'; +export * from './resource'; +export * from './resourceReference'; +export * from './threeDSecure'; +export * from './transaction'; +export * from './transactionNotificationRequestV4'; +export * from './transferNotificationValidationFact'; +export * from './transferView'; + + +import { Amount } from './amount'; +import { BalancePlatformNotificationResponse } from './balancePlatformNotificationResponse'; +import { BankCategoryData } from './bankCategoryData'; +import { InternalCategoryData } from './internalCategoryData'; +import { IssuedCard } from './issuedCard'; +import { PaymentInstrument } from './paymentInstrument'; +import { PlatformPayment } from './platformPayment'; +import { RelayedAuthorisationData } from './relayedAuthorisationData'; +import { Resource } from './resource'; +import { ResourceReference } from './resourceReference'; +import { ThreeDSecure } from './threeDSecure'; +import { Transaction } from './transaction'; +import { TransactionNotificationRequestV4 } from './transactionNotificationRequestV4'; +import { TransferNotificationValidationFact } from './transferNotificationValidationFact'; +import { TransferView } from './transferView'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "BankCategoryData.PriorityEnum": BankCategoryData.PriorityEnum, + "BankCategoryData.TypeEnum": BankCategoryData.TypeEnum, + "InternalCategoryData.TypeEnum": InternalCategoryData.TypeEnum, + "IssuedCard.PanEntryModeEnum": IssuedCard.PanEntryModeEnum, + "IssuedCard.ProcessingTypeEnum": IssuedCard.ProcessingTypeEnum, + "IssuedCard.TypeEnum": IssuedCard.TypeEnum, + "PlatformPayment.PlatformPaymentTypeEnum": PlatformPayment.PlatformPaymentTypeEnum, + "PlatformPayment.TypeEnum": PlatformPayment.TypeEnum, + "Transaction.StatusEnum": Transaction.StatusEnum, + "TransactionNotificationRequestV4.TypeEnum": TransactionNotificationRequestV4.TypeEnum, +} + +let typeMap: {[index: string]: any} = { + "Amount": Amount, + "BalancePlatformNotificationResponse": BalancePlatformNotificationResponse, + "BankCategoryData": BankCategoryData, + "InternalCategoryData": InternalCategoryData, + "IssuedCard": IssuedCard, + "PaymentInstrument": PaymentInstrument, + "PlatformPayment": PlatformPayment, + "RelayedAuthorisationData": RelayedAuthorisationData, + "Resource": Resource, + "ResourceReference": ResourceReference, + "ThreeDSecure": ThreeDSecure, + "Transaction": Transaction, + "TransactionNotificationRequestV4": TransactionNotificationRequestV4, + "TransferNotificationValidationFact": TransferNotificationValidationFact, + "TransferView": TransferView, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/transactionWebhooks/objectSerializer.ts b/src/typings/transactionWebhooks/objectSerializer.ts deleted file mode 100644 index 20d93df24..000000000 --- a/src/typings/transactionWebhooks/objectSerializer.ts +++ /dev/null @@ -1,388 +0,0 @@ -export * from "./models"; - -import { Amount } from "./amount"; -import { BalancePlatformNotificationResponse } from "./balancePlatformNotificationResponse"; -import { BankCategoryData } from "./bankCategoryData"; -import { InternalCategoryData } from "./internalCategoryData"; -import { IssuedCard } from "./issuedCard"; -import { PaymentInstrument } from "./paymentInstrument"; -import { PlatformPayment } from "./platformPayment"; -import { RelayedAuthorisationData } from "./relayedAuthorisationData"; -import { Resource } from "./resource"; -import { ResourceReference } from "./resourceReference"; -import { Transaction } from "./transaction"; -import { TransactionNotificationRequestV4 } from "./transactionNotificationRequestV4"; -import { TransferNotificationValidationFact } from "./transferNotificationValidationFact"; -import { TransferView } from "./transferView"; -import { TransferViewCategoryDataClass } from "./transferViewCategoryData"; - -/* tslint:disable:no-unused-variable */ -let primitives = [ - "string", - "boolean", - "double", - "integer", - "long", - "float", - "number", - "any" - ]; - -let enumsMap: Set = new Set([ - "BankCategoryData.PriorityEnum", - "BankCategoryData.TypeEnum", - "InternalCategoryData.TypeEnum", - "IssuedCard.PanEntryModeEnum", - "IssuedCard.ProcessingTypeEnum", - "IssuedCard.TypeEnum", - "PlatformPayment.PlatformPaymentTypeEnum", - "PlatformPayment.TypeEnum", - "Transaction.StatusEnum", - "TransactionNotificationRequestV4.TypeEnum", - "TransferViewCategoryData.PriorityEnum", - "TransferViewCategoryData.TypeEnum", - "TransferViewCategoryData.PanEntryModeEnum", - "TransferViewCategoryData.ProcessingTypeEnum", - "TransferViewCategoryData.PlatformPaymentTypeEnum", -]); - -let typeMap: {[index: string]: any} = { - "Amount": Amount, - "BalancePlatformNotificationResponse": BalancePlatformNotificationResponse, - "BankCategoryData": BankCategoryData, - "InternalCategoryData": InternalCategoryData, - "IssuedCard": IssuedCard, - "PaymentInstrument": PaymentInstrument, - "PlatformPayment": PlatformPayment, - "RelayedAuthorisationData": RelayedAuthorisationData, - "Resource": Resource, - "ResourceReference": ResourceReference, - "Transaction": Transaction, - "TransactionNotificationRequestV4": TransactionNotificationRequestV4, - "TransferNotificationValidationFact": TransferNotificationValidationFact, - "TransferView": TransferView, - "TransferViewCategoryData": TransferViewCategoryDataClass, -} - -type MimeTypeDescriptor = { - type: string; - subtype: string; - subtypeTokens: string[]; -}; - -/** - * Every mime-type consists of a type, subtype, and optional parameters. - * The subtype can be composite, including information about the content format. - * For example: `application/json-patch+json`, `application/merge-patch+json`. - * - * This helper transforms a string mime-type into an internal representation. - * This simplifies the implementation of predicates that in turn define common rules for parsing or stringifying - * the payload. - */ -const parseMimeType = (mimeType: string): MimeTypeDescriptor => { - const [type = '', subtype = ''] = mimeType.split('/'); - return { - type, - subtype, - subtypeTokens: subtype.split('+'), - }; -}; - -type MimeTypePredicate = (mimeType: string) => boolean; - -// This factory creates a predicate function that checks a string mime-type against defined rules. -const mimeTypePredicateFactory = (predicate: (descriptor: MimeTypeDescriptor) => boolean): MimeTypePredicate => (mimeType) => predicate(parseMimeType(mimeType)); - -// Use this factory when you need to define a simple predicate based only on type and, if applicable, subtype. -const mimeTypeSimplePredicateFactory = (type: string, subtype?: string): MimeTypePredicate => mimeTypePredicateFactory((descriptor) => { - if (descriptor.type !== type) return false; - if (subtype != null && descriptor.subtype !== subtype) return false; - return true; -}); - -// Creating a set of named predicates that will help us determine how to handle different mime-types -const isTextLikeMimeType = mimeTypeSimplePredicateFactory('text'); -const isJsonMimeType = mimeTypeSimplePredicateFactory('application', 'json'); -const isJsonLikeMimeType = mimeTypePredicateFactory((descriptor) => descriptor.type === 'application' && descriptor.subtypeTokens.some((item) => item === 'json')); -const isOctetStreamMimeType = mimeTypeSimplePredicateFactory('application', 'octet-stream'); -const isFormUrlencodedMimeType = mimeTypeSimplePredicateFactory('application', 'x-www-form-urlencoded'); - -// Defining a list of mime-types in the order of prioritization for handling. -const supportedMimeTypePredicatesWithPriority: MimeTypePredicate[] = [ - isJsonMimeType, - isJsonLikeMimeType, - isTextLikeMimeType, - isOctetStreamMimeType, - isFormUrlencodedMimeType, -]; - -const nullableSuffix = " | null"; -const optionalSuffix = " | undefined"; -const arrayPrefix = "Array<"; -const arraySuffix = ">"; -const mapPrefix = "{ [key: string]: "; -const mapSuffix = "; }"; - -export class ObjectSerializer { - public static findCorrectType(data: any, expectedType: string) { - if (data == undefined) { - return expectedType; - } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { - return expectedType; - } else if (expectedType === "Date") { - return expectedType; - } else { - if (enumsMap.has(expectedType)) { - return expectedType; - } - - if (!typeMap[expectedType]) { - return expectedType; // w/e we don't know the type - } - - // Check the discriminator - let discriminatorProperty = typeMap[expectedType].discriminator; - if (discriminatorProperty == null) { - return expectedType; // the type does not have a discriminator. use it. - } else { - if (data[discriminatorProperty]) { - var discriminatorType = data[discriminatorProperty]; - let mapping = typeMap[expectedType].mapping; - if (mapping != undefined && mapping[discriminatorType]) { - return mapping[discriminatorType]; // use the type given in the discriminator - } else if(typeMap[discriminatorType]) { - return discriminatorType; - } else { - return expectedType; // discriminator did not map to a type - } - } else { - return expectedType; // discriminator was not present (or an empty string) - } - } - } - } - - /** - * Serializes a value into a plain JSON-compatible object based on its type. - * - * Supports primitives, arrays, maps, dates, enums, and classes defined in `typeMap`. - * Falls back to raw data if type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The value to serialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A JSON-compatible representation of `data`. - */ - public static serialize(data: any, type: string, format: string = ""): any { - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.serialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.serialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - if (format == "date") { - let month = data.getMonth()+1 - month = month < 10 ? "0" + month.toString() : month.toString() - let day = data.getDate(); - day = day < 10 ? "0" + day.toString() : day.toString(); - - return data.getFullYear() + "-" + month + "-" + day; - } else { - return data.toISOString(); - } - } else { - if (enumsMap.has(type)) { - return data; - } - if (!typeMap[type]) { // in case we dont know the type - return data; - } - - // Get the actual type of this object - type = this.findCorrectType(data, type); - - const clazz = typeMap[type]; - - // Safe check for getAttributeTypeMap - if (typeof clazz.getAttributeTypeMap !== "function") { - return { ...data }; // fallback: shallow copy - } - - // get the map for the correct type. - let attributeTypes = typeMap[type].getAttributeTypeMap(); - let instance: {[index: string]: any} = {}; - for (let attributeType of attributeTypes) { - instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format); - } - return instance; - } - } - - /** - * Deserializes a plain JSON-compatible object into a typed instance. - * - * Handles primitives, arrays, maps, dates, enums, and known classes from `typeMap`. - * Uses discriminators when available to resolve polymorphic types. - * Falls back to raw data if the type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The raw input to deserialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A deserialized instance or value of `data`. - */ - public static deserialize(data: any, type: string, format: string = ""): any { - // polymorphism may change the actual type. - type = ObjectSerializer.findCorrectType(data, type); - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.deserialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.deserialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - return new Date(data); - } else { - if (enumsMap.has(type)) {// is Enum - return data; - } - - if (!typeMap[type]) { // dont know the type - return data; - } - let instance = new typeMap[type](); - - // Safe check for getAttributeTypeMap - if (typeof typeMap[type].getAttributeTypeMap !== "function") { - Object.assign(instance, data); // fallback: shallow copy - return instance; - } - - let attributeTypes = typeMap[type].getAttributeTypeMap(); - for (let attributeType of attributeTypes) { - let value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format); - if (value !== undefined) { - instance[attributeType.name] = value; - } - } - return instance; - } - } - - - /** - * Normalize media type - * - * We currently do not handle any media types attributes, i.e. anything - * after a semicolon. All content is assumed to be UTF-8 compatible. - */ - public static normalizeMediaType(mediaType: string | undefined): string | undefined { - if (mediaType === undefined) { - return undefined; - } - return (mediaType.split(";")[0] ?? '').trim().toLowerCase(); - } - - /** - * From a list of possible media types, choose the one we can handle best. - * - * The order of the given media types does not have any impact on the choice - * made. - */ - public static getPreferredMediaType(mediaTypes: Array): string { - /** According to OAS 3 we should default to json */ - if (mediaTypes.length === 0) { - return "application/json"; - } - - const normalMediaTypes = mediaTypes.map(ObjectSerializer.normalizeMediaType); - - for (const predicate of supportedMimeTypePredicatesWithPriority) { - for (const mediaType of normalMediaTypes) { - if (mediaType != null && predicate(mediaType)) { - return mediaType; - } - } - } - - throw new Error("None of the given media types are supported: " + mediaTypes.join(", ")); - } - - /** - * Convert data to a string according the given media type - */ - public static stringify(data: any, mediaType: string): string { - if (isTextLikeMimeType(mediaType)) { - return String(data); - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.stringify(data); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify."); - } - - /** - * Parse data from a string according to the given media type - */ - public static parse(rawData: string, mediaType: string | undefined) { - if (mediaType === undefined) { - throw new Error("Cannot parse content. No Content-Type defined."); - } - - if (isTextLikeMimeType(mediaType)) { - return rawData; - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.parse(rawData); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse."); - } -} diff --git a/src/typings/transactionWebhooks/paymentInstrument.ts b/src/typings/transactionWebhooks/paymentInstrument.ts index 025699a40..0aa0be54b 100644 --- a/src/typings/transactionWebhooks/paymentInstrument.ts +++ b/src/typings/transactionWebhooks/paymentInstrument.ts @@ -12,55 +12,46 @@ export class PaymentInstrument { /** * The description of the resource. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the resource. */ - "id"?: string; + 'id'?: string; /** * The reference for the resource. */ - "reference"?: string; + 'reference'?: string; /** * The type of wallet that the network token is associated with. */ - "tokenType"?: string; + 'tokenType'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "tokenType", "baseName": "tokenType", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PaymentInstrument.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transactionWebhooks/platformPayment.ts b/src/typings/transactionWebhooks/platformPayment.ts index dc9283316..5d386859f 100644 --- a/src/typings/transactionWebhooks/platformPayment.ts +++ b/src/typings/transactionWebhooks/platformPayment.ts @@ -12,76 +12,65 @@ export class PlatformPayment { /** * The capture\'s merchant reference included in the transfer. */ - "modificationMerchantReference"?: string; + 'modificationMerchantReference'?: string; /** * The capture reference included in the transfer. */ - "modificationPspReference"?: string; + 'modificationPspReference'?: string; /** * The payment\'s merchant reference included in the transfer. */ - "paymentMerchantReference"?: string; + 'paymentMerchantReference'?: string; /** * Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen\'s commission and Adyen\'s markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform\'s commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user\'s balance account. * **VAT**: for the Value Added Tax. */ - "platformPaymentType"?: PlatformPayment.PlatformPaymentTypeEnum; + 'platformPaymentType'?: PlatformPayment.PlatformPaymentTypeEnum; /** * The payment reference included in the transfer. */ - "pspPaymentReference"?: string; + 'pspPaymentReference'?: string; /** * **platformPayment** */ - "type"?: PlatformPayment.TypeEnum; + 'type'?: PlatformPayment.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "modificationMerchantReference", "baseName": "modificationMerchantReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "modificationPspReference", "baseName": "modificationPspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMerchantReference", "baseName": "paymentMerchantReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "platformPaymentType", "baseName": "platformPaymentType", - "type": "PlatformPayment.PlatformPaymentTypeEnum", - "format": "" + "type": "PlatformPayment.PlatformPaymentTypeEnum" }, { "name": "pspPaymentReference", "baseName": "pspPaymentReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "PlatformPayment.TypeEnum", - "format": "" + "type": "PlatformPayment.TypeEnum" } ]; static getAttributeTypeMap() { return PlatformPayment.attributeTypeMap; } - - public constructor() { - } } export namespace PlatformPayment { diff --git a/src/typings/transactionWebhooks/relayedAuthorisationData.ts b/src/typings/transactionWebhooks/relayedAuthorisationData.ts index 56d119b1f..62eef5e64 100644 --- a/src/typings/transactionWebhooks/relayedAuthorisationData.ts +++ b/src/typings/transactionWebhooks/relayedAuthorisationData.ts @@ -12,35 +12,28 @@ export class RelayedAuthorisationData { /** * Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. */ - "metadata"?: { [key: string]: string; }; + 'metadata'?: { [key: string]: string; }; /** * Your reference for the relayed authorisation data. */ - "reference"?: string; + 'reference'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "metadata", "baseName": "metadata", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return RelayedAuthorisationData.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transactionWebhooks/resource.ts b/src/typings/transactionWebhooks/resource.ts index b96700779..16c3e4f00 100644 --- a/src/typings/transactionWebhooks/resource.ts +++ b/src/typings/transactionWebhooks/resource.ts @@ -12,45 +12,37 @@ export class Resource { /** * The unique identifier of the balance platform. */ - "balancePlatform"?: string; + 'balancePlatform'?: string; /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. */ - "creationDate"?: Date; + 'creationDate'?: Date; /** * The ID of the resource. */ - "id"?: string; + 'id'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balancePlatform", "baseName": "balancePlatform", - "type": "string", - "format": "" + "type": "string" }, { "name": "creationDate", "baseName": "creationDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Resource.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transactionWebhooks/resourceReference.ts b/src/typings/transactionWebhooks/resourceReference.ts index dbb5176f0..e6f054e73 100644 --- a/src/typings/transactionWebhooks/resourceReference.ts +++ b/src/typings/transactionWebhooks/resourceReference.ts @@ -12,45 +12,37 @@ export class ResourceReference { /** * The description of the resource. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the resource. */ - "id"?: string; + 'id'?: string; /** * The reference for the resource. */ - "reference"?: string; + 'reference'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ResourceReference.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transactionWebhooks/threeDSecure.ts b/src/typings/transactionWebhooks/threeDSecure.ts new file mode 100644 index 000000000..c3f8cbd7a --- /dev/null +++ b/src/typings/transactionWebhooks/threeDSecure.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v4 + * + * + * 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 ThreeDSecure { + /** + * The transaction identifier for the Access Control Server + */ + 'acsTransactionId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acsTransactionId", + "baseName": "acsTransactionId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDSecure.attributeTypeMap; + } +} + diff --git a/src/typings/transactionWebhooks/transaction.ts b/src/typings/transactionWebhooks/transaction.ts index 23cb7d6dd..9eba58bb9 100644 --- a/src/typings/transactionWebhooks/transaction.ts +++ b/src/typings/transactionWebhooks/transaction.ts @@ -7,141 +7,122 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { PaymentInstrument } from "./paymentInstrument"; -import { ResourceReference } from "./resourceReference"; -import { TransferView } from "./transferView"; - +import { Amount } from './amount'; +import { PaymentInstrument } from './paymentInstrument'; +import { ResourceReference } from './resourceReference'; +import { TransferView } from './transferView'; export class Transaction { - "accountHolder": ResourceReference; - "amount": Amount; - "balanceAccount": ResourceReference; + 'accountHolder': ResourceReference; + 'amount': Amount; + 'balanceAccount': ResourceReference; /** * The unique identifier of the balance platform. */ - "balancePlatform": string; + 'balancePlatform': string; /** * The date the transaction was booked into the balance account. */ - "bookingDate": Date; + 'bookingDate': Date; /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. */ - "creationDate"?: Date; + 'creationDate'?: Date; /** * The `description` from the `/transfers` request. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the transaction. */ - "id": string; - "paymentInstrument"?: PaymentInstrument | null; + 'id': string; + 'paymentInstrument'?: PaymentInstrument | null; /** * The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. */ - "referenceForBeneficiary"?: string; + 'referenceForBeneficiary'?: string; /** * The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. */ - "status": Transaction.StatusEnum; - "transfer"?: TransferView | null; + 'status': Transaction.StatusEnum; + 'transfer'?: TransferView | null; /** * The date the transfer amount becomes available in the balance account. */ - "valueDate": Date; - - static readonly discriminator: string | undefined = undefined; + 'valueDate': Date; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountHolder", "baseName": "accountHolder", - "type": "ResourceReference", - "format": "" + "type": "ResourceReference" }, { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "balanceAccount", "baseName": "balanceAccount", - "type": "ResourceReference", - "format": "" + "type": "ResourceReference" }, { "name": "balancePlatform", "baseName": "balancePlatform", - "type": "string", - "format": "" + "type": "string" }, { "name": "bookingDate", "baseName": "bookingDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "creationDate", "baseName": "creationDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentInstrument", "baseName": "paymentInstrument", - "type": "PaymentInstrument | null", - "format": "" + "type": "PaymentInstrument | null" }, { "name": "referenceForBeneficiary", "baseName": "referenceForBeneficiary", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "Transaction.StatusEnum", - "format": "" + "type": "Transaction.StatusEnum" }, { "name": "transfer", "baseName": "transfer", - "type": "TransferView | null", - "format": "" + "type": "TransferView | null" }, { "name": "valueDate", "baseName": "valueDate", - "type": "Date", - "format": "date-time" + "type": "Date" } ]; static getAttributeTypeMap() { return Transaction.attributeTypeMap; } - - public constructor() { - } } export namespace Transaction { diff --git a/src/typings/transactionWebhooks/transactionNotificationRequestV4.ts b/src/typings/transactionWebhooks/transactionNotificationRequestV4.ts index 7c9f0c665..c61a5b4c8 100644 --- a/src/typings/transactionWebhooks/transactionNotificationRequestV4.ts +++ b/src/typings/transactionWebhooks/transactionNotificationRequestV4.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { Transaction } from "./transaction"; - +import { Transaction } from './transaction'; export class TransactionNotificationRequestV4 { - "data": Transaction; + 'data': Transaction; /** * The environment from which the webhook originated. Possible values: **test**, **live**. */ - "environment": string; + 'environment': string; /** * When the event was queued. */ - "timestamp"?: Date; + 'timestamp'?: Date; /** * Type of the webhook. */ - "type"?: TransactionNotificationRequestV4.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type'?: TransactionNotificationRequestV4.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "Transaction", - "format": "" + "type": "Transaction" }, { "name": "environment", "baseName": "environment", - "type": "string", - "format": "" + "type": "string" }, { "name": "timestamp", "baseName": "timestamp", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "type", "baseName": "type", - "type": "TransactionNotificationRequestV4.TypeEnum", - "format": "" + "type": "TransactionNotificationRequestV4.TypeEnum" } ]; static getAttributeTypeMap() { return TransactionNotificationRequestV4.attributeTypeMap; } - - public constructor() { - } } export namespace TransactionNotificationRequestV4 { diff --git a/src/typings/transactionWebhooks/transactionWebhooksHandler.ts b/src/typings/transactionWebhooks/transactionWebhooksHandler.ts deleted file mode 100644 index ae119da1c..000000000 --- a/src/typings/transactionWebhooks/transactionWebhooksHandler.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* - * The version of the OpenAPI document: v4 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit this class manually. - */ - -import { transactionWebhooks } from ".."; - -/** - * Union type for all supported webhook requests. - * Allows generic handling of configuration-related webhook events. - */ -export type GenericWebhook = - | transactionWebhooks.TransactionNotificationRequestV4; - -/** - * Handler for processing TransactionWebhooks. - * - * This class provides functionality to deserialize the payload of TransactionWebhooks events. - */ -export class TransactionWebhooksHandler { - - private readonly payload: Record; - - public constructor(jsonPayload: string) { - this.payload = JSON.parse(jsonPayload); - } - - /** - * This method checks the type of the webhook payload and returns the appropriate deserialized object. - * - * @returns A deserialized object of type GenericWebhook. - * @throws Error if the type is not recognized. - */ - public getGenericWebhook(): GenericWebhook { - - const type = this.payload["type"]; - - if(Object.values(transactionWebhooks.TransactionNotificationRequestV4.TypeEnum).includes(type)) { - return this.getTransactionNotificationRequestV4(); - } - - throw new Error("Could not parse the json payload: " + this.payload); - - } - - /** - * Deserialize the webhook payload into a TransactionNotificationRequestV4 - * - * @returns Deserialized TransactionNotificationRequestV4 object. - */ - public getTransactionNotificationRequestV4(): transactionWebhooks.TransactionNotificationRequestV4 { - return transactionWebhooks.ObjectSerializer.deserialize(this.payload, "TransactionNotificationRequestV4"); - } - -} \ No newline at end of file diff --git a/src/typings/transactionWebhooks/transferNotificationValidationFact.ts b/src/typings/transactionWebhooks/transferNotificationValidationFact.ts index 1a3c74a37..b1133a019 100644 --- a/src/typings/transactionWebhooks/transferNotificationValidationFact.ts +++ b/src/typings/transactionWebhooks/transferNotificationValidationFact.ts @@ -12,35 +12,28 @@ export class TransferNotificationValidationFact { /** * The evaluation result of the validation fact. */ - "result"?: string; + 'result'?: string; /** * The type of the validation fact. */ - "type"?: string; + 'type'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "result", "baseName": "result", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TransferNotificationValidationFact.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transactionWebhooks/transferView.ts b/src/typings/transactionWebhooks/transferView.ts index 428d083e8..885e4e78d 100644 --- a/src/typings/transactionWebhooks/transferView.ts +++ b/src/typings/transactionWebhooks/transferView.ts @@ -7,49 +7,46 @@ * Do not edit this class manually. */ -import { TransferViewCategoryData } from "./transferViewCategoryData"; - +import { BankCategoryData } from './bankCategoryData'; +import { InternalCategoryData } from './internalCategoryData'; +import { IssuedCard } from './issuedCard'; +import { PlatformPayment } from './platformPayment'; export class TransferView { - "categoryData"?: TransferViewCategoryData | null; + /** + * The relevant data according to the transfer category. + */ + 'categoryData'?: BankCategoryData | InternalCategoryData | IssuedCard | PlatformPayment | null; /** * The ID of the resource. */ - "id"?: string; + 'id'?: string; /** * The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven\'t provided any, Adyen generates a unique reference. */ - "reference": string; + 'reference': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "categoryData", "baseName": "categoryData", - "type": "TransferViewCategoryData | null", - "format": "" + "type": "BankCategoryData | InternalCategoryData | IssuedCard | PlatformPayment | null" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TransferView.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transactionWebhooks/transferViewCategoryData.ts b/src/typings/transactionWebhooks/transferViewCategoryData.ts deleted file mode 100644 index c078126df..000000000 --- a/src/typings/transactionWebhooks/transferViewCategoryData.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * The version of the OpenAPI document: v4 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit this class manually. - */ - -import { BankCategoryData } from "./bankCategoryData"; -import { InternalCategoryData } from "./internalCategoryData"; -import { IssuedCard } from "./issuedCard"; -import { PlatformPayment } from "./platformPayment"; - -/** -* The relevant data according to the transfer category. -*/ - - -/** - * @type TransferViewCategoryData - * Type - * @export - */ -export type TransferViewCategoryData = BankCategoryData | InternalCategoryData | IssuedCard | PlatformPayment; - -/** -* @type TransferViewCategoryDataClass - * The relevant data according to the transfer category. -* @export -*/ -export class TransferViewCategoryDataClass { - - static readonly discriminator: string = "type"; - - static readonly mapping: {[index: string]: string} | undefined = undefined; -} diff --git a/src/typings/transferWebhooks/aULocalAccountIdentification.ts b/src/typings/transferWebhooks/aULocalAccountIdentification.ts index b50f7d664..3537211f3 100644 --- a/src/typings/transferWebhooks/aULocalAccountIdentification.ts +++ b/src/typings/transferWebhooks/aULocalAccountIdentification.ts @@ -12,46 +12,38 @@ export class AULocalAccountIdentification { /** * The bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. */ - "bsbCode": string; + 'bsbCode': string; /** * **auLocal** */ - "type": AULocalAccountIdentification.TypeEnum; + 'type': AULocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "bsbCode", "baseName": "bsbCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "AULocalAccountIdentification.TypeEnum", - "format": "" + "type": "AULocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return AULocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace AULocalAccountIdentification { diff --git a/src/typings/transferWebhooks/additionalBankIdentification.ts b/src/typings/transferWebhooks/additionalBankIdentification.ts index 56f67c118..aa9666ef0 100644 --- a/src/typings/transferWebhooks/additionalBankIdentification.ts +++ b/src/typings/transferWebhooks/additionalBankIdentification.ts @@ -12,40 +12,35 @@ export class AdditionalBankIdentification { /** * The value of the additional bank identification. */ - "code"?: string; + 'code'?: string; /** - * The type of additional bank identification, depending on the country. Possible values: * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. */ - "type"?: AdditionalBankIdentification.TypeEnum; + 'type'?: AdditionalBankIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "code", "baseName": "code", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "AdditionalBankIdentification.TypeEnum", - "format": "" + "type": "AdditionalBankIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return AdditionalBankIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace AdditionalBankIdentification { export enum TypeEnum { + AuBsbCode = 'auBsbCode', + CaRoutingNumber = 'caRoutingNumber', GbSortCode = 'gbSortCode', UsRoutingNumber = 'usRoutingNumber' } diff --git a/src/typings/transferWebhooks/address.ts b/src/typings/transferWebhooks/address.ts index 28ef076d4..b2c5b90c8 100644 --- a/src/typings/transferWebhooks/address.ts +++ b/src/typings/transferWebhooks/address.ts @@ -12,75 +12,64 @@ export class Address { /** * The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. */ - "city"?: string; + 'city'?: string; /** * The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, or **GB**. */ - "country": string; + 'country': string; /** * The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. */ - "line1"?: string; + 'line1'?: string; /** * The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. */ - "line2"?: string; + 'line2'?: string; /** * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > Required for addresses in the US. */ - "postalCode"?: string; + 'postalCode'?: string; /** * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ - "stateOrProvince"?: string; + 'stateOrProvince'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "city", "baseName": "city", - "type": "string", - "format": "" + "type": "string" }, { "name": "country", "baseName": "country", - "type": "string", - "format": "" + "type": "string" }, { "name": "line1", "baseName": "line1", - "type": "string", - "format": "" + "type": "string" }, { "name": "line2", "baseName": "line2", - "type": "string", - "format": "" + "type": "string" }, { "name": "postalCode", "baseName": "postalCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "stateOrProvince", "baseName": "stateOrProvince", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Address.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transferWebhooks/airline.ts b/src/typings/transferWebhooks/airline.ts index 765091b72..50cc656ac 100644 --- a/src/typings/transferWebhooks/airline.ts +++ b/src/typings/transferWebhooks/airline.ts @@ -7,42 +7,34 @@ * Do not edit this class manually. */ -import { Leg } from "./leg"; - +import { Leg } from './leg'; export class Airline { /** * Details about the flight legs for this ticket. */ - "legs"?: Array; + 'legs'?: Array; /** * The ticket\'s unique identifier */ - "ticketNumber"?: string; - - static readonly discriminator: string | undefined = undefined; + 'ticketNumber'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "legs", "baseName": "legs", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "ticketNumber", "baseName": "ticketNumber", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Airline.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transferWebhooks/amount.ts b/src/typings/transferWebhooks/amount.ts index cd1649aa4..aea19ca38 100644 --- a/src/typings/transferWebhooks/amount.ts +++ b/src/typings/transferWebhooks/amount.ts @@ -12,35 +12,28 @@ export class Amount { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ - "currency": string; + 'currency': string; /** * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ - "value": number; + 'value': number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "number", - "format": "int64" + "type": "number" } ]; static getAttributeTypeMap() { return Amount.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transferWebhooks/amountAdjustment.ts b/src/typings/transferWebhooks/amountAdjustment.ts index 201a64a02..543097d5a 100644 --- a/src/typings/transferWebhooks/amountAdjustment.ts +++ b/src/typings/transferWebhooks/amountAdjustment.ts @@ -7,50 +7,41 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class AmountAdjustment { - "amount"?: Amount | null; + 'amount'?: Amount | null; /** * The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. */ - "amountAdjustmentType"?: AmountAdjustment.AmountAdjustmentTypeEnum; + 'amountAdjustmentType'?: AmountAdjustment.AmountAdjustmentTypeEnum; /** * The basepoints associated with the applied markup. */ - "basepoints"?: number; - - static readonly discriminator: string | undefined = undefined; + 'basepoints'?: number; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "amountAdjustmentType", "baseName": "amountAdjustmentType", - "type": "AmountAdjustment.AmountAdjustmentTypeEnum", - "format": "" + "type": "AmountAdjustment.AmountAdjustmentTypeEnum" }, { "name": "basepoints", "baseName": "basepoints", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return AmountAdjustment.attributeTypeMap; } - - public constructor() { - } } export namespace AmountAdjustment { diff --git a/src/typings/transferWebhooks/bRLocalAccountIdentification.ts b/src/typings/transferWebhooks/bRLocalAccountIdentification.ts index 91169834e..c43d43135 100644 --- a/src/typings/transferWebhooks/bRLocalAccountIdentification.ts +++ b/src/typings/transferWebhooks/bRLocalAccountIdentification.ts @@ -12,66 +12,56 @@ export class BRLocalAccountIdentification { /** * The bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * The 3-digit bank code, with leading zeros. */ - "bankCode": string; + 'bankCode': string; /** * The bank account branch number, without separators or whitespace. */ - "branchNumber": string; + 'branchNumber': string; /** * The 8-digit ISPB, with leading zeros. */ - "ispb"?: string; + 'ispb'?: string; /** * **brLocal** */ - "type": BRLocalAccountIdentification.TypeEnum; + 'type': BRLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankCode", "baseName": "bankCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "branchNumber", "baseName": "branchNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "ispb", "baseName": "ispb", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "BRLocalAccountIdentification.TypeEnum", - "format": "" + "type": "BRLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return BRLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace BRLocalAccountIdentification { diff --git a/src/typings/transferWebhooks/balanceMutation.ts b/src/typings/transferWebhooks/balanceMutation.ts index f14a2543c..3751cab80 100644 --- a/src/typings/transferWebhooks/balanceMutation.ts +++ b/src/typings/transferWebhooks/balanceMutation.ts @@ -12,55 +12,46 @@ export class BalanceMutation { /** * The amount in the payment\'s currency that is debited or credited on the balance accounting register. */ - "balance"?: number; + 'balance'?: number; /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ - "currency"?: string; + 'currency'?: string; /** * The amount in the payment\'s currency that is debited or credited on the received accounting register. */ - "received"?: number; + 'received'?: number; /** * The amount in the payment\'s currency that is debited or credited on the reserved accounting register. */ - "reserved"?: number; + 'reserved'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balance", "baseName": "balance", - "type": "number", - "format": "int64" + "type": "number" }, { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "received", "baseName": "received", - "type": "number", - "format": "int64" + "type": "number" }, { "name": "reserved", "baseName": "reserved", - "type": "number", - "format": "int64" + "type": "number" } ]; static getAttributeTypeMap() { return BalanceMutation.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transferWebhooks/balancePlatformNotificationResponse.ts b/src/typings/transferWebhooks/balancePlatformNotificationResponse.ts index cdc77073e..3b98b5583 100644 --- a/src/typings/transferWebhooks/balancePlatformNotificationResponse.ts +++ b/src/typings/transferWebhooks/balancePlatformNotificationResponse.ts @@ -12,25 +12,19 @@ export class BalancePlatformNotificationResponse { /** * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). */ - "notificationResponse"?: string; + 'notificationResponse'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "notificationResponse", "baseName": "notificationResponse", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return BalancePlatformNotificationResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transferWebhooks/bankAccountV3.ts b/src/typings/transferWebhooks/bankAccountV3.ts index 05a01f7e3..503ebb97e 100644 --- a/src/typings/transferWebhooks/bankAccountV3.ts +++ b/src/typings/transferWebhooks/bankAccountV3.ts @@ -7,37 +7,47 @@ * Do not edit this class manually. */ -import { BankAccountV3AccountIdentification } from "./bankAccountV3AccountIdentification"; -import { PartyIdentification } from "./partyIdentification"; - +import { AULocalAccountIdentification } from './aULocalAccountIdentification'; +import { BRLocalAccountIdentification } from './bRLocalAccountIdentification'; +import { CALocalAccountIdentification } from './cALocalAccountIdentification'; +import { CZLocalAccountIdentification } from './cZLocalAccountIdentification'; +import { DKLocalAccountIdentification } from './dKLocalAccountIdentification'; +import { HKLocalAccountIdentification } from './hKLocalAccountIdentification'; +import { HULocalAccountIdentification } from './hULocalAccountIdentification'; +import { IbanAccountIdentification } from './ibanAccountIdentification'; +import { NOLocalAccountIdentification } from './nOLocalAccountIdentification'; +import { NZLocalAccountIdentification } from './nZLocalAccountIdentification'; +import { NumberAndBicAccountIdentification } from './numberAndBicAccountIdentification'; +import { PLLocalAccountIdentification } from './pLLocalAccountIdentification'; +import { PartyIdentification } from './partyIdentification'; +import { SELocalAccountIdentification } from './sELocalAccountIdentification'; +import { SGLocalAccountIdentification } from './sGLocalAccountIdentification'; +import { UKLocalAccountIdentification } from './uKLocalAccountIdentification'; +import { USLocalAccountIdentification } from './uSLocalAccountIdentification'; export class BankAccountV3 { - "accountHolder": PartyIdentification; - "accountIdentification": BankAccountV3AccountIdentification; - - static readonly discriminator: string | undefined = undefined; + 'accountHolder': PartyIdentification; + /** + * Contains the bank account details. The fields required in this object depend on the country of the bank account and the currency of the transfer. + */ + 'accountIdentification': AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountHolder", "baseName": "accountHolder", - "type": "PartyIdentification", - "format": "" + "type": "PartyIdentification" }, { "name": "accountIdentification", "baseName": "accountIdentification", - "type": "BankAccountV3AccountIdentification", - "format": "" + "type": "AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification" } ]; static getAttributeTypeMap() { return BankAccountV3.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transferWebhooks/bankAccountV3AccountIdentification.ts b/src/typings/transferWebhooks/bankAccountV3AccountIdentification.ts deleted file mode 100644 index 6e643cded..000000000 --- a/src/typings/transferWebhooks/bankAccountV3AccountIdentification.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * The version of the OpenAPI document: v4 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit this class manually. - */ - -import { AULocalAccountIdentification } from "./aULocalAccountIdentification"; -import { BRLocalAccountIdentification } from "./bRLocalAccountIdentification"; -import { CALocalAccountIdentification } from "./cALocalAccountIdentification"; -import { CZLocalAccountIdentification } from "./cZLocalAccountIdentification"; -import { DKLocalAccountIdentification } from "./dKLocalAccountIdentification"; -import { HKLocalAccountIdentification } from "./hKLocalAccountIdentification"; -import { HULocalAccountIdentification } from "./hULocalAccountIdentification"; -import { IbanAccountIdentification } from "./ibanAccountIdentification"; -import { NOLocalAccountIdentification } from "./nOLocalAccountIdentification"; -import { NZLocalAccountIdentification } from "./nZLocalAccountIdentification"; -import { NumberAndBicAccountIdentification } from "./numberAndBicAccountIdentification"; -import { PLLocalAccountIdentification } from "./pLLocalAccountIdentification"; -import { SELocalAccountIdentification } from "./sELocalAccountIdentification"; -import { SGLocalAccountIdentification } from "./sGLocalAccountIdentification"; -import { UKLocalAccountIdentification } from "./uKLocalAccountIdentification"; -import { USLocalAccountIdentification } from "./uSLocalAccountIdentification"; - -/** -* Contains the bank account details. The fields required in this object depend on the country of the bank account and the currency of the transfer. -*/ - - -/** - * @type BankAccountV3AccountIdentification - * Type - * @export - */ -export type BankAccountV3AccountIdentification = AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification; - -/** -* @type BankAccountV3AccountIdentificationClass - * Contains the bank account details. The fields required in this object depend on the country of the bank account and the currency of the transfer. -* @export -*/ -export class BankAccountV3AccountIdentificationClass { - - static readonly discriminator: string = "type"; - - static readonly mapping: {[index: string]: string} | undefined = undefined; -} diff --git a/src/typings/transferWebhooks/bankCategoryData.ts b/src/typings/transferWebhooks/bankCategoryData.ts index a76048a6d..e1c9a7279 100644 --- a/src/typings/transferWebhooks/bankCategoryData.ts +++ b/src/typings/transferWebhooks/bankCategoryData.ts @@ -10,38 +10,31 @@ export class BankCategoryData { /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. 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 in [SEPA countries](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. Required for transfers with `category` **bank**. 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"?: BankCategoryData.PriorityEnum; + 'priority'?: BankCategoryData.PriorityEnum; /** * **bank** */ - "type"?: BankCategoryData.TypeEnum; + 'type'?: BankCategoryData.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "priority", "baseName": "priority", - "type": "BankCategoryData.PriorityEnum", - "format": "" + "type": "BankCategoryData.PriorityEnum" }, { "name": "type", "baseName": "type", - "type": "BankCategoryData.TypeEnum", - "format": "" + "type": "BankCategoryData.TypeEnum" } ]; static getAttributeTypeMap() { return BankCategoryData.attributeTypeMap; } - - public constructor() { - } } export namespace BankCategoryData { diff --git a/src/typings/transferWebhooks/cALocalAccountIdentification.ts b/src/typings/transferWebhooks/cALocalAccountIdentification.ts index 5c0954c76..1e0e9ef87 100644 --- a/src/typings/transferWebhooks/cALocalAccountIdentification.ts +++ b/src/typings/transferWebhooks/cALocalAccountIdentification.ts @@ -12,66 +12,56 @@ export class CALocalAccountIdentification { /** * The 5- to 12-digit bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ - "accountType"?: CALocalAccountIdentification.AccountTypeEnum; + 'accountType'?: CALocalAccountIdentification.AccountTypeEnum; /** * The 3-digit institution number, without separators or whitespace. */ - "institutionNumber": string; + 'institutionNumber': string; /** * The 5-digit transit number, without separators or whitespace. */ - "transitNumber": string; + 'transitNumber': string; /** * **caLocal** */ - "type": CALocalAccountIdentification.TypeEnum; + 'type': CALocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "accountType", "baseName": "accountType", - "type": "CALocalAccountIdentification.AccountTypeEnum", - "format": "" + "type": "CALocalAccountIdentification.AccountTypeEnum" }, { "name": "institutionNumber", "baseName": "institutionNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "transitNumber", "baseName": "transitNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "CALocalAccountIdentification.TypeEnum", - "format": "" + "type": "CALocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return CALocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace CALocalAccountIdentification { diff --git a/src/typings/transferWebhooks/cZLocalAccountIdentification.ts b/src/typings/transferWebhooks/cZLocalAccountIdentification.ts index d17d2f0a1..3b94b7b4a 100644 --- a/src/typings/transferWebhooks/cZLocalAccountIdentification.ts +++ b/src/typings/transferWebhooks/cZLocalAccountIdentification.ts @@ -12,46 +12,38 @@ export class CZLocalAccountIdentification { /** * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) */ - "accountNumber": string; + 'accountNumber': string; /** * The 4-digit bank code (Kód banky), without separators or whitespace. */ - "bankCode": string; + 'bankCode': string; /** * **czLocal** */ - "type": CZLocalAccountIdentification.TypeEnum; + 'type': CZLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankCode", "baseName": "bankCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "CZLocalAccountIdentification.TypeEnum", - "format": "" + "type": "CZLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return CZLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace CZLocalAccountIdentification { diff --git a/src/typings/transferWebhooks/card.ts b/src/typings/transferWebhooks/card.ts index 8310f9208..ea46948f1 100644 --- a/src/typings/transferWebhooks/card.ts +++ b/src/typings/transferWebhooks/card.ts @@ -7,37 +7,29 @@ * Do not edit this class manually. */ -import { CardIdentification } from "./cardIdentification"; -import { PartyIdentification } from "./partyIdentification"; - +import { CardIdentification } from './cardIdentification'; +import { PartyIdentification } from './partyIdentification'; export class Card { - "cardHolder": PartyIdentification; - "cardIdentification": CardIdentification; - - static readonly discriminator: string | undefined = undefined; + 'cardHolder': PartyIdentification; + 'cardIdentification': CardIdentification; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "cardHolder", "baseName": "cardHolder", - "type": "PartyIdentification", - "format": "" + "type": "PartyIdentification" }, { "name": "cardIdentification", "baseName": "cardIdentification", - "type": "CardIdentification", - "format": "" + "type": "CardIdentification" } ]; static getAttributeTypeMap() { return Card.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transferWebhooks/cardIdentification.ts b/src/typings/transferWebhooks/cardIdentification.ts index 50b9ebce7..18f6ad22a 100644 --- a/src/typings/transferWebhooks/cardIdentification.ts +++ b/src/typings/transferWebhooks/cardIdentification.ts @@ -12,85 +12,73 @@ export class CardIdentification { /** * The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November */ - "expiryMonth"?: string; + 'expiryMonth'?: string; /** * The expiry year of the card. Format: four digits. For example: 2020 */ - "expiryYear"?: string; + 'expiryYear'?: string; /** * The issue number of the card. Applies only to some UK debit cards. */ - "issueNumber"?: string; + 'issueNumber'?: string; /** * The card number without any separators. For security, the response only includes the last four digits of the card number. */ - "number"?: string; + 'number'?: string; /** * The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November */ - "startMonth"?: string; + 'startMonth'?: string; /** * The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020 */ - "startYear"?: string; + 'startYear'?: string; /** * The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "expiryMonth", "baseName": "expiryMonth", - "type": "string", - "format": "" + "type": "string" }, { "name": "expiryYear", "baseName": "expiryYear", - "type": "string", - "format": "" + "type": "string" }, { "name": "issueNumber", "baseName": "issueNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "number", "baseName": "number", - "type": "string", - "format": "" + "type": "string" }, { "name": "startMonth", "baseName": "startMonth", - "type": "string", - "format": "" + "type": "string" }, { "name": "startYear", "baseName": "startYear", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CardIdentification.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transferWebhooks/confirmationTrackingData.ts b/src/typings/transferWebhooks/confirmationTrackingData.ts index fb0fc3df2..599c6fdd9 100644 --- a/src/typings/transferWebhooks/confirmationTrackingData.ts +++ b/src/typings/transferWebhooks/confirmationTrackingData.ts @@ -10,38 +10,31 @@ export class ConfirmationTrackingData { /** - * The status of the transfer. Possible values: - **credited**: the funds are credited to your user\'s transfer instrument or bank account. + * The status of the transfer. Possible values: - **credited**: the funds are credited to your user\'s transfer instrument or bank account. */ - "status": ConfirmationTrackingData.StatusEnum; + 'status': ConfirmationTrackingData.StatusEnum; /** * The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen\'s internal review. */ - "type": ConfirmationTrackingData.TypeEnum; + 'type': ConfirmationTrackingData.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "status", "baseName": "status", - "type": "ConfirmationTrackingData.StatusEnum", - "format": "" + "type": "ConfirmationTrackingData.StatusEnum" }, { "name": "type", "baseName": "type", - "type": "ConfirmationTrackingData.TypeEnum", - "format": "" + "type": "ConfirmationTrackingData.TypeEnum" } ]; static getAttributeTypeMap() { return ConfirmationTrackingData.attributeTypeMap; } - - public constructor() { - } } export namespace ConfirmationTrackingData { diff --git a/src/typings/transferWebhooks/counterpartyV3.ts b/src/typings/transferWebhooks/counterpartyV3.ts index 0d8928afd..992d86700 100644 --- a/src/typings/transferWebhooks/counterpartyV3.ts +++ b/src/typings/transferWebhooks/counterpartyV3.ts @@ -7,65 +7,54 @@ * Do not edit this class manually. */ -import { BankAccountV3 } from "./bankAccountV3"; -import { Card } from "./card"; -import { MerchantData } from "./merchantData"; - +import { BankAccountV3 } from './bankAccountV3'; +import { Card } from './card'; +import { MerchantData } from './merchantData'; export class CounterpartyV3 { /** * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). */ - "balanceAccountId"?: string; - "bankAccount"?: BankAccountV3 | null; - "card"?: Card | null; - "merchant"?: MerchantData | null; + 'balanceAccountId'?: string; + 'bankAccount'?: BankAccountV3 | null; + 'card'?: Card | null; + 'merchant'?: MerchantData | null; /** * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ - "transferInstrumentId"?: string; - - static readonly discriminator: string | undefined = undefined; + 'transferInstrumentId'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balanceAccountId", "baseName": "balanceAccountId", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankAccount", "baseName": "bankAccount", - "type": "BankAccountV3 | null", - "format": "" + "type": "BankAccountV3 | null" }, { "name": "card", "baseName": "card", - "type": "Card | null", - "format": "" + "type": "Card | null" }, { "name": "merchant", "baseName": "merchant", - "type": "MerchantData | null", - "format": "" + "type": "MerchantData | null" }, { "name": "transferInstrumentId", "baseName": "transferInstrumentId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CounterpartyV3.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transferWebhooks/dKLocalAccountIdentification.ts b/src/typings/transferWebhooks/dKLocalAccountIdentification.ts index 88c961d73..6aec27ad5 100644 --- a/src/typings/transferWebhooks/dKLocalAccountIdentification.ts +++ b/src/typings/transferWebhooks/dKLocalAccountIdentification.ts @@ -12,46 +12,38 @@ export class DKLocalAccountIdentification { /** * The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). */ - "accountNumber": string; + 'accountNumber': string; /** * The 4-digit bank code (Registreringsnummer) (without separators or whitespace). */ - "bankCode": string; + 'bankCode': string; /** * **dkLocal** */ - "type": DKLocalAccountIdentification.TypeEnum; + 'type': DKLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankCode", "baseName": "bankCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "DKLocalAccountIdentification.TypeEnum", - "format": "" + "type": "DKLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return DKLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace DKLocalAccountIdentification { diff --git a/src/typings/transferWebhooks/directDebitInformation.ts b/src/typings/transferWebhooks/directDebitInformation.ts index a56ce7463..494b5bbf3 100644 --- a/src/typings/transferWebhooks/directDebitInformation.ts +++ b/src/typings/transferWebhooks/directDebitInformation.ts @@ -12,55 +12,46 @@ export class DirectDebitInformation { /** * The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. */ - "dateOfSignature"?: Date; + 'dateOfSignature'?: Date; /** * The date when the funds are deducted from your user\'s balance account. */ - "dueDate"?: Date; + 'dueDate'?: Date; /** * Your unique identifier for the direct debit mandate. */ - "mandateId"?: string; + 'mandateId'?: string; /** * Identifies the direct debit transfer\'s type. Possible values: **OneOff**, **First**, **Recurring**, **Final**. */ - "sequenceType"?: string; + 'sequenceType'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "dateOfSignature", "baseName": "dateOfSignature", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "dueDate", "baseName": "dueDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "mandateId", "baseName": "mandateId", - "type": "string", - "format": "" + "type": "string" }, { "name": "sequenceType", "baseName": "sequenceType", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return DirectDebitInformation.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transferWebhooks/estimationTrackingData.ts b/src/typings/transferWebhooks/estimationTrackingData.ts index 50b9cef3b..154feeaa0 100644 --- a/src/typings/transferWebhooks/estimationTrackingData.ts +++ b/src/typings/transferWebhooks/estimationTrackingData.ts @@ -12,36 +12,29 @@ export class EstimationTrackingData { /** * The estimated time the beneficiary should have access to the funds. */ - "estimatedArrivalTime": Date; + 'estimatedArrivalTime': Date; /** * The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. */ - "type": EstimationTrackingData.TypeEnum; + 'type': EstimationTrackingData.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "estimatedArrivalTime", "baseName": "estimatedArrivalTime", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "type", "baseName": "type", - "type": "EstimationTrackingData.TypeEnum", - "format": "" + "type": "EstimationTrackingData.TypeEnum" } ]; static getAttributeTypeMap() { return EstimationTrackingData.attributeTypeMap; } - - public constructor() { - } } export namespace EstimationTrackingData { diff --git a/src/typings/transferWebhooks/executionDate.ts b/src/typings/transferWebhooks/executionDate.ts index 791f7677f..e7b7c48d1 100644 --- a/src/typings/transferWebhooks/executionDate.ts +++ b/src/typings/transferWebhooks/executionDate.ts @@ -12,35 +12,28 @@ export class ExecutionDate { /** * The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31 */ - "date"?: string; + 'date'?: string; /** * The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. */ - "timezone"?: string; + 'timezone'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "date", "baseName": "date", - "type": "string", - "format": "date" + "type": "string" }, { "name": "timezone", "baseName": "timezone", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ExecutionDate.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transferWebhooks/externalReason.ts b/src/typings/transferWebhooks/externalReason.ts index be519608d..4549c3020 100644 --- a/src/typings/transferWebhooks/externalReason.ts +++ b/src/typings/transferWebhooks/externalReason.ts @@ -12,45 +12,37 @@ export class ExternalReason { /** * The reason code. */ - "code"?: string; + 'code'?: string; /** * The description of the reason code. */ - "description"?: string; + 'description'?: string; /** * The namespace for the reason code. */ - "namespace"?: string; + 'namespace'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "code", "baseName": "code", - "type": "string", - "format": "" + "type": "string" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "namespace", "baseName": "namespace", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ExternalReason.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transferWebhooks/hKLocalAccountIdentification.ts b/src/typings/transferWebhooks/hKLocalAccountIdentification.ts index 6363b305c..b3e237ed6 100644 --- a/src/typings/transferWebhooks/hKLocalAccountIdentification.ts +++ b/src/typings/transferWebhooks/hKLocalAccountIdentification.ts @@ -12,46 +12,38 @@ export class HKLocalAccountIdentification { /** * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. */ - "accountNumber": string; + 'accountNumber': string; /** * The 3-digit clearing code, without separators or whitespace. */ - "clearingCode": string; + 'clearingCode': string; /** * **hkLocal** */ - "type": HKLocalAccountIdentification.TypeEnum; + 'type': HKLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "clearingCode", "baseName": "clearingCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "HKLocalAccountIdentification.TypeEnum", - "format": "" + "type": "HKLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return HKLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace HKLocalAccountIdentification { diff --git a/src/typings/transferWebhooks/hULocalAccountIdentification.ts b/src/typings/transferWebhooks/hULocalAccountIdentification.ts index cb1195a7e..6cc1939be 100644 --- a/src/typings/transferWebhooks/hULocalAccountIdentification.ts +++ b/src/typings/transferWebhooks/hULocalAccountIdentification.ts @@ -12,36 +12,29 @@ export class HULocalAccountIdentification { /** * The 24-digit bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * **huLocal** */ - "type": HULocalAccountIdentification.TypeEnum; + 'type': HULocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "HULocalAccountIdentification.TypeEnum", - "format": "" + "type": "HULocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return HULocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace HULocalAccountIdentification { diff --git a/src/typings/transferWebhooks/ibanAccountIdentification.ts b/src/typings/transferWebhooks/ibanAccountIdentification.ts index a830acab1..e73563c93 100644 --- a/src/typings/transferWebhooks/ibanAccountIdentification.ts +++ b/src/typings/transferWebhooks/ibanAccountIdentification.ts @@ -12,36 +12,29 @@ export class IbanAccountIdentification { /** * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ - "iban": string; + 'iban': string; /** * **iban** */ - "type": IbanAccountIdentification.TypeEnum; + 'type': IbanAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "iban", "baseName": "iban", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "IbanAccountIdentification.TypeEnum", - "format": "" + "type": "IbanAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return IbanAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace IbanAccountIdentification { diff --git a/src/typings/transferWebhooks/internalCategoryData.ts b/src/typings/transferWebhooks/internalCategoryData.ts index bd7c5287b..205518bb5 100644 --- a/src/typings/transferWebhooks/internalCategoryData.ts +++ b/src/typings/transferWebhooks/internalCategoryData.ts @@ -12,46 +12,38 @@ export class InternalCategoryData { /** * The capture\'s merchant reference included in the transfer. */ - "modificationMerchantReference"?: string; + 'modificationMerchantReference'?: string; /** * The capture reference included in the transfer. */ - "modificationPspReference"?: string; + 'modificationPspReference'?: string; /** * **internal** */ - "type"?: InternalCategoryData.TypeEnum; + 'type'?: InternalCategoryData.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "modificationMerchantReference", "baseName": "modificationMerchantReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "modificationPspReference", "baseName": "modificationPspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "InternalCategoryData.TypeEnum", - "format": "" + "type": "InternalCategoryData.TypeEnum" } ]; static getAttributeTypeMap() { return InternalCategoryData.attributeTypeMap; } - - public constructor() { - } } export namespace InternalCategoryData { diff --git a/src/typings/transferWebhooks/internalReviewTrackingData.ts b/src/typings/transferWebhooks/internalReviewTrackingData.ts index 4a8aa3ddd..e90b80b14 100644 --- a/src/typings/transferWebhooks/internalReviewTrackingData.ts +++ b/src/typings/transferWebhooks/internalReviewTrackingData.ts @@ -12,46 +12,38 @@ export class InternalReviewTrackingData { /** * The reason why the transfer failed Adyen\'s internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen\'s risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). */ - "reason"?: InternalReviewTrackingData.ReasonEnum; + 'reason'?: InternalReviewTrackingData.ReasonEnum; /** - * The status of the transfer. Possible values: - **pending**: the transfer is under internal review. - **failed**: the transfer failed Adyen\'s internal review. For details, see `reason`. + * The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen\'s internal review. For details, see `reason`. */ - "status": InternalReviewTrackingData.StatusEnum; + 'status': InternalReviewTrackingData.StatusEnum; /** * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen\'s risk policy. */ - "type": InternalReviewTrackingData.TypeEnum; + 'type': InternalReviewTrackingData.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "reason", "baseName": "reason", - "type": "InternalReviewTrackingData.ReasonEnum", - "format": "" + "type": "InternalReviewTrackingData.ReasonEnum" }, { "name": "status", "baseName": "status", - "type": "InternalReviewTrackingData.StatusEnum", - "format": "" + "type": "InternalReviewTrackingData.StatusEnum" }, { "name": "type", "baseName": "type", - "type": "InternalReviewTrackingData.TypeEnum", - "format": "" + "type": "InternalReviewTrackingData.TypeEnum" } ]; static getAttributeTypeMap() { return InternalReviewTrackingData.attributeTypeMap; } - - public constructor() { - } } export namespace InternalReviewTrackingData { diff --git a/src/typings/transferWebhooks/issuedCard.ts b/src/typings/transferWebhooks/issuedCard.ts index 44d9c0d9c..2e8564bce 100644 --- a/src/typings/transferWebhooks/issuedCard.ts +++ b/src/typings/transferWebhooks/issuedCard.ts @@ -7,101 +7,94 @@ * Do not edit this class manually. */ -import { RelayedAuthorisationData } from "./relayedAuthorisationData"; -import { TransferNotificationValidationFact } from "./transferNotificationValidationFact"; - +import { RelayedAuthorisationData } from './relayedAuthorisationData'; +import { ThreeDSecure } from './threeDSecure'; +import { TransferNotificationValidationFact } from './transferNotificationValidationFact'; export class IssuedCard { /** * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** */ - "authorisationType"?: string; + 'authorisationType'?: string; /** * Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. */ - "panEntryMode"?: IssuedCard.PanEntryModeEnum; + 'panEntryMode'?: IssuedCard.PanEntryModeEnum; /** * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. */ - "processingType"?: IssuedCard.ProcessingTypeEnum; - "relayedAuthorisationData"?: RelayedAuthorisationData | null; + 'processingType'?: IssuedCard.ProcessingTypeEnum; + 'relayedAuthorisationData'?: RelayedAuthorisationData | null; /** * The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. */ - "schemeTraceId"?: string; + 'schemeTraceId'?: string; /** * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. */ - "schemeUniqueTransactionId"?: string; + 'schemeUniqueTransactionId'?: string; + 'threeDSecure'?: ThreeDSecure | null; /** * **issuedCard** */ - "type"?: IssuedCard.TypeEnum; + 'type'?: IssuedCard.TypeEnum; /** * The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. */ - "validationFacts"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'validationFacts'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "authorisationType", "baseName": "authorisationType", - "type": "string", - "format": "" + "type": "string" }, { "name": "panEntryMode", "baseName": "panEntryMode", - "type": "IssuedCard.PanEntryModeEnum", - "format": "" + "type": "IssuedCard.PanEntryModeEnum" }, { "name": "processingType", "baseName": "processingType", - "type": "IssuedCard.ProcessingTypeEnum", - "format": "" + "type": "IssuedCard.ProcessingTypeEnum" }, { "name": "relayedAuthorisationData", "baseName": "relayedAuthorisationData", - "type": "RelayedAuthorisationData | null", - "format": "" + "type": "RelayedAuthorisationData | null" }, { "name": "schemeTraceId", "baseName": "schemeTraceId", - "type": "string", - "format": "" + "type": "string" }, { "name": "schemeUniqueTransactionId", "baseName": "schemeUniqueTransactionId", - "type": "string", - "format": "" + "type": "string" + }, + { + "name": "threeDSecure", + "baseName": "threeDSecure", + "type": "ThreeDSecure | null" }, { "name": "type", "baseName": "type", - "type": "IssuedCard.TypeEnum", - "format": "" + "type": "IssuedCard.TypeEnum" }, { "name": "validationFacts", "baseName": "validationFacts", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return IssuedCard.attributeTypeMap; } - - public constructor() { - } } export namespace IssuedCard { diff --git a/src/typings/transferWebhooks/issuingTransactionData.ts b/src/typings/transferWebhooks/issuingTransactionData.ts index 21cf4f0e7..ad6b55c94 100644 --- a/src/typings/transferWebhooks/issuingTransactionData.ts +++ b/src/typings/transferWebhooks/issuingTransactionData.ts @@ -12,36 +12,29 @@ export class IssuingTransactionData { /** * captureCycleId associated with transfer event. */ - "captureCycleId"?: string; + 'captureCycleId'?: string; /** * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data */ - "type": IssuingTransactionData.TypeEnum; + 'type': IssuingTransactionData.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "captureCycleId", "baseName": "captureCycleId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "IssuingTransactionData.TypeEnum", - "format": "" + "type": "IssuingTransactionData.TypeEnum" } ]; static getAttributeTypeMap() { return IssuingTransactionData.attributeTypeMap; } - - public constructor() { - } } export namespace IssuingTransactionData { diff --git a/src/typings/transferWebhooks/leg.ts b/src/typings/transferWebhooks/leg.ts index b5a4cc75e..034926b3b 100644 --- a/src/typings/transferWebhooks/leg.ts +++ b/src/typings/transferWebhooks/leg.ts @@ -12,75 +12,64 @@ export class Leg { /** * The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. */ - "arrivalAirportCode"?: string; + 'arrivalAirportCode'?: string; /** * The basic fare code for this leg. */ - "basicFareCode"?: string; + 'basicFareCode'?: string; /** * IATA code of the carrier operating the flight. */ - "carrierCode"?: string; + 'carrierCode'?: string; /** * The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details */ - "departureAirportCode"?: string; + 'departureAirportCode'?: string; /** * The flight departure date. */ - "departureDate"?: string; + 'departureDate'?: string; /** * The flight identifier. */ - "flightNumber"?: string; + 'flightNumber'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "arrivalAirportCode", "baseName": "arrivalAirportCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "basicFareCode", "baseName": "basicFareCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "carrierCode", "baseName": "carrierCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "departureAirportCode", "baseName": "departureAirportCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "departureDate", "baseName": "departureDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "flightNumber", "baseName": "flightNumber", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Leg.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transferWebhooks/lodging.ts b/src/typings/transferWebhooks/lodging.ts index ce13cb430..b9d0142bb 100644 --- a/src/typings/transferWebhooks/lodging.ts +++ b/src/typings/transferWebhooks/lodging.ts @@ -12,35 +12,28 @@ export class Lodging { /** * The check-in date. */ - "checkInDate"?: string; + 'checkInDate'?: string; /** * The total number of nights the room is booked for. */ - "numberOfNights"?: number; + 'numberOfNights'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkInDate", "baseName": "checkInDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "numberOfNights", "baseName": "numberOfNights", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return Lodging.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transferWebhooks/merchantData.ts b/src/typings/transferWebhooks/merchantData.ts index 269082122..2faacdc7f 100644 --- a/src/typings/transferWebhooks/merchantData.ts +++ b/src/typings/transferWebhooks/merchantData.ts @@ -7,69 +7,58 @@ * Do not edit this class manually. */ -import { NameLocation } from "./nameLocation"; - +import { NameLocation } from './nameLocation'; export class MerchantData { /** * The unique identifier of the merchant\'s acquirer. */ - "acquirerId"?: string; + 'acquirerId'?: string; /** * The merchant category code. */ - "mcc"?: string; + 'mcc'?: string; /** * The unique identifier of the merchant. */ - "merchantId"?: string; - "nameLocation"?: NameLocation | null; + 'merchantId'?: string; + 'nameLocation'?: NameLocation | null; /** * The postal code of the merchant. */ - "postalCode"?: string; - - static readonly discriminator: string | undefined = undefined; + 'postalCode'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "acquirerId", "baseName": "acquirerId", - "type": "string", - "format": "" + "type": "string" }, { "name": "mcc", "baseName": "mcc", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantId", "baseName": "merchantId", - "type": "string", - "format": "" + "type": "string" }, { "name": "nameLocation", "baseName": "nameLocation", - "type": "NameLocation | null", - "format": "" + "type": "NameLocation | null" }, { "name": "postalCode", "baseName": "postalCode", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return MerchantData.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transferWebhooks/merchantPurchaseData.ts b/src/typings/transferWebhooks/merchantPurchaseData.ts index e4d929c58..925c26e9d 100644 --- a/src/typings/transferWebhooks/merchantPurchaseData.ts +++ b/src/typings/transferWebhooks/merchantPurchaseData.ts @@ -7,51 +7,42 @@ * Do not edit this class manually. */ -import { Airline } from "./airline"; -import { Lodging } from "./lodging"; - +import { Airline } from './airline'; +import { Lodging } from './lodging'; export class MerchantPurchaseData { - "airline"?: Airline | null; + 'airline'?: Airline | null; /** * Lodging information. */ - "lodging"?: Array; + 'lodging'?: Array; /** * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data */ - "type": MerchantPurchaseData.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': MerchantPurchaseData.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "airline", "baseName": "airline", - "type": "Airline | null", - "format": "" + "type": "Airline | null" }, { "name": "lodging", "baseName": "lodging", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "type", "baseName": "type", - "type": "MerchantPurchaseData.TypeEnum", - "format": "" + "type": "MerchantPurchaseData.TypeEnum" } ]; static getAttributeTypeMap() { return MerchantPurchaseData.attributeTypeMap; } - - public constructor() { - } } export namespace MerchantPurchaseData { diff --git a/src/typings/transferWebhooks/models.ts b/src/typings/transferWebhooks/models.ts index 100adacfc..5480f8e8c 100644 --- a/src/typings/transferWebhooks/models.ts +++ b/src/typings/transferWebhooks/models.ts @@ -1,68 +1,375 @@ -export * from "./aULocalAccountIdentification" -export * from "./additionalBankIdentification" -export * from "./address" -export * from "./airline" -export * from "./amount" -export * from "./amountAdjustment" -export * from "./bRLocalAccountIdentification" -export * from "./balanceMutation" -export * from "./balancePlatformNotificationResponse" -export * from "./bankAccountV3" -export * from "./bankAccountV3AccountIdentification" -export * from "./bankCategoryData" -export * from "./cALocalAccountIdentification" -export * from "./cZLocalAccountIdentification" -export * from "./card" -export * from "./cardIdentification" -export * from "./confirmationTrackingData" -export * from "./counterpartyV3" -export * from "./dKLocalAccountIdentification" -export * from "./directDebitInformation" -export * from "./estimationTrackingData" -export * from "./executionDate" -export * from "./externalReason" -export * from "./hKLocalAccountIdentification" -export * from "./hULocalAccountIdentification" -export * from "./ibanAccountIdentification" -export * from "./internalCategoryData" -export * from "./internalReviewTrackingData" -export * from "./issuedCard" -export * from "./issuingTransactionData" -export * from "./leg" -export * from "./lodging" -export * from "./merchantData" -export * from "./merchantPurchaseData" -export * from "./modification" -export * from "./nOLocalAccountIdentification" -export * from "./nZLocalAccountIdentification" -export * from "./nameLocation" -export * from "./numberAndBicAccountIdentification" -export * from "./pLLocalAccountIdentification" -export * from "./partyIdentification" -export * from "./paymentInstrument" -export * from "./platformPayment" -export * from "./relayedAuthorisationData" -export * from "./resource" -export * from "./resourceReference" -export * from "./sELocalAccountIdentification" -export * from "./sGLocalAccountIdentification" -export * from "./transactionEventViolation" -export * from "./transactionRuleReference" -export * from "./transactionRuleSource" -export * from "./transactionRulesResult" -export * from "./transferData" -export * from "./transferDataCategoryData" -export * from "./transferDataTracking" -export * from "./transferEvent" -export * from "./transferEventEventsDataInner" -export * from "./transferEventTrackingData" -export * from "./transferNotificationCounterParty" -export * from "./transferNotificationMerchantData" -export * from "./transferNotificationRequest" -export * from "./transferNotificationValidationFact" -export * from "./transferReview" -export * from "./uKLocalAccountIdentification" -export * from "./uSLocalAccountIdentification" +/* + * The version of the OpenAPI document: v4 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ -// serializing and deserializing typed objects -export * from "./objectSerializer" \ No newline at end of file + +export * from './aULocalAccountIdentification'; +export * from './additionalBankIdentification'; +export * from './address'; +export * from './airline'; +export * from './amount'; +export * from './amountAdjustment'; +export * from './bRLocalAccountIdentification'; +export * from './balanceMutation'; +export * from './balancePlatformNotificationResponse'; +export * from './bankAccountV3'; +export * from './bankCategoryData'; +export * from './cALocalAccountIdentification'; +export * from './cZLocalAccountIdentification'; +export * from './card'; +export * from './cardIdentification'; +export * from './confirmationTrackingData'; +export * from './counterpartyV3'; +export * from './dKLocalAccountIdentification'; +export * from './directDebitInformation'; +export * from './estimationTrackingData'; +export * from './executionDate'; +export * from './externalReason'; +export * from './hKLocalAccountIdentification'; +export * from './hULocalAccountIdentification'; +export * from './ibanAccountIdentification'; +export * from './internalCategoryData'; +export * from './internalReviewTrackingData'; +export * from './issuedCard'; +export * from './issuingTransactionData'; +export * from './leg'; +export * from './lodging'; +export * from './merchantData'; +export * from './merchantPurchaseData'; +export * from './modification'; +export * from './nOLocalAccountIdentification'; +export * from './nZLocalAccountIdentification'; +export * from './nameLocation'; +export * from './numberAndBicAccountIdentification'; +export * from './pLLocalAccountIdentification'; +export * from './partyIdentification'; +export * from './paymentInstrument'; +export * from './platformPayment'; +export * from './relayedAuthorisationData'; +export * from './resource'; +export * from './resourceReference'; +export * from './sELocalAccountIdentification'; +export * from './sGLocalAccountIdentification'; +export * from './threeDSecure'; +export * from './transactionEventViolation'; +export * from './transactionRuleReference'; +export * from './transactionRuleSource'; +export * from './transactionRulesResult'; +export * from './transferData'; +export * from './transferEvent'; +export * from './transferNotificationCounterParty'; +export * from './transferNotificationMerchantData'; +export * from './transferNotificationRequest'; +export * from './transferNotificationValidationFact'; +export * from './transferReview'; +export * from './uKLocalAccountIdentification'; +export * from './uSLocalAccountIdentification'; + + +import { AULocalAccountIdentification } from './aULocalAccountIdentification'; +import { AdditionalBankIdentification } from './additionalBankIdentification'; +import { Address } from './address'; +import { Airline } from './airline'; +import { Amount } from './amount'; +import { AmountAdjustment } from './amountAdjustment'; +import { BRLocalAccountIdentification } from './bRLocalAccountIdentification'; +import { BalanceMutation } from './balanceMutation'; +import { BalancePlatformNotificationResponse } from './balancePlatformNotificationResponse'; +import { BankAccountV3 } from './bankAccountV3'; +import { BankCategoryData } from './bankCategoryData'; +import { CALocalAccountIdentification } from './cALocalAccountIdentification'; +import { CZLocalAccountIdentification } from './cZLocalAccountIdentification'; +import { Card } from './card'; +import { CardIdentification } from './cardIdentification'; +import { ConfirmationTrackingData } from './confirmationTrackingData'; +import { CounterpartyV3 } from './counterpartyV3'; +import { DKLocalAccountIdentification } from './dKLocalAccountIdentification'; +import { DirectDebitInformation } from './directDebitInformation'; +import { EstimationTrackingData } from './estimationTrackingData'; +import { ExecutionDate } from './executionDate'; +import { ExternalReason } from './externalReason'; +import { HKLocalAccountIdentification } from './hKLocalAccountIdentification'; +import { HULocalAccountIdentification } from './hULocalAccountIdentification'; +import { IbanAccountIdentification } from './ibanAccountIdentification'; +import { InternalCategoryData } from './internalCategoryData'; +import { InternalReviewTrackingData } from './internalReviewTrackingData'; +import { IssuedCard } from './issuedCard'; +import { IssuingTransactionData } from './issuingTransactionData'; +import { Leg } from './leg'; +import { Lodging } from './lodging'; +import { MerchantData } from './merchantData'; +import { MerchantPurchaseData } from './merchantPurchaseData'; +import { Modification } from './modification'; +import { NOLocalAccountIdentification } from './nOLocalAccountIdentification'; +import { NZLocalAccountIdentification } from './nZLocalAccountIdentification'; +import { NameLocation } from './nameLocation'; +import { NumberAndBicAccountIdentification } from './numberAndBicAccountIdentification'; +import { PLLocalAccountIdentification } from './pLLocalAccountIdentification'; +import { PartyIdentification } from './partyIdentification'; +import { PaymentInstrument } from './paymentInstrument'; +import { PlatformPayment } from './platformPayment'; +import { RelayedAuthorisationData } from './relayedAuthorisationData'; +import { Resource } from './resource'; +import { ResourceReference } from './resourceReference'; +import { SELocalAccountIdentification } from './sELocalAccountIdentification'; +import { SGLocalAccountIdentification } from './sGLocalAccountIdentification'; +import { ThreeDSecure } from './threeDSecure'; +import { TransactionEventViolation } from './transactionEventViolation'; +import { TransactionRuleReference } from './transactionRuleReference'; +import { TransactionRuleSource } from './transactionRuleSource'; +import { TransactionRulesResult } from './transactionRulesResult'; +import { TransferData } from './transferData'; +import { TransferEvent } from './transferEvent'; +import { TransferNotificationCounterParty } from './transferNotificationCounterParty'; +import { TransferNotificationMerchantData } from './transferNotificationMerchantData'; +import { TransferNotificationRequest } from './transferNotificationRequest'; +import { TransferNotificationValidationFact } from './transferNotificationValidationFact'; +import { TransferReview } from './transferReview'; +import { UKLocalAccountIdentification } from './uKLocalAccountIdentification'; +import { USLocalAccountIdentification } from './uSLocalAccountIdentification'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "AULocalAccountIdentification.TypeEnum": AULocalAccountIdentification.TypeEnum, + "AdditionalBankIdentification.TypeEnum": AdditionalBankIdentification.TypeEnum, + "AmountAdjustment.AmountAdjustmentTypeEnum": AmountAdjustment.AmountAdjustmentTypeEnum, + "BRLocalAccountIdentification.TypeEnum": BRLocalAccountIdentification.TypeEnum, + "BankCategoryData.PriorityEnum": BankCategoryData.PriorityEnum, + "BankCategoryData.TypeEnum": BankCategoryData.TypeEnum, + "CALocalAccountIdentification.AccountTypeEnum": CALocalAccountIdentification.AccountTypeEnum, + "CALocalAccountIdentification.TypeEnum": CALocalAccountIdentification.TypeEnum, + "CZLocalAccountIdentification.TypeEnum": CZLocalAccountIdentification.TypeEnum, + "ConfirmationTrackingData.StatusEnum": ConfirmationTrackingData.StatusEnum, + "ConfirmationTrackingData.TypeEnum": ConfirmationTrackingData.TypeEnum, + "DKLocalAccountIdentification.TypeEnum": DKLocalAccountIdentification.TypeEnum, + "EstimationTrackingData.TypeEnum": EstimationTrackingData.TypeEnum, + "HKLocalAccountIdentification.TypeEnum": HKLocalAccountIdentification.TypeEnum, + "HULocalAccountIdentification.TypeEnum": HULocalAccountIdentification.TypeEnum, + "IbanAccountIdentification.TypeEnum": IbanAccountIdentification.TypeEnum, + "InternalCategoryData.TypeEnum": InternalCategoryData.TypeEnum, + "InternalReviewTrackingData.ReasonEnum": InternalReviewTrackingData.ReasonEnum, + "InternalReviewTrackingData.StatusEnum": InternalReviewTrackingData.StatusEnum, + "InternalReviewTrackingData.TypeEnum": InternalReviewTrackingData.TypeEnum, + "IssuedCard.PanEntryModeEnum": IssuedCard.PanEntryModeEnum, + "IssuedCard.ProcessingTypeEnum": IssuedCard.ProcessingTypeEnum, + "IssuedCard.TypeEnum": IssuedCard.TypeEnum, + "IssuingTransactionData.TypeEnum": IssuingTransactionData.TypeEnum, + "MerchantPurchaseData.TypeEnum": MerchantPurchaseData.TypeEnum, + "Modification.StatusEnum": Modification.StatusEnum, + "NOLocalAccountIdentification.TypeEnum": NOLocalAccountIdentification.TypeEnum, + "NZLocalAccountIdentification.TypeEnum": NZLocalAccountIdentification.TypeEnum, + "NumberAndBicAccountIdentification.TypeEnum": NumberAndBicAccountIdentification.TypeEnum, + "PLLocalAccountIdentification.TypeEnum": PLLocalAccountIdentification.TypeEnum, + "PartyIdentification.TypeEnum": PartyIdentification.TypeEnum, + "PlatformPayment.PlatformPaymentTypeEnum": PlatformPayment.PlatformPaymentTypeEnum, + "PlatformPayment.TypeEnum": PlatformPayment.TypeEnum, + "SELocalAccountIdentification.TypeEnum": SELocalAccountIdentification.TypeEnum, + "SGLocalAccountIdentification.TypeEnum": SGLocalAccountIdentification.TypeEnum, + "TransferData.CategoryEnum": TransferData.CategoryEnum, + "TransferData.DirectionEnum": TransferData.DirectionEnum, + "TransferData.ReasonEnum": TransferData.ReasonEnum, + "TransferData.StatusEnum": TransferData.StatusEnum, + "TransferData.TypeEnum": TransferData.TypeEnum, + "TransferEvent.ReasonEnum": TransferEvent.ReasonEnum, + "TransferEvent.StatusEnum": TransferEvent.StatusEnum, + "TransferEvent.TypeEnum": TransferEvent.TypeEnum, + "TransferNotificationRequest.TypeEnum": TransferNotificationRequest.TypeEnum, + "TransferReview.ScaOnApprovalEnum": TransferReview.ScaOnApprovalEnum, + "UKLocalAccountIdentification.TypeEnum": UKLocalAccountIdentification.TypeEnum, + "USLocalAccountIdentification.AccountTypeEnum": USLocalAccountIdentification.AccountTypeEnum, + "USLocalAccountIdentification.TypeEnum": USLocalAccountIdentification.TypeEnum, +} + +let typeMap: {[index: string]: any} = { + "AULocalAccountIdentification": AULocalAccountIdentification, + "AdditionalBankIdentification": AdditionalBankIdentification, + "Address": Address, + "Airline": Airline, + "Amount": Amount, + "AmountAdjustment": AmountAdjustment, + "BRLocalAccountIdentification": BRLocalAccountIdentification, + "BalanceMutation": BalanceMutation, + "BalancePlatformNotificationResponse": BalancePlatformNotificationResponse, + "BankAccountV3": BankAccountV3, + "BankCategoryData": BankCategoryData, + "CALocalAccountIdentification": CALocalAccountIdentification, + "CZLocalAccountIdentification": CZLocalAccountIdentification, + "Card": Card, + "CardIdentification": CardIdentification, + "ConfirmationTrackingData": ConfirmationTrackingData, + "CounterpartyV3": CounterpartyV3, + "DKLocalAccountIdentification": DKLocalAccountIdentification, + "DirectDebitInformation": DirectDebitInformation, + "EstimationTrackingData": EstimationTrackingData, + "ExecutionDate": ExecutionDate, + "ExternalReason": ExternalReason, + "HKLocalAccountIdentification": HKLocalAccountIdentification, + "HULocalAccountIdentification": HULocalAccountIdentification, + "IbanAccountIdentification": IbanAccountIdentification, + "InternalCategoryData": InternalCategoryData, + "InternalReviewTrackingData": InternalReviewTrackingData, + "IssuedCard": IssuedCard, + "IssuingTransactionData": IssuingTransactionData, + "Leg": Leg, + "Lodging": Lodging, + "MerchantData": MerchantData, + "MerchantPurchaseData": MerchantPurchaseData, + "Modification": Modification, + "NOLocalAccountIdentification": NOLocalAccountIdentification, + "NZLocalAccountIdentification": NZLocalAccountIdentification, + "NameLocation": NameLocation, + "NumberAndBicAccountIdentification": NumberAndBicAccountIdentification, + "PLLocalAccountIdentification": PLLocalAccountIdentification, + "PartyIdentification": PartyIdentification, + "PaymentInstrument": PaymentInstrument, + "PlatformPayment": PlatformPayment, + "RelayedAuthorisationData": RelayedAuthorisationData, + "Resource": Resource, + "ResourceReference": ResourceReference, + "SELocalAccountIdentification": SELocalAccountIdentification, + "SGLocalAccountIdentification": SGLocalAccountIdentification, + "ThreeDSecure": ThreeDSecure, + "TransactionEventViolation": TransactionEventViolation, + "TransactionRuleReference": TransactionRuleReference, + "TransactionRuleSource": TransactionRuleSource, + "TransactionRulesResult": TransactionRulesResult, + "TransferData": TransferData, + "TransferEvent": TransferEvent, + "TransferNotificationCounterParty": TransferNotificationCounterParty, + "TransferNotificationMerchantData": TransferNotificationMerchantData, + "TransferNotificationRequest": TransferNotificationRequest, + "TransferNotificationValidationFact": TransferNotificationValidationFact, + "TransferReview": TransferReview, + "UKLocalAccountIdentification": UKLocalAccountIdentification, + "USLocalAccountIdentification": USLocalAccountIdentification, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/transferWebhooks/modification.ts b/src/typings/transferWebhooks/modification.ts index 172832e37..8dd6de71f 100644 --- a/src/typings/transferWebhooks/modification.ts +++ b/src/typings/transferWebhooks/modification.ts @@ -12,66 +12,56 @@ export class Modification { /** * The direction of the money movement. */ - "direction"?: string; + 'direction'?: string; /** * Our reference for the modification. */ - "id"?: string; + 'id'?: string; /** * Your reference for the modification, used internally within your platform. */ - "reference"?: string; + 'reference'?: string; /** * The status of the transfer event. */ - "status"?: Modification.StatusEnum; + 'status'?: Modification.StatusEnum; /** * The type of transfer modification. */ - "type"?: string; + 'type'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "direction", "baseName": "direction", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "Modification.StatusEnum", - "format": "" + "type": "Modification.StatusEnum" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Modification.attributeTypeMap; } - - public constructor() { - } } export namespace Modification { diff --git a/src/typings/transferWebhooks/nOLocalAccountIdentification.ts b/src/typings/transferWebhooks/nOLocalAccountIdentification.ts index 3c7aa537b..bf78b8301 100644 --- a/src/typings/transferWebhooks/nOLocalAccountIdentification.ts +++ b/src/typings/transferWebhooks/nOLocalAccountIdentification.ts @@ -12,36 +12,29 @@ export class NOLocalAccountIdentification { /** * The 11-digit bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * **noLocal** */ - "type": NOLocalAccountIdentification.TypeEnum; + 'type': NOLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "NOLocalAccountIdentification.TypeEnum", - "format": "" + "type": "NOLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return NOLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace NOLocalAccountIdentification { diff --git a/src/typings/transferWebhooks/nZLocalAccountIdentification.ts b/src/typings/transferWebhooks/nZLocalAccountIdentification.ts index 965854e65..e883d2d38 100644 --- a/src/typings/transferWebhooks/nZLocalAccountIdentification.ts +++ b/src/typings/transferWebhooks/nZLocalAccountIdentification.ts @@ -12,36 +12,29 @@ export class NZLocalAccountIdentification { /** * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. */ - "accountNumber": string; + 'accountNumber': string; /** * **nzLocal** */ - "type": NZLocalAccountIdentification.TypeEnum; + 'type': NZLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "NZLocalAccountIdentification.TypeEnum", - "format": "" + "type": "NZLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return NZLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace NZLocalAccountIdentification { diff --git a/src/typings/transferWebhooks/nameLocation.ts b/src/typings/transferWebhooks/nameLocation.ts index f79f922e2..7166d11d4 100644 --- a/src/typings/transferWebhooks/nameLocation.ts +++ b/src/typings/transferWebhooks/nameLocation.ts @@ -12,75 +12,64 @@ export class NameLocation { /** * The city where the merchant is located. */ - "city"?: string; + 'city'?: string; /** * The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. */ - "country"?: string; + 'country'?: string; /** * The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies. */ - "countryOfOrigin"?: string; + 'countryOfOrigin'?: string; /** * The name of the merchant\'s shop or service. */ - "name"?: string; + 'name'?: string; /** * The raw data. */ - "rawData"?: string; + 'rawData'?: string; /** * The state where the merchant is located. */ - "state"?: string; + 'state'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "city", "baseName": "city", - "type": "string", - "format": "" + "type": "string" }, { "name": "country", "baseName": "country", - "type": "string", - "format": "" + "type": "string" }, { "name": "countryOfOrigin", "baseName": "countryOfOrigin", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "rawData", "baseName": "rawData", - "type": "string", - "format": "" + "type": "string" }, { "name": "state", "baseName": "state", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return NameLocation.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transferWebhooks/numberAndBicAccountIdentification.ts b/src/typings/transferWebhooks/numberAndBicAccountIdentification.ts index 28e9374be..c64f5e5e7 100644 --- a/src/typings/transferWebhooks/numberAndBicAccountIdentification.ts +++ b/src/typings/transferWebhooks/numberAndBicAccountIdentification.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { AdditionalBankIdentification } from "./additionalBankIdentification"; - +import { AdditionalBankIdentification } from './additionalBankIdentification'; export class NumberAndBicAccountIdentification { /** * The bank account number, without separators or whitespace. The length and format depends on the bank or country. */ - "accountNumber": string; - "additionalBankIdentification"?: AdditionalBankIdentification | null; + 'accountNumber': string; + 'additionalBankIdentification'?: AdditionalBankIdentification | null; /** * The bank\'s 8- or 11-character BIC or SWIFT code. */ - "bic": string; + 'bic': string; /** * **numberAndBic** */ - "type": NumberAndBicAccountIdentification.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': NumberAndBicAccountIdentification.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "additionalBankIdentification", "baseName": "additionalBankIdentification", - "type": "AdditionalBankIdentification | null", - "format": "" + "type": "AdditionalBankIdentification | null" }, { "name": "bic", "baseName": "bic", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "NumberAndBicAccountIdentification.TypeEnum", - "format": "" + "type": "NumberAndBicAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return NumberAndBicAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace NumberAndBicAccountIdentification { diff --git a/src/typings/transferWebhooks/objectSerializer.ts b/src/typings/transferWebhooks/objectSerializer.ts deleted file mode 100644 index e0c1d098f..000000000 --- a/src/typings/transferWebhooks/objectSerializer.ts +++ /dev/null @@ -1,535 +0,0 @@ -export * from "./models"; - -import { AULocalAccountIdentification } from "./aULocalAccountIdentification"; -import { AdditionalBankIdentification } from "./additionalBankIdentification"; -import { Address } from "./address"; -import { Airline } from "./airline"; -import { Amount } from "./amount"; -import { AmountAdjustment } from "./amountAdjustment"; -import { BRLocalAccountIdentification } from "./bRLocalAccountIdentification"; -import { BalanceMutation } from "./balanceMutation"; -import { BalancePlatformNotificationResponse } from "./balancePlatformNotificationResponse"; -import { BankAccountV3 } from "./bankAccountV3"; -import { BankAccountV3AccountIdentificationClass } from "./bankAccountV3AccountIdentification"; -import { BankCategoryData } from "./bankCategoryData"; -import { CALocalAccountIdentification } from "./cALocalAccountIdentification"; -import { CZLocalAccountIdentification } from "./cZLocalAccountIdentification"; -import { Card } from "./card"; -import { CardIdentification } from "./cardIdentification"; -import { ConfirmationTrackingData } from "./confirmationTrackingData"; -import { CounterpartyV3 } from "./counterpartyV3"; -import { DKLocalAccountIdentification } from "./dKLocalAccountIdentification"; -import { DirectDebitInformation } from "./directDebitInformation"; -import { EstimationTrackingData } from "./estimationTrackingData"; -import { ExecutionDate } from "./executionDate"; -import { ExternalReason } from "./externalReason"; -import { HKLocalAccountIdentification } from "./hKLocalAccountIdentification"; -import { HULocalAccountIdentification } from "./hULocalAccountIdentification"; -import { IbanAccountIdentification } from "./ibanAccountIdentification"; -import { InternalCategoryData } from "./internalCategoryData"; -import { InternalReviewTrackingData } from "./internalReviewTrackingData"; -import { IssuedCard } from "./issuedCard"; -import { IssuingTransactionData } from "./issuingTransactionData"; -import { Leg } from "./leg"; -import { Lodging } from "./lodging"; -import { MerchantData } from "./merchantData"; -import { MerchantPurchaseData } from "./merchantPurchaseData"; -import { Modification } from "./modification"; -import { NOLocalAccountIdentification } from "./nOLocalAccountIdentification"; -import { NZLocalAccountIdentification } from "./nZLocalAccountIdentification"; -import { NameLocation } from "./nameLocation"; -import { NumberAndBicAccountIdentification } from "./numberAndBicAccountIdentification"; -import { PLLocalAccountIdentification } from "./pLLocalAccountIdentification"; -import { PartyIdentification } from "./partyIdentification"; -import { PaymentInstrument } from "./paymentInstrument"; -import { PlatformPayment } from "./platformPayment"; -import { RelayedAuthorisationData } from "./relayedAuthorisationData"; -import { Resource } from "./resource"; -import { ResourceReference } from "./resourceReference"; -import { SELocalAccountIdentification } from "./sELocalAccountIdentification"; -import { SGLocalAccountIdentification } from "./sGLocalAccountIdentification"; -import { TransactionEventViolation } from "./transactionEventViolation"; -import { TransactionRuleReference } from "./transactionRuleReference"; -import { TransactionRuleSource } from "./transactionRuleSource"; -import { TransactionRulesResult } from "./transactionRulesResult"; -import { TransferData } from "./transferData"; -import { TransferDataCategoryDataClass } from "./transferDataCategoryData"; -import { TransferDataTrackingClass } from "./transferDataTracking"; -import { TransferEvent } from "./transferEvent"; -import { TransferEventEventsDataInnerClass } from "./transferEventEventsDataInner"; -import { TransferEventTrackingDataClass } from "./transferEventTrackingData"; -import { TransferNotificationCounterParty } from "./transferNotificationCounterParty"; -import { TransferNotificationMerchantData } from "./transferNotificationMerchantData"; -import { TransferNotificationRequest } from "./transferNotificationRequest"; -import { TransferNotificationValidationFact } from "./transferNotificationValidationFact"; -import { TransferReview } from "./transferReview"; -import { UKLocalAccountIdentification } from "./uKLocalAccountIdentification"; -import { USLocalAccountIdentification } from "./uSLocalAccountIdentification"; - -/* tslint:disable:no-unused-variable */ -let primitives = [ - "string", - "boolean", - "double", - "integer", - "long", - "float", - "number", - "any" - ]; - -let enumsMap: Set = new Set([ - "AULocalAccountIdentification.TypeEnum", - "AdditionalBankIdentification.TypeEnum", - "AmountAdjustment.AmountAdjustmentTypeEnum", - "BRLocalAccountIdentification.TypeEnum", - "BankAccountV3AccountIdentification.TypeEnum", - "BankAccountV3AccountIdentification.AccountTypeEnum", - "BankCategoryData.PriorityEnum", - "BankCategoryData.TypeEnum", - "CALocalAccountIdentification.AccountTypeEnum", - "CALocalAccountIdentification.TypeEnum", - "CZLocalAccountIdentification.TypeEnum", - "ConfirmationTrackingData.StatusEnum", - "ConfirmationTrackingData.TypeEnum", - "DKLocalAccountIdentification.TypeEnum", - "EstimationTrackingData.TypeEnum", - "HKLocalAccountIdentification.TypeEnum", - "HULocalAccountIdentification.TypeEnum", - "IbanAccountIdentification.TypeEnum", - "InternalCategoryData.TypeEnum", - "InternalReviewTrackingData.ReasonEnum", - "InternalReviewTrackingData.StatusEnum", - "InternalReviewTrackingData.TypeEnum", - "IssuedCard.PanEntryModeEnum", - "IssuedCard.ProcessingTypeEnum", - "IssuedCard.TypeEnum", - "IssuingTransactionData.TypeEnum", - "MerchantPurchaseData.TypeEnum", - "Modification.StatusEnum", - "NOLocalAccountIdentification.TypeEnum", - "NZLocalAccountIdentification.TypeEnum", - "NumberAndBicAccountIdentification.TypeEnum", - "PLLocalAccountIdentification.TypeEnum", - "PartyIdentification.TypeEnum", - "PlatformPayment.PlatformPaymentTypeEnum", - "PlatformPayment.TypeEnum", - "SELocalAccountIdentification.TypeEnum", - "SGLocalAccountIdentification.TypeEnum", - "TransferData.CategoryEnum", - "TransferData.DirectionEnum", - "TransferData.ReasonEnum", - "TransferData.StatusEnum", - "TransferData.TypeEnum", - "TransferDataCategoryData.PriorityEnum", - "TransferDataCategoryData.TypeEnum", - "TransferDataCategoryData.PanEntryModeEnum", - "TransferDataCategoryData.ProcessingTypeEnum", - "TransferDataCategoryData.PlatformPaymentTypeEnum", - "TransferDataTracking.StatusEnum", - "TransferDataTracking.TypeEnum", - "TransferDataTracking.ReasonEnum", - "TransferEvent.ReasonEnum", - "TransferEvent.StatusEnum", - "TransferEvent.TypeEnum", - "TransferEventEventsDataInner.TypeEnum", - "TransferEventTrackingData.StatusEnum", - "TransferEventTrackingData.TypeEnum", - "TransferEventTrackingData.ReasonEnum", - "TransferNotificationRequest.TypeEnum", - "TransferReview.ScaOnApprovalEnum", - "UKLocalAccountIdentification.TypeEnum", - "USLocalAccountIdentification.AccountTypeEnum", - "USLocalAccountIdentification.TypeEnum", -]); - -let typeMap: {[index: string]: any} = { - "AULocalAccountIdentification": AULocalAccountIdentification, - "AdditionalBankIdentification": AdditionalBankIdentification, - "Address": Address, - "Airline": Airline, - "Amount": Amount, - "AmountAdjustment": AmountAdjustment, - "BRLocalAccountIdentification": BRLocalAccountIdentification, - "BalanceMutation": BalanceMutation, - "BalancePlatformNotificationResponse": BalancePlatformNotificationResponse, - "BankAccountV3": BankAccountV3, - "BankAccountV3AccountIdentification": BankAccountV3AccountIdentificationClass, - "BankCategoryData": BankCategoryData, - "CALocalAccountIdentification": CALocalAccountIdentification, - "CZLocalAccountIdentification": CZLocalAccountIdentification, - "Card": Card, - "CardIdentification": CardIdentification, - "ConfirmationTrackingData": ConfirmationTrackingData, - "CounterpartyV3": CounterpartyV3, - "DKLocalAccountIdentification": DKLocalAccountIdentification, - "DirectDebitInformation": DirectDebitInformation, - "EstimationTrackingData": EstimationTrackingData, - "ExecutionDate": ExecutionDate, - "ExternalReason": ExternalReason, - "HKLocalAccountIdentification": HKLocalAccountIdentification, - "HULocalAccountIdentification": HULocalAccountIdentification, - "IbanAccountIdentification": IbanAccountIdentification, - "InternalCategoryData": InternalCategoryData, - "InternalReviewTrackingData": InternalReviewTrackingData, - "IssuedCard": IssuedCard, - "IssuingTransactionData": IssuingTransactionData, - "Leg": Leg, - "Lodging": Lodging, - "MerchantData": MerchantData, - "MerchantPurchaseData": MerchantPurchaseData, - "Modification": Modification, - "NOLocalAccountIdentification": NOLocalAccountIdentification, - "NZLocalAccountIdentification": NZLocalAccountIdentification, - "NameLocation": NameLocation, - "NumberAndBicAccountIdentification": NumberAndBicAccountIdentification, - "PLLocalAccountIdentification": PLLocalAccountIdentification, - "PartyIdentification": PartyIdentification, - "PaymentInstrument": PaymentInstrument, - "PlatformPayment": PlatformPayment, - "RelayedAuthorisationData": RelayedAuthorisationData, - "Resource": Resource, - "ResourceReference": ResourceReference, - "SELocalAccountIdentification": SELocalAccountIdentification, - "SGLocalAccountIdentification": SGLocalAccountIdentification, - "TransactionEventViolation": TransactionEventViolation, - "TransactionRuleReference": TransactionRuleReference, - "TransactionRuleSource": TransactionRuleSource, - "TransactionRulesResult": TransactionRulesResult, - "TransferData": TransferData, - "TransferDataCategoryData": TransferDataCategoryDataClass, - "TransferDataTracking": TransferDataTrackingClass, - "TransferEvent": TransferEvent, - "TransferEventEventsDataInner": TransferEventEventsDataInnerClass, - "TransferEventTrackingData": TransferEventTrackingDataClass, - "TransferNotificationCounterParty": TransferNotificationCounterParty, - "TransferNotificationMerchantData": TransferNotificationMerchantData, - "TransferNotificationRequest": TransferNotificationRequest, - "TransferNotificationValidationFact": TransferNotificationValidationFact, - "TransferReview": TransferReview, - "UKLocalAccountIdentification": UKLocalAccountIdentification, - "USLocalAccountIdentification": USLocalAccountIdentification, -} - -type MimeTypeDescriptor = { - type: string; - subtype: string; - subtypeTokens: string[]; -}; - -/** - * Every mime-type consists of a type, subtype, and optional parameters. - * The subtype can be composite, including information about the content format. - * For example: `application/json-patch+json`, `application/merge-patch+json`. - * - * This helper transforms a string mime-type into an internal representation. - * This simplifies the implementation of predicates that in turn define common rules for parsing or stringifying - * the payload. - */ -const parseMimeType = (mimeType: string): MimeTypeDescriptor => { - const [type = '', subtype = ''] = mimeType.split('/'); - return { - type, - subtype, - subtypeTokens: subtype.split('+'), - }; -}; - -type MimeTypePredicate = (mimeType: string) => boolean; - -// This factory creates a predicate function that checks a string mime-type against defined rules. -const mimeTypePredicateFactory = (predicate: (descriptor: MimeTypeDescriptor) => boolean): MimeTypePredicate => (mimeType) => predicate(parseMimeType(mimeType)); - -// Use this factory when you need to define a simple predicate based only on type and, if applicable, subtype. -const mimeTypeSimplePredicateFactory = (type: string, subtype?: string): MimeTypePredicate => mimeTypePredicateFactory((descriptor) => { - if (descriptor.type !== type) return false; - if (subtype != null && descriptor.subtype !== subtype) return false; - return true; -}); - -// Creating a set of named predicates that will help us determine how to handle different mime-types -const isTextLikeMimeType = mimeTypeSimplePredicateFactory('text'); -const isJsonMimeType = mimeTypeSimplePredicateFactory('application', 'json'); -const isJsonLikeMimeType = mimeTypePredicateFactory((descriptor) => descriptor.type === 'application' && descriptor.subtypeTokens.some((item) => item === 'json')); -const isOctetStreamMimeType = mimeTypeSimplePredicateFactory('application', 'octet-stream'); -const isFormUrlencodedMimeType = mimeTypeSimplePredicateFactory('application', 'x-www-form-urlencoded'); - -// Defining a list of mime-types in the order of prioritization for handling. -const supportedMimeTypePredicatesWithPriority: MimeTypePredicate[] = [ - isJsonMimeType, - isJsonLikeMimeType, - isTextLikeMimeType, - isOctetStreamMimeType, - isFormUrlencodedMimeType, -]; - -const nullableSuffix = " | null"; -const optionalSuffix = " | undefined"; -const arrayPrefix = "Array<"; -const arraySuffix = ">"; -const mapPrefix = "{ [key: string]: "; -const mapSuffix = "; }"; - -export class ObjectSerializer { - public static findCorrectType(data: any, expectedType: string) { - if (data == undefined) { - return expectedType; - } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { - return expectedType; - } else if (expectedType === "Date") { - return expectedType; - } else { - if (enumsMap.has(expectedType)) { - return expectedType; - } - - if (!typeMap[expectedType]) { - return expectedType; // w/e we don't know the type - } - - // Check the discriminator - let discriminatorProperty = typeMap[expectedType].discriminator; - if (discriminatorProperty == null) { - return expectedType; // the type does not have a discriminator. use it. - } else { - if (data[discriminatorProperty]) { - var discriminatorType = data[discriminatorProperty]; - let mapping = typeMap[expectedType].mapping; - if (mapping != undefined && mapping[discriminatorType]) { - return mapping[discriminatorType]; // use the type given in the discriminator - } else if(typeMap[discriminatorType]) { - return discriminatorType; - } else { - return expectedType; // discriminator did not map to a type - } - } else { - return expectedType; // discriminator was not present (or an empty string) - } - } - } - } - - /** - * Serializes a value into a plain JSON-compatible object based on its type. - * - * Supports primitives, arrays, maps, dates, enums, and classes defined in `typeMap`. - * Falls back to raw data if type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The value to serialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A JSON-compatible representation of `data`. - */ - public static serialize(data: any, type: string, format: string = ""): any { - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.serialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.serialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - if (format == "date") { - let month = data.getMonth()+1 - month = month < 10 ? "0" + month.toString() : month.toString() - let day = data.getDate(); - day = day < 10 ? "0" + day.toString() : day.toString(); - - return data.getFullYear() + "-" + month + "-" + day; - } else { - return data.toISOString(); - } - } else { - if (enumsMap.has(type)) { - return data; - } - if (!typeMap[type]) { // in case we dont know the type - return data; - } - - // Get the actual type of this object - type = this.findCorrectType(data, type); - - const clazz = typeMap[type]; - - // Safe check for getAttributeTypeMap - if (typeof clazz.getAttributeTypeMap !== "function") { - return { ...data }; // fallback: shallow copy - } - - // get the map for the correct type. - let attributeTypes = typeMap[type].getAttributeTypeMap(); - let instance: {[index: string]: any} = {}; - for (let attributeType of attributeTypes) { - instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format); - } - return instance; - } - } - - /** - * Deserializes a plain JSON-compatible object into a typed instance. - * - * Handles primitives, arrays, maps, dates, enums, and known classes from `typeMap`. - * Uses discriminators when available to resolve polymorphic types. - * Falls back to raw data if the type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The raw input to deserialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A deserialized instance or value of `data`. - */ - public static deserialize(data: any, type: string, format: string = ""): any { - // polymorphism may change the actual type. - type = ObjectSerializer.findCorrectType(data, type); - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.deserialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.deserialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - return new Date(data); - } else { - if (enumsMap.has(type)) {// is Enum - return data; - } - - if (!typeMap[type]) { // dont know the type - return data; - } - let instance = new typeMap[type](); - - // Safe check for getAttributeTypeMap - if (typeof typeMap[type].getAttributeTypeMap !== "function") { - Object.assign(instance, data); // fallback: shallow copy - return instance; - } - - let attributeTypes = typeMap[type].getAttributeTypeMap(); - for (let attributeType of attributeTypes) { - let value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format); - if (value !== undefined) { - instance[attributeType.name] = value; - } - } - return instance; - } - } - - - /** - * Normalize media type - * - * We currently do not handle any media types attributes, i.e. anything - * after a semicolon. All content is assumed to be UTF-8 compatible. - */ - public static normalizeMediaType(mediaType: string | undefined): string | undefined { - if (mediaType === undefined) { - return undefined; - } - return (mediaType.split(";")[0] ?? '').trim().toLowerCase(); - } - - /** - * From a list of possible media types, choose the one we can handle best. - * - * The order of the given media types does not have any impact on the choice - * made. - */ - public static getPreferredMediaType(mediaTypes: Array): string { - /** According to OAS 3 we should default to json */ - if (mediaTypes.length === 0) { - return "application/json"; - } - - const normalMediaTypes = mediaTypes.map(ObjectSerializer.normalizeMediaType); - - for (const predicate of supportedMimeTypePredicatesWithPriority) { - for (const mediaType of normalMediaTypes) { - if (mediaType != null && predicate(mediaType)) { - return mediaType; - } - } - } - - throw new Error("None of the given media types are supported: " + mediaTypes.join(", ")); - } - - /** - * Convert data to a string according the given media type - */ - public static stringify(data: any, mediaType: string): string { - if (isTextLikeMimeType(mediaType)) { - return String(data); - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.stringify(data); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify."); - } - - /** - * Parse data from a string according to the given media type - */ - public static parse(rawData: string, mediaType: string | undefined) { - if (mediaType === undefined) { - throw new Error("Cannot parse content. No Content-Type defined."); - } - - if (isTextLikeMimeType(mediaType)) { - return rawData; - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.parse(rawData); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse."); - } -} diff --git a/src/typings/transferWebhooks/pLLocalAccountIdentification.ts b/src/typings/transferWebhooks/pLLocalAccountIdentification.ts index 7621bec90..f7abd24b7 100644 --- a/src/typings/transferWebhooks/pLLocalAccountIdentification.ts +++ b/src/typings/transferWebhooks/pLLocalAccountIdentification.ts @@ -12,36 +12,29 @@ export class PLLocalAccountIdentification { /** * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * **plLocal** */ - "type": PLLocalAccountIdentification.TypeEnum; + 'type': PLLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "PLLocalAccountIdentification.TypeEnum", - "format": "" + "type": "PLLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return PLLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace PLLocalAccountIdentification { diff --git a/src/typings/transferWebhooks/partyIdentification.ts b/src/typings/transferWebhooks/partyIdentification.ts index e874d6a3d..4dabeeece 100644 --- a/src/typings/transferWebhooks/partyIdentification.ts +++ b/src/typings/transferWebhooks/partyIdentification.ts @@ -7,90 +7,77 @@ * Do not edit this class manually. */ -import { Address } from "./address"; - +import { Address } from './address'; export class PartyIdentification { - "address"?: Address | null; + 'address'?: Address | null; /** * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. */ - "dateOfBirth"?: string; + 'dateOfBirth'?: string; /** * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. */ - "firstName"?: string; + 'firstName'?: string; /** * The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" \' and space. Required when `category` is **bank**. */ - "fullName"?: string; + 'fullName'?: string; /** * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. */ - "lastName"?: string; + 'lastName'?: string; /** * A unique reference to identify the party or counterparty involved in the transfer. For example, your client\'s unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. */ - "reference"?: string; + 'reference'?: string; /** * The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. */ - "type"?: PartyIdentification.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type'?: PartyIdentification.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "address", "baseName": "address", - "type": "Address | null", - "format": "" + "type": "Address | null" }, { "name": "dateOfBirth", "baseName": "dateOfBirth", - "type": "string", - "format": "date" + "type": "string" }, { "name": "firstName", "baseName": "firstName", - "type": "string", - "format": "" + "type": "string" }, { "name": "fullName", "baseName": "fullName", - "type": "string", - "format": "" + "type": "string" }, { "name": "lastName", "baseName": "lastName", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "PartyIdentification.TypeEnum", - "format": "" + "type": "PartyIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return PartyIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace PartyIdentification { diff --git a/src/typings/transferWebhooks/paymentInstrument.ts b/src/typings/transferWebhooks/paymentInstrument.ts index 025699a40..0aa0be54b 100644 --- a/src/typings/transferWebhooks/paymentInstrument.ts +++ b/src/typings/transferWebhooks/paymentInstrument.ts @@ -12,55 +12,46 @@ export class PaymentInstrument { /** * The description of the resource. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the resource. */ - "id"?: string; + 'id'?: string; /** * The reference for the resource. */ - "reference"?: string; + 'reference'?: string; /** * The type of wallet that the network token is associated with. */ - "tokenType"?: string; + 'tokenType'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "tokenType", "baseName": "tokenType", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PaymentInstrument.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transferWebhooks/platformPayment.ts b/src/typings/transferWebhooks/platformPayment.ts index dc9283316..5d386859f 100644 --- a/src/typings/transferWebhooks/platformPayment.ts +++ b/src/typings/transferWebhooks/platformPayment.ts @@ -12,76 +12,65 @@ export class PlatformPayment { /** * The capture\'s merchant reference included in the transfer. */ - "modificationMerchantReference"?: string; + 'modificationMerchantReference'?: string; /** * The capture reference included in the transfer. */ - "modificationPspReference"?: string; + 'modificationPspReference'?: string; /** * The payment\'s merchant reference included in the transfer. */ - "paymentMerchantReference"?: string; + 'paymentMerchantReference'?: string; /** * Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen\'s commission and Adyen\'s markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform\'s commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user\'s balance account. * **VAT**: for the Value Added Tax. */ - "platformPaymentType"?: PlatformPayment.PlatformPaymentTypeEnum; + 'platformPaymentType'?: PlatformPayment.PlatformPaymentTypeEnum; /** * The payment reference included in the transfer. */ - "pspPaymentReference"?: string; + 'pspPaymentReference'?: string; /** * **platformPayment** */ - "type"?: PlatformPayment.TypeEnum; + 'type'?: PlatformPayment.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "modificationMerchantReference", "baseName": "modificationMerchantReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "modificationPspReference", "baseName": "modificationPspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMerchantReference", "baseName": "paymentMerchantReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "platformPaymentType", "baseName": "platformPaymentType", - "type": "PlatformPayment.PlatformPaymentTypeEnum", - "format": "" + "type": "PlatformPayment.PlatformPaymentTypeEnum" }, { "name": "pspPaymentReference", "baseName": "pspPaymentReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "PlatformPayment.TypeEnum", - "format": "" + "type": "PlatformPayment.TypeEnum" } ]; static getAttributeTypeMap() { return PlatformPayment.attributeTypeMap; } - - public constructor() { - } } export namespace PlatformPayment { diff --git a/src/typings/transferWebhooks/relayedAuthorisationData.ts b/src/typings/transferWebhooks/relayedAuthorisationData.ts index 56d119b1f..62eef5e64 100644 --- a/src/typings/transferWebhooks/relayedAuthorisationData.ts +++ b/src/typings/transferWebhooks/relayedAuthorisationData.ts @@ -12,35 +12,28 @@ export class RelayedAuthorisationData { /** * Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. */ - "metadata"?: { [key: string]: string; }; + 'metadata'?: { [key: string]: string; }; /** * Your reference for the relayed authorisation data. */ - "reference"?: string; + 'reference'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "metadata", "baseName": "metadata", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return RelayedAuthorisationData.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transferWebhooks/resource.ts b/src/typings/transferWebhooks/resource.ts index b96700779..16c3e4f00 100644 --- a/src/typings/transferWebhooks/resource.ts +++ b/src/typings/transferWebhooks/resource.ts @@ -12,45 +12,37 @@ export class Resource { /** * The unique identifier of the balance platform. */ - "balancePlatform"?: string; + 'balancePlatform'?: string; /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. */ - "creationDate"?: Date; + 'creationDate'?: Date; /** * The ID of the resource. */ - "id"?: string; + 'id'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balancePlatform", "baseName": "balancePlatform", - "type": "string", - "format": "" + "type": "string" }, { "name": "creationDate", "baseName": "creationDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Resource.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transferWebhooks/resourceReference.ts b/src/typings/transferWebhooks/resourceReference.ts index dbb5176f0..e6f054e73 100644 --- a/src/typings/transferWebhooks/resourceReference.ts +++ b/src/typings/transferWebhooks/resourceReference.ts @@ -12,45 +12,37 @@ export class ResourceReference { /** * The description of the resource. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the resource. */ - "id"?: string; + 'id'?: string; /** * The reference for the resource. */ - "reference"?: string; + 'reference'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ResourceReference.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transferWebhooks/sELocalAccountIdentification.ts b/src/typings/transferWebhooks/sELocalAccountIdentification.ts index 4f7fbc20c..2af713ce3 100644 --- a/src/typings/transferWebhooks/sELocalAccountIdentification.ts +++ b/src/typings/transferWebhooks/sELocalAccountIdentification.ts @@ -12,46 +12,38 @@ export class SELocalAccountIdentification { /** * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. */ - "clearingNumber": string; + 'clearingNumber': string; /** * **seLocal** */ - "type": SELocalAccountIdentification.TypeEnum; + 'type': SELocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "clearingNumber", "baseName": "clearingNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "SELocalAccountIdentification.TypeEnum", - "format": "" + "type": "SELocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return SELocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace SELocalAccountIdentification { diff --git a/src/typings/transferWebhooks/sGLocalAccountIdentification.ts b/src/typings/transferWebhooks/sGLocalAccountIdentification.ts index b4b83144d..c18f742ea 100644 --- a/src/typings/transferWebhooks/sGLocalAccountIdentification.ts +++ b/src/typings/transferWebhooks/sGLocalAccountIdentification.ts @@ -12,46 +12,38 @@ export class SGLocalAccountIdentification { /** * The 4- to 19-digit bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * The bank\'s 8- or 11-character BIC or SWIFT code. */ - "bic": string; + 'bic': string; /** * **sgLocal** */ - "type"?: SGLocalAccountIdentification.TypeEnum; + 'type'?: SGLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "bic", "baseName": "bic", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "SGLocalAccountIdentification.TypeEnum", - "format": "" + "type": "SGLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return SGLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace SGLocalAccountIdentification { diff --git a/src/typings/transferWebhooks/threeDSecure.ts b/src/typings/transferWebhooks/threeDSecure.ts new file mode 100644 index 000000000..c3f8cbd7a --- /dev/null +++ b/src/typings/transferWebhooks/threeDSecure.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v4 + * + * + * 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 ThreeDSecure { + /** + * The transaction identifier for the Access Control Server + */ + 'acsTransactionId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acsTransactionId", + "baseName": "acsTransactionId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDSecure.attributeTypeMap; + } +} + diff --git a/src/typings/transferWebhooks/transactionEventViolation.ts b/src/typings/transferWebhooks/transactionEventViolation.ts index 6724cb0f8..4d65525bb 100644 --- a/src/typings/transferWebhooks/transactionEventViolation.ts +++ b/src/typings/transferWebhooks/transactionEventViolation.ts @@ -7,47 +7,38 @@ * Do not edit this class manually. */ -import { TransactionRuleReference } from "./transactionRuleReference"; -import { TransactionRuleSource } from "./transactionRuleSource"; - +import { TransactionRuleReference } from './transactionRuleReference'; +import { TransactionRuleSource } from './transactionRuleSource'; export class TransactionEventViolation { /** * An explanation about why the transaction rule failed. */ - "reason"?: string; - "transactionRule"?: TransactionRuleReference | null; - "transactionRuleSource"?: TransactionRuleSource | null; - - static readonly discriminator: string | undefined = undefined; + 'reason'?: string; + 'transactionRule'?: TransactionRuleReference | null; + 'transactionRuleSource'?: TransactionRuleSource | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "reason", "baseName": "reason", - "type": "string", - "format": "" + "type": "string" }, { "name": "transactionRule", "baseName": "transactionRule", - "type": "TransactionRuleReference | null", - "format": "" + "type": "TransactionRuleReference | null" }, { "name": "transactionRuleSource", "baseName": "transactionRuleSource", - "type": "TransactionRuleSource | null", - "format": "" + "type": "TransactionRuleSource | null" } ]; static getAttributeTypeMap() { return TransactionEventViolation.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transferWebhooks/transactionRuleReference.ts b/src/typings/transferWebhooks/transactionRuleReference.ts index 3614ed8ed..6565512ce 100644 --- a/src/typings/transferWebhooks/transactionRuleReference.ts +++ b/src/typings/transferWebhooks/transactionRuleReference.ts @@ -12,65 +12,55 @@ export class TransactionRuleReference { /** * The description of the resource. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the resource. */ - "id"?: string; + 'id'?: string; /** * The outcome type of the rule. */ - "outcomeType"?: string; + 'outcomeType'?: string; /** * The reference for the resource. */ - "reference"?: string; + 'reference'?: string; /** * The score of the rule in case it\'s a scoreBased rule. */ - "score"?: number; + 'score'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "outcomeType", "baseName": "outcomeType", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "score", "baseName": "score", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return TransactionRuleReference.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transferWebhooks/transactionRuleSource.ts b/src/typings/transferWebhooks/transactionRuleSource.ts index c21184b53..7765e2952 100644 --- a/src/typings/transferWebhooks/transactionRuleSource.ts +++ b/src/typings/transferWebhooks/transactionRuleSource.ts @@ -12,35 +12,28 @@ export class TransactionRuleSource { /** * ID of the resource, when applicable. */ - "id"?: string; + 'id'?: string; /** * Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. */ - "type"?: string; + 'type'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TransactionRuleSource.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transferWebhooks/transactionRulesResult.ts b/src/typings/transferWebhooks/transactionRulesResult.ts index c4173ff87..69dc59e79 100644 --- a/src/typings/transferWebhooks/transactionRulesResult.ts +++ b/src/typings/transferWebhooks/transactionRulesResult.ts @@ -7,62 +7,52 @@ * Do not edit this class manually. */ -import { TransactionEventViolation } from "./transactionEventViolation"; - +import { TransactionEventViolation } from './transactionEventViolation'; export class TransactionRulesResult { /** * The advice given by the Risk analysis. */ - "advice"?: string; + 'advice'?: string; /** * Indicates whether the transaction passed the evaluation for all hardblock rules */ - "allHardBlockRulesPassed"?: boolean; + 'allHardBlockRulesPassed'?: boolean; /** * The score of the Risk analysis. */ - "score"?: number; + 'score'?: number; /** * Array containing all the transaction rules that the transaction triggered. */ - "triggeredTransactionRules"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'triggeredTransactionRules'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "advice", "baseName": "advice", - "type": "string", - "format": "" + "type": "string" }, { "name": "allHardBlockRulesPassed", "baseName": "allHardBlockRulesPassed", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "score", "baseName": "score", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "triggeredTransactionRules", "baseName": "triggeredTransactionRules", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return TransactionRulesResult.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transferWebhooks/transferData.ts b/src/typings/transferWebhooks/transferData.ts index eea3fea87..e52829ff4 100644 --- a/src/typings/transferWebhooks/transferData.ts +++ b/src/typings/transferWebhooks/transferData.ts @@ -7,269 +7,268 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { BalanceMutation } from "./balanceMutation"; -import { DirectDebitInformation } from "./directDebitInformation"; -import { ExecutionDate } from "./executionDate"; -import { ExternalReason } from "./externalReason"; -import { PaymentInstrument } from "./paymentInstrument"; -import { ResourceReference } from "./resourceReference"; -import { TransactionRulesResult } from "./transactionRulesResult"; -import { TransferDataCategoryData } from "./transferDataCategoryData"; -import { TransferDataTracking } from "./transferDataTracking"; -import { TransferEvent } from "./transferEvent"; -import { TransferNotificationCounterParty } from "./transferNotificationCounterParty"; -import { TransferReview } from "./transferReview"; - +import { Amount } from './amount'; +import { BalanceMutation } from './balanceMutation'; +import { BankCategoryData } from './bankCategoryData'; +import { ConfirmationTrackingData } from './confirmationTrackingData'; +import { DirectDebitInformation } from './directDebitInformation'; +import { EstimationTrackingData } from './estimationTrackingData'; +import { ExecutionDate } from './executionDate'; +import { ExternalReason } from './externalReason'; +import { InternalCategoryData } from './internalCategoryData'; +import { InternalReviewTrackingData } from './internalReviewTrackingData'; +import { IssuedCard } from './issuedCard'; +import { PaymentInstrument } from './paymentInstrument'; +import { PlatformPayment } from './platformPayment'; +import { ResourceReference } from './resourceReference'; +import { TransactionRulesResult } from './transactionRulesResult'; +import { TransferEvent } from './transferEvent'; +import { TransferNotificationCounterParty } from './transferNotificationCounterParty'; +import { TransferReview } from './transferReview'; export class TransferData { - "accountHolder"?: ResourceReference | null; - "amount": Amount; - "balanceAccount"?: ResourceReference | null; + 'accountHolder'?: ResourceReference | null; + 'amount': Amount; + 'balanceAccount'?: ResourceReference | null; /** * The unique identifier of the balance platform. */ - "balancePlatform"?: string; + 'balancePlatform'?: string; /** * The list of the latest balance statuses in the transfer. */ - "balances"?: Array; + 'balances'?: Array; /** * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. */ - "category": TransferData.CategoryEnum; - "categoryData"?: TransferDataCategoryData | null; - "counterparty"?: TransferNotificationCounterParty | null; + 'category': TransferData.CategoryEnum; + /** + * The relevant data according to the transfer category. + */ + 'categoryData'?: BankCategoryData | InternalCategoryData | IssuedCard | PlatformPayment | null; + 'counterparty'?: TransferNotificationCounterParty | null; + /** + * The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + */ + 'createdAt'?: Date; /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * + * @deprecated since Transfer webhooks v3 + * Use createdAt or updatedAt */ - "creationDate"?: Date; + 'creationDate'?: Date; /** * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , \' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ \' \" ! ?** */ - "description"?: string; - "directDebitInformation"?: DirectDebitInformation | null; + 'description'?: string; + 'directDebitInformation'?: DirectDebitInformation | null; /** * The direction of the transfer. Possible values: **incoming**, **outgoing**. */ - "direction"?: TransferData.DirectionEnum; + 'direction'?: TransferData.DirectionEnum; /** * The unique identifier of the latest transfer event. Included only when the `category` is **issuedCard**. */ - "eventId"?: string; + 'eventId'?: string; /** * The list of events leading up to the current status of the transfer. */ - "events"?: Array; - "executionDate"?: ExecutionDate | null; - "externalReason"?: ExternalReason | null; + 'events'?: Array; + 'executionDate'?: ExecutionDate | null; + 'externalReason'?: ExternalReason | null; /** * The ID of the resource. */ - "id"?: string; - "paymentInstrument"?: PaymentInstrument | null; + 'id'?: string; + 'paymentInstrument'?: PaymentInstrument | null; /** * Additional information about the status of the transfer. */ - "reason"?: TransferData.ReasonEnum; + 'reason'?: TransferData.ReasonEnum; /** * Your reference for the transfer, used internally within your platform. If you don\'t provide this in the request, Adyen generates a unique reference. */ - "reference"?: string; + 'reference'?: string; /** * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. */ - "referenceForBeneficiary"?: string; - "review"?: TransferReview | null; + 'referenceForBeneficiary'?: string; + 'review'?: TransferReview | null; /** * The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. */ - "sequenceNumber"?: number; + 'sequenceNumber'?: number; /** - * The result of the transfer. For example, **authorised**, **refused**, or **error**. + * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user\'s balance account. - **failed**: the transfer is rejected by the counterparty\'s bank. - **returned**: the transfer is returned by the counterparty\'s bank. */ - "status": TransferData.StatusEnum; - "tracking"?: TransferDataTracking | null; - "transactionRulesResult"?: TransactionRulesResult | null; + 'status': TransferData.StatusEnum; + /** + * The latest tracking information of the transfer. + */ + 'tracking'?: ConfirmationTrackingData | EstimationTrackingData | InternalReviewTrackingData | null; + 'transactionRulesResult'?: TransactionRulesResult | null; /** * The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. */ - "type"?: TransferData.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type'?: TransferData.TypeEnum; + /** + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + */ + 'updatedAt'?: Date; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountHolder", "baseName": "accountHolder", - "type": "ResourceReference | null", - "format": "" + "type": "ResourceReference | null" }, { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "balanceAccount", "baseName": "balanceAccount", - "type": "ResourceReference | null", - "format": "" + "type": "ResourceReference | null" }, { "name": "balancePlatform", "baseName": "balancePlatform", - "type": "string", - "format": "" + "type": "string" }, { "name": "balances", "baseName": "balances", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "category", "baseName": "category", - "type": "TransferData.CategoryEnum", - "format": "" + "type": "TransferData.CategoryEnum" }, { "name": "categoryData", "baseName": "categoryData", - "type": "TransferDataCategoryData | null", - "format": "" + "type": "BankCategoryData | InternalCategoryData | IssuedCard | PlatformPayment | null" }, { "name": "counterparty", "baseName": "counterparty", - "type": "TransferNotificationCounterParty | null", - "format": "" + "type": "TransferNotificationCounterParty | null" + }, + { + "name": "createdAt", + "baseName": "createdAt", + "type": "Date" }, { "name": "creationDate", "baseName": "creationDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "directDebitInformation", "baseName": "directDebitInformation", - "type": "DirectDebitInformation | null", - "format": "" + "type": "DirectDebitInformation | null" }, { "name": "direction", "baseName": "direction", - "type": "TransferData.DirectionEnum", - "format": "" + "type": "TransferData.DirectionEnum" }, { "name": "eventId", "baseName": "eventId", - "type": "string", - "format": "" + "type": "string" }, { "name": "events", "baseName": "events", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "executionDate", "baseName": "executionDate", - "type": "ExecutionDate | null", - "format": "" + "type": "ExecutionDate | null" }, { "name": "externalReason", "baseName": "externalReason", - "type": "ExternalReason | null", - "format": "" + "type": "ExternalReason | null" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentInstrument", "baseName": "paymentInstrument", - "type": "PaymentInstrument | null", - "format": "" + "type": "PaymentInstrument | null" }, { "name": "reason", "baseName": "reason", - "type": "TransferData.ReasonEnum", - "format": "" + "type": "TransferData.ReasonEnum" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "referenceForBeneficiary", "baseName": "referenceForBeneficiary", - "type": "string", - "format": "" + "type": "string" }, { "name": "review", "baseName": "review", - "type": "TransferReview | null", - "format": "" + "type": "TransferReview | null" }, { "name": "sequenceNumber", "baseName": "sequenceNumber", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "status", "baseName": "status", - "type": "TransferData.StatusEnum", - "format": "" + "type": "TransferData.StatusEnum" }, { "name": "tracking", "baseName": "tracking", - "type": "TransferDataTracking | null", - "format": "" + "type": "ConfirmationTrackingData | EstimationTrackingData | InternalReviewTrackingData | null" }, { "name": "transactionRulesResult", "baseName": "transactionRulesResult", - "type": "TransactionRulesResult | null", - "format": "" + "type": "TransactionRulesResult | null" }, { "name": "type", "baseName": "type", - "type": "TransferData.TypeEnum", - "format": "" + "type": "TransferData.TypeEnum" + }, + { + "name": "updatedAt", + "baseName": "updatedAt", + "type": "Date" } ]; static getAttributeTypeMap() { return TransferData.attributeTypeMap; } - - public constructor() { - } } export namespace TransferData { diff --git a/src/typings/transferWebhooks/transferDataCategoryData.ts b/src/typings/transferWebhooks/transferDataCategoryData.ts deleted file mode 100644 index 49d2aa225..000000000 --- a/src/typings/transferWebhooks/transferDataCategoryData.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * The version of the OpenAPI document: v4 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit this class manually. - */ - -import { BankCategoryData } from "./bankCategoryData"; -import { InternalCategoryData } from "./internalCategoryData"; -import { IssuedCard } from "./issuedCard"; -import { PlatformPayment } from "./platformPayment"; - -/** -* The relevant data according to the transfer category. -*/ - - -/** - * @type TransferDataCategoryData - * Type - * @export - */ -export type TransferDataCategoryData = BankCategoryData | InternalCategoryData | IssuedCard | PlatformPayment; - -/** -* @type TransferDataCategoryDataClass - * The relevant data according to the transfer category. -* @export -*/ -export class TransferDataCategoryDataClass { - - static readonly discriminator: string = "type"; - - static readonly mapping: {[index: string]: string} | undefined = undefined; -} diff --git a/src/typings/transferWebhooks/transferDataTracking.ts b/src/typings/transferWebhooks/transferDataTracking.ts deleted file mode 100644 index 989c4f3bb..000000000 --- a/src/typings/transferWebhooks/transferDataTracking.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * The version of the OpenAPI document: v4 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit this class manually. - */ - -import { ConfirmationTrackingData } from "./confirmationTrackingData"; -import { EstimationTrackingData } from "./estimationTrackingData"; -import { InternalReviewTrackingData } from "./internalReviewTrackingData"; - -/** -* The latest tracking information of the transfer. -*/ - - -/** - * @type TransferDataTracking - * Type - * @export - */ -export type TransferDataTracking = ConfirmationTrackingData | EstimationTrackingData | InternalReviewTrackingData; - -/** -* @type TransferDataTrackingClass - * The latest tracking information of the transfer. -* @export -*/ -export class TransferDataTrackingClass { - - - static readonly discriminator: string | undefined = "type"; - - static readonly mapping: {[index: string]: string} | undefined = { - "confirmation": "ConfirmationTrackingData", - "estimation": "EstimationTrackingData", - "internalReview": "InternalReviewTrackingData", - }; -} diff --git a/src/typings/transferWebhooks/transferEvent.ts b/src/typings/transferWebhooks/transferEvent.ts index 55302e06f..ea2b3e30f 100644 --- a/src/typings/transferWebhooks/transferEvent.ts +++ b/src/typings/transferWebhooks/transferEvent.ts @@ -7,194 +7,177 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { AmountAdjustment } from "./amountAdjustment"; -import { BalanceMutation } from "./balanceMutation"; -import { ExternalReason } from "./externalReason"; -import { Modification } from "./modification"; -import { TransferEventEventsDataInner } from "./transferEventEventsDataInner"; -import { TransferEventTrackingData } from "./transferEventTrackingData"; - +import { Amount } from './amount'; +import { AmountAdjustment } from './amountAdjustment'; +import { BalanceMutation } from './balanceMutation'; +import { ConfirmationTrackingData } from './confirmationTrackingData'; +import { EstimationTrackingData } from './estimationTrackingData'; +import { ExternalReason } from './externalReason'; +import { InternalReviewTrackingData } from './internalReviewTrackingData'; +import { IssuingTransactionData } from './issuingTransactionData'; +import { IssuingTransactionData | MerchantPurchaseData } from './issuingTransactionData | MerchantPurchaseData'; +import { MerchantPurchaseData } from './merchantPurchaseData'; +import { Modification } from './modification'; export class TransferEvent { - "amount"?: Amount | null; + 'amount'?: Amount | null; /** * The amount adjustments in this transfer. Only applicable for [issuing](https://docs.adyen.com/issuing/) integrations. */ - "amountAdjustments"?: Array; + 'amountAdjustments'?: Array; /** * Scheme unique arn identifier useful for tracing captures, chargebacks, refunds, etc. */ - "arn"?: string; + 'arn'?: string; /** * The date when the transfer request was sent. */ - "bookingDate"?: Date; + 'bookingDate'?: Date; /** * The estimated time when the beneficiary should have access to the funds. */ - "estimatedArrivalTime"?: Date; + 'estimatedArrivalTime'?: Date; /** * A list of event data. */ - "eventsData"?: Array; - "externalReason"?: ExternalReason | null; + 'eventsData'?: Array; + 'externalReason'?: ExternalReason | null; /** * The unique identifier of the transfer event. */ - "id"?: string; - "modification"?: Modification | null; + 'id'?: string; + 'modification'?: Modification | null; /** * The list of balance mutations per event. */ - "mutations"?: Array; - "originalAmount"?: Amount | null; + 'mutations'?: Array; + 'originalAmount'?: Amount | null; /** * The reason for the transfer status. */ - "reason"?: TransferEvent.ReasonEnum; + 'reason'?: TransferEvent.ReasonEnum; /** * The status of the transfer event. */ - "status"?: TransferEvent.StatusEnum; - "trackingData"?: TransferEventTrackingData | null; + 'status'?: TransferEvent.StatusEnum; + /** + * Additional information for the tracking event. + */ + 'trackingData'?: ConfirmationTrackingData | EstimationTrackingData | InternalReviewTrackingData | null; /** * The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes. */ - "transactionId"?: string; + 'transactionId'?: string; /** * The type of the transfer event. Possible values: **accounting**, **tracking**. */ - "type"?: TransferEvent.TypeEnum; + 'type'?: TransferEvent.TypeEnum; /** * The date when the tracking status was updated. */ - "updateDate"?: Date; + 'updateDate'?: Date; /** * The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future. */ - "valueDate"?: Date; + 'valueDate'?: Date; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "amountAdjustments", "baseName": "amountAdjustments", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "arn", "baseName": "arn", - "type": "string", - "format": "" + "type": "string" }, { "name": "bookingDate", "baseName": "bookingDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "estimatedArrivalTime", "baseName": "estimatedArrivalTime", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "eventsData", "baseName": "eventsData", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "externalReason", "baseName": "externalReason", - "type": "ExternalReason | null", - "format": "" + "type": "ExternalReason | null" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "modification", "baseName": "modification", - "type": "Modification | null", - "format": "" + "type": "Modification | null" }, { "name": "mutations", "baseName": "mutations", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "originalAmount", "baseName": "originalAmount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "reason", "baseName": "reason", - "type": "TransferEvent.ReasonEnum", - "format": "" + "type": "TransferEvent.ReasonEnum" }, { "name": "status", "baseName": "status", - "type": "TransferEvent.StatusEnum", - "format": "" + "type": "TransferEvent.StatusEnum" }, { "name": "trackingData", "baseName": "trackingData", - "type": "TransferEventTrackingData | null", - "format": "" + "type": "ConfirmationTrackingData | EstimationTrackingData | InternalReviewTrackingData | null" }, { "name": "transactionId", "baseName": "transactionId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "TransferEvent.TypeEnum", - "format": "" + "type": "TransferEvent.TypeEnum" }, { "name": "updateDate", "baseName": "updateDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "valueDate", "baseName": "valueDate", - "type": "Date", - "format": "date-time" + "type": "Date" } ]; static getAttributeTypeMap() { return TransferEvent.attributeTypeMap; } - - public constructor() { - } } export namespace TransferEvent { diff --git a/src/typings/transferWebhooks/transferEventEventsDataInner.ts b/src/typings/transferWebhooks/transferEventEventsDataInner.ts deleted file mode 100644 index e4072e850..000000000 --- a/src/typings/transferWebhooks/transferEventEventsDataInner.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* - * The version of the OpenAPI document: v4 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit this class manually. - */ - -import { IssuingTransactionData } from "./issuingTransactionData"; -import { MerchantPurchaseData } from "./merchantPurchaseData"; - - -/** - * @type TransferEventEventsDataInner - * Type - * @export - */ -export type TransferEventEventsDataInner = IssuingTransactionData | MerchantPurchaseData; - -/** -* @type TransferEventEventsDataInnerClass -* @export -*/ -export class TransferEventEventsDataInnerClass { - - static readonly discriminator: string = "type"; - - static readonly mapping: {[index: string]: string} | undefined = undefined; -} diff --git a/src/typings/transferWebhooks/transferEventTrackingData.ts b/src/typings/transferWebhooks/transferEventTrackingData.ts deleted file mode 100644 index 382fd3a33..000000000 --- a/src/typings/transferWebhooks/transferEventTrackingData.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* - * The version of the OpenAPI document: v4 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit this class manually. - */ - -import { ConfirmationTrackingData } from "./confirmationTrackingData"; -import { EstimationTrackingData } from "./estimationTrackingData"; -import { InternalReviewTrackingData } from "./internalReviewTrackingData"; - -/** -* Additional information for the tracking event. -*/ - - -/** - * @type TransferEventTrackingData - * Type - * @export - */ -export type TransferEventTrackingData = ConfirmationTrackingData | EstimationTrackingData | InternalReviewTrackingData; - -/** -* @type TransferEventTrackingDataClass - * Additional information for the tracking event. -* @export -*/ -export class TransferEventTrackingDataClass { - - static readonly discriminator: string = "type"; - - static readonly mapping: {[index: string]: string} | undefined = undefined; -} diff --git a/src/typings/transferWebhooks/transferNotificationCounterParty.ts b/src/typings/transferWebhooks/transferNotificationCounterParty.ts index cc487183e..0eec761b2 100644 --- a/src/typings/transferWebhooks/transferNotificationCounterParty.ts +++ b/src/typings/transferWebhooks/transferNotificationCounterParty.ts @@ -7,65 +7,54 @@ * Do not edit this class manually. */ -import { BankAccountV3 } from "./bankAccountV3"; -import { Card } from "./card"; -import { TransferNotificationMerchantData } from "./transferNotificationMerchantData"; - +import { BankAccountV3 } from './bankAccountV3'; +import { Card } from './card'; +import { TransferNotificationMerchantData } from './transferNotificationMerchantData'; export class TransferNotificationCounterParty { /** * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). */ - "balanceAccountId"?: string; - "bankAccount"?: BankAccountV3 | null; - "card"?: Card | null; - "merchant"?: TransferNotificationMerchantData | null; + 'balanceAccountId'?: string; + 'bankAccount'?: BankAccountV3 | null; + 'card'?: Card | null; + 'merchant'?: TransferNotificationMerchantData | null; /** * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ - "transferInstrumentId"?: string; - - static readonly discriminator: string | undefined = undefined; + 'transferInstrumentId'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balanceAccountId", "baseName": "balanceAccountId", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankAccount", "baseName": "bankAccount", - "type": "BankAccountV3 | null", - "format": "" + "type": "BankAccountV3 | null" }, { "name": "card", "baseName": "card", - "type": "Card | null", - "format": "" + "type": "Card | null" }, { "name": "merchant", "baseName": "merchant", - "type": "TransferNotificationMerchantData | null", - "format": "" + "type": "TransferNotificationMerchantData | null" }, { "name": "transferInstrumentId", "baseName": "transferInstrumentId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TransferNotificationCounterParty.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transferWebhooks/transferNotificationMerchantData.ts b/src/typings/transferWebhooks/transferNotificationMerchantData.ts index ddf10668f..b5eb2e961 100644 --- a/src/typings/transferWebhooks/transferNotificationMerchantData.ts +++ b/src/typings/transferWebhooks/transferNotificationMerchantData.ts @@ -12,85 +12,73 @@ export class TransferNotificationMerchantData { /** * The unique identifier of the merchant\'s acquirer. */ - "acquirerId"?: string; + 'acquirerId'?: string; /** * The city where the merchant is located. */ - "city"?: string; + 'city'?: string; /** * The country where the merchant is located. */ - "country"?: string; + 'country'?: string; /** * The merchant category code. */ - "mcc"?: string; + 'mcc'?: string; /** * The unique identifier of the merchant. */ - "merchantId"?: string; + 'merchantId'?: string; /** * The name of the merchant\'s shop or service. */ - "name"?: string; + 'name'?: string; /** * The postal code of the merchant. */ - "postalCode"?: string; + 'postalCode'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "acquirerId", "baseName": "acquirerId", - "type": "string", - "format": "" + "type": "string" }, { "name": "city", "baseName": "city", - "type": "string", - "format": "" + "type": "string" }, { "name": "country", "baseName": "country", - "type": "string", - "format": "" + "type": "string" }, { "name": "mcc", "baseName": "mcc", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantId", "baseName": "merchantId", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "postalCode", "baseName": "postalCode", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TransferNotificationMerchantData.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transferWebhooks/transferNotificationRequest.ts b/src/typings/transferWebhooks/transferNotificationRequest.ts index cced0c828..d58ad3805 100644 --- a/src/typings/transferWebhooks/transferNotificationRequest.ts +++ b/src/typings/transferWebhooks/transferNotificationRequest.ts @@ -7,65 +7,55 @@ * Do not edit this class manually. */ -import { TransferData } from "./transferData"; - +import { TransferData } from './transferData'; export class TransferNotificationRequest { - "data": TransferData; + 'data': TransferData; /** * The environment from which the webhook originated. Possible values: **test**, **live**. */ - "environment": string; + 'environment': string; /** * When the event was queued. */ - "timestamp"?: Date; + 'timestamp'?: Date; /** * The type of webhook. */ - "type"?: TransferNotificationRequest.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type'?: TransferNotificationRequest.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "data", "baseName": "data", - "type": "TransferData", - "format": "" + "type": "TransferData" }, { "name": "environment", "baseName": "environment", - "type": "string", - "format": "" + "type": "string" }, { "name": "timestamp", "baseName": "timestamp", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "type", "baseName": "type", - "type": "TransferNotificationRequest.TypeEnum", - "format": "" + "type": "TransferNotificationRequest.TypeEnum" } ]; static getAttributeTypeMap() { return TransferNotificationRequest.attributeTypeMap; } - - public constructor() { - } } export namespace TransferNotificationRequest { export enum TypeEnum { - BalancePlatformTransferCreated = 'balancePlatform.transfer.created', - BalancePlatformTransferUpdated = 'balancePlatform.transfer.updated' + Created = 'balancePlatform.transfer.created', + Updated = 'balancePlatform.transfer.updated' } } diff --git a/src/typings/transferWebhooks/transferNotificationValidationFact.ts b/src/typings/transferWebhooks/transferNotificationValidationFact.ts index 1a3c74a37..b1133a019 100644 --- a/src/typings/transferWebhooks/transferNotificationValidationFact.ts +++ b/src/typings/transferWebhooks/transferNotificationValidationFact.ts @@ -12,35 +12,28 @@ export class TransferNotificationValidationFact { /** * The evaluation result of the validation fact. */ - "result"?: string; + 'result'?: string; /** * The type of the validation fact. */ - "type"?: string; + 'type'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "result", "baseName": "result", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TransferNotificationValidationFact.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transferWebhooks/transferReview.ts b/src/typings/transferWebhooks/transferReview.ts index 75568e0c1..20bb12c61 100644 --- a/src/typings/transferWebhooks/transferReview.ts +++ b/src/typings/transferWebhooks/transferReview.ts @@ -12,36 +12,29 @@ export class TransferReview { /** * Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. */ - "numberOfApprovalsRequired"?: number; + 'numberOfApprovalsRequired'?: number; /** * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **notApplicable**. */ - "scaOnApproval"?: TransferReview.ScaOnApprovalEnum; + 'scaOnApproval'?: TransferReview.ScaOnApprovalEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "numberOfApprovalsRequired", "baseName": "numberOfApprovalsRequired", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "scaOnApproval", "baseName": "scaOnApproval", - "type": "TransferReview.ScaOnApprovalEnum", - "format": "" + "type": "TransferReview.ScaOnApprovalEnum" } ]; static getAttributeTypeMap() { return TransferReview.attributeTypeMap; } - - public constructor() { - } } export namespace TransferReview { diff --git a/src/typings/transferWebhooks/transferWebhooksHandler.ts b/src/typings/transferWebhooks/transferWebhooksHandler.ts deleted file mode 100644 index 0883f4891..000000000 --- a/src/typings/transferWebhooks/transferWebhooksHandler.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* - * The version of the OpenAPI document: v4 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit this class manually. - */ - -import { transferWebhooks } from ".."; - -/** - * Union type for all supported webhook requests. - * Allows generic handling of configuration-related webhook events. - */ -export type GenericWebhook = - | transferWebhooks.TransferNotificationRequest; - -/** - * Handler for processing TransferWebhooks. - * - * This class provides functionality to deserialize the payload of TransferWebhooks events. - */ -export class TransferWebhooksHandler { - - private readonly payload: Record; - - public constructor(jsonPayload: string) { - this.payload = JSON.parse(jsonPayload); - } - - /** - * This method checks the type of the webhook payload and returns the appropriate deserialized object. - * - * @returns A deserialized object of type GenericWebhook. - * @throws Error if the type is not recognized. - */ - public getGenericWebhook(): GenericWebhook { - - const type = this.payload["type"]; - - if(Object.values(transferWebhooks.TransferNotificationRequest.TypeEnum).includes(type)) { - return this.getTransferNotificationRequest(); - } - - throw new Error("Could not parse the json payload: " + this.payload); - - } - - /** - * Deserialize the webhook payload into a TransferNotificationRequest - * - * @returns Deserialized TransferNotificationRequest object. - */ - public getTransferNotificationRequest(): transferWebhooks.TransferNotificationRequest { - return transferWebhooks.ObjectSerializer.deserialize(this.payload, "TransferNotificationRequest"); - } - -} \ No newline at end of file diff --git a/src/typings/transferWebhooks/uKLocalAccountIdentification.ts b/src/typings/transferWebhooks/uKLocalAccountIdentification.ts index a7f4de18e..98e350892 100644 --- a/src/typings/transferWebhooks/uKLocalAccountIdentification.ts +++ b/src/typings/transferWebhooks/uKLocalAccountIdentification.ts @@ -12,46 +12,38 @@ export class UKLocalAccountIdentification { /** * The 8-digit bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. */ - "sortCode": string; + 'sortCode': string; /** * **ukLocal** */ - "type": UKLocalAccountIdentification.TypeEnum; + 'type': UKLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "sortCode", "baseName": "sortCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "UKLocalAccountIdentification.TypeEnum", - "format": "" + "type": "UKLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return UKLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace UKLocalAccountIdentification { diff --git a/src/typings/transferWebhooks/uSLocalAccountIdentification.ts b/src/typings/transferWebhooks/uSLocalAccountIdentification.ts index 763c1223d..492cc4707 100644 --- a/src/typings/transferWebhooks/uSLocalAccountIdentification.ts +++ b/src/typings/transferWebhooks/uSLocalAccountIdentification.ts @@ -12,56 +12,47 @@ export class USLocalAccountIdentification { /** * The bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ - "accountType"?: USLocalAccountIdentification.AccountTypeEnum; + 'accountType'?: USLocalAccountIdentification.AccountTypeEnum; /** * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. */ - "routingNumber": string; + 'routingNumber': string; /** * **usLocal** */ - "type": USLocalAccountIdentification.TypeEnum; + 'type': USLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "accountType", "baseName": "accountType", - "type": "USLocalAccountIdentification.AccountTypeEnum", - "format": "" + "type": "USLocalAccountIdentification.AccountTypeEnum" }, { "name": "routingNumber", "baseName": "routingNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "USLocalAccountIdentification.TypeEnum", - "format": "" + "type": "USLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return USLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace USLocalAccountIdentification { diff --git a/src/typings/transfers/aULocalAccountIdentification.ts b/src/typings/transfers/aULocalAccountIdentification.ts index b50f7d664..3537211f3 100644 --- a/src/typings/transfers/aULocalAccountIdentification.ts +++ b/src/typings/transfers/aULocalAccountIdentification.ts @@ -12,46 +12,38 @@ export class AULocalAccountIdentification { /** * The bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. */ - "bsbCode": string; + 'bsbCode': string; /** * **auLocal** */ - "type": AULocalAccountIdentification.TypeEnum; + 'type': AULocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "bsbCode", "baseName": "bsbCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "AULocalAccountIdentification.TypeEnum", - "format": "" + "type": "AULocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return AULocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace AULocalAccountIdentification { diff --git a/src/typings/transfers/additionalBankIdentification.ts b/src/typings/transfers/additionalBankIdentification.ts index 56f67c118..aa9666ef0 100644 --- a/src/typings/transfers/additionalBankIdentification.ts +++ b/src/typings/transfers/additionalBankIdentification.ts @@ -12,40 +12,35 @@ export class AdditionalBankIdentification { /** * The value of the additional bank identification. */ - "code"?: string; + 'code'?: string; /** - * The type of additional bank identification, depending on the country. Possible values: * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. */ - "type"?: AdditionalBankIdentification.TypeEnum; + 'type'?: AdditionalBankIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "code", "baseName": "code", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "AdditionalBankIdentification.TypeEnum", - "format": "" + "type": "AdditionalBankIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return AdditionalBankIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace AdditionalBankIdentification { export enum TypeEnum { + AuBsbCode = 'auBsbCode', + CaRoutingNumber = 'caRoutingNumber', GbSortCode = 'gbSortCode', UsRoutingNumber = 'usRoutingNumber' } diff --git a/src/typings/transfers/address.ts b/src/typings/transfers/address.ts index 28ef076d4..b2c5b90c8 100644 --- a/src/typings/transfers/address.ts +++ b/src/typings/transfers/address.ts @@ -12,75 +12,64 @@ export class Address { /** * The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. */ - "city"?: string; + 'city'?: string; /** * The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, or **GB**. */ - "country": string; + 'country': string; /** * The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. */ - "line1"?: string; + 'line1'?: string; /** * The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**. */ - "line2"?: string; + 'line2'?: string; /** * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > Required for addresses in the US. */ - "postalCode"?: string; + 'postalCode'?: string; /** * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ - "stateOrProvince"?: string; + 'stateOrProvince'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "city", "baseName": "city", - "type": "string", - "format": "" + "type": "string" }, { "name": "country", "baseName": "country", - "type": "string", - "format": "" + "type": "string" }, { "name": "line1", "baseName": "line1", - "type": "string", - "format": "" + "type": "string" }, { "name": "line2", "baseName": "line2", - "type": "string", - "format": "" + "type": "string" }, { "name": "postalCode", "baseName": "postalCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "stateOrProvince", "baseName": "stateOrProvince", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Address.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/airline.ts b/src/typings/transfers/airline.ts index 765091b72..50cc656ac 100644 --- a/src/typings/transfers/airline.ts +++ b/src/typings/transfers/airline.ts @@ -7,42 +7,34 @@ * Do not edit this class manually. */ -import { Leg } from "./leg"; - +import { Leg } from './leg'; export class Airline { /** * Details about the flight legs for this ticket. */ - "legs"?: Array; + 'legs'?: Array; /** * The ticket\'s unique identifier */ - "ticketNumber"?: string; - - static readonly discriminator: string | undefined = undefined; + 'ticketNumber'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "legs", "baseName": "legs", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "ticketNumber", "baseName": "ticketNumber", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Airline.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/amount.ts b/src/typings/transfers/amount.ts index cd1649aa4..aea19ca38 100644 --- a/src/typings/transfers/amount.ts +++ b/src/typings/transfers/amount.ts @@ -12,35 +12,28 @@ export class Amount { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). */ - "currency": string; + 'currency': string; /** * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). */ - "value": number; + 'value': number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "number", - "format": "int64" + "type": "number" } ]; static getAttributeTypeMap() { return Amount.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/amountAdjustment.ts b/src/typings/transfers/amountAdjustment.ts index 201a64a02..543097d5a 100644 --- a/src/typings/transfers/amountAdjustment.ts +++ b/src/typings/transfers/amountAdjustment.ts @@ -7,50 +7,41 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class AmountAdjustment { - "amount"?: Amount | null; + 'amount'?: Amount | null; /** * The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. */ - "amountAdjustmentType"?: AmountAdjustment.AmountAdjustmentTypeEnum; + 'amountAdjustmentType'?: AmountAdjustment.AmountAdjustmentTypeEnum; /** * The basepoints associated with the applied markup. */ - "basepoints"?: number; - - static readonly discriminator: string | undefined = undefined; + 'basepoints'?: number; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "amountAdjustmentType", "baseName": "amountAdjustmentType", - "type": "AmountAdjustment.AmountAdjustmentTypeEnum", - "format": "" + "type": "AmountAdjustment.AmountAdjustmentTypeEnum" }, { "name": "basepoints", "baseName": "basepoints", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return AmountAdjustment.attributeTypeMap; } - - public constructor() { - } } export namespace AmountAdjustment { diff --git a/src/typings/transfers/approveTransfersRequest.ts b/src/typings/transfers/approveTransfersRequest.ts index 048d4f673..2bbd3c7f1 100644 --- a/src/typings/transfers/approveTransfersRequest.ts +++ b/src/typings/transfers/approveTransfersRequest.ts @@ -12,25 +12,19 @@ export class ApproveTransfersRequest { /** * Contains the unique identifiers of the transfers that you want to approve. */ - "transferIds"?: Array; + 'transferIds'?: Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "transferIds", "baseName": "transferIds", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return ApproveTransfersRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/bRLocalAccountIdentification.ts b/src/typings/transfers/bRLocalAccountIdentification.ts index 91169834e..c43d43135 100644 --- a/src/typings/transfers/bRLocalAccountIdentification.ts +++ b/src/typings/transfers/bRLocalAccountIdentification.ts @@ -12,66 +12,56 @@ export class BRLocalAccountIdentification { /** * The bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * The 3-digit bank code, with leading zeros. */ - "bankCode": string; + 'bankCode': string; /** * The bank account branch number, without separators or whitespace. */ - "branchNumber": string; + 'branchNumber': string; /** * The 8-digit ISPB, with leading zeros. */ - "ispb"?: string; + 'ispb'?: string; /** * **brLocal** */ - "type": BRLocalAccountIdentification.TypeEnum; + 'type': BRLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankCode", "baseName": "bankCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "branchNumber", "baseName": "branchNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "ispb", "baseName": "ispb", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "BRLocalAccountIdentification.TypeEnum", - "format": "" + "type": "BRLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return BRLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace BRLocalAccountIdentification { diff --git a/src/typings/transfers/balanceMutation.ts b/src/typings/transfers/balanceMutation.ts index f14a2543c..3751cab80 100644 --- a/src/typings/transfers/balanceMutation.ts +++ b/src/typings/transfers/balanceMutation.ts @@ -12,55 +12,46 @@ export class BalanceMutation { /** * The amount in the payment\'s currency that is debited or credited on the balance accounting register. */ - "balance"?: number; + 'balance'?: number; /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ - "currency"?: string; + 'currency'?: string; /** * The amount in the payment\'s currency that is debited or credited on the received accounting register. */ - "received"?: number; + 'received'?: number; /** * The amount in the payment\'s currency that is debited or credited on the reserved accounting register. */ - "reserved"?: number; + 'reserved'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balance", "baseName": "balance", - "type": "number", - "format": "int64" + "type": "number" }, { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "received", "baseName": "received", - "type": "number", - "format": "int64" + "type": "number" }, { "name": "reserved", "baseName": "reserved", - "type": "number", - "format": "int64" + "type": "number" } ]; static getAttributeTypeMap() { return BalanceMutation.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/bankAccountV3.ts b/src/typings/transfers/bankAccountV3.ts index 05a01f7e3..503ebb97e 100644 --- a/src/typings/transfers/bankAccountV3.ts +++ b/src/typings/transfers/bankAccountV3.ts @@ -7,37 +7,47 @@ * Do not edit this class manually. */ -import { BankAccountV3AccountIdentification } from "./bankAccountV3AccountIdentification"; -import { PartyIdentification } from "./partyIdentification"; - +import { AULocalAccountIdentification } from './aULocalAccountIdentification'; +import { BRLocalAccountIdentification } from './bRLocalAccountIdentification'; +import { CALocalAccountIdentification } from './cALocalAccountIdentification'; +import { CZLocalAccountIdentification } from './cZLocalAccountIdentification'; +import { DKLocalAccountIdentification } from './dKLocalAccountIdentification'; +import { HKLocalAccountIdentification } from './hKLocalAccountIdentification'; +import { HULocalAccountIdentification } from './hULocalAccountIdentification'; +import { IbanAccountIdentification } from './ibanAccountIdentification'; +import { NOLocalAccountIdentification } from './nOLocalAccountIdentification'; +import { NZLocalAccountIdentification } from './nZLocalAccountIdentification'; +import { NumberAndBicAccountIdentification } from './numberAndBicAccountIdentification'; +import { PLLocalAccountIdentification } from './pLLocalAccountIdentification'; +import { PartyIdentification } from './partyIdentification'; +import { SELocalAccountIdentification } from './sELocalAccountIdentification'; +import { SGLocalAccountIdentification } from './sGLocalAccountIdentification'; +import { UKLocalAccountIdentification } from './uKLocalAccountIdentification'; +import { USLocalAccountIdentification } from './uSLocalAccountIdentification'; export class BankAccountV3 { - "accountHolder": PartyIdentification; - "accountIdentification": BankAccountV3AccountIdentification; - - static readonly discriminator: string | undefined = undefined; + 'accountHolder': PartyIdentification; + /** + * Contains the bank account details. The fields required in this object depend on the country of the bank account and the currency of the transfer. + */ + 'accountIdentification': AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountHolder", "baseName": "accountHolder", - "type": "PartyIdentification", - "format": "" + "type": "PartyIdentification" }, { "name": "accountIdentification", "baseName": "accountIdentification", - "type": "BankAccountV3AccountIdentification", - "format": "" + "type": "AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification" } ]; static getAttributeTypeMap() { return BankAccountV3.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/bankAccountV3AccountIdentification.ts b/src/typings/transfers/bankAccountV3AccountIdentification.ts deleted file mode 100644 index 6e643cded..000000000 --- a/src/typings/transfers/bankAccountV3AccountIdentification.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * The version of the OpenAPI document: v4 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit this class manually. - */ - -import { AULocalAccountIdentification } from "./aULocalAccountIdentification"; -import { BRLocalAccountIdentification } from "./bRLocalAccountIdentification"; -import { CALocalAccountIdentification } from "./cALocalAccountIdentification"; -import { CZLocalAccountIdentification } from "./cZLocalAccountIdentification"; -import { DKLocalAccountIdentification } from "./dKLocalAccountIdentification"; -import { HKLocalAccountIdentification } from "./hKLocalAccountIdentification"; -import { HULocalAccountIdentification } from "./hULocalAccountIdentification"; -import { IbanAccountIdentification } from "./ibanAccountIdentification"; -import { NOLocalAccountIdentification } from "./nOLocalAccountIdentification"; -import { NZLocalAccountIdentification } from "./nZLocalAccountIdentification"; -import { NumberAndBicAccountIdentification } from "./numberAndBicAccountIdentification"; -import { PLLocalAccountIdentification } from "./pLLocalAccountIdentification"; -import { SELocalAccountIdentification } from "./sELocalAccountIdentification"; -import { SGLocalAccountIdentification } from "./sGLocalAccountIdentification"; -import { UKLocalAccountIdentification } from "./uKLocalAccountIdentification"; -import { USLocalAccountIdentification } from "./uSLocalAccountIdentification"; - -/** -* Contains the bank account details. The fields required in this object depend on the country of the bank account and the currency of the transfer. -*/ - - -/** - * @type BankAccountV3AccountIdentification - * Type - * @export - */ -export type BankAccountV3AccountIdentification = AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification; - -/** -* @type BankAccountV3AccountIdentificationClass - * Contains the bank account details. The fields required in this object depend on the country of the bank account and the currency of the transfer. -* @export -*/ -export class BankAccountV3AccountIdentificationClass { - - static readonly discriminator: string = "type"; - - static readonly mapping: {[index: string]: string} | undefined = undefined; -} diff --git a/src/typings/transfers/bankCategoryData.ts b/src/typings/transfers/bankCategoryData.ts index a76048a6d..e1c9a7279 100644 --- a/src/typings/transfers/bankCategoryData.ts +++ b/src/typings/transfers/bankCategoryData.ts @@ -10,38 +10,31 @@ export class BankCategoryData { /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. 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 in [SEPA countries](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. Required for transfers with `category` **bank**. 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"?: BankCategoryData.PriorityEnum; + 'priority'?: BankCategoryData.PriorityEnum; /** * **bank** */ - "type"?: BankCategoryData.TypeEnum; + 'type'?: BankCategoryData.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "priority", "baseName": "priority", - "type": "BankCategoryData.PriorityEnum", - "format": "" + "type": "BankCategoryData.PriorityEnum" }, { "name": "type", "baseName": "type", - "type": "BankCategoryData.TypeEnum", - "format": "" + "type": "BankCategoryData.TypeEnum" } ]; static getAttributeTypeMap() { return BankCategoryData.attributeTypeMap; } - - public constructor() { - } } export namespace BankCategoryData { diff --git a/src/typings/transfers/cALocalAccountIdentification.ts b/src/typings/transfers/cALocalAccountIdentification.ts index 5c0954c76..1e0e9ef87 100644 --- a/src/typings/transfers/cALocalAccountIdentification.ts +++ b/src/typings/transfers/cALocalAccountIdentification.ts @@ -12,66 +12,56 @@ export class CALocalAccountIdentification { /** * The 5- to 12-digit bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ - "accountType"?: CALocalAccountIdentification.AccountTypeEnum; + 'accountType'?: CALocalAccountIdentification.AccountTypeEnum; /** * The 3-digit institution number, without separators or whitespace. */ - "institutionNumber": string; + 'institutionNumber': string; /** * The 5-digit transit number, without separators or whitespace. */ - "transitNumber": string; + 'transitNumber': string; /** * **caLocal** */ - "type": CALocalAccountIdentification.TypeEnum; + 'type': CALocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "accountType", "baseName": "accountType", - "type": "CALocalAccountIdentification.AccountTypeEnum", - "format": "" + "type": "CALocalAccountIdentification.AccountTypeEnum" }, { "name": "institutionNumber", "baseName": "institutionNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "transitNumber", "baseName": "transitNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "CALocalAccountIdentification.TypeEnum", - "format": "" + "type": "CALocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return CALocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace CALocalAccountIdentification { diff --git a/src/typings/transfers/cZLocalAccountIdentification.ts b/src/typings/transfers/cZLocalAccountIdentification.ts index d17d2f0a1..3b94b7b4a 100644 --- a/src/typings/transfers/cZLocalAccountIdentification.ts +++ b/src/typings/transfers/cZLocalAccountIdentification.ts @@ -12,46 +12,38 @@ export class CZLocalAccountIdentification { /** * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) */ - "accountNumber": string; + 'accountNumber': string; /** * The 4-digit bank code (Kód banky), without separators or whitespace. */ - "bankCode": string; + 'bankCode': string; /** * **czLocal** */ - "type": CZLocalAccountIdentification.TypeEnum; + 'type': CZLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankCode", "baseName": "bankCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "CZLocalAccountIdentification.TypeEnum", - "format": "" + "type": "CZLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return CZLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace CZLocalAccountIdentification { diff --git a/src/typings/transfers/cancelTransfersRequest.ts b/src/typings/transfers/cancelTransfersRequest.ts index 7a1127848..aa1df9f97 100644 --- a/src/typings/transfers/cancelTransfersRequest.ts +++ b/src/typings/transfers/cancelTransfersRequest.ts @@ -12,25 +12,19 @@ export class CancelTransfersRequest { /** * Contains the unique identifiers of the transfers that you want to cancel. */ - "transferIds"?: Array; + 'transferIds'?: Array; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "transferIds", "baseName": "transferIds", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return CancelTransfersRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/capitalBalance.ts b/src/typings/transfers/capitalBalance.ts index 08b3a1eec..20152c823 100644 --- a/src/typings/transfers/capitalBalance.ts +++ b/src/typings/transfers/capitalBalance.ts @@ -12,55 +12,46 @@ export class CapitalBalance { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ - "currency": string; + 'currency': string; /** * Fee amount. */ - "fee": number; + 'fee': number; /** * Principal amount. */ - "principal": number; + 'principal': number; /** * Total amount. A sum of principal amount and fee amount. */ - "total": number; + 'total': number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currency", "baseName": "currency", - "type": "string", - "format": "" + "type": "string" }, { "name": "fee", "baseName": "fee", - "type": "number", - "format": "int64" + "type": "number" }, { "name": "principal", "baseName": "principal", - "type": "number", - "format": "int64" + "type": "number" }, { "name": "total", "baseName": "total", - "type": "number", - "format": "int64" + "type": "number" } ]; static getAttributeTypeMap() { return CapitalBalance.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/capitalGrant.ts b/src/typings/transfers/capitalGrant.ts index 04bd8c98e..e2dd51d8e 100644 --- a/src/typings/transfers/capitalGrant.ts +++ b/src/typings/transfers/capitalGrant.ts @@ -7,102 +7,87 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { CapitalBalance } from "./capitalBalance"; -import { Counterparty } from "./counterparty"; -import { Fee } from "./fee"; -import { Repayment } from "./repayment"; - +import { Amount } from './amount'; +import { CapitalBalance } from './capitalBalance'; +import { Counterparty } from './counterparty'; +import { Fee } from './fee'; +import { Repayment } from './repayment'; export class CapitalGrant { - "amount"?: Amount | null; - "balances": CapitalBalance; - "counterparty"?: Counterparty | null; - "fee"?: Fee | null; + 'amount'?: Amount | null; + 'balances': CapitalBalance; + 'counterparty'?: Counterparty | null; + 'fee'?: Fee | null; /** * The identifier of the grant account used for the grant. */ - "grantAccountId": string; + 'grantAccountId': string; /** * The identifier of the grant offer that has been selected and from which the grant details will be used. */ - "grantOfferId": string; + 'grantOfferId': string; /** * The identifier of the grant reference. */ - "id": string; - "repayment"?: Repayment | null; + 'id': string; + 'repayment'?: Repayment | null; /** * The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**, **WrittenOff**, **Failed**, **Revoked**. */ - "status": CapitalGrant.StatusEnum; - - static readonly discriminator: string | undefined = undefined; + 'status': CapitalGrant.StatusEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "balances", "baseName": "balances", - "type": "CapitalBalance", - "format": "" + "type": "CapitalBalance" }, { "name": "counterparty", "baseName": "counterparty", - "type": "Counterparty | null", - "format": "" + "type": "Counterparty | null" }, { "name": "fee", "baseName": "fee", - "type": "Fee | null", - "format": "" + "type": "Fee | null" }, { "name": "grantAccountId", "baseName": "grantAccountId", - "type": "string", - "format": "" + "type": "string" }, { "name": "grantOfferId", "baseName": "grantOfferId", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "repayment", "baseName": "repayment", - "type": "Repayment | null", - "format": "" + "type": "Repayment | null" }, { "name": "status", "baseName": "status", - "type": "CapitalGrant.StatusEnum", - "format": "" + "type": "CapitalGrant.StatusEnum" } ]; static getAttributeTypeMap() { return CapitalGrant.attributeTypeMap; } - - public constructor() { - } } export namespace CapitalGrant { diff --git a/src/typings/transfers/capitalGrantInfo.ts b/src/typings/transfers/capitalGrantInfo.ts index 7907b703b..a241baac8 100644 --- a/src/typings/transfers/capitalGrantInfo.ts +++ b/src/typings/transfers/capitalGrantInfo.ts @@ -7,49 +7,40 @@ * Do not edit this class manually. */ -import { Counterparty } from "./counterparty"; - +import { Counterparty } from './counterparty'; export class CapitalGrantInfo { - "counterparty"?: Counterparty | null; + 'counterparty'?: Counterparty | null; /** * The identifier of the grant account used for the grant. */ - "grantAccountId": string; + 'grantAccountId': string; /** * The identifier of the grant offer that has been selected and from which the grant details will be used. */ - "grantOfferId": string; - - static readonly discriminator: string | undefined = undefined; + 'grantOfferId': string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "counterparty", "baseName": "counterparty", - "type": "Counterparty | null", - "format": "" + "type": "Counterparty | null" }, { "name": "grantAccountId", "baseName": "grantAccountId", - "type": "string", - "format": "" + "type": "string" }, { "name": "grantOfferId", "baseName": "grantOfferId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CapitalGrantInfo.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/capitalGrants.ts b/src/typings/transfers/capitalGrants.ts index 4e2d1b0ea..f39006bb4 100644 --- a/src/typings/transfers/capitalGrants.ts +++ b/src/typings/transfers/capitalGrants.ts @@ -7,32 +7,25 @@ * Do not edit this class manually. */ -import { CapitalGrant } from "./capitalGrant"; - +import { CapitalGrant } from './capitalGrant'; export class CapitalGrants { /** * The unique identifier of the grant. */ - "grants": Array; - - static readonly discriminator: string | undefined = undefined; + 'grants': Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "grants", "baseName": "grants", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return CapitalGrants.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/card.ts b/src/typings/transfers/card.ts index 8310f9208..ea46948f1 100644 --- a/src/typings/transfers/card.ts +++ b/src/typings/transfers/card.ts @@ -7,37 +7,29 @@ * Do not edit this class manually. */ -import { CardIdentification } from "./cardIdentification"; -import { PartyIdentification } from "./partyIdentification"; - +import { CardIdentification } from './cardIdentification'; +import { PartyIdentification } from './partyIdentification'; export class Card { - "cardHolder": PartyIdentification; - "cardIdentification": CardIdentification; - - static readonly discriminator: string | undefined = undefined; + 'cardHolder': PartyIdentification; + 'cardIdentification': CardIdentification; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "cardHolder", "baseName": "cardHolder", - "type": "PartyIdentification", - "format": "" + "type": "PartyIdentification" }, { "name": "cardIdentification", "baseName": "cardIdentification", - "type": "CardIdentification", - "format": "" + "type": "CardIdentification" } ]; static getAttributeTypeMap() { return Card.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/cardIdentification.ts b/src/typings/transfers/cardIdentification.ts index 50b9ebce7..18f6ad22a 100644 --- a/src/typings/transfers/cardIdentification.ts +++ b/src/typings/transfers/cardIdentification.ts @@ -12,85 +12,73 @@ export class CardIdentification { /** * The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November */ - "expiryMonth"?: string; + 'expiryMonth'?: string; /** * The expiry year of the card. Format: four digits. For example: 2020 */ - "expiryYear"?: string; + 'expiryYear'?: string; /** * The issue number of the card. Applies only to some UK debit cards. */ - "issueNumber"?: string; + 'issueNumber'?: string; /** * The card number without any separators. For security, the response only includes the last four digits of the card number. */ - "number"?: string; + 'number'?: string; /** * The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November */ - "startMonth"?: string; + 'startMonth'?: string; /** * The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020 */ - "startYear"?: string; + 'startYear'?: string; /** * The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty. */ - "storedPaymentMethodId"?: string; + 'storedPaymentMethodId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "expiryMonth", "baseName": "expiryMonth", - "type": "string", - "format": "" + "type": "string" }, { "name": "expiryYear", "baseName": "expiryYear", - "type": "string", - "format": "" + "type": "string" }, { "name": "issueNumber", "baseName": "issueNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "number", "baseName": "number", - "type": "string", - "format": "" + "type": "string" }, { "name": "startMonth", "baseName": "startMonth", - "type": "string", - "format": "" + "type": "string" }, { "name": "startYear", "baseName": "startYear", - "type": "string", - "format": "" + "type": "string" }, { "name": "storedPaymentMethodId", "baseName": "storedPaymentMethodId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CardIdentification.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/confirmationTrackingData.ts b/src/typings/transfers/confirmationTrackingData.ts index fb0fc3df2..599c6fdd9 100644 --- a/src/typings/transfers/confirmationTrackingData.ts +++ b/src/typings/transfers/confirmationTrackingData.ts @@ -10,38 +10,31 @@ export class ConfirmationTrackingData { /** - * The status of the transfer. Possible values: - **credited**: the funds are credited to your user\'s transfer instrument or bank account. + * The status of the transfer. Possible values: - **credited**: the funds are credited to your user\'s transfer instrument or bank account. */ - "status": ConfirmationTrackingData.StatusEnum; + 'status': ConfirmationTrackingData.StatusEnum; /** * The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen\'s internal review. */ - "type": ConfirmationTrackingData.TypeEnum; + 'type': ConfirmationTrackingData.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "status", "baseName": "status", - "type": "ConfirmationTrackingData.StatusEnum", - "format": "" + "type": "ConfirmationTrackingData.StatusEnum" }, { "name": "type", "baseName": "type", - "type": "ConfirmationTrackingData.TypeEnum", - "format": "" + "type": "ConfirmationTrackingData.TypeEnum" } ]; static getAttributeTypeMap() { return ConfirmationTrackingData.attributeTypeMap; } - - public constructor() { - } } export namespace ConfirmationTrackingData { diff --git a/src/typings/transfers/counterparty.ts b/src/typings/transfers/counterparty.ts index 944461b94..f4a3fa882 100644 --- a/src/typings/transfers/counterparty.ts +++ b/src/typings/transfers/counterparty.ts @@ -12,45 +12,37 @@ export class Counterparty { /** * The identifier of the receiving account holder. The payout will default to the primary balance account of this account holder if no `balanceAccountId` is provided. */ - "accountHolderId"?: string; + 'accountHolderId'?: string; /** * The identifier of the balance account that belongs to the receiving account holder. */ - "balanceAccountId"?: string; + 'balanceAccountId'?: string; /** * The identifier of the transfer instrument that belongs to the legal entity of the account holder. */ - "transferInstrumentId"?: string; + 'transferInstrumentId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountHolderId", "baseName": "accountHolderId", - "type": "string", - "format": "" + "type": "string" }, { "name": "balanceAccountId", "baseName": "balanceAccountId", - "type": "string", - "format": "" + "type": "string" }, { "name": "transferInstrumentId", "baseName": "transferInstrumentId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Counterparty.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/counterpartyInfoV3.ts b/src/typings/transfers/counterpartyInfoV3.ts index 30712ebf6..ec633760f 100644 --- a/src/typings/transfers/counterpartyInfoV3.ts +++ b/src/typings/transfers/counterpartyInfoV3.ts @@ -7,57 +7,47 @@ * Do not edit this class manually. */ -import { BankAccountV3 } from "./bankAccountV3"; -import { Card } from "./card"; - +import { BankAccountV3 } from './bankAccountV3'; +import { Card } from './card'; export class CounterpartyInfoV3 { /** * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). */ - "balanceAccountId"?: string; - "bankAccount"?: BankAccountV3 | null; - "card"?: Card | null; + 'balanceAccountId'?: string; + 'bankAccount'?: BankAccountV3 | null; + 'card'?: Card | null; /** * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ - "transferInstrumentId"?: string; - - static readonly discriminator: string | undefined = undefined; + 'transferInstrumentId'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balanceAccountId", "baseName": "balanceAccountId", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankAccount", "baseName": "bankAccount", - "type": "BankAccountV3 | null", - "format": "" + "type": "BankAccountV3 | null" }, { "name": "card", "baseName": "card", - "type": "Card | null", - "format": "" + "type": "Card | null" }, { "name": "transferInstrumentId", "baseName": "transferInstrumentId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CounterpartyInfoV3.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/counterpartyV3.ts b/src/typings/transfers/counterpartyV3.ts index 0d8928afd..992d86700 100644 --- a/src/typings/transfers/counterpartyV3.ts +++ b/src/typings/transfers/counterpartyV3.ts @@ -7,65 +7,54 @@ * Do not edit this class manually. */ -import { BankAccountV3 } from "./bankAccountV3"; -import { Card } from "./card"; -import { MerchantData } from "./merchantData"; - +import { BankAccountV3 } from './bankAccountV3'; +import { Card } from './card'; +import { MerchantData } from './merchantData'; export class CounterpartyV3 { /** * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). */ - "balanceAccountId"?: string; - "bankAccount"?: BankAccountV3 | null; - "card"?: Card | null; - "merchant"?: MerchantData | null; + 'balanceAccountId'?: string; + 'bankAccount'?: BankAccountV3 | null; + 'card'?: Card | null; + 'merchant'?: MerchantData | null; /** * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ - "transferInstrumentId"?: string; - - static readonly discriminator: string | undefined = undefined; + 'transferInstrumentId'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balanceAccountId", "baseName": "balanceAccountId", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankAccount", "baseName": "bankAccount", - "type": "BankAccountV3 | null", - "format": "" + "type": "BankAccountV3 | null" }, { "name": "card", "baseName": "card", - "type": "Card | null", - "format": "" + "type": "Card | null" }, { "name": "merchant", "baseName": "merchant", - "type": "MerchantData | null", - "format": "" + "type": "MerchantData | null" }, { "name": "transferInstrumentId", "baseName": "transferInstrumentId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return CounterpartyV3.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/dKLocalAccountIdentification.ts b/src/typings/transfers/dKLocalAccountIdentification.ts index 88c961d73..6aec27ad5 100644 --- a/src/typings/transfers/dKLocalAccountIdentification.ts +++ b/src/typings/transfers/dKLocalAccountIdentification.ts @@ -12,46 +12,38 @@ export class DKLocalAccountIdentification { /** * The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). */ - "accountNumber": string; + 'accountNumber': string; /** * The 4-digit bank code (Registreringsnummer) (without separators or whitespace). */ - "bankCode": string; + 'bankCode': string; /** * **dkLocal** */ - "type": DKLocalAccountIdentification.TypeEnum; + 'type': DKLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankCode", "baseName": "bankCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "DKLocalAccountIdentification.TypeEnum", - "format": "" + "type": "DKLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return DKLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace DKLocalAccountIdentification { diff --git a/src/typings/transfers/directDebitInformation.ts b/src/typings/transfers/directDebitInformation.ts index a56ce7463..494b5bbf3 100644 --- a/src/typings/transfers/directDebitInformation.ts +++ b/src/typings/transfers/directDebitInformation.ts @@ -12,55 +12,46 @@ export class DirectDebitInformation { /** * The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. */ - "dateOfSignature"?: Date; + 'dateOfSignature'?: Date; /** * The date when the funds are deducted from your user\'s balance account. */ - "dueDate"?: Date; + 'dueDate'?: Date; /** * Your unique identifier for the direct debit mandate. */ - "mandateId"?: string; + 'mandateId'?: string; /** * Identifies the direct debit transfer\'s type. Possible values: **OneOff**, **First**, **Recurring**, **Final**. */ - "sequenceType"?: string; + 'sequenceType'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "dateOfSignature", "baseName": "dateOfSignature", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "dueDate", "baseName": "dueDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "mandateId", "baseName": "mandateId", - "type": "string", - "format": "" + "type": "string" }, { "name": "sequenceType", "baseName": "sequenceType", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return DirectDebitInformation.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/estimationTrackingData.ts b/src/typings/transfers/estimationTrackingData.ts index 50b9cef3b..154feeaa0 100644 --- a/src/typings/transfers/estimationTrackingData.ts +++ b/src/typings/transfers/estimationTrackingData.ts @@ -12,36 +12,29 @@ export class EstimationTrackingData { /** * The estimated time the beneficiary should have access to the funds. */ - "estimatedArrivalTime": Date; + 'estimatedArrivalTime': Date; /** * The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. */ - "type": EstimationTrackingData.TypeEnum; + 'type': EstimationTrackingData.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "estimatedArrivalTime", "baseName": "estimatedArrivalTime", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "type", "baseName": "type", - "type": "EstimationTrackingData.TypeEnum", - "format": "" + "type": "EstimationTrackingData.TypeEnum" } ]; static getAttributeTypeMap() { return EstimationTrackingData.attributeTypeMap; } - - public constructor() { - } } export namespace EstimationTrackingData { diff --git a/src/typings/transfers/executionDate.ts b/src/typings/transfers/executionDate.ts index 791f7677f..e7b7c48d1 100644 --- a/src/typings/transfers/executionDate.ts +++ b/src/typings/transfers/executionDate.ts @@ -12,35 +12,28 @@ export class ExecutionDate { /** * The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31 */ - "date"?: string; + 'date'?: string; /** * The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. */ - "timezone"?: string; + 'timezone'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "date", "baseName": "date", - "type": "string", - "format": "date" + "type": "string" }, { "name": "timezone", "baseName": "timezone", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ExecutionDate.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/externalReason.ts b/src/typings/transfers/externalReason.ts index be519608d..4549c3020 100644 --- a/src/typings/transfers/externalReason.ts +++ b/src/typings/transfers/externalReason.ts @@ -12,45 +12,37 @@ export class ExternalReason { /** * The reason code. */ - "code"?: string; + 'code'?: string; /** * The description of the reason code. */ - "description"?: string; + 'description'?: string; /** * The namespace for the reason code. */ - "namespace"?: string; + 'namespace'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "code", "baseName": "code", - "type": "string", - "format": "" + "type": "string" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "namespace", "baseName": "namespace", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ExternalReason.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/fee.ts b/src/typings/transfers/fee.ts index c50d4f408..2a5d0dec8 100644 --- a/src/typings/transfers/fee.ts +++ b/src/typings/transfers/fee.ts @@ -7,29 +7,22 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class Fee { - "amount": Amount; - - static readonly discriminator: string | undefined = undefined; + 'amount': Amount; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" } ]; static getAttributeTypeMap() { return Fee.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/findTransfersResponse.ts b/src/typings/transfers/findTransfersResponse.ts index b45927fb9..9af498784 100644 --- a/src/typings/transfers/findTransfersResponse.ts +++ b/src/typings/transfers/findTransfersResponse.ts @@ -7,40 +7,32 @@ * Do not edit this class manually. */ -import { Links } from "./links"; -import { TransferData } from "./transferData"; - +import { Links } from './links'; +import { TransferData } from './transferData'; export class FindTransfersResponse { - "_links"?: Links | null; + '_links'?: Links | null; /** * Contains the transfers that match the query parameters. */ - "data"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'data'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "_links", "baseName": "_links", - "type": "Links | null", - "format": "" + "type": "Links | null" }, { "name": "data", "baseName": "data", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return FindTransfersResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/hKLocalAccountIdentification.ts b/src/typings/transfers/hKLocalAccountIdentification.ts index 6363b305c..b3e237ed6 100644 --- a/src/typings/transfers/hKLocalAccountIdentification.ts +++ b/src/typings/transfers/hKLocalAccountIdentification.ts @@ -12,46 +12,38 @@ export class HKLocalAccountIdentification { /** * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. */ - "accountNumber": string; + 'accountNumber': string; /** * The 3-digit clearing code, without separators or whitespace. */ - "clearingCode": string; + 'clearingCode': string; /** * **hkLocal** */ - "type": HKLocalAccountIdentification.TypeEnum; + 'type': HKLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "clearingCode", "baseName": "clearingCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "HKLocalAccountIdentification.TypeEnum", - "format": "" + "type": "HKLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return HKLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace HKLocalAccountIdentification { diff --git a/src/typings/transfers/hULocalAccountIdentification.ts b/src/typings/transfers/hULocalAccountIdentification.ts index cb1195a7e..6cc1939be 100644 --- a/src/typings/transfers/hULocalAccountIdentification.ts +++ b/src/typings/transfers/hULocalAccountIdentification.ts @@ -12,36 +12,29 @@ export class HULocalAccountIdentification { /** * The 24-digit bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * **huLocal** */ - "type": HULocalAccountIdentification.TypeEnum; + 'type': HULocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "HULocalAccountIdentification.TypeEnum", - "format": "" + "type": "HULocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return HULocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace HULocalAccountIdentification { diff --git a/src/typings/transfers/ibanAccountIdentification.ts b/src/typings/transfers/ibanAccountIdentification.ts index a830acab1..e73563c93 100644 --- a/src/typings/transfers/ibanAccountIdentification.ts +++ b/src/typings/transfers/ibanAccountIdentification.ts @@ -12,36 +12,29 @@ export class IbanAccountIdentification { /** * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ - "iban": string; + 'iban': string; /** * **iban** */ - "type": IbanAccountIdentification.TypeEnum; + 'type': IbanAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "iban", "baseName": "iban", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "IbanAccountIdentification.TypeEnum", - "format": "" + "type": "IbanAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return IbanAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace IbanAccountIdentification { diff --git a/src/typings/transfers/internalCategoryData.ts b/src/typings/transfers/internalCategoryData.ts index bd7c5287b..205518bb5 100644 --- a/src/typings/transfers/internalCategoryData.ts +++ b/src/typings/transfers/internalCategoryData.ts @@ -12,46 +12,38 @@ export class InternalCategoryData { /** * The capture\'s merchant reference included in the transfer. */ - "modificationMerchantReference"?: string; + 'modificationMerchantReference'?: string; /** * The capture reference included in the transfer. */ - "modificationPspReference"?: string; + 'modificationPspReference'?: string; /** * **internal** */ - "type"?: InternalCategoryData.TypeEnum; + 'type'?: InternalCategoryData.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "modificationMerchantReference", "baseName": "modificationMerchantReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "modificationPspReference", "baseName": "modificationPspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "InternalCategoryData.TypeEnum", - "format": "" + "type": "InternalCategoryData.TypeEnum" } ]; static getAttributeTypeMap() { return InternalCategoryData.attributeTypeMap; } - - public constructor() { - } } export namespace InternalCategoryData { diff --git a/src/typings/transfers/internalReviewTrackingData.ts b/src/typings/transfers/internalReviewTrackingData.ts index 4a8aa3ddd..e90b80b14 100644 --- a/src/typings/transfers/internalReviewTrackingData.ts +++ b/src/typings/transfers/internalReviewTrackingData.ts @@ -12,46 +12,38 @@ export class InternalReviewTrackingData { /** * The reason why the transfer failed Adyen\'s internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen\'s risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). */ - "reason"?: InternalReviewTrackingData.ReasonEnum; + 'reason'?: InternalReviewTrackingData.ReasonEnum; /** - * The status of the transfer. Possible values: - **pending**: the transfer is under internal review. - **failed**: the transfer failed Adyen\'s internal review. For details, see `reason`. + * The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen\'s internal review. For details, see `reason`. */ - "status": InternalReviewTrackingData.StatusEnum; + 'status': InternalReviewTrackingData.StatusEnum; /** * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen\'s risk policy. */ - "type": InternalReviewTrackingData.TypeEnum; + 'type': InternalReviewTrackingData.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "reason", "baseName": "reason", - "type": "InternalReviewTrackingData.ReasonEnum", - "format": "" + "type": "InternalReviewTrackingData.ReasonEnum" }, { "name": "status", "baseName": "status", - "type": "InternalReviewTrackingData.StatusEnum", - "format": "" + "type": "InternalReviewTrackingData.StatusEnum" }, { "name": "type", "baseName": "type", - "type": "InternalReviewTrackingData.TypeEnum", - "format": "" + "type": "InternalReviewTrackingData.TypeEnum" } ]; static getAttributeTypeMap() { return InternalReviewTrackingData.attributeTypeMap; } - - public constructor() { - } } export namespace InternalReviewTrackingData { diff --git a/src/typings/transfers/invalidField.ts b/src/typings/transfers/invalidField.ts index 5c54ceb10..14f924763 100644 --- a/src/typings/transfers/invalidField.ts +++ b/src/typings/transfers/invalidField.ts @@ -12,45 +12,37 @@ export class InvalidField { /** * Description of the validation error. */ - "message": string; + 'message': string; /** * The field that has an invalid value. */ - "name": string; + 'name': string; /** * The invalid value. */ - "value": string; + 'value': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "message", "baseName": "message", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "value", "baseName": "value", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return InvalidField.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/issuedCard.ts b/src/typings/transfers/issuedCard.ts index 44d9c0d9c..2e8564bce 100644 --- a/src/typings/transfers/issuedCard.ts +++ b/src/typings/transfers/issuedCard.ts @@ -7,101 +7,94 @@ * Do not edit this class manually. */ -import { RelayedAuthorisationData } from "./relayedAuthorisationData"; -import { TransferNotificationValidationFact } from "./transferNotificationValidationFact"; - +import { RelayedAuthorisationData } from './relayedAuthorisationData'; +import { ThreeDSecure } from './threeDSecure'; +import { TransferNotificationValidationFact } from './transferNotificationValidationFact'; export class IssuedCard { /** * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation** */ - "authorisationType"?: string; + 'authorisationType'?: string; /** * Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**. */ - "panEntryMode"?: IssuedCard.PanEntryModeEnum; + 'panEntryMode'?: IssuedCard.PanEntryModeEnum; /** * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. */ - "processingType"?: IssuedCard.ProcessingTypeEnum; - "relayedAuthorisationData"?: RelayedAuthorisationData | null; + 'processingType'?: IssuedCard.ProcessingTypeEnum; + 'relayedAuthorisationData'?: RelayedAuthorisationData | null; /** * The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. */ - "schemeTraceId"?: string; + 'schemeTraceId'?: string; /** * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. */ - "schemeUniqueTransactionId"?: string; + 'schemeUniqueTransactionId'?: string; + 'threeDSecure'?: ThreeDSecure | null; /** * **issuedCard** */ - "type"?: IssuedCard.TypeEnum; + 'type'?: IssuedCard.TypeEnum; /** * The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information. */ - "validationFacts"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'validationFacts'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "authorisationType", "baseName": "authorisationType", - "type": "string", - "format": "" + "type": "string" }, { "name": "panEntryMode", "baseName": "panEntryMode", - "type": "IssuedCard.PanEntryModeEnum", - "format": "" + "type": "IssuedCard.PanEntryModeEnum" }, { "name": "processingType", "baseName": "processingType", - "type": "IssuedCard.ProcessingTypeEnum", - "format": "" + "type": "IssuedCard.ProcessingTypeEnum" }, { "name": "relayedAuthorisationData", "baseName": "relayedAuthorisationData", - "type": "RelayedAuthorisationData | null", - "format": "" + "type": "RelayedAuthorisationData | null" }, { "name": "schemeTraceId", "baseName": "schemeTraceId", - "type": "string", - "format": "" + "type": "string" }, { "name": "schemeUniqueTransactionId", "baseName": "schemeUniqueTransactionId", - "type": "string", - "format": "" + "type": "string" + }, + { + "name": "threeDSecure", + "baseName": "threeDSecure", + "type": "ThreeDSecure | null" }, { "name": "type", "baseName": "type", - "type": "IssuedCard.TypeEnum", - "format": "" + "type": "IssuedCard.TypeEnum" }, { "name": "validationFacts", "baseName": "validationFacts", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return IssuedCard.attributeTypeMap; } - - public constructor() { - } } export namespace IssuedCard { diff --git a/src/typings/transfers/issuingTransactionData.ts b/src/typings/transfers/issuingTransactionData.ts index 21cf4f0e7..ad6b55c94 100644 --- a/src/typings/transfers/issuingTransactionData.ts +++ b/src/typings/transfers/issuingTransactionData.ts @@ -12,36 +12,29 @@ export class IssuingTransactionData { /** * captureCycleId associated with transfer event. */ - "captureCycleId"?: string; + 'captureCycleId'?: string; /** * The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data */ - "type": IssuingTransactionData.TypeEnum; + 'type': IssuingTransactionData.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "captureCycleId", "baseName": "captureCycleId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "IssuingTransactionData.TypeEnum", - "format": "" + "type": "IssuingTransactionData.TypeEnum" } ]; static getAttributeTypeMap() { return IssuingTransactionData.attributeTypeMap; } - - public constructor() { - } } export namespace IssuingTransactionData { diff --git a/src/typings/transfers/leg.ts b/src/typings/transfers/leg.ts index b5a4cc75e..034926b3b 100644 --- a/src/typings/transfers/leg.ts +++ b/src/typings/transfers/leg.ts @@ -12,75 +12,64 @@ export class Leg { /** * The IATA 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. */ - "arrivalAirportCode"?: string; + 'arrivalAirportCode'?: string; /** * The basic fare code for this leg. */ - "basicFareCode"?: string; + 'basicFareCode'?: string; /** * IATA code of the carrier operating the flight. */ - "carrierCode"?: string; + 'carrierCode'?: string; /** * The IATA three-letter airport code of the departure airport. This field is required if the airline data includes leg details */ - "departureAirportCode"?: string; + 'departureAirportCode'?: string; /** * The flight departure date. */ - "departureDate"?: string; + 'departureDate'?: string; /** * The flight identifier. */ - "flightNumber"?: string; + 'flightNumber'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "arrivalAirportCode", "baseName": "arrivalAirportCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "basicFareCode", "baseName": "basicFareCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "carrierCode", "baseName": "carrierCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "departureAirportCode", "baseName": "departureAirportCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "departureDate", "baseName": "departureDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "flightNumber", "baseName": "flightNumber", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Leg.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/link.ts b/src/typings/transfers/link.ts index bdc29558c..59608a37b 100644 --- a/src/typings/transfers/link.ts +++ b/src/typings/transfers/link.ts @@ -12,25 +12,19 @@ export class Link { /** * The link to the resource. */ - "href"?: string; + 'href'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "href", "baseName": "href", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Link.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/links.ts b/src/typings/transfers/links.ts index 510d59c4b..cc68f1870 100644 --- a/src/typings/transfers/links.ts +++ b/src/typings/transfers/links.ts @@ -7,36 +7,28 @@ * Do not edit this class manually. */ -import { Link } from "./link"; - +import { Link } from './link'; export class Links { - "next"?: Link | null; - "prev"?: Link | null; - - static readonly discriminator: string | undefined = undefined; + 'next'?: Link | null; + 'prev'?: Link | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "next", "baseName": "next", - "type": "Link | null", - "format": "" + "type": "Link | null" }, { "name": "prev", "baseName": "prev", - "type": "Link | null", - "format": "" + "type": "Link | null" } ]; static getAttributeTypeMap() { return Links.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/lodging.ts b/src/typings/transfers/lodging.ts index ce13cb430..b9d0142bb 100644 --- a/src/typings/transfers/lodging.ts +++ b/src/typings/transfers/lodging.ts @@ -12,35 +12,28 @@ export class Lodging { /** * The check-in date. */ - "checkInDate"?: string; + 'checkInDate'?: string; /** * The total number of nights the room is booked for. */ - "numberOfNights"?: number; + 'numberOfNights'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "checkInDate", "baseName": "checkInDate", - "type": "string", - "format": "" + "type": "string" }, { "name": "numberOfNights", "baseName": "numberOfNights", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return Lodging.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/merchantData.ts b/src/typings/transfers/merchantData.ts index 269082122..2faacdc7f 100644 --- a/src/typings/transfers/merchantData.ts +++ b/src/typings/transfers/merchantData.ts @@ -7,69 +7,58 @@ * Do not edit this class manually. */ -import { NameLocation } from "./nameLocation"; - +import { NameLocation } from './nameLocation'; export class MerchantData { /** * The unique identifier of the merchant\'s acquirer. */ - "acquirerId"?: string; + 'acquirerId'?: string; /** * The merchant category code. */ - "mcc"?: string; + 'mcc'?: string; /** * The unique identifier of the merchant. */ - "merchantId"?: string; - "nameLocation"?: NameLocation | null; + 'merchantId'?: string; + 'nameLocation'?: NameLocation | null; /** * The postal code of the merchant. */ - "postalCode"?: string; - - static readonly discriminator: string | undefined = undefined; + 'postalCode'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "acquirerId", "baseName": "acquirerId", - "type": "string", - "format": "" + "type": "string" }, { "name": "mcc", "baseName": "mcc", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantId", "baseName": "merchantId", - "type": "string", - "format": "" + "type": "string" }, { "name": "nameLocation", "baseName": "nameLocation", - "type": "NameLocation | null", - "format": "" + "type": "NameLocation | null" }, { "name": "postalCode", "baseName": "postalCode", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return MerchantData.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/merchantPurchaseData.ts b/src/typings/transfers/merchantPurchaseData.ts index e4d929c58..925c26e9d 100644 --- a/src/typings/transfers/merchantPurchaseData.ts +++ b/src/typings/transfers/merchantPurchaseData.ts @@ -7,51 +7,42 @@ * Do not edit this class manually. */ -import { Airline } from "./airline"; -import { Lodging } from "./lodging"; - +import { Airline } from './airline'; +import { Lodging } from './lodging'; export class MerchantPurchaseData { - "airline"?: Airline | null; + 'airline'?: Airline | null; /** * Lodging information. */ - "lodging"?: Array; + 'lodging'?: Array; /** * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data */ - "type": MerchantPurchaseData.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': MerchantPurchaseData.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "airline", "baseName": "airline", - "type": "Airline | null", - "format": "" + "type": "Airline | null" }, { "name": "lodging", "baseName": "lodging", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "type", "baseName": "type", - "type": "MerchantPurchaseData.TypeEnum", - "format": "" + "type": "MerchantPurchaseData.TypeEnum" } ]; static getAttributeTypeMap() { return MerchantPurchaseData.attributeTypeMap; } - - public constructor() { - } } export namespace MerchantPurchaseData { diff --git a/src/typings/transfers/models.ts b/src/typings/transfers/models.ts index c2d12db6e..1e5551005 100644 --- a/src/typings/transfers/models.ts +++ b/src/typings/transfers/models.ts @@ -1,94 +1,466 @@ -export * from "./aULocalAccountIdentification" -export * from "./additionalBankIdentification" -export * from "./address" -export * from "./airline" -export * from "./amount" -export * from "./amountAdjustment" -export * from "./approveTransfersRequest" -export * from "./bRLocalAccountIdentification" -export * from "./balanceMutation" -export * from "./bankAccountV3" -export * from "./bankAccountV3AccountIdentification" -export * from "./bankCategoryData" -export * from "./cALocalAccountIdentification" -export * from "./cZLocalAccountIdentification" -export * from "./cancelTransfersRequest" -export * from "./capitalBalance" -export * from "./capitalGrant" -export * from "./capitalGrantInfo" -export * from "./capitalGrants" -export * from "./card" -export * from "./cardIdentification" -export * from "./confirmationTrackingData" -export * from "./counterparty" -export * from "./counterpartyInfoV3" -export * from "./counterpartyV3" -export * from "./dKLocalAccountIdentification" -export * from "./directDebitInformation" -export * from "./estimationTrackingData" -export * from "./executionDate" -export * from "./externalReason" -export * from "./fee" -export * from "./findTransfersResponse" -export * from "./hKLocalAccountIdentification" -export * from "./hULocalAccountIdentification" -export * from "./ibanAccountIdentification" -export * from "./internalCategoryData" -export * from "./internalReviewTrackingData" -export * from "./invalidField" -export * from "./issuedCard" -export * from "./issuingTransactionData" -export * from "./leg" -export * from "./link" -export * from "./links" -export * from "./lodging" -export * from "./merchantData" -export * from "./merchantPurchaseData" -export * from "./modification" -export * from "./nOLocalAccountIdentification" -export * from "./nZLocalAccountIdentification" -export * from "./nameLocation" -export * from "./numberAndBicAccountIdentification" -export * from "./pLLocalAccountIdentification" -export * from "./partyIdentification" -export * from "./paymentInstrument" -export * from "./platformPayment" -export * from "./relayedAuthorisationData" -export * from "./repayment" -export * from "./repaymentTerm" -export * from "./resourceReference" -export * from "./restServiceError" -export * from "./returnTransferRequest" -export * from "./returnTransferResponse" -export * from "./routingDetails" -export * from "./sELocalAccountIdentification" -export * from "./sGLocalAccountIdentification" -export * from "./serviceError" -export * from "./thresholdRepayment" -export * from "./transaction" -export * from "./transactionEventViolation" -export * from "./transactionRuleReference" -export * from "./transactionRuleSource" -export * from "./transactionRulesResult" -export * from "./transactionSearchResponse" -export * from "./transfer" -export * from "./transferCategoryData" -export * from "./transferData" -export * from "./transferDataTracking" -export * from "./transferEvent" -export * from "./transferEventEventsDataInner" -export * from "./transferEventTrackingData" -export * from "./transferInfo" -export * from "./transferNotificationCounterParty" -export * from "./transferNotificationMerchantData" -export * from "./transferNotificationValidationFact" -export * from "./transferRequestReview" -export * from "./transferReview" -export * from "./transferServiceRestServiceError" -export * from "./transferView" -export * from "./uKLocalAccountIdentification" -export * from "./uSLocalAccountIdentification" -export * from "./ultimatePartyIdentification" +/* + * The version of the OpenAPI document: v4 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ -// serializing and deserializing typed objects -export * from "./objectSerializer" \ No newline at end of file + +export * from './aULocalAccountIdentification'; +export * from './additionalBankIdentification'; +export * from './address'; +export * from './airline'; +export * from './amount'; +export * from './amountAdjustment'; +export * from './approveTransfersRequest'; +export * from './bRLocalAccountIdentification'; +export * from './balanceMutation'; +export * from './bankAccountV3'; +export * from './bankCategoryData'; +export * from './cALocalAccountIdentification'; +export * from './cZLocalAccountIdentification'; +export * from './cancelTransfersRequest'; +export * from './capitalBalance'; +export * from './capitalGrant'; +export * from './capitalGrantInfo'; +export * from './capitalGrants'; +export * from './card'; +export * from './cardIdentification'; +export * from './confirmationTrackingData'; +export * from './counterparty'; +export * from './counterpartyInfoV3'; +export * from './counterpartyV3'; +export * from './dKLocalAccountIdentification'; +export * from './directDebitInformation'; +export * from './estimationTrackingData'; +export * from './executionDate'; +export * from './externalReason'; +export * from './fee'; +export * from './findTransfersResponse'; +export * from './hKLocalAccountIdentification'; +export * from './hULocalAccountIdentification'; +export * from './ibanAccountIdentification'; +export * from './internalCategoryData'; +export * from './internalReviewTrackingData'; +export * from './invalidField'; +export * from './issuedCard'; +export * from './issuingTransactionData'; +export * from './leg'; +export * from './link'; +export * from './links'; +export * from './lodging'; +export * from './merchantData'; +export * from './merchantPurchaseData'; +export * from './modification'; +export * from './nOLocalAccountIdentification'; +export * from './nZLocalAccountIdentification'; +export * from './nameLocation'; +export * from './numberAndBicAccountIdentification'; +export * from './pLLocalAccountIdentification'; +export * from './partyIdentification'; +export * from './paymentInstrument'; +export * from './platformPayment'; +export * from './relayedAuthorisationData'; +export * from './repayment'; +export * from './repaymentTerm'; +export * from './resourceReference'; +export * from './restServiceError'; +export * from './returnTransferRequest'; +export * from './returnTransferResponse'; +export * from './routingDetails'; +export * from './sELocalAccountIdentification'; +export * from './sGLocalAccountIdentification'; +export * from './serviceError'; +export * from './threeDSecure'; +export * from './thresholdRepayment'; +export * from './transaction'; +export * from './transactionEventViolation'; +export * from './transactionRuleReference'; +export * from './transactionRuleSource'; +export * from './transactionRulesResult'; +export * from './transactionSearchResponse'; +export * from './transfer'; +export * from './transferData'; +export * from './transferEvent'; +export * from './transferInfo'; +export * from './transferNotificationCounterParty'; +export * from './transferNotificationMerchantData'; +export * from './transferNotificationValidationFact'; +export * from './transferRequestReview'; +export * from './transferReview'; +export * from './transferServiceRestServiceError'; +export * from './transferView'; +export * from './uKLocalAccountIdentification'; +export * from './uSLocalAccountIdentification'; +export * from './ultimatePartyIdentification'; + + +import { AULocalAccountIdentification } from './aULocalAccountIdentification'; +import { AdditionalBankIdentification } from './additionalBankIdentification'; +import { Address } from './address'; +import { Airline } from './airline'; +import { Amount } from './amount'; +import { AmountAdjustment } from './amountAdjustment'; +import { ApproveTransfersRequest } from './approveTransfersRequest'; +import { BRLocalAccountIdentification } from './bRLocalAccountIdentification'; +import { BalanceMutation } from './balanceMutation'; +import { BankAccountV3 } from './bankAccountV3'; +import { BankCategoryData } from './bankCategoryData'; +import { CALocalAccountIdentification } from './cALocalAccountIdentification'; +import { CZLocalAccountIdentification } from './cZLocalAccountIdentification'; +import { CancelTransfersRequest } from './cancelTransfersRequest'; +import { CapitalBalance } from './capitalBalance'; +import { CapitalGrant } from './capitalGrant'; +import { CapitalGrantInfo } from './capitalGrantInfo'; +import { CapitalGrants } from './capitalGrants'; +import { Card } from './card'; +import { CardIdentification } from './cardIdentification'; +import { ConfirmationTrackingData } from './confirmationTrackingData'; +import { Counterparty } from './counterparty'; +import { CounterpartyInfoV3 } from './counterpartyInfoV3'; +import { CounterpartyV3 } from './counterpartyV3'; +import { DKLocalAccountIdentification } from './dKLocalAccountIdentification'; +import { DirectDebitInformation } from './directDebitInformation'; +import { EstimationTrackingData } from './estimationTrackingData'; +import { ExecutionDate } from './executionDate'; +import { ExternalReason } from './externalReason'; +import { Fee } from './fee'; +import { FindTransfersResponse } from './findTransfersResponse'; +import { HKLocalAccountIdentification } from './hKLocalAccountIdentification'; +import { HULocalAccountIdentification } from './hULocalAccountIdentification'; +import { IbanAccountIdentification } from './ibanAccountIdentification'; +import { InternalCategoryData } from './internalCategoryData'; +import { InternalReviewTrackingData } from './internalReviewTrackingData'; +import { InvalidField } from './invalidField'; +import { IssuedCard } from './issuedCard'; +import { IssuingTransactionData } from './issuingTransactionData'; +import { Leg } from './leg'; +import { Link } from './link'; +import { Links } from './links'; +import { Lodging } from './lodging'; +import { MerchantData } from './merchantData'; +import { MerchantPurchaseData } from './merchantPurchaseData'; +import { Modification } from './modification'; +import { NOLocalAccountIdentification } from './nOLocalAccountIdentification'; +import { NZLocalAccountIdentification } from './nZLocalAccountIdentification'; +import { NameLocation } from './nameLocation'; +import { NumberAndBicAccountIdentification } from './numberAndBicAccountIdentification'; +import { PLLocalAccountIdentification } from './pLLocalAccountIdentification'; +import { PartyIdentification } from './partyIdentification'; +import { PaymentInstrument } from './paymentInstrument'; +import { PlatformPayment } from './platformPayment'; +import { RelayedAuthorisationData } from './relayedAuthorisationData'; +import { Repayment } from './repayment'; +import { RepaymentTerm } from './repaymentTerm'; +import { ResourceReference } from './resourceReference'; +import { RestServiceError } from './restServiceError'; +import { ReturnTransferRequest } from './returnTransferRequest'; +import { ReturnTransferResponse } from './returnTransferResponse'; +import { RoutingDetails } from './routingDetails'; +import { SELocalAccountIdentification } from './sELocalAccountIdentification'; +import { SGLocalAccountIdentification } from './sGLocalAccountIdentification'; +import { ServiceError } from './serviceError'; +import { ThreeDSecure } from './threeDSecure'; +import { ThresholdRepayment } from './thresholdRepayment'; +import { Transaction } from './transaction'; +import { TransactionEventViolation } from './transactionEventViolation'; +import { TransactionRuleReference } from './transactionRuleReference'; +import { TransactionRuleSource } from './transactionRuleSource'; +import { TransactionRulesResult } from './transactionRulesResult'; +import { TransactionSearchResponse } from './transactionSearchResponse'; +import { Transfer } from './transfer'; +import { TransferData } from './transferData'; +import { TransferEvent } from './transferEvent'; +import { TransferInfo } from './transferInfo'; +import { TransferNotificationCounterParty } from './transferNotificationCounterParty'; +import { TransferNotificationMerchantData } from './transferNotificationMerchantData'; +import { TransferNotificationValidationFact } from './transferNotificationValidationFact'; +import { TransferRequestReview } from './transferRequestReview'; +import { TransferReview } from './transferReview'; +import { TransferServiceRestServiceError } from './transferServiceRestServiceError'; +import { TransferView } from './transferView'; +import { UKLocalAccountIdentification } from './uKLocalAccountIdentification'; +import { USLocalAccountIdentification } from './uSLocalAccountIdentification'; +import { UltimatePartyIdentification } from './ultimatePartyIdentification'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "AULocalAccountIdentification.TypeEnum": AULocalAccountIdentification.TypeEnum, + "AdditionalBankIdentification.TypeEnum": AdditionalBankIdentification.TypeEnum, + "AmountAdjustment.AmountAdjustmentTypeEnum": AmountAdjustment.AmountAdjustmentTypeEnum, + "BRLocalAccountIdentification.TypeEnum": BRLocalAccountIdentification.TypeEnum, + "BankCategoryData.PriorityEnum": BankCategoryData.PriorityEnum, + "BankCategoryData.TypeEnum": BankCategoryData.TypeEnum, + "CALocalAccountIdentification.AccountTypeEnum": CALocalAccountIdentification.AccountTypeEnum, + "CALocalAccountIdentification.TypeEnum": CALocalAccountIdentification.TypeEnum, + "CZLocalAccountIdentification.TypeEnum": CZLocalAccountIdentification.TypeEnum, + "CapitalGrant.StatusEnum": CapitalGrant.StatusEnum, + "ConfirmationTrackingData.StatusEnum": ConfirmationTrackingData.StatusEnum, + "ConfirmationTrackingData.TypeEnum": ConfirmationTrackingData.TypeEnum, + "DKLocalAccountIdentification.TypeEnum": DKLocalAccountIdentification.TypeEnum, + "EstimationTrackingData.TypeEnum": EstimationTrackingData.TypeEnum, + "HKLocalAccountIdentification.TypeEnum": HKLocalAccountIdentification.TypeEnum, + "HULocalAccountIdentification.TypeEnum": HULocalAccountIdentification.TypeEnum, + "IbanAccountIdentification.TypeEnum": IbanAccountIdentification.TypeEnum, + "InternalCategoryData.TypeEnum": InternalCategoryData.TypeEnum, + "InternalReviewTrackingData.ReasonEnum": InternalReviewTrackingData.ReasonEnum, + "InternalReviewTrackingData.StatusEnum": InternalReviewTrackingData.StatusEnum, + "InternalReviewTrackingData.TypeEnum": InternalReviewTrackingData.TypeEnum, + "IssuedCard.PanEntryModeEnum": IssuedCard.PanEntryModeEnum, + "IssuedCard.ProcessingTypeEnum": IssuedCard.ProcessingTypeEnum, + "IssuedCard.TypeEnum": IssuedCard.TypeEnum, + "IssuingTransactionData.TypeEnum": IssuingTransactionData.TypeEnum, + "MerchantPurchaseData.TypeEnum": MerchantPurchaseData.TypeEnum, + "Modification.StatusEnum": Modification.StatusEnum, + "NOLocalAccountIdentification.TypeEnum": NOLocalAccountIdentification.TypeEnum, + "NZLocalAccountIdentification.TypeEnum": NZLocalAccountIdentification.TypeEnum, + "NumberAndBicAccountIdentification.TypeEnum": NumberAndBicAccountIdentification.TypeEnum, + "PLLocalAccountIdentification.TypeEnum": PLLocalAccountIdentification.TypeEnum, + "PartyIdentification.TypeEnum": PartyIdentification.TypeEnum, + "PlatformPayment.PlatformPaymentTypeEnum": PlatformPayment.PlatformPaymentTypeEnum, + "PlatformPayment.TypeEnum": PlatformPayment.TypeEnum, + "ReturnTransferResponse.StatusEnum": ReturnTransferResponse.StatusEnum, + "RoutingDetails.PriorityEnum": RoutingDetails.PriorityEnum, + "SELocalAccountIdentification.TypeEnum": SELocalAccountIdentification.TypeEnum, + "SGLocalAccountIdentification.TypeEnum": SGLocalAccountIdentification.TypeEnum, + "Transaction.StatusEnum": Transaction.StatusEnum, + "Transfer.CategoryEnum": Transfer.CategoryEnum, + "Transfer.DirectionEnum": Transfer.DirectionEnum, + "Transfer.ReasonEnum": Transfer.ReasonEnum, + "Transfer.StatusEnum": Transfer.StatusEnum, + "Transfer.TypeEnum": Transfer.TypeEnum, + "TransferData.CategoryEnum": TransferData.CategoryEnum, + "TransferData.DirectionEnum": TransferData.DirectionEnum, + "TransferData.ReasonEnum": TransferData.ReasonEnum, + "TransferData.StatusEnum": TransferData.StatusEnum, + "TransferData.TypeEnum": TransferData.TypeEnum, + "TransferEvent.ReasonEnum": TransferEvent.ReasonEnum, + "TransferEvent.StatusEnum": TransferEvent.StatusEnum, + "TransferEvent.TypeEnum": TransferEvent.TypeEnum, + "TransferInfo.CategoryEnum": TransferInfo.CategoryEnum, + "TransferInfo.PrioritiesEnum": TransferInfo.PrioritiesEnum, + "TransferInfo.PriorityEnum": TransferInfo.PriorityEnum, + "TransferInfo.TypeEnum": TransferInfo.TypeEnum, + "TransferReview.ScaOnApprovalEnum": TransferReview.ScaOnApprovalEnum, + "UKLocalAccountIdentification.TypeEnum": UKLocalAccountIdentification.TypeEnum, + "USLocalAccountIdentification.AccountTypeEnum": USLocalAccountIdentification.AccountTypeEnum, + "USLocalAccountIdentification.TypeEnum": USLocalAccountIdentification.TypeEnum, + "UltimatePartyIdentification.TypeEnum": UltimatePartyIdentification.TypeEnum, +} + +let typeMap: {[index: string]: any} = { + "AULocalAccountIdentification": AULocalAccountIdentification, + "AdditionalBankIdentification": AdditionalBankIdentification, + "Address": Address, + "Airline": Airline, + "Amount": Amount, + "AmountAdjustment": AmountAdjustment, + "ApproveTransfersRequest": ApproveTransfersRequest, + "BRLocalAccountIdentification": BRLocalAccountIdentification, + "BalanceMutation": BalanceMutation, + "BankAccountV3": BankAccountV3, + "BankCategoryData": BankCategoryData, + "CALocalAccountIdentification": CALocalAccountIdentification, + "CZLocalAccountIdentification": CZLocalAccountIdentification, + "CancelTransfersRequest": CancelTransfersRequest, + "CapitalBalance": CapitalBalance, + "CapitalGrant": CapitalGrant, + "CapitalGrantInfo": CapitalGrantInfo, + "CapitalGrants": CapitalGrants, + "Card": Card, + "CardIdentification": CardIdentification, + "ConfirmationTrackingData": ConfirmationTrackingData, + "Counterparty": Counterparty, + "CounterpartyInfoV3": CounterpartyInfoV3, + "CounterpartyV3": CounterpartyV3, + "DKLocalAccountIdentification": DKLocalAccountIdentification, + "DirectDebitInformation": DirectDebitInformation, + "EstimationTrackingData": EstimationTrackingData, + "ExecutionDate": ExecutionDate, + "ExternalReason": ExternalReason, + "Fee": Fee, + "FindTransfersResponse": FindTransfersResponse, + "HKLocalAccountIdentification": HKLocalAccountIdentification, + "HULocalAccountIdentification": HULocalAccountIdentification, + "IbanAccountIdentification": IbanAccountIdentification, + "InternalCategoryData": InternalCategoryData, + "InternalReviewTrackingData": InternalReviewTrackingData, + "InvalidField": InvalidField, + "IssuedCard": IssuedCard, + "IssuingTransactionData": IssuingTransactionData, + "Leg": Leg, + "Link": Link, + "Links": Links, + "Lodging": Lodging, + "MerchantData": MerchantData, + "MerchantPurchaseData": MerchantPurchaseData, + "Modification": Modification, + "NOLocalAccountIdentification": NOLocalAccountIdentification, + "NZLocalAccountIdentification": NZLocalAccountIdentification, + "NameLocation": NameLocation, + "NumberAndBicAccountIdentification": NumberAndBicAccountIdentification, + "PLLocalAccountIdentification": PLLocalAccountIdentification, + "PartyIdentification": PartyIdentification, + "PaymentInstrument": PaymentInstrument, + "PlatformPayment": PlatformPayment, + "RelayedAuthorisationData": RelayedAuthorisationData, + "Repayment": Repayment, + "RepaymentTerm": RepaymentTerm, + "ResourceReference": ResourceReference, + "RestServiceError": RestServiceError, + "ReturnTransferRequest": ReturnTransferRequest, + "ReturnTransferResponse": ReturnTransferResponse, + "RoutingDetails": RoutingDetails, + "SELocalAccountIdentification": SELocalAccountIdentification, + "SGLocalAccountIdentification": SGLocalAccountIdentification, + "ServiceError": ServiceError, + "ThreeDSecure": ThreeDSecure, + "ThresholdRepayment": ThresholdRepayment, + "Transaction": Transaction, + "TransactionEventViolation": TransactionEventViolation, + "TransactionRuleReference": TransactionRuleReference, + "TransactionRuleSource": TransactionRuleSource, + "TransactionRulesResult": TransactionRulesResult, + "TransactionSearchResponse": TransactionSearchResponse, + "Transfer": Transfer, + "TransferData": TransferData, + "TransferEvent": TransferEvent, + "TransferInfo": TransferInfo, + "TransferNotificationCounterParty": TransferNotificationCounterParty, + "TransferNotificationMerchantData": TransferNotificationMerchantData, + "TransferNotificationValidationFact": TransferNotificationValidationFact, + "TransferRequestReview": TransferRequestReview, + "TransferReview": TransferReview, + "TransferServiceRestServiceError": TransferServiceRestServiceError, + "TransferView": TransferView, + "UKLocalAccountIdentification": UKLocalAccountIdentification, + "USLocalAccountIdentification": USLocalAccountIdentification, + "UltimatePartyIdentification": UltimatePartyIdentification, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/transfers/modification.ts b/src/typings/transfers/modification.ts index 172832e37..8dd6de71f 100644 --- a/src/typings/transfers/modification.ts +++ b/src/typings/transfers/modification.ts @@ -12,66 +12,56 @@ export class Modification { /** * The direction of the money movement. */ - "direction"?: string; + 'direction'?: string; /** * Our reference for the modification. */ - "id"?: string; + 'id'?: string; /** * Your reference for the modification, used internally within your platform. */ - "reference"?: string; + 'reference'?: string; /** * The status of the transfer event. */ - "status"?: Modification.StatusEnum; + 'status'?: Modification.StatusEnum; /** * The type of transfer modification. */ - "type"?: string; + 'type'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "direction", "baseName": "direction", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "Modification.StatusEnum", - "format": "" + "type": "Modification.StatusEnum" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return Modification.attributeTypeMap; } - - public constructor() { - } } export namespace Modification { diff --git a/src/typings/transfers/nOLocalAccountIdentification.ts b/src/typings/transfers/nOLocalAccountIdentification.ts index 3c7aa537b..bf78b8301 100644 --- a/src/typings/transfers/nOLocalAccountIdentification.ts +++ b/src/typings/transfers/nOLocalAccountIdentification.ts @@ -12,36 +12,29 @@ export class NOLocalAccountIdentification { /** * The 11-digit bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * **noLocal** */ - "type": NOLocalAccountIdentification.TypeEnum; + 'type': NOLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "NOLocalAccountIdentification.TypeEnum", - "format": "" + "type": "NOLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return NOLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace NOLocalAccountIdentification { diff --git a/src/typings/transfers/nZLocalAccountIdentification.ts b/src/typings/transfers/nZLocalAccountIdentification.ts index 965854e65..e883d2d38 100644 --- a/src/typings/transfers/nZLocalAccountIdentification.ts +++ b/src/typings/transfers/nZLocalAccountIdentification.ts @@ -12,36 +12,29 @@ export class NZLocalAccountIdentification { /** * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. */ - "accountNumber": string; + 'accountNumber': string; /** * **nzLocal** */ - "type": NZLocalAccountIdentification.TypeEnum; + 'type': NZLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "NZLocalAccountIdentification.TypeEnum", - "format": "" + "type": "NZLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return NZLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace NZLocalAccountIdentification { diff --git a/src/typings/transfers/nameLocation.ts b/src/typings/transfers/nameLocation.ts index f79f922e2..7166d11d4 100644 --- a/src/typings/transfers/nameLocation.ts +++ b/src/typings/transfers/nameLocation.ts @@ -12,75 +12,64 @@ export class NameLocation { /** * The city where the merchant is located. */ - "city"?: string; + 'city'?: string; /** * The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. */ - "country"?: string; + 'country'?: string; /** * The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies. */ - "countryOfOrigin"?: string; + 'countryOfOrigin'?: string; /** * The name of the merchant\'s shop or service. */ - "name"?: string; + 'name'?: string; /** * The raw data. */ - "rawData"?: string; + 'rawData'?: string; /** * The state where the merchant is located. */ - "state"?: string; + 'state'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "city", "baseName": "city", - "type": "string", - "format": "" + "type": "string" }, { "name": "country", "baseName": "country", - "type": "string", - "format": "" + "type": "string" }, { "name": "countryOfOrigin", "baseName": "countryOfOrigin", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "rawData", "baseName": "rawData", - "type": "string", - "format": "" + "type": "string" }, { "name": "state", "baseName": "state", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return NameLocation.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/numberAndBicAccountIdentification.ts b/src/typings/transfers/numberAndBicAccountIdentification.ts index 28e9374be..c64f5e5e7 100644 --- a/src/typings/transfers/numberAndBicAccountIdentification.ts +++ b/src/typings/transfers/numberAndBicAccountIdentification.ts @@ -7,60 +7,50 @@ * Do not edit this class manually. */ -import { AdditionalBankIdentification } from "./additionalBankIdentification"; - +import { AdditionalBankIdentification } from './additionalBankIdentification'; export class NumberAndBicAccountIdentification { /** * The bank account number, without separators or whitespace. The length and format depends on the bank or country. */ - "accountNumber": string; - "additionalBankIdentification"?: AdditionalBankIdentification | null; + 'accountNumber': string; + 'additionalBankIdentification'?: AdditionalBankIdentification | null; /** * The bank\'s 8- or 11-character BIC or SWIFT code. */ - "bic": string; + 'bic': string; /** * **numberAndBic** */ - "type": NumberAndBicAccountIdentification.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type': NumberAndBicAccountIdentification.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "additionalBankIdentification", "baseName": "additionalBankIdentification", - "type": "AdditionalBankIdentification | null", - "format": "" + "type": "AdditionalBankIdentification | null" }, { "name": "bic", "baseName": "bic", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "NumberAndBicAccountIdentification.TypeEnum", - "format": "" + "type": "NumberAndBicAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return NumberAndBicAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace NumberAndBicAccountIdentification { diff --git a/src/typings/transfers/objectSerializer.ts b/src/typings/transfers/objectSerializer.ts deleted file mode 100644 index 82f690341..000000000 --- a/src/typings/transfers/objectSerializer.ts +++ /dev/null @@ -1,600 +0,0 @@ -export * from "./models"; - -import { AULocalAccountIdentification } from "./aULocalAccountIdentification"; -import { AdditionalBankIdentification } from "./additionalBankIdentification"; -import { Address } from "./address"; -import { Airline } from "./airline"; -import { Amount } from "./amount"; -import { AmountAdjustment } from "./amountAdjustment"; -import { ApproveTransfersRequest } from "./approveTransfersRequest"; -import { BRLocalAccountIdentification } from "./bRLocalAccountIdentification"; -import { BalanceMutation } from "./balanceMutation"; -import { BankAccountV3 } from "./bankAccountV3"; -import { BankAccountV3AccountIdentificationClass } from "./bankAccountV3AccountIdentification"; -import { BankCategoryData } from "./bankCategoryData"; -import { CALocalAccountIdentification } from "./cALocalAccountIdentification"; -import { CZLocalAccountIdentification } from "./cZLocalAccountIdentification"; -import { CancelTransfersRequest } from "./cancelTransfersRequest"; -import { CapitalBalance } from "./capitalBalance"; -import { CapitalGrant } from "./capitalGrant"; -import { CapitalGrantInfo } from "./capitalGrantInfo"; -import { CapitalGrants } from "./capitalGrants"; -import { Card } from "./card"; -import { CardIdentification } from "./cardIdentification"; -import { ConfirmationTrackingData } from "./confirmationTrackingData"; -import { Counterparty } from "./counterparty"; -import { CounterpartyInfoV3 } from "./counterpartyInfoV3"; -import { CounterpartyV3 } from "./counterpartyV3"; -import { DKLocalAccountIdentification } from "./dKLocalAccountIdentification"; -import { DirectDebitInformation } from "./directDebitInformation"; -import { EstimationTrackingData } from "./estimationTrackingData"; -import { ExecutionDate } from "./executionDate"; -import { ExternalReason } from "./externalReason"; -import { Fee } from "./fee"; -import { FindTransfersResponse } from "./findTransfersResponse"; -import { HKLocalAccountIdentification } from "./hKLocalAccountIdentification"; -import { HULocalAccountIdentification } from "./hULocalAccountIdentification"; -import { IbanAccountIdentification } from "./ibanAccountIdentification"; -import { InternalCategoryData } from "./internalCategoryData"; -import { InternalReviewTrackingData } from "./internalReviewTrackingData"; -import { InvalidField } from "./invalidField"; -import { IssuedCard } from "./issuedCard"; -import { IssuingTransactionData } from "./issuingTransactionData"; -import { Leg } from "./leg"; -import { Link } from "./link"; -import { Links } from "./links"; -import { Lodging } from "./lodging"; -import { MerchantData } from "./merchantData"; -import { MerchantPurchaseData } from "./merchantPurchaseData"; -import { Modification } from "./modification"; -import { NOLocalAccountIdentification } from "./nOLocalAccountIdentification"; -import { NZLocalAccountIdentification } from "./nZLocalAccountIdentification"; -import { NameLocation } from "./nameLocation"; -import { NumberAndBicAccountIdentification } from "./numberAndBicAccountIdentification"; -import { PLLocalAccountIdentification } from "./pLLocalAccountIdentification"; -import { PartyIdentification } from "./partyIdentification"; -import { PaymentInstrument } from "./paymentInstrument"; -import { PlatformPayment } from "./platformPayment"; -import { RelayedAuthorisationData } from "./relayedAuthorisationData"; -import { Repayment } from "./repayment"; -import { RepaymentTerm } from "./repaymentTerm"; -import { ResourceReference } from "./resourceReference"; -import { RestServiceError } from "./restServiceError"; -import { ReturnTransferRequest } from "./returnTransferRequest"; -import { ReturnTransferResponse } from "./returnTransferResponse"; -import { RoutingDetails } from "./routingDetails"; -import { SELocalAccountIdentification } from "./sELocalAccountIdentification"; -import { SGLocalAccountIdentification } from "./sGLocalAccountIdentification"; -import { ServiceError } from "./serviceError"; -import { ThresholdRepayment } from "./thresholdRepayment"; -import { Transaction } from "./transaction"; -import { TransactionEventViolation } from "./transactionEventViolation"; -import { TransactionRuleReference } from "./transactionRuleReference"; -import { TransactionRuleSource } from "./transactionRuleSource"; -import { TransactionRulesResult } from "./transactionRulesResult"; -import { TransactionSearchResponse } from "./transactionSearchResponse"; -import { Transfer } from "./transfer"; -import { TransferCategoryDataClass } from "./transferCategoryData"; -import { TransferData } from "./transferData"; -import { TransferDataTrackingClass } from "./transferDataTracking"; -import { TransferEvent } from "./transferEvent"; -import { TransferEventEventsDataInnerClass } from "./transferEventEventsDataInner"; -import { TransferEventTrackingDataClass } from "./transferEventTrackingData"; -import { TransferInfo } from "./transferInfo"; -import { TransferNotificationCounterParty } from "./transferNotificationCounterParty"; -import { TransferNotificationMerchantData } from "./transferNotificationMerchantData"; -import { TransferNotificationValidationFact } from "./transferNotificationValidationFact"; -import { TransferRequestReview } from "./transferRequestReview"; -import { TransferReview } from "./transferReview"; -import { TransferServiceRestServiceError } from "./transferServiceRestServiceError"; -import { TransferView } from "./transferView"; -import { UKLocalAccountIdentification } from "./uKLocalAccountIdentification"; -import { USLocalAccountIdentification } from "./uSLocalAccountIdentification"; -import { UltimatePartyIdentification } from "./ultimatePartyIdentification"; - -/* tslint:disable:no-unused-variable */ -let primitives = [ - "string", - "boolean", - "double", - "integer", - "long", - "float", - "number", - "any" - ]; - -let enumsMap: Set = new Set([ - "AULocalAccountIdentification.TypeEnum", - "AdditionalBankIdentification.TypeEnum", - "AmountAdjustment.AmountAdjustmentTypeEnum", - "BRLocalAccountIdentification.TypeEnum", - "BankAccountV3AccountIdentification.TypeEnum", - "BankAccountV3AccountIdentification.AccountTypeEnum", - "BankCategoryData.PriorityEnum", - "BankCategoryData.TypeEnum", - "CALocalAccountIdentification.AccountTypeEnum", - "CALocalAccountIdentification.TypeEnum", - "CZLocalAccountIdentification.TypeEnum", - "CapitalGrant.StatusEnum", - "ConfirmationTrackingData.StatusEnum", - "ConfirmationTrackingData.TypeEnum", - "DKLocalAccountIdentification.TypeEnum", - "EstimationTrackingData.TypeEnum", - "HKLocalAccountIdentification.TypeEnum", - "HULocalAccountIdentification.TypeEnum", - "IbanAccountIdentification.TypeEnum", - "InternalCategoryData.TypeEnum", - "InternalReviewTrackingData.ReasonEnum", - "InternalReviewTrackingData.StatusEnum", - "InternalReviewTrackingData.TypeEnum", - "IssuedCard.PanEntryModeEnum", - "IssuedCard.ProcessingTypeEnum", - "IssuedCard.TypeEnum", - "IssuingTransactionData.TypeEnum", - "MerchantPurchaseData.TypeEnum", - "Modification.StatusEnum", - "NOLocalAccountIdentification.TypeEnum", - "NZLocalAccountIdentification.TypeEnum", - "NumberAndBicAccountIdentification.TypeEnum", - "PLLocalAccountIdentification.TypeEnum", - "PartyIdentification.TypeEnum", - "PlatformPayment.PlatformPaymentTypeEnum", - "PlatformPayment.TypeEnum", - "ReturnTransferResponse.StatusEnum", - "RoutingDetails.PriorityEnum", - "SELocalAccountIdentification.TypeEnum", - "SGLocalAccountIdentification.TypeEnum", - "Transaction.StatusEnum", - "Transfer.CategoryEnum", - "Transfer.DirectionEnum", - "Transfer.ReasonEnum", - "Transfer.StatusEnum", - "Transfer.TypeEnum", - "TransferCategoryData.PriorityEnum", - "TransferCategoryData.TypeEnum", - "TransferCategoryData.PanEntryModeEnum", - "TransferCategoryData.ProcessingTypeEnum", - "TransferCategoryData.PlatformPaymentTypeEnum", - "TransferData.CategoryEnum", - "TransferData.DirectionEnum", - "TransferData.ReasonEnum", - "TransferData.StatusEnum", - "TransferData.TypeEnum", - "TransferDataTracking.StatusEnum", - "TransferDataTracking.TypeEnum", - "TransferDataTracking.ReasonEnum", - "TransferEvent.ReasonEnum", - "TransferEvent.StatusEnum", - "TransferEvent.TypeEnum", - "TransferEventEventsDataInner.TypeEnum", - "TransferEventTrackingData.StatusEnum", - "TransferEventTrackingData.TypeEnum", - "TransferEventTrackingData.ReasonEnum", - "TransferInfo.CategoryEnum", - "TransferInfo.PrioritiesEnum", - "TransferInfo.PriorityEnum", - "TransferInfo.TypeEnum", - "TransferReview.ScaOnApprovalEnum", - "UKLocalAccountIdentification.TypeEnum", - "USLocalAccountIdentification.AccountTypeEnum", - "USLocalAccountIdentification.TypeEnum", - "UltimatePartyIdentification.TypeEnum", -]); - -let typeMap: {[index: string]: any} = { - "AULocalAccountIdentification": AULocalAccountIdentification, - "AdditionalBankIdentification": AdditionalBankIdentification, - "Address": Address, - "Airline": Airline, - "Amount": Amount, - "AmountAdjustment": AmountAdjustment, - "ApproveTransfersRequest": ApproveTransfersRequest, - "BRLocalAccountIdentification": BRLocalAccountIdentification, - "BalanceMutation": BalanceMutation, - "BankAccountV3": BankAccountV3, - "BankAccountV3AccountIdentification": BankAccountV3AccountIdentificationClass, - "BankCategoryData": BankCategoryData, - "CALocalAccountIdentification": CALocalAccountIdentification, - "CZLocalAccountIdentification": CZLocalAccountIdentification, - "CancelTransfersRequest": CancelTransfersRequest, - "CapitalBalance": CapitalBalance, - "CapitalGrant": CapitalGrant, - "CapitalGrantInfo": CapitalGrantInfo, - "CapitalGrants": CapitalGrants, - "Card": Card, - "CardIdentification": CardIdentification, - "ConfirmationTrackingData": ConfirmationTrackingData, - "Counterparty": Counterparty, - "CounterpartyInfoV3": CounterpartyInfoV3, - "CounterpartyV3": CounterpartyV3, - "DKLocalAccountIdentification": DKLocalAccountIdentification, - "DirectDebitInformation": DirectDebitInformation, - "EstimationTrackingData": EstimationTrackingData, - "ExecutionDate": ExecutionDate, - "ExternalReason": ExternalReason, - "Fee": Fee, - "FindTransfersResponse": FindTransfersResponse, - "HKLocalAccountIdentification": HKLocalAccountIdentification, - "HULocalAccountIdentification": HULocalAccountIdentification, - "IbanAccountIdentification": IbanAccountIdentification, - "InternalCategoryData": InternalCategoryData, - "InternalReviewTrackingData": InternalReviewTrackingData, - "InvalidField": InvalidField, - "IssuedCard": IssuedCard, - "IssuingTransactionData": IssuingTransactionData, - "Leg": Leg, - "Link": Link, - "Links": Links, - "Lodging": Lodging, - "MerchantData": MerchantData, - "MerchantPurchaseData": MerchantPurchaseData, - "Modification": Modification, - "NOLocalAccountIdentification": NOLocalAccountIdentification, - "NZLocalAccountIdentification": NZLocalAccountIdentification, - "NameLocation": NameLocation, - "NumberAndBicAccountIdentification": NumberAndBicAccountIdentification, - "PLLocalAccountIdentification": PLLocalAccountIdentification, - "PartyIdentification": PartyIdentification, - "PaymentInstrument": PaymentInstrument, - "PlatformPayment": PlatformPayment, - "RelayedAuthorisationData": RelayedAuthorisationData, - "Repayment": Repayment, - "RepaymentTerm": RepaymentTerm, - "ResourceReference": ResourceReference, - "RestServiceError": RestServiceError, - "ReturnTransferRequest": ReturnTransferRequest, - "ReturnTransferResponse": ReturnTransferResponse, - "RoutingDetails": RoutingDetails, - "SELocalAccountIdentification": SELocalAccountIdentification, - "SGLocalAccountIdentification": SGLocalAccountIdentification, - "ServiceError": ServiceError, - "ThresholdRepayment": ThresholdRepayment, - "Transaction": Transaction, - "TransactionEventViolation": TransactionEventViolation, - "TransactionRuleReference": TransactionRuleReference, - "TransactionRuleSource": TransactionRuleSource, - "TransactionRulesResult": TransactionRulesResult, - "TransactionSearchResponse": TransactionSearchResponse, - "Transfer": Transfer, - "TransferCategoryData": TransferCategoryDataClass, - "TransferData": TransferData, - "TransferDataTracking": TransferDataTrackingClass, - "TransferEvent": TransferEvent, - "TransferEventEventsDataInner": TransferEventEventsDataInnerClass, - "TransferEventTrackingData": TransferEventTrackingDataClass, - "TransferInfo": TransferInfo, - "TransferNotificationCounterParty": TransferNotificationCounterParty, - "TransferNotificationMerchantData": TransferNotificationMerchantData, - "TransferNotificationValidationFact": TransferNotificationValidationFact, - "TransferRequestReview": TransferRequestReview, - "TransferReview": TransferReview, - "TransferServiceRestServiceError": TransferServiceRestServiceError, - "TransferView": TransferView, - "UKLocalAccountIdentification": UKLocalAccountIdentification, - "USLocalAccountIdentification": USLocalAccountIdentification, - "UltimatePartyIdentification": UltimatePartyIdentification, -} - -type MimeTypeDescriptor = { - type: string; - subtype: string; - subtypeTokens: string[]; -}; - -/** - * Every mime-type consists of a type, subtype, and optional parameters. - * The subtype can be composite, including information about the content format. - * For example: `application/json-patch+json`, `application/merge-patch+json`. - * - * This helper transforms a string mime-type into an internal representation. - * This simplifies the implementation of predicates that in turn define common rules for parsing or stringifying - * the payload. - */ -const parseMimeType = (mimeType: string): MimeTypeDescriptor => { - const [type = '', subtype = ''] = mimeType.split('/'); - return { - type, - subtype, - subtypeTokens: subtype.split('+'), - }; -}; - -type MimeTypePredicate = (mimeType: string) => boolean; - -// This factory creates a predicate function that checks a string mime-type against defined rules. -const mimeTypePredicateFactory = (predicate: (descriptor: MimeTypeDescriptor) => boolean): MimeTypePredicate => (mimeType) => predicate(parseMimeType(mimeType)); - -// Use this factory when you need to define a simple predicate based only on type and, if applicable, subtype. -const mimeTypeSimplePredicateFactory = (type: string, subtype?: string): MimeTypePredicate => mimeTypePredicateFactory((descriptor) => { - if (descriptor.type !== type) return false; - if (subtype != null && descriptor.subtype !== subtype) return false; - return true; -}); - -// Creating a set of named predicates that will help us determine how to handle different mime-types -const isTextLikeMimeType = mimeTypeSimplePredicateFactory('text'); -const isJsonMimeType = mimeTypeSimplePredicateFactory('application', 'json'); -const isJsonLikeMimeType = mimeTypePredicateFactory((descriptor) => descriptor.type === 'application' && descriptor.subtypeTokens.some((item) => item === 'json')); -const isOctetStreamMimeType = mimeTypeSimplePredicateFactory('application', 'octet-stream'); -const isFormUrlencodedMimeType = mimeTypeSimplePredicateFactory('application', 'x-www-form-urlencoded'); - -// Defining a list of mime-types in the order of prioritization for handling. -const supportedMimeTypePredicatesWithPriority: MimeTypePredicate[] = [ - isJsonMimeType, - isJsonLikeMimeType, - isTextLikeMimeType, - isOctetStreamMimeType, - isFormUrlencodedMimeType, -]; - -const nullableSuffix = " | null"; -const optionalSuffix = " | undefined"; -const arrayPrefix = "Array<"; -const arraySuffix = ">"; -const mapPrefix = "{ [key: string]: "; -const mapSuffix = "; }"; - -export class ObjectSerializer { - public static findCorrectType(data: any, expectedType: string) { - if (data == undefined) { - return expectedType; - } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { - return expectedType; - } else if (expectedType === "Date") { - return expectedType; - } else { - if (enumsMap.has(expectedType)) { - return expectedType; - } - - if (!typeMap[expectedType]) { - return expectedType; // w/e we don't know the type - } - - // Check the discriminator - let discriminatorProperty = typeMap[expectedType].discriminator; - if (discriminatorProperty == null) { - return expectedType; // the type does not have a discriminator. use it. - } else { - if (data[discriminatorProperty]) { - var discriminatorType = data[discriminatorProperty]; - let mapping = typeMap[expectedType].mapping; - if (mapping != undefined && mapping[discriminatorType]) { - return mapping[discriminatorType]; // use the type given in the discriminator - } else if(typeMap[discriminatorType]) { - return discriminatorType; - } else { - return expectedType; // discriminator did not map to a type - } - } else { - return expectedType; // discriminator was not present (or an empty string) - } - } - } - } - - /** - * Serializes a value into a plain JSON-compatible object based on its type. - * - * Supports primitives, arrays, maps, dates, enums, and classes defined in `typeMap`. - * Falls back to raw data if type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The value to serialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A JSON-compatible representation of `data`. - */ - public static serialize(data: any, type: string, format: string = ""): any { - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.serialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.serialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.serialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - if (format == "date") { - let month = data.getMonth()+1 - month = month < 10 ? "0" + month.toString() : month.toString() - let day = data.getDate(); - day = day < 10 ? "0" + day.toString() : day.toString(); - - return data.getFullYear() + "-" + month + "-" + day; - } else { - return data.toISOString(); - } - } else { - if (enumsMap.has(type)) { - return data; - } - if (!typeMap[type]) { // in case we dont know the type - return data; - } - - // Get the actual type of this object - type = this.findCorrectType(data, type); - - const clazz = typeMap[type]; - - // Safe check for getAttributeTypeMap - if (typeof clazz.getAttributeTypeMap !== "function") { - return { ...data }; // fallback: shallow copy - } - - // get the map for the correct type. - let attributeTypes = typeMap[type].getAttributeTypeMap(); - let instance: {[index: string]: any} = {}; - for (let attributeType of attributeTypes) { - instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format); - } - return instance; - } - } - - /** - * Deserializes a plain JSON-compatible object into a typed instance. - * - * Handles primitives, arrays, maps, dates, enums, and known classes from `typeMap`. - * Uses discriminators when available to resolve polymorphic types. - * Falls back to raw data if the type is unknown or lacks `getAttributeTypeMap()`. - * - * @param data - The raw input to deserialize. - * @param type - The expected type name as a string. - * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. - * @returns A deserialized instance or value of `data`. - */ - public static deserialize(data: any, type: string, format: string = ""): any { - // polymorphism may change the actual type. - type = ObjectSerializer.findCorrectType(data, type); - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.endsWith(nullableSuffix)) { - let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.endsWith(optionalSuffix)) { - let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type - return ObjectSerializer.deserialize(data, subType, format); - } else if (type.startsWith(arrayPrefix)) { - let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type - let transformedData: any[] = []; - for (let date of data) { - transformedData.push(ObjectSerializer.deserialize(date, subType, format)); - } - return transformedData; - } else if (type.startsWith(mapPrefix)) { - let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type - let transformedData: { [key: string]: any } = {}; - for (let key in data) { - transformedData[key] = ObjectSerializer.deserialize( - data[key], - subType, - format, - ); - } - return transformedData; - } else if (type === "Date") { - return new Date(data); - } else { - if (enumsMap.has(type)) {// is Enum - return data; - } - - if (!typeMap[type]) { // dont know the type - return data; - } - let instance = new typeMap[type](); - - // Safe check for getAttributeTypeMap - if (typeof typeMap[type].getAttributeTypeMap !== "function") { - Object.assign(instance, data); // fallback: shallow copy - return instance; - } - - let attributeTypes = typeMap[type].getAttributeTypeMap(); - for (let attributeType of attributeTypes) { - let value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format); - if (value !== undefined) { - instance[attributeType.name] = value; - } - } - return instance; - } - } - - - /** - * Normalize media type - * - * We currently do not handle any media types attributes, i.e. anything - * after a semicolon. All content is assumed to be UTF-8 compatible. - */ - public static normalizeMediaType(mediaType: string | undefined): string | undefined { - if (mediaType === undefined) { - return undefined; - } - return (mediaType.split(";")[0] ?? '').trim().toLowerCase(); - } - - /** - * From a list of possible media types, choose the one we can handle best. - * - * The order of the given media types does not have any impact on the choice - * made. - */ - public static getPreferredMediaType(mediaTypes: Array): string { - /** According to OAS 3 we should default to json */ - if (mediaTypes.length === 0) { - return "application/json"; - } - - const normalMediaTypes = mediaTypes.map(ObjectSerializer.normalizeMediaType); - - for (const predicate of supportedMimeTypePredicatesWithPriority) { - for (const mediaType of normalMediaTypes) { - if (mediaType != null && predicate(mediaType)) { - return mediaType; - } - } - } - - throw new Error("None of the given media types are supported: " + mediaTypes.join(", ")); - } - - /** - * Convert data to a string according the given media type - */ - public static stringify(data: any, mediaType: string): string { - if (isTextLikeMimeType(mediaType)) { - return String(data); - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.stringify(data); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify."); - } - - /** - * Parse data from a string according to the given media type - */ - public static parse(rawData: string, mediaType: string | undefined) { - if (mediaType === undefined) { - throw new Error("Cannot parse content. No Content-Type defined."); - } - - if (isTextLikeMimeType(mediaType)) { - return rawData; - } - - if (isJsonLikeMimeType(mediaType)) { - return JSON.parse(rawData); - } - - throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse."); - } -} diff --git a/src/typings/transfers/pLLocalAccountIdentification.ts b/src/typings/transfers/pLLocalAccountIdentification.ts index 7621bec90..f7abd24b7 100644 --- a/src/typings/transfers/pLLocalAccountIdentification.ts +++ b/src/typings/transfers/pLLocalAccountIdentification.ts @@ -12,36 +12,29 @@ export class PLLocalAccountIdentification { /** * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * **plLocal** */ - "type": PLLocalAccountIdentification.TypeEnum; + 'type': PLLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "PLLocalAccountIdentification.TypeEnum", - "format": "" + "type": "PLLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return PLLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace PLLocalAccountIdentification { diff --git a/src/typings/transfers/partyIdentification.ts b/src/typings/transfers/partyIdentification.ts index e874d6a3d..4dabeeece 100644 --- a/src/typings/transfers/partyIdentification.ts +++ b/src/typings/transfers/partyIdentification.ts @@ -7,90 +7,77 @@ * Do not edit this class manually. */ -import { Address } from "./address"; - +import { Address } from './address'; export class PartyIdentification { - "address"?: Address | null; + 'address'?: Address | null; /** * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. */ - "dateOfBirth"?: string; + 'dateOfBirth'?: string; /** * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. */ - "firstName"?: string; + 'firstName'?: string; /** * The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" \' and space. Required when `category` is **bank**. */ - "fullName"?: string; + 'fullName'?: string; /** * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. */ - "lastName"?: string; + 'lastName'?: string; /** * A unique reference to identify the party or counterparty involved in the transfer. For example, your client\'s unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. */ - "reference"?: string; + 'reference'?: string; /** * The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. */ - "type"?: PartyIdentification.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type'?: PartyIdentification.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "address", "baseName": "address", - "type": "Address | null", - "format": "" + "type": "Address | null" }, { "name": "dateOfBirth", "baseName": "dateOfBirth", - "type": "string", - "format": "date" + "type": "string" }, { "name": "firstName", "baseName": "firstName", - "type": "string", - "format": "" + "type": "string" }, { "name": "fullName", "baseName": "fullName", - "type": "string", - "format": "" + "type": "string" }, { "name": "lastName", "baseName": "lastName", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "PartyIdentification.TypeEnum", - "format": "" + "type": "PartyIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return PartyIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace PartyIdentification { diff --git a/src/typings/transfers/paymentInstrument.ts b/src/typings/transfers/paymentInstrument.ts index 025699a40..0aa0be54b 100644 --- a/src/typings/transfers/paymentInstrument.ts +++ b/src/typings/transfers/paymentInstrument.ts @@ -12,55 +12,46 @@ export class PaymentInstrument { /** * The description of the resource. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the resource. */ - "id"?: string; + 'id'?: string; /** * The reference for the resource. */ - "reference"?: string; + 'reference'?: string; /** * The type of wallet that the network token is associated with. */ - "tokenType"?: string; + 'tokenType'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "tokenType", "baseName": "tokenType", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return PaymentInstrument.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/platformPayment.ts b/src/typings/transfers/platformPayment.ts index dc9283316..5d386859f 100644 --- a/src/typings/transfers/platformPayment.ts +++ b/src/typings/transfers/platformPayment.ts @@ -12,76 +12,65 @@ export class PlatformPayment { /** * The capture\'s merchant reference included in the transfer. */ - "modificationMerchantReference"?: string; + 'modificationMerchantReference'?: string; /** * The capture reference included in the transfer. */ - "modificationPspReference"?: string; + 'modificationPspReference'?: string; /** * The payment\'s merchant reference included in the transfer. */ - "paymentMerchantReference"?: string; + 'paymentMerchantReference'?: string; /** * Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen\'s commission and Adyen\'s markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform\'s commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user\'s balance account. * **VAT**: for the Value Added Tax. */ - "platformPaymentType"?: PlatformPayment.PlatformPaymentTypeEnum; + 'platformPaymentType'?: PlatformPayment.PlatformPaymentTypeEnum; /** * The payment reference included in the transfer. */ - "pspPaymentReference"?: string; + 'pspPaymentReference'?: string; /** * **platformPayment** */ - "type"?: PlatformPayment.TypeEnum; + 'type'?: PlatformPayment.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "modificationMerchantReference", "baseName": "modificationMerchantReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "modificationPspReference", "baseName": "modificationPspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentMerchantReference", "baseName": "paymentMerchantReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "platformPaymentType", "baseName": "platformPaymentType", - "type": "PlatformPayment.PlatformPaymentTypeEnum", - "format": "" + "type": "PlatformPayment.PlatformPaymentTypeEnum" }, { "name": "pspPaymentReference", "baseName": "pspPaymentReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "PlatformPayment.TypeEnum", - "format": "" + "type": "PlatformPayment.TypeEnum" } ]; static getAttributeTypeMap() { return PlatformPayment.attributeTypeMap; } - - public constructor() { - } } export namespace PlatformPayment { diff --git a/src/typings/transfers/relayedAuthorisationData.ts b/src/typings/transfers/relayedAuthorisationData.ts index 56d119b1f..62eef5e64 100644 --- a/src/typings/transfers/relayedAuthorisationData.ts +++ b/src/typings/transfers/relayedAuthorisationData.ts @@ -12,35 +12,28 @@ export class RelayedAuthorisationData { /** * Contains key-value pairs of your references and descriptions, for example, `customId`:`your-own-custom-field-12345`. */ - "metadata"?: { [key: string]: string; }; + 'metadata'?: { [key: string]: string; }; /** * Your reference for the relayed authorisation data. */ - "reference"?: string; + 'reference'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "metadata", "baseName": "metadata", - "type": "{ [key: string]: string; }", - "format": "" + "type": "{ [key: string]: string; }" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return RelayedAuthorisationData.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/repayment.ts b/src/typings/transfers/repayment.ts index ca06d3bb1..17f32ffda 100644 --- a/src/typings/transfers/repayment.ts +++ b/src/typings/transfers/repayment.ts @@ -7,47 +7,38 @@ * Do not edit this class manually. */ -import { RepaymentTerm } from "./repaymentTerm"; -import { ThresholdRepayment } from "./thresholdRepayment"; - +import { RepaymentTerm } from './repaymentTerm'; +import { ThresholdRepayment } from './thresholdRepayment'; export class Repayment { /** * The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). */ - "basisPoints": number; - "term"?: RepaymentTerm | null; - "threshold"?: ThresholdRepayment | null; - - static readonly discriminator: string | undefined = undefined; + 'basisPoints': number; + 'term'?: RepaymentTerm | null; + 'threshold'?: ThresholdRepayment | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "basisPoints", "baseName": "basisPoints", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "term", "baseName": "term", - "type": "RepaymentTerm | null", - "format": "" + "type": "RepaymentTerm | null" }, { "name": "threshold", "baseName": "threshold", - "type": "ThresholdRepayment | null", - "format": "" + "type": "ThresholdRepayment | null" } ]; static getAttributeTypeMap() { return Repayment.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/repaymentTerm.ts b/src/typings/transfers/repaymentTerm.ts index df550746d..08b35216b 100644 --- a/src/typings/transfers/repaymentTerm.ts +++ b/src/typings/transfers/repaymentTerm.ts @@ -12,35 +12,28 @@ export class RepaymentTerm { /** * The estimated term for repaying the grant, in days. */ - "estimatedDays": number; + 'estimatedDays': number; /** * The maximum term for repaying the grant, in days. Only applies when `contractType` is **loan**. */ - "maximumDays"?: number; + 'maximumDays'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "estimatedDays", "baseName": "estimatedDays", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "maximumDays", "baseName": "maximumDays", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return RepaymentTerm.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/resourceReference.ts b/src/typings/transfers/resourceReference.ts index dbb5176f0..e6f054e73 100644 --- a/src/typings/transfers/resourceReference.ts +++ b/src/typings/transfers/resourceReference.ts @@ -12,45 +12,37 @@ export class ResourceReference { /** * The description of the resource. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the resource. */ - "id"?: string; + 'id'?: string; /** * The reference for the resource. */ - "reference"?: string; + 'reference'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ResourceReference.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/restServiceError.ts b/src/typings/transfers/restServiceError.ts index eb05a0fef..bd2f9ea61 100644 --- a/src/typings/transfers/restServiceError.ts +++ b/src/typings/transfers/restServiceError.ts @@ -7,109 +7,94 @@ * Do not edit this class manually. */ -import { InvalidField } from "./invalidField"; - +import { InvalidField } from './invalidField'; export class RestServiceError { /** * A human-readable explanation specific to this occurrence of the problem. */ - "detail": string; + 'detail': string; /** * A code that identifies the problem type. */ - "errorCode": string; + 'errorCode': string; /** * A unique URI that identifies the specific occurrence of the problem. */ - "instance"?: string; + 'instance'?: string; /** * Detailed explanation of each validation error, when applicable. */ - "invalidFields"?: Array; + 'invalidFields'?: Array; /** * A unique reference for the request, essentially the same as `pspReference`. */ - "requestId"?: string; - "response"?: any; + 'requestId'?: string; + 'response'?: object; /** * The HTTP status code. */ - "status": number; + 'status': number; /** * A short, human-readable summary of the problem type. */ - "title": string; + 'title': string; /** * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. */ - "type": string; - - static readonly discriminator: string | undefined = undefined; + 'type': string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "detail", "baseName": "detail", - "type": "string", - "format": "" + "type": "string" }, { "name": "errorCode", "baseName": "errorCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "instance", "baseName": "instance", - "type": "string", - "format": "" + "type": "string" }, { "name": "invalidFields", "baseName": "invalidFields", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "requestId", "baseName": "requestId", - "type": "string", - "format": "" + "type": "string" }, { "name": "response", "baseName": "response", - "type": "any", - "format": "" + "type": "object" }, { "name": "status", "baseName": "status", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "title", "baseName": "title", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return RestServiceError.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/returnTransferRequest.ts b/src/typings/transfers/returnTransferRequest.ts index ba9bf8953..5c48e68f3 100644 --- a/src/typings/transfers/returnTransferRequest.ts +++ b/src/typings/transfers/returnTransferRequest.ts @@ -7,39 +7,31 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class ReturnTransferRequest { - "amount": Amount; + 'amount': Amount; /** * Your internal reference for the return. If you don\'t provide this in the request, Adyen generates a unique reference. This reference is used in all communication with you about the instruction status. We recommend using a unique value per instruction. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). */ - "reference"?: string; - - static readonly discriminator: string | undefined = undefined; + 'reference'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ReturnTransferRequest.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/returnTransferResponse.ts b/src/typings/transfers/returnTransferResponse.ts index 65675750d..53949653a 100644 --- a/src/typings/transfers/returnTransferResponse.ts +++ b/src/typings/transfers/returnTransferResponse.ts @@ -12,56 +12,47 @@ export class ReturnTransferResponse { /** * The unique identifier of the return. */ - "id"?: string; + 'id'?: string; /** * Your internal reference for the return. */ - "reference"?: string; + 'reference'?: string; /** * The resulting status of the return. Possible values: **Authorised**, **Declined**. */ - "status"?: ReturnTransferResponse.StatusEnum; + 'status'?: ReturnTransferResponse.StatusEnum; /** * The unique identifier of the original transfer. */ - "transferId"?: string; + 'transferId'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "ReturnTransferResponse.StatusEnum", - "format": "" + "type": "ReturnTransferResponse.StatusEnum" }, { "name": "transferId", "baseName": "transferId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return ReturnTransferResponse.attributeTypeMap; } - - public constructor() { - } } export namespace ReturnTransferResponse { diff --git a/src/typings/transfers/routingDetails.ts b/src/typings/transfers/routingDetails.ts index b3ed7e181..5667dc413 100644 --- a/src/typings/transfers/routingDetails.ts +++ b/src/typings/transfers/routingDetails.ts @@ -12,56 +12,47 @@ export class RoutingDetails { /** * A human-readable explanation specific to this occurrence of the problem. */ - "detail"?: string; + 'detail'?: string; /** * A code that identifies the problem type. */ - "errorCode"?: string; + 'errorCode'?: 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. Required for transfers with `category` **bank**. 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 in [SEPA countries](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. Required for transfers with `category` **bank**. 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"?: RoutingDetails.PriorityEnum; + 'priority'?: RoutingDetails.PriorityEnum; /** * A short, human-readable summary of the problem type. */ - "title"?: string; + 'title'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "detail", "baseName": "detail", - "type": "string", - "format": "" + "type": "string" }, { "name": "errorCode", "baseName": "errorCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "priority", "baseName": "priority", - "type": "RoutingDetails.PriorityEnum", - "format": "" + "type": "RoutingDetails.PriorityEnum" }, { "name": "title", "baseName": "title", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return RoutingDetails.attributeTypeMap; } - - public constructor() { - } } export namespace RoutingDetails { diff --git a/src/typings/transfers/sELocalAccountIdentification.ts b/src/typings/transfers/sELocalAccountIdentification.ts index 4f7fbc20c..2af713ce3 100644 --- a/src/typings/transfers/sELocalAccountIdentification.ts +++ b/src/typings/transfers/sELocalAccountIdentification.ts @@ -12,46 +12,38 @@ export class SELocalAccountIdentification { /** * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. */ - "clearingNumber": string; + 'clearingNumber': string; /** * **seLocal** */ - "type": SELocalAccountIdentification.TypeEnum; + 'type': SELocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "clearingNumber", "baseName": "clearingNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "SELocalAccountIdentification.TypeEnum", - "format": "" + "type": "SELocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return SELocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace SELocalAccountIdentification { diff --git a/src/typings/transfers/sGLocalAccountIdentification.ts b/src/typings/transfers/sGLocalAccountIdentification.ts index b4b83144d..c18f742ea 100644 --- a/src/typings/transfers/sGLocalAccountIdentification.ts +++ b/src/typings/transfers/sGLocalAccountIdentification.ts @@ -12,46 +12,38 @@ export class SGLocalAccountIdentification { /** * The 4- to 19-digit bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * The bank\'s 8- or 11-character BIC or SWIFT code. */ - "bic": string; + 'bic': string; /** * **sgLocal** */ - "type"?: SGLocalAccountIdentification.TypeEnum; + 'type'?: SGLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "bic", "baseName": "bic", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "SGLocalAccountIdentification.TypeEnum", - "format": "" + "type": "SGLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return SGLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace SGLocalAccountIdentification { diff --git a/src/typings/transfers/serviceError.ts b/src/typings/transfers/serviceError.ts index a6ff948f0..31f1f1892 100644 --- a/src/typings/transfers/serviceError.ts +++ b/src/typings/transfers/serviceError.ts @@ -12,65 +12,55 @@ export class ServiceError { /** * The error code mapped to the error message. */ - "errorCode"?: string; + 'errorCode'?: string; /** * The category of the error. */ - "errorType"?: string; + 'errorType'?: string; /** * A short explanation of the issue. */ - "message"?: string; + 'message'?: string; /** * The PSP reference of the payment. */ - "pspReference"?: string; + 'pspReference'?: string; /** * The HTTP response status. */ - "status"?: number; + 'status'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "errorCode", "baseName": "errorCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "errorType", "baseName": "errorType", - "type": "string", - "format": "" + "type": "string" }, { "name": "message", "baseName": "message", - "type": "string", - "format": "" + "type": "string" }, { "name": "pspReference", "baseName": "pspReference", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return ServiceError.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/threeDSecure.ts b/src/typings/transfers/threeDSecure.ts new file mode 100644 index 000000000..c3f8cbd7a --- /dev/null +++ b/src/typings/transfers/threeDSecure.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v4 + * + * + * 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 ThreeDSecure { + /** + * The transaction identifier for the Access Control Server + */ + 'acsTransactionId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acsTransactionId", + "baseName": "acsTransactionId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDSecure.attributeTypeMap; + } +} + diff --git a/src/typings/transfers/thresholdRepayment.ts b/src/typings/transfers/thresholdRepayment.ts index 637ea43a1..90f0cd118 100644 --- a/src/typings/transfers/thresholdRepayment.ts +++ b/src/typings/transfers/thresholdRepayment.ts @@ -7,29 +7,22 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; - +import { Amount } from './amount'; export class ThresholdRepayment { - "amount": Amount; - - static readonly discriminator: string | undefined = undefined; + 'amount': Amount; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" } ]; static getAttributeTypeMap() { return ThresholdRepayment.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/transaction.ts b/src/typings/transfers/transaction.ts index 23cb7d6dd..9eba58bb9 100644 --- a/src/typings/transfers/transaction.ts +++ b/src/typings/transfers/transaction.ts @@ -7,141 +7,122 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { PaymentInstrument } from "./paymentInstrument"; -import { ResourceReference } from "./resourceReference"; -import { TransferView } from "./transferView"; - +import { Amount } from './amount'; +import { PaymentInstrument } from './paymentInstrument'; +import { ResourceReference } from './resourceReference'; +import { TransferView } from './transferView'; export class Transaction { - "accountHolder": ResourceReference; - "amount": Amount; - "balanceAccount": ResourceReference; + 'accountHolder': ResourceReference; + 'amount': Amount; + 'balanceAccount': ResourceReference; /** * The unique identifier of the balance platform. */ - "balancePlatform": string; + 'balancePlatform': string; /** * The date the transaction was booked into the balance account. */ - "bookingDate": Date; + 'bookingDate': Date; /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. */ - "creationDate"?: Date; + 'creationDate'?: Date; /** * The `description` from the `/transfers` request. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the transaction. */ - "id": string; - "paymentInstrument"?: PaymentInstrument | null; + 'id': string; + 'paymentInstrument'?: PaymentInstrument | null; /** * The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. */ - "referenceForBeneficiary"?: string; + 'referenceForBeneficiary'?: string; /** * The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. */ - "status": Transaction.StatusEnum; - "transfer"?: TransferView | null; + 'status': Transaction.StatusEnum; + 'transfer'?: TransferView | null; /** * The date the transfer amount becomes available in the balance account. */ - "valueDate": Date; - - static readonly discriminator: string | undefined = undefined; + 'valueDate': Date; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountHolder", "baseName": "accountHolder", - "type": "ResourceReference", - "format": "" + "type": "ResourceReference" }, { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "balanceAccount", "baseName": "balanceAccount", - "type": "ResourceReference", - "format": "" + "type": "ResourceReference" }, { "name": "balancePlatform", "baseName": "balancePlatform", - "type": "string", - "format": "" + "type": "string" }, { "name": "bookingDate", "baseName": "bookingDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "creationDate", "baseName": "creationDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentInstrument", "baseName": "paymentInstrument", - "type": "PaymentInstrument | null", - "format": "" + "type": "PaymentInstrument | null" }, { "name": "referenceForBeneficiary", "baseName": "referenceForBeneficiary", - "type": "string", - "format": "" + "type": "string" }, { "name": "status", "baseName": "status", - "type": "Transaction.StatusEnum", - "format": "" + "type": "Transaction.StatusEnum" }, { "name": "transfer", "baseName": "transfer", - "type": "TransferView | null", - "format": "" + "type": "TransferView | null" }, { "name": "valueDate", "baseName": "valueDate", - "type": "Date", - "format": "date-time" + "type": "Date" } ]; static getAttributeTypeMap() { return Transaction.attributeTypeMap; } - - public constructor() { - } } export namespace Transaction { diff --git a/src/typings/transfers/transactionEventViolation.ts b/src/typings/transfers/transactionEventViolation.ts index 6724cb0f8..4d65525bb 100644 --- a/src/typings/transfers/transactionEventViolation.ts +++ b/src/typings/transfers/transactionEventViolation.ts @@ -7,47 +7,38 @@ * Do not edit this class manually. */ -import { TransactionRuleReference } from "./transactionRuleReference"; -import { TransactionRuleSource } from "./transactionRuleSource"; - +import { TransactionRuleReference } from './transactionRuleReference'; +import { TransactionRuleSource } from './transactionRuleSource'; export class TransactionEventViolation { /** * An explanation about why the transaction rule failed. */ - "reason"?: string; - "transactionRule"?: TransactionRuleReference | null; - "transactionRuleSource"?: TransactionRuleSource | null; - - static readonly discriminator: string | undefined = undefined; + 'reason'?: string; + 'transactionRule'?: TransactionRuleReference | null; + 'transactionRuleSource'?: TransactionRuleSource | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "reason", "baseName": "reason", - "type": "string", - "format": "" + "type": "string" }, { "name": "transactionRule", "baseName": "transactionRule", - "type": "TransactionRuleReference | null", - "format": "" + "type": "TransactionRuleReference | null" }, { "name": "transactionRuleSource", "baseName": "transactionRuleSource", - "type": "TransactionRuleSource | null", - "format": "" + "type": "TransactionRuleSource | null" } ]; static getAttributeTypeMap() { return TransactionEventViolation.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/transactionRuleReference.ts b/src/typings/transfers/transactionRuleReference.ts index 3614ed8ed..6565512ce 100644 --- a/src/typings/transfers/transactionRuleReference.ts +++ b/src/typings/transfers/transactionRuleReference.ts @@ -12,65 +12,55 @@ export class TransactionRuleReference { /** * The description of the resource. */ - "description"?: string; + 'description'?: string; /** * The unique identifier of the resource. */ - "id"?: string; + 'id'?: string; /** * The outcome type of the rule. */ - "outcomeType"?: string; + 'outcomeType'?: string; /** * The reference for the resource. */ - "reference"?: string; + 'reference'?: string; /** * The score of the rule in case it\'s a scoreBased rule. */ - "score"?: number; + 'score'?: number; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "outcomeType", "baseName": "outcomeType", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "score", "baseName": "score", - "type": "number", - "format": "int32" + "type": "number" } ]; static getAttributeTypeMap() { return TransactionRuleReference.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/transactionRuleSource.ts b/src/typings/transfers/transactionRuleSource.ts index c21184b53..7765e2952 100644 --- a/src/typings/transfers/transactionRuleSource.ts +++ b/src/typings/transfers/transactionRuleSource.ts @@ -12,35 +12,28 @@ export class TransactionRuleSource { /** * ID of the resource, when applicable. */ - "id"?: string; + 'id'?: string; /** * Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen. */ - "type"?: string; + 'type'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TransactionRuleSource.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/transactionRulesResult.ts b/src/typings/transfers/transactionRulesResult.ts index c4173ff87..69dc59e79 100644 --- a/src/typings/transfers/transactionRulesResult.ts +++ b/src/typings/transfers/transactionRulesResult.ts @@ -7,62 +7,52 @@ * Do not edit this class manually. */ -import { TransactionEventViolation } from "./transactionEventViolation"; - +import { TransactionEventViolation } from './transactionEventViolation'; export class TransactionRulesResult { /** * The advice given by the Risk analysis. */ - "advice"?: string; + 'advice'?: string; /** * Indicates whether the transaction passed the evaluation for all hardblock rules */ - "allHardBlockRulesPassed"?: boolean; + 'allHardBlockRulesPassed'?: boolean; /** * The score of the Risk analysis. */ - "score"?: number; + 'score'?: number; /** * Array containing all the transaction rules that the transaction triggered. */ - "triggeredTransactionRules"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'triggeredTransactionRules'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "advice", "baseName": "advice", - "type": "string", - "format": "" + "type": "string" }, { "name": "allHardBlockRulesPassed", "baseName": "allHardBlockRulesPassed", - "type": "boolean", - "format": "" + "type": "boolean" }, { "name": "score", "baseName": "score", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "triggeredTransactionRules", "baseName": "triggeredTransactionRules", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return TransactionRulesResult.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/transactionSearchResponse.ts b/src/typings/transfers/transactionSearchResponse.ts index 3c2f65f15..920b3e19b 100644 --- a/src/typings/transfers/transactionSearchResponse.ts +++ b/src/typings/transfers/transactionSearchResponse.ts @@ -7,40 +7,32 @@ * Do not edit this class manually. */ -import { Links } from "./links"; -import { Transaction } from "./transaction"; - +import { Links } from './links'; +import { Transaction } from './transaction'; export class TransactionSearchResponse { - "_links"?: Links | null; + '_links'?: Links | null; /** * Contains the transactions that match the query parameters. */ - "data"?: Array; - - static readonly discriminator: string | undefined = undefined; + 'data'?: Array; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "_links", "baseName": "_links", - "type": "Links | null", - "format": "" + "type": "Links | null" }, { "name": "data", "baseName": "data", - "type": "Array", - "format": "" + "type": "Array" } ]; static getAttributeTypeMap() { return TransactionSearchResponse.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/transfer.ts b/src/typings/transfers/transfer.ts index dc1dd41a9..c0e57c4d5 100644 --- a/src/typings/transfers/transfer.ts +++ b/src/typings/transfers/transfer.ts @@ -7,193 +7,186 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { CounterpartyV3 } from "./counterpartyV3"; -import { DirectDebitInformation } from "./directDebitInformation"; -import { ExecutionDate } from "./executionDate"; -import { PaymentInstrument } from "./paymentInstrument"; -import { ResourceReference } from "./resourceReference"; -import { TransferCategoryData } from "./transferCategoryData"; -import { TransferReview } from "./transferReview"; - +import { Amount } from './amount'; +import { BankCategoryData } from './bankCategoryData'; +import { CounterpartyV3 } from './counterpartyV3'; +import { DirectDebitInformation } from './directDebitInformation'; +import { ExecutionDate } from './executionDate'; +import { InternalCategoryData } from './internalCategoryData'; +import { IssuedCard } from './issuedCard'; +import { PaymentInstrument } from './paymentInstrument'; +import { PlatformPayment } from './platformPayment'; +import { ResourceReference } from './resourceReference'; +import { TransferReview } from './transferReview'; export class Transfer { - "accountHolder"?: ResourceReference | null; - "amount": Amount; - "balanceAccount"?: ResourceReference | null; + 'accountHolder'?: ResourceReference | null; + 'amount': Amount; + 'balanceAccount'?: ResourceReference | null; /** * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. */ - "category": Transfer.CategoryEnum; - "categoryData"?: TransferCategoryData | null; - "counterparty": CounterpartyV3; + 'category': Transfer.CategoryEnum; + /** + * The relevant data according to the transfer category. + */ + 'categoryData'?: BankCategoryData | InternalCategoryData | IssuedCard | PlatformPayment | null; + 'counterparty': CounterpartyV3; + /** + * The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + */ + 'createdAt'?: Date; /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * + * @deprecated since Transfers API v3 + * Use createdAt or updatedAt */ - "creationDate"?: Date; + 'creationDate'?: Date; /** * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , \' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ \' \" ! ?** */ - "description"?: string; - "directDebitInformation"?: DirectDebitInformation | null; + 'description'?: string; + 'directDebitInformation'?: DirectDebitInformation | null; /** * The direction of the transfer. Possible values: **incoming**, **outgoing**. */ - "direction"?: Transfer.DirectionEnum; - "executionDate"?: ExecutionDate | null; + 'direction'?: Transfer.DirectionEnum; + 'executionDate'?: ExecutionDate | null; /** * The ID of the resource. */ - "id"?: string; - "paymentInstrument"?: PaymentInstrument | null; + 'id'?: string; + 'paymentInstrument'?: PaymentInstrument | null; /** * Additional information about the status of the transfer. */ - "reason"?: Transfer.ReasonEnum; + 'reason'?: Transfer.ReasonEnum; /** * Your reference for the transfer, used internally within your platform. If you don\'t provide this in the request, Adyen generates a unique reference. */ - "reference"?: string; + 'reference'?: string; /** * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. */ - "referenceForBeneficiary"?: string; - "review"?: TransferReview | null; + 'referenceForBeneficiary'?: string; + 'review'?: TransferReview | null; /** - * The result of the transfer. For example, **authorised**, **refused**, or **error**. + * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user\'s balance account. - **failed**: the transfer is rejected by the counterparty\'s bank. - **returned**: the transfer is returned by the counterparty\'s bank. */ - "status": Transfer.StatusEnum; + 'status': Transfer.StatusEnum; /** * The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. */ - "type"?: Transfer.TypeEnum; + 'type'?: Transfer.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountHolder", "baseName": "accountHolder", - "type": "ResourceReference | null", - "format": "" + "type": "ResourceReference | null" }, { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "balanceAccount", "baseName": "balanceAccount", - "type": "ResourceReference | null", - "format": "" + "type": "ResourceReference | null" }, { "name": "category", "baseName": "category", - "type": "Transfer.CategoryEnum", - "format": "" + "type": "Transfer.CategoryEnum" }, { "name": "categoryData", "baseName": "categoryData", - "type": "TransferCategoryData | null", - "format": "" + "type": "BankCategoryData | InternalCategoryData | IssuedCard | PlatformPayment | null" }, { "name": "counterparty", "baseName": "counterparty", - "type": "CounterpartyV3", - "format": "" + "type": "CounterpartyV3" + }, + { + "name": "createdAt", + "baseName": "createdAt", + "type": "Date" }, { "name": "creationDate", "baseName": "creationDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "directDebitInformation", "baseName": "directDebitInformation", - "type": "DirectDebitInformation | null", - "format": "" + "type": "DirectDebitInformation | null" }, { "name": "direction", "baseName": "direction", - "type": "Transfer.DirectionEnum", - "format": "" + "type": "Transfer.DirectionEnum" }, { "name": "executionDate", "baseName": "executionDate", - "type": "ExecutionDate | null", - "format": "" + "type": "ExecutionDate | null" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentInstrument", "baseName": "paymentInstrument", - "type": "PaymentInstrument | null", - "format": "" + "type": "PaymentInstrument | null" }, { "name": "reason", "baseName": "reason", - "type": "Transfer.ReasonEnum", - "format": "" + "type": "Transfer.ReasonEnum" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "referenceForBeneficiary", "baseName": "referenceForBeneficiary", - "type": "string", - "format": "" + "type": "string" }, { "name": "review", "baseName": "review", - "type": "TransferReview | null", - "format": "" + "type": "TransferReview | null" }, { "name": "status", "baseName": "status", - "type": "Transfer.StatusEnum", - "format": "" + "type": "Transfer.StatusEnum" }, { "name": "type", "baseName": "type", - "type": "Transfer.TypeEnum", - "format": "" + "type": "Transfer.TypeEnum" } ]; static getAttributeTypeMap() { return Transfer.attributeTypeMap; } - - public constructor() { - } } export namespace Transfer { diff --git a/src/typings/transfers/transferCategoryData.ts b/src/typings/transfers/transferCategoryData.ts deleted file mode 100644 index a170b6680..000000000 --- a/src/typings/transfers/transferCategoryData.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * The version of the OpenAPI document: v4 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit this class manually. - */ - -import { BankCategoryData } from "./bankCategoryData"; -import { InternalCategoryData } from "./internalCategoryData"; -import { IssuedCard } from "./issuedCard"; -import { PlatformPayment } from "./platformPayment"; - -/** -* The relevant data according to the transfer category. -*/ - - -/** - * @type TransferCategoryData - * Type - * @export - */ -export type TransferCategoryData = BankCategoryData | InternalCategoryData | IssuedCard | PlatformPayment; - -/** -* @type TransferCategoryDataClass - * The relevant data according to the transfer category. -* @export -*/ -export class TransferCategoryDataClass { - - static readonly discriminator: string = "type"; - - static readonly mapping: {[index: string]: string} | undefined = undefined; -} diff --git a/src/typings/transfers/transferData.ts b/src/typings/transfers/transferData.ts index 19a1183c1..30fc4bb47 100644 --- a/src/typings/transfers/transferData.ts +++ b/src/typings/transfers/transferData.ts @@ -7,269 +7,268 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { BalanceMutation } from "./balanceMutation"; -import { DirectDebitInformation } from "./directDebitInformation"; -import { ExecutionDate } from "./executionDate"; -import { ExternalReason } from "./externalReason"; -import { PaymentInstrument } from "./paymentInstrument"; -import { ResourceReference } from "./resourceReference"; -import { TransactionRulesResult } from "./transactionRulesResult"; -import { TransferCategoryData } from "./transferCategoryData"; -import { TransferDataTracking } from "./transferDataTracking"; -import { TransferEvent } from "./transferEvent"; -import { TransferNotificationCounterParty } from "./transferNotificationCounterParty"; -import { TransferReview } from "./transferReview"; - +import { Amount } from './amount'; +import { BalanceMutation } from './balanceMutation'; +import { BankCategoryData } from './bankCategoryData'; +import { ConfirmationTrackingData } from './confirmationTrackingData'; +import { DirectDebitInformation } from './directDebitInformation'; +import { EstimationTrackingData } from './estimationTrackingData'; +import { ExecutionDate } from './executionDate'; +import { ExternalReason } from './externalReason'; +import { InternalCategoryData } from './internalCategoryData'; +import { InternalReviewTrackingData } from './internalReviewTrackingData'; +import { IssuedCard } from './issuedCard'; +import { PaymentInstrument } from './paymentInstrument'; +import { PlatformPayment } from './platformPayment'; +import { ResourceReference } from './resourceReference'; +import { TransactionRulesResult } from './transactionRulesResult'; +import { TransferEvent } from './transferEvent'; +import { TransferNotificationCounterParty } from './transferNotificationCounterParty'; +import { TransferReview } from './transferReview'; export class TransferData { - "accountHolder"?: ResourceReference | null; - "amount": Amount; - "balanceAccount"?: ResourceReference | null; + 'accountHolder'?: ResourceReference | null; + 'amount': Amount; + 'balanceAccount'?: ResourceReference | null; /** * The unique identifier of the balance platform. */ - "balancePlatform"?: string; + 'balancePlatform'?: string; /** * The list of the latest balance statuses in the transfer. */ - "balances"?: Array; + 'balances'?: Array; /** * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. */ - "category": TransferData.CategoryEnum; - "categoryData"?: TransferCategoryData | null; - "counterparty"?: TransferNotificationCounterParty | null; + 'category': TransferData.CategoryEnum; + /** + * The relevant data according to the transfer category. + */ + 'categoryData'?: BankCategoryData | InternalCategoryData | IssuedCard | PlatformPayment | null; + 'counterparty'?: TransferNotificationCounterParty | null; + /** + * The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + */ + 'createdAt'?: Date; /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * + * @deprecated since Transfers API v3 + * Use createdAt or updatedAt */ - "creationDate"?: Date; + 'creationDate'?: Date; /** * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , \' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ \' \" ! ?** */ - "description"?: string; - "directDebitInformation"?: DirectDebitInformation | null; + 'description'?: string; + 'directDebitInformation'?: DirectDebitInformation | null; /** * The direction of the transfer. Possible values: **incoming**, **outgoing**. */ - "direction"?: TransferData.DirectionEnum; + 'direction'?: TransferData.DirectionEnum; /** * The unique identifier of the latest transfer event. Included only when the `category` is **issuedCard**. */ - "eventId"?: string; + 'eventId'?: string; /** * The list of events leading up to the current status of the transfer. */ - "events"?: Array; - "executionDate"?: ExecutionDate | null; - "externalReason"?: ExternalReason | null; + 'events'?: Array; + 'executionDate'?: ExecutionDate | null; + 'externalReason'?: ExternalReason | null; /** * The ID of the resource. */ - "id"?: string; - "paymentInstrument"?: PaymentInstrument | null; + 'id'?: string; + 'paymentInstrument'?: PaymentInstrument | null; /** * Additional information about the status of the transfer. */ - "reason"?: TransferData.ReasonEnum; + 'reason'?: TransferData.ReasonEnum; /** * Your reference for the transfer, used internally within your platform. If you don\'t provide this in the request, Adyen generates a unique reference. */ - "reference"?: string; + 'reference'?: string; /** * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. */ - "referenceForBeneficiary"?: string; - "review"?: TransferReview | null; + 'referenceForBeneficiary'?: string; + 'review'?: TransferReview | null; /** * The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. */ - "sequenceNumber"?: number; + 'sequenceNumber'?: number; /** - * The result of the transfer. For example, **authorised**, **refused**, or **error**. + * The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user\'s balance account. - **failed**: the transfer is rejected by the counterparty\'s bank. - **returned**: the transfer is returned by the counterparty\'s bank. */ - "status": TransferData.StatusEnum; - "tracking"?: TransferDataTracking | null; - "transactionRulesResult"?: TransactionRulesResult | null; + 'status': TransferData.StatusEnum; + /** + * The latest tracking information of the transfer. + */ + 'tracking'?: ConfirmationTrackingData | EstimationTrackingData | InternalReviewTrackingData | null; + 'transactionRulesResult'?: TransactionRulesResult | null; /** * The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. */ - "type"?: TransferData.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type'?: TransferData.TypeEnum; + /** + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + */ + 'updatedAt'?: Date; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountHolder", "baseName": "accountHolder", - "type": "ResourceReference | null", - "format": "" + "type": "ResourceReference | null" }, { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "balanceAccount", "baseName": "balanceAccount", - "type": "ResourceReference | null", - "format": "" + "type": "ResourceReference | null" }, { "name": "balancePlatform", "baseName": "balancePlatform", - "type": "string", - "format": "" + "type": "string" }, { "name": "balances", "baseName": "balances", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "category", "baseName": "category", - "type": "TransferData.CategoryEnum", - "format": "" + "type": "TransferData.CategoryEnum" }, { "name": "categoryData", "baseName": "categoryData", - "type": "TransferCategoryData | null", - "format": "" + "type": "BankCategoryData | InternalCategoryData | IssuedCard | PlatformPayment | null" }, { "name": "counterparty", "baseName": "counterparty", - "type": "TransferNotificationCounterParty | null", - "format": "" + "type": "TransferNotificationCounterParty | null" + }, + { + "name": "createdAt", + "baseName": "createdAt", + "type": "Date" }, { "name": "creationDate", "baseName": "creationDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "directDebitInformation", "baseName": "directDebitInformation", - "type": "DirectDebitInformation | null", - "format": "" + "type": "DirectDebitInformation | null" }, { "name": "direction", "baseName": "direction", - "type": "TransferData.DirectionEnum", - "format": "" + "type": "TransferData.DirectionEnum" }, { "name": "eventId", "baseName": "eventId", - "type": "string", - "format": "" + "type": "string" }, { "name": "events", "baseName": "events", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "executionDate", "baseName": "executionDate", - "type": "ExecutionDate | null", - "format": "" + "type": "ExecutionDate | null" }, { "name": "externalReason", "baseName": "externalReason", - "type": "ExternalReason | null", - "format": "" + "type": "ExternalReason | null" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "paymentInstrument", "baseName": "paymentInstrument", - "type": "PaymentInstrument | null", - "format": "" + "type": "PaymentInstrument | null" }, { "name": "reason", "baseName": "reason", - "type": "TransferData.ReasonEnum", - "format": "" + "type": "TransferData.ReasonEnum" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "referenceForBeneficiary", "baseName": "referenceForBeneficiary", - "type": "string", - "format": "" + "type": "string" }, { "name": "review", "baseName": "review", - "type": "TransferReview | null", - "format": "" + "type": "TransferReview | null" }, { "name": "sequenceNumber", "baseName": "sequenceNumber", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "status", "baseName": "status", - "type": "TransferData.StatusEnum", - "format": "" + "type": "TransferData.StatusEnum" }, { "name": "tracking", "baseName": "tracking", - "type": "TransferDataTracking | null", - "format": "" + "type": "ConfirmationTrackingData | EstimationTrackingData | InternalReviewTrackingData | null" }, { "name": "transactionRulesResult", "baseName": "transactionRulesResult", - "type": "TransactionRulesResult | null", - "format": "" + "type": "TransactionRulesResult | null" }, { "name": "type", "baseName": "type", - "type": "TransferData.TypeEnum", - "format": "" + "type": "TransferData.TypeEnum" + }, + { + "name": "updatedAt", + "baseName": "updatedAt", + "type": "Date" } ]; static getAttributeTypeMap() { return TransferData.attributeTypeMap; } - - public constructor() { - } } export namespace TransferData { diff --git a/src/typings/transfers/transferDataTracking.ts b/src/typings/transfers/transferDataTracking.ts deleted file mode 100644 index 336ee1789..000000000 --- a/src/typings/transfers/transferDataTracking.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* - * The version of the OpenAPI document: v4 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit this class manually. - */ - -import { ConfirmationTrackingData } from "./confirmationTrackingData"; -import { EstimationTrackingData } from "./estimationTrackingData"; -import { InternalReviewTrackingData } from "./internalReviewTrackingData"; - -/** -* The latest tracking information of the transfer. -*/ - - -/** - * @type TransferDataTracking - * Type - * @export - */ -export type TransferDataTracking = ConfirmationTrackingData | EstimationTrackingData | InternalReviewTrackingData; - -/** -* @type TransferDataTrackingClass - * The latest tracking information of the transfer. -* @export -*/ -export class TransferDataTrackingClass { - - static readonly discriminator: string = "type"; - - static readonly mapping: {[index: string]: string} | undefined = undefined; -} diff --git a/src/typings/transfers/transferEvent.ts b/src/typings/transfers/transferEvent.ts index 55302e06f..ea2b3e30f 100644 --- a/src/typings/transfers/transferEvent.ts +++ b/src/typings/transfers/transferEvent.ts @@ -7,194 +7,177 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { AmountAdjustment } from "./amountAdjustment"; -import { BalanceMutation } from "./balanceMutation"; -import { ExternalReason } from "./externalReason"; -import { Modification } from "./modification"; -import { TransferEventEventsDataInner } from "./transferEventEventsDataInner"; -import { TransferEventTrackingData } from "./transferEventTrackingData"; - +import { Amount } from './amount'; +import { AmountAdjustment } from './amountAdjustment'; +import { BalanceMutation } from './balanceMutation'; +import { ConfirmationTrackingData } from './confirmationTrackingData'; +import { EstimationTrackingData } from './estimationTrackingData'; +import { ExternalReason } from './externalReason'; +import { InternalReviewTrackingData } from './internalReviewTrackingData'; +import { IssuingTransactionData } from './issuingTransactionData'; +import { IssuingTransactionData | MerchantPurchaseData } from './issuingTransactionData | MerchantPurchaseData'; +import { MerchantPurchaseData } from './merchantPurchaseData'; +import { Modification } from './modification'; export class TransferEvent { - "amount"?: Amount | null; + 'amount'?: Amount | null; /** * The amount adjustments in this transfer. Only applicable for [issuing](https://docs.adyen.com/issuing/) integrations. */ - "amountAdjustments"?: Array; + 'amountAdjustments'?: Array; /** * Scheme unique arn identifier useful for tracing captures, chargebacks, refunds, etc. */ - "arn"?: string; + 'arn'?: string; /** * The date when the transfer request was sent. */ - "bookingDate"?: Date; + 'bookingDate'?: Date; /** * The estimated time when the beneficiary should have access to the funds. */ - "estimatedArrivalTime"?: Date; + 'estimatedArrivalTime'?: Date; /** * A list of event data. */ - "eventsData"?: Array; - "externalReason"?: ExternalReason | null; + 'eventsData'?: Array; + 'externalReason'?: ExternalReason | null; /** * The unique identifier of the transfer event. */ - "id"?: string; - "modification"?: Modification | null; + 'id'?: string; + 'modification'?: Modification | null; /** * The list of balance mutations per event. */ - "mutations"?: Array; - "originalAmount"?: Amount | null; + 'mutations'?: Array; + 'originalAmount'?: Amount | null; /** * The reason for the transfer status. */ - "reason"?: TransferEvent.ReasonEnum; + 'reason'?: TransferEvent.ReasonEnum; /** * The status of the transfer event. */ - "status"?: TransferEvent.StatusEnum; - "trackingData"?: TransferEventTrackingData | null; + 'status'?: TransferEvent.StatusEnum; + /** + * Additional information for the tracking event. + */ + 'trackingData'?: ConfirmationTrackingData | EstimationTrackingData | InternalReviewTrackingData | null; /** * The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes. */ - "transactionId"?: string; + 'transactionId'?: string; /** * The type of the transfer event. Possible values: **accounting**, **tracking**. */ - "type"?: TransferEvent.TypeEnum; + 'type'?: TransferEvent.TypeEnum; /** * The date when the tracking status was updated. */ - "updateDate"?: Date; + 'updateDate'?: Date; /** * The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future. */ - "valueDate"?: Date; + 'valueDate'?: Date; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "amountAdjustments", "baseName": "amountAdjustments", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "arn", "baseName": "arn", - "type": "string", - "format": "" + "type": "string" }, { "name": "bookingDate", "baseName": "bookingDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "estimatedArrivalTime", "baseName": "estimatedArrivalTime", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "eventsData", "baseName": "eventsData", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "externalReason", "baseName": "externalReason", - "type": "ExternalReason | null", - "format": "" + "type": "ExternalReason | null" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "modification", "baseName": "modification", - "type": "Modification | null", - "format": "" + "type": "Modification | null" }, { "name": "mutations", "baseName": "mutations", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "originalAmount", "baseName": "originalAmount", - "type": "Amount | null", - "format": "" + "type": "Amount | null" }, { "name": "reason", "baseName": "reason", - "type": "TransferEvent.ReasonEnum", - "format": "" + "type": "TransferEvent.ReasonEnum" }, { "name": "status", "baseName": "status", - "type": "TransferEvent.StatusEnum", - "format": "" + "type": "TransferEvent.StatusEnum" }, { "name": "trackingData", "baseName": "trackingData", - "type": "TransferEventTrackingData | null", - "format": "" + "type": "ConfirmationTrackingData | EstimationTrackingData | InternalReviewTrackingData | null" }, { "name": "transactionId", "baseName": "transactionId", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "TransferEvent.TypeEnum", - "format": "" + "type": "TransferEvent.TypeEnum" }, { "name": "updateDate", "baseName": "updateDate", - "type": "Date", - "format": "date-time" + "type": "Date" }, { "name": "valueDate", "baseName": "valueDate", - "type": "Date", - "format": "date-time" + "type": "Date" } ]; static getAttributeTypeMap() { return TransferEvent.attributeTypeMap; } - - public constructor() { - } } export namespace TransferEvent { diff --git a/src/typings/transfers/transferEventEventsDataInner.ts b/src/typings/transfers/transferEventEventsDataInner.ts deleted file mode 100644 index e4072e850..000000000 --- a/src/typings/transfers/transferEventEventsDataInner.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* - * The version of the OpenAPI document: v4 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit this class manually. - */ - -import { IssuingTransactionData } from "./issuingTransactionData"; -import { MerchantPurchaseData } from "./merchantPurchaseData"; - - -/** - * @type TransferEventEventsDataInner - * Type - * @export - */ -export type TransferEventEventsDataInner = IssuingTransactionData | MerchantPurchaseData; - -/** -* @type TransferEventEventsDataInnerClass -* @export -*/ -export class TransferEventEventsDataInnerClass { - - static readonly discriminator: string = "type"; - - static readonly mapping: {[index: string]: string} | undefined = undefined; -} diff --git a/src/typings/transfers/transferEventTrackingData.ts b/src/typings/transfers/transferEventTrackingData.ts deleted file mode 100644 index 382fd3a33..000000000 --- a/src/typings/transfers/transferEventTrackingData.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* - * The version of the OpenAPI document: v4 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit this class manually. - */ - -import { ConfirmationTrackingData } from "./confirmationTrackingData"; -import { EstimationTrackingData } from "./estimationTrackingData"; -import { InternalReviewTrackingData } from "./internalReviewTrackingData"; - -/** -* Additional information for the tracking event. -*/ - - -/** - * @type TransferEventTrackingData - * Type - * @export - */ -export type TransferEventTrackingData = ConfirmationTrackingData | EstimationTrackingData | InternalReviewTrackingData; - -/** -* @type TransferEventTrackingDataClass - * Additional information for the tracking event. -* @export -*/ -export class TransferEventTrackingDataClass { - - static readonly discriminator: string = "type"; - - static readonly mapping: {[index: string]: string} | undefined = undefined; -} diff --git a/src/typings/transfers/transferInfo.ts b/src/typings/transfers/transferInfo.ts index b02b93f5b..7ed8b1686 100644 --- a/src/typings/transfers/transferInfo.ts +++ b/src/typings/transfers/transferInfo.ts @@ -7,152 +7,132 @@ * Do not edit this class manually. */ -import { Amount } from "./amount"; -import { CounterpartyInfoV3 } from "./counterpartyInfoV3"; -import { ExecutionDate } from "./executionDate"; -import { TransferRequestReview } from "./transferRequestReview"; -import { UltimatePartyIdentification } from "./ultimatePartyIdentification"; - +import { Amount } from './amount'; +import { CounterpartyInfoV3 } from './counterpartyInfoV3'; +import { ExecutionDate } from './executionDate'; +import { TransferRequestReview } from './transferRequestReview'; +import { UltimatePartyIdentification } from './ultimatePartyIdentification'; export class TransferInfo { - "amount": Amount; + 'amount': Amount; /** * The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). If you want to make a transfer using a **virtual** **bankAccount** assigned to the balance account, you must specify the [payment instrument ID](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id) of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account. */ - "balanceAccountId"?: string; + 'balanceAccountId'?: string; /** * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. */ - "category": TransferInfo.CategoryEnum; - "counterparty": CounterpartyInfoV3; + 'category': TransferInfo.CategoryEnum; + 'counterparty': CounterpartyInfoV3; /** * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , \' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ \' \" ! ?** */ - "description"?: string; - "executionDate"?: ExecutionDate | null; + 'description'?: string; + 'executionDate'?: ExecutionDate | null; /** * The unique identifier of the source [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id). If you want to make a transfer using a **virtual** **bankAccount**, you must specify the payment instrument ID of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account. */ - "paymentInstrumentId"?: string; + 'paymentInstrumentId'?: 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. Adyen will try to pay out using the priority you list first. If that\'s not possible, it moves on to the next option in the order of your provided priorities. 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 in [SEPA countries](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). Required for transfers with `category` **bank**. For more details, see [fallback priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities). + * 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. Adyen will try to pay out using the priority you list first. If that\'s not possible, it moves on to the next option in the order of your provided priorities. 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). Required for transfers with `category` **bank**. For more details, see [fallback priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities). */ - "priorities"?: Array; + 'priorities'?: Array; /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. 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 in [SEPA countries](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. Required for transfers with `category` **bank**. 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"?: TransferInfo.PriorityEnum; + 'priority'?: TransferInfo.PriorityEnum; /** * Your reference for the transfer, used internally within your platform. If you don\'t provide this in the request, Adyen generates a unique reference. */ - "reference"?: string; + 'reference'?: string; /** * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both parties involved in the funds movement. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. */ - "referenceForBeneficiary"?: string; - "review"?: TransferRequestReview | null; + 'referenceForBeneficiary'?: string; + 'review'?: TransferRequestReview | null; /** * The type of transfer. Possible values: - **bankTransfer**: for push transfers to a transfer instrument or a bank account. The `category` must be **bank**. - **internalTransfer**: for push transfers between balance accounts. The `category` must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between balance accounts. The `category` must be **internal**. */ - "type"?: TransferInfo.TypeEnum; - "ultimateParty"?: UltimatePartyIdentification | null; - - static readonly discriminator: string | undefined = undefined; + 'type'?: TransferInfo.TypeEnum; + 'ultimateParty'?: UltimatePartyIdentification | null; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "amount", "baseName": "amount", - "type": "Amount", - "format": "" + "type": "Amount" }, { "name": "balanceAccountId", "baseName": "balanceAccountId", - "type": "string", - "format": "" + "type": "string" }, { "name": "category", "baseName": "category", - "type": "TransferInfo.CategoryEnum", - "format": "" + "type": "TransferInfo.CategoryEnum" }, { "name": "counterparty", "baseName": "counterparty", - "type": "CounterpartyInfoV3", - "format": "" + "type": "CounterpartyInfoV3" }, { "name": "description", "baseName": "description", - "type": "string", - "format": "" + "type": "string" }, { "name": "executionDate", "baseName": "executionDate", - "type": "ExecutionDate | null", - "format": "" + "type": "ExecutionDate | null" }, { "name": "paymentInstrumentId", "baseName": "paymentInstrumentId", - "type": "string", - "format": "" + "type": "string" }, { "name": "priorities", "baseName": "priorities", - "type": "TransferInfo.PrioritiesEnum", - "format": "" + "type": "Array" }, { "name": "priority", "baseName": "priority", - "type": "TransferInfo.PriorityEnum", - "format": "" + "type": "TransferInfo.PriorityEnum" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "referenceForBeneficiary", "baseName": "referenceForBeneficiary", - "type": "string", - "format": "" + "type": "string" }, { "name": "review", "baseName": "review", - "type": "TransferRequestReview | null", - "format": "" + "type": "TransferRequestReview | null" }, { "name": "type", "baseName": "type", - "type": "TransferInfo.TypeEnum", - "format": "" + "type": "TransferInfo.TypeEnum" }, { "name": "ultimateParty", "baseName": "ultimateParty", - "type": "UltimatePartyIdentification | null", - "format": "" + "type": "UltimatePartyIdentification | null" } ]; static getAttributeTypeMap() { return TransferInfo.attributeTypeMap; } - - public constructor() { - } } export namespace TransferInfo { diff --git a/src/typings/transfers/transferNotificationCounterParty.ts b/src/typings/transfers/transferNotificationCounterParty.ts index cc487183e..0eec761b2 100644 --- a/src/typings/transfers/transferNotificationCounterParty.ts +++ b/src/typings/transfers/transferNotificationCounterParty.ts @@ -7,65 +7,54 @@ * Do not edit this class manually. */ -import { BankAccountV3 } from "./bankAccountV3"; -import { Card } from "./card"; -import { TransferNotificationMerchantData } from "./transferNotificationMerchantData"; - +import { BankAccountV3 } from './bankAccountV3'; +import { Card } from './card'; +import { TransferNotificationMerchantData } from './transferNotificationMerchantData'; export class TransferNotificationCounterParty { /** * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). */ - "balanceAccountId"?: string; - "bankAccount"?: BankAccountV3 | null; - "card"?: Card | null; - "merchant"?: TransferNotificationMerchantData | null; + 'balanceAccountId'?: string; + 'bankAccount'?: BankAccountV3 | null; + 'card'?: Card | null; + 'merchant'?: TransferNotificationMerchantData | null; /** * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ - "transferInstrumentId"?: string; - - static readonly discriminator: string | undefined = undefined; + 'transferInstrumentId'?: string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "balanceAccountId", "baseName": "balanceAccountId", - "type": "string", - "format": "" + "type": "string" }, { "name": "bankAccount", "baseName": "bankAccount", - "type": "BankAccountV3 | null", - "format": "" + "type": "BankAccountV3 | null" }, { "name": "card", "baseName": "card", - "type": "Card | null", - "format": "" + "type": "Card | null" }, { "name": "merchant", "baseName": "merchant", - "type": "TransferNotificationMerchantData | null", - "format": "" + "type": "TransferNotificationMerchantData | null" }, { "name": "transferInstrumentId", "baseName": "transferInstrumentId", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TransferNotificationCounterParty.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/transferNotificationMerchantData.ts b/src/typings/transfers/transferNotificationMerchantData.ts index ddf10668f..b5eb2e961 100644 --- a/src/typings/transfers/transferNotificationMerchantData.ts +++ b/src/typings/transfers/transferNotificationMerchantData.ts @@ -12,85 +12,73 @@ export class TransferNotificationMerchantData { /** * The unique identifier of the merchant\'s acquirer. */ - "acquirerId"?: string; + 'acquirerId'?: string; /** * The city where the merchant is located. */ - "city"?: string; + 'city'?: string; /** * The country where the merchant is located. */ - "country"?: string; + 'country'?: string; /** * The merchant category code. */ - "mcc"?: string; + 'mcc'?: string; /** * The unique identifier of the merchant. */ - "merchantId"?: string; + 'merchantId'?: string; /** * The name of the merchant\'s shop or service. */ - "name"?: string; + 'name'?: string; /** * The postal code of the merchant. */ - "postalCode"?: string; + 'postalCode'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "acquirerId", "baseName": "acquirerId", - "type": "string", - "format": "" + "type": "string" }, { "name": "city", "baseName": "city", - "type": "string", - "format": "" + "type": "string" }, { "name": "country", "baseName": "country", - "type": "string", - "format": "" + "type": "string" }, { "name": "mcc", "baseName": "mcc", - "type": "string", - "format": "" + "type": "string" }, { "name": "merchantId", "baseName": "merchantId", - "type": "string", - "format": "" + "type": "string" }, { "name": "name", "baseName": "name", - "type": "string", - "format": "" + "type": "string" }, { "name": "postalCode", "baseName": "postalCode", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TransferNotificationMerchantData.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/transferNotificationValidationFact.ts b/src/typings/transfers/transferNotificationValidationFact.ts index 1a3c74a37..b1133a019 100644 --- a/src/typings/transfers/transferNotificationValidationFact.ts +++ b/src/typings/transfers/transferNotificationValidationFact.ts @@ -12,35 +12,28 @@ export class TransferNotificationValidationFact { /** * The evaluation result of the validation fact. */ - "result"?: string; + 'result'?: string; /** * The type of the validation fact. */ - "type"?: string; + 'type'?: string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "result", "baseName": "result", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TransferNotificationValidationFact.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/transferRequestReview.ts b/src/typings/transfers/transferRequestReview.ts index 7af70f795..a3cc407cc 100644 --- a/src/typings/transfers/transferRequestReview.ts +++ b/src/typings/transfers/transferRequestReview.ts @@ -12,35 +12,28 @@ export class TransferRequestReview { /** * Specifies the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. */ - "numberOfApprovalsRequired"?: number; + 'numberOfApprovalsRequired'?: number; /** * Specifies whether you will initiate Strong Customer Authentication (SCA) in thePOST [/transfers/approve](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) request. Only applies to transfers made with an Adyen [business account](https://docs.adyen.com/platforms/business-accounts). */ - "scaOnApproval"?: boolean; + 'scaOnApproval'?: boolean; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "numberOfApprovalsRequired", "baseName": "numberOfApprovalsRequired", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "scaOnApproval", "baseName": "scaOnApproval", - "type": "boolean", - "format": "" + "type": "boolean" } ]; static getAttributeTypeMap() { return TransferRequestReview.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/transferReview.ts b/src/typings/transfers/transferReview.ts index 75568e0c1..20bb12c61 100644 --- a/src/typings/transfers/transferReview.ts +++ b/src/typings/transfers/transferReview.ts @@ -12,36 +12,29 @@ export class TransferReview { /** * Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. */ - "numberOfApprovalsRequired"?: number; + 'numberOfApprovalsRequired'?: number; /** * Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **notApplicable**. */ - "scaOnApproval"?: TransferReview.ScaOnApprovalEnum; + 'scaOnApproval'?: TransferReview.ScaOnApprovalEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "numberOfApprovalsRequired", "baseName": "numberOfApprovalsRequired", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "scaOnApproval", "baseName": "scaOnApproval", - "type": "TransferReview.ScaOnApprovalEnum", - "format": "" + "type": "TransferReview.ScaOnApprovalEnum" } ]; static getAttributeTypeMap() { return TransferReview.attributeTypeMap; } - - public constructor() { - } } export namespace TransferReview { diff --git a/src/typings/transfers/transferServiceRestServiceError.ts b/src/typings/transfers/transferServiceRestServiceError.ts index 76323a8e6..32cb30132 100644 --- a/src/typings/transfers/transferServiceRestServiceError.ts +++ b/src/typings/transfers/transferServiceRestServiceError.ts @@ -7,120 +7,104 @@ * Do not edit this class manually. */ -import { InvalidField } from "./invalidField"; -import { RoutingDetails } from "./routingDetails"; - +import { InvalidField } from './invalidField'; +import { RoutingDetails } from './routingDetails'; export class TransferServiceRestServiceError { /** * A human-readable explanation specific to this occurrence of the problem. */ - "detail": string; + 'detail': string; /** * A code that identifies the problem type. */ - "errorCode": string; + 'errorCode': string; /** * A unique URI that identifies the specific occurrence of the problem. */ - "instance"?: string; + 'instance'?: string; /** * Detailed explanation of each validation error, when applicable. */ - "invalidFields"?: Array; + 'invalidFields'?: Array; /** * A unique reference for the request, essentially the same as `pspReference`. */ - "requestId"?: string; - "response"?: any; + 'requestId'?: string; + 'response'?: object; /** * Detailed explanation of each attempt to route the transfer with the priorities from the request. */ - "routingDetails"?: Array; + 'routingDetails'?: Array; /** * The HTTP status code. */ - "status": number; + 'status': number; /** * A short, human-readable summary of the problem type. */ - "title": string; + 'title': string; /** * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. */ - "type": string; - - static readonly discriminator: string | undefined = undefined; + 'type': string; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "detail", "baseName": "detail", - "type": "string", - "format": "" + "type": "string" }, { "name": "errorCode", "baseName": "errorCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "instance", "baseName": "instance", - "type": "string", - "format": "" + "type": "string" }, { "name": "invalidFields", "baseName": "invalidFields", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "requestId", "baseName": "requestId", - "type": "string", - "format": "" + "type": "string" }, { "name": "response", "baseName": "response", - "type": "any", - "format": "" + "type": "object" }, { "name": "routingDetails", "baseName": "routingDetails", - "type": "Array", - "format": "" + "type": "Array" }, { "name": "status", "baseName": "status", - "type": "number", - "format": "int32" + "type": "number" }, { "name": "title", "baseName": "title", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TransferServiceRestServiceError.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/transferView.ts b/src/typings/transfers/transferView.ts index fd187a26d..885e4e78d 100644 --- a/src/typings/transfers/transferView.ts +++ b/src/typings/transfers/transferView.ts @@ -7,49 +7,46 @@ * Do not edit this class manually. */ -import { TransferCategoryData } from "./transferCategoryData"; - +import { BankCategoryData } from './bankCategoryData'; +import { InternalCategoryData } from './internalCategoryData'; +import { IssuedCard } from './issuedCard'; +import { PlatformPayment } from './platformPayment'; export class TransferView { - "categoryData"?: TransferCategoryData | null; + /** + * The relevant data according to the transfer category. + */ + 'categoryData'?: BankCategoryData | InternalCategoryData | IssuedCard | PlatformPayment | null; /** * The ID of the resource. */ - "id"?: string; + 'id'?: string; /** * The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven\'t provided any, Adyen generates a unique reference. */ - "reference": string; + 'reference': string; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "categoryData", "baseName": "categoryData", - "type": "TransferCategoryData | null", - "format": "" + "type": "BankCategoryData | InternalCategoryData | IssuedCard | PlatformPayment | null" }, { "name": "id", "baseName": "id", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" } ]; static getAttributeTypeMap() { return TransferView.attributeTypeMap; } - - public constructor() { - } } diff --git a/src/typings/transfers/uKLocalAccountIdentification.ts b/src/typings/transfers/uKLocalAccountIdentification.ts index a7f4de18e..98e350892 100644 --- a/src/typings/transfers/uKLocalAccountIdentification.ts +++ b/src/typings/transfers/uKLocalAccountIdentification.ts @@ -12,46 +12,38 @@ export class UKLocalAccountIdentification { /** * The 8-digit bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. */ - "sortCode": string; + 'sortCode': string; /** * **ukLocal** */ - "type": UKLocalAccountIdentification.TypeEnum; + 'type': UKLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "sortCode", "baseName": "sortCode", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "UKLocalAccountIdentification.TypeEnum", - "format": "" + "type": "UKLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return UKLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace UKLocalAccountIdentification { diff --git a/src/typings/transfers/uSLocalAccountIdentification.ts b/src/typings/transfers/uSLocalAccountIdentification.ts index 763c1223d..492cc4707 100644 --- a/src/typings/transfers/uSLocalAccountIdentification.ts +++ b/src/typings/transfers/uSLocalAccountIdentification.ts @@ -12,56 +12,47 @@ export class USLocalAccountIdentification { /** * The bank account number, without separators or whitespace. */ - "accountNumber": string; + 'accountNumber': string; /** * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. */ - "accountType"?: USLocalAccountIdentification.AccountTypeEnum; + 'accountType'?: USLocalAccountIdentification.AccountTypeEnum; /** * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. */ - "routingNumber": string; + 'routingNumber': string; /** * **usLocal** */ - "type": USLocalAccountIdentification.TypeEnum; + 'type': USLocalAccountIdentification.TypeEnum; - static readonly discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountNumber", "baseName": "accountNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "accountType", "baseName": "accountType", - "type": "USLocalAccountIdentification.AccountTypeEnum", - "format": "" + "type": "USLocalAccountIdentification.AccountTypeEnum" }, { "name": "routingNumber", "baseName": "routingNumber", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "USLocalAccountIdentification.TypeEnum", - "format": "" + "type": "USLocalAccountIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return USLocalAccountIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace USLocalAccountIdentification { diff --git a/src/typings/transfers/ultimatePartyIdentification.ts b/src/typings/transfers/ultimatePartyIdentification.ts index 5844416f4..581c10a70 100644 --- a/src/typings/transfers/ultimatePartyIdentification.ts +++ b/src/typings/transfers/ultimatePartyIdentification.ts @@ -7,90 +7,77 @@ * Do not edit this class manually. */ -import { Address } from "./address"; - +import { Address } from './address'; export class UltimatePartyIdentification { - "address"?: Address | null; + 'address'?: Address | null; /** * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. */ - "dateOfBirth"?: string; + 'dateOfBirth'?: string; /** * The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. */ - "firstName"?: string; + 'firstName'?: string; /** * The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" \' and space. Required when `category` is **bank**. */ - "fullName"?: string; + 'fullName'?: string; /** * The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**. */ - "lastName"?: string; + 'lastName'?: string; /** * A unique reference to identify the party or counterparty involved in the transfer. For example, your client\'s unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`. */ - "reference"?: string; + 'reference'?: string; /** * The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. */ - "type"?: UltimatePartyIdentification.TypeEnum; - - static readonly discriminator: string | undefined = undefined; + 'type'?: UltimatePartyIdentification.TypeEnum; - static readonly mapping: {[index: string]: string} | undefined = undefined; + static discriminator: string | undefined = undefined; - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "address", "baseName": "address", - "type": "Address | null", - "format": "" + "type": "Address | null" }, { "name": "dateOfBirth", "baseName": "dateOfBirth", - "type": "string", - "format": "date" + "type": "string" }, { "name": "firstName", "baseName": "firstName", - "type": "string", - "format": "" + "type": "string" }, { "name": "fullName", "baseName": "fullName", - "type": "string", - "format": "" + "type": "string" }, { "name": "lastName", "baseName": "lastName", - "type": "string", - "format": "" + "type": "string" }, { "name": "reference", "baseName": "reference", - "type": "string", - "format": "" + "type": "string" }, { "name": "type", "baseName": "type", - "type": "UltimatePartyIdentification.TypeEnum", - "format": "" + "type": "UltimatePartyIdentification.TypeEnum" } ]; static getAttributeTypeMap() { return UltimatePartyIdentification.attributeTypeMap; } - - public constructor() { - } } export namespace UltimatePartyIdentification {