Skip to content

Commit d10651b

Browse files
AdyenAutomationBotAdyenAutomationBotDjoykeAbyah
authored
Update all services (#1428)
* [reformat][adyen-sdk-automation] automated change * style(fmt): code formatted * Update transferRoute.ts removed faulty import --------- Co-authored-by: AdyenAutomationBot <Adyen Automation [email protected]> Co-authored-by: Djoyke Reijans <[email protected]>
1 parent 316aec5 commit d10651b

31 files changed

+542
-16
lines changed

src/services/balancePlatform/accountHoldersApi.ts

+19
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
AccountHolderUpdateRequest,
1717
GetTaxFormResponse,
1818
PaginatedBalanceAccountsResponse,
19+
TransactionRulesResponse,
1920
ObjectSerializer
2021
} from "../../typings/balancePlatform/models";
2122
import { IRequest } from "../../typings/requestOptions";
@@ -94,6 +95,24 @@ export class AccountHoldersApi extends Service {
9495
return ObjectSerializer.deserialize(response, "PaginatedBalanceAccountsResponse");
9596
}
9697

98+
/**
99+
* @summary Get all transaction rules for an account holder
100+
* @param id {@link string } The unique identifier of the account holder.
101+
* @param requestOptions {@link IRequest.Options }
102+
* @return {@link TransactionRulesResponse }
103+
*/
104+
public async getAllTransactionRulesForAccountHolder(id: string, requestOptions?: IRequest.Options): Promise<TransactionRulesResponse> {
105+
const endpoint = `${this.baseUrl}/accountHolders/{id}/transactionRules`
106+
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
107+
const resource = new Resource(this, endpoint);
108+
const response = await getJsonResponse<string, TransactionRulesResponse>(
109+
resource,
110+
"",
111+
{ ...requestOptions, method: "GET" }
112+
);
113+
return ObjectSerializer.deserialize(response, "TransactionRulesResponse");
114+
}
115+
97116
/**
98117
* @summary Get a tax form
99118
* @param id {@link string } The unique identifier of the account holder.

src/services/balancePlatform/balanceAccountsApi.ts

+19
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
CreateSweepConfigurationV2,
1919
PaginatedPaymentInstrumentsResponse,
2020
SweepConfigurationV2,
21+
TransactionRulesResponse,
2122
UpdateSweepConfigurationV2,
2223
ObjectSerializer
2324
} from "../../typings/balancePlatform/models";
@@ -117,6 +118,24 @@ export class BalanceAccountsApi extends Service {
117118
return ObjectSerializer.deserialize(response, "BalanceSweepConfigurationsResponse");
118119
}
119120

121+
/**
122+
* @summary Get all transaction rules for a balance account
123+
* @param id {@link string } The unique identifier of the balance account.
124+
* @param requestOptions {@link IRequest.Options }
125+
* @return {@link TransactionRulesResponse }
126+
*/
127+
public async getAllTransactionRulesForBalanceAccount(id: string, requestOptions?: IRequest.Options): Promise<TransactionRulesResponse> {
128+
const endpoint = `${this.baseUrl}/balanceAccounts/{id}/transactionRules`
129+
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
130+
const resource = new Resource(this, endpoint);
131+
const response = await getJsonResponse<string, TransactionRulesResponse>(
132+
resource,
133+
"",
134+
{ ...requestOptions, method: "GET" }
135+
);
136+
return ObjectSerializer.deserialize(response, "TransactionRulesResponse");
137+
}
138+
120139
/**
121140
* @summary Get a balance account
122141
* @param id {@link string } The unique identifier of the balance account.

src/services/balancePlatform/platformApi.ts

+19
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import Client from "../../client";
1313
import {
1414
BalancePlatform,
1515
PaginatedAccountHoldersResponse,
16+
TransactionRulesResponse,
1617
ObjectSerializer
1718
} from "../../typings/balancePlatform/models";
1819
import { IRequest } from "../../typings/requestOptions";
@@ -55,6 +56,24 @@ export class PlatformApi extends Service {
5556
return ObjectSerializer.deserialize(response, "PaginatedAccountHoldersResponse");
5657
}
5758

59+
/**
60+
* @summary Get all transaction rules for a balance platform
61+
* @param id {@link string } The unique identifier of the balance platform.
62+
* @param requestOptions {@link IRequest.Options }
63+
* @return {@link TransactionRulesResponse }
64+
*/
65+
public async getAllTransactionRulesForBalancePlatform(id: string, requestOptions?: IRequest.Options): Promise<TransactionRulesResponse> {
66+
const endpoint = `${this.baseUrl}/balancePlatforms/{id}/transactionRules`
67+
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
68+
const resource = new Resource(this, endpoint);
69+
const response = await getJsonResponse<string, TransactionRulesResponse>(
70+
resource,
71+
"",
72+
{ ...requestOptions, method: "GET" }
73+
);
74+
return ObjectSerializer.deserialize(response, "TransactionRulesResponse");
75+
}
76+
5877
/**
5978
* @summary Get a balance platform
6079
* @param id {@link string } The unique identifier of the balance platform.

src/services/checkout/paymentsApi.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class PaymentsApi extends Service {
3838
}
3939

4040
/**
41-
* @summary Get the list of brands on the card
41+
* @summary Get the brands and other details of a card
4242
* @param cardDetailsRequest {@link CardDetailsRequest }
4343
* @param requestOptions {@link IRequest.Options }
4444
* @return {@link CardDetailsResponse }

src/services/transfers/transfersApi.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ export class TransfersApi extends Service {
7575
* @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 &#x60;balanceAccountId&#x60;, &#x60;accountHolderId&#x60;, or &#x60;balancePlatform&#x60;. The &#x60;paymentInstrumentId&#x60; must be related to the &#x60;balanceAccountId&#x60; or &#x60;accountHolderId&#x60; that you provide.
7676
* @param reference {@link string } The reference you provided in the POST [/transfers](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers) request
7777
* @param category {@link &#39;bank&#39; | &#39;card&#39; | &#39;grants&#39; | &#39;internal&#39; | &#39;issuedCard&#39; | &#39;migration&#39; | &#39;platformPayment&#39; | &#39;topUp&#39; | &#39;upgrade&#39; } 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.
78-
* @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. For example, **2021-05-30T15:07:40Z**.
79-
* @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. For example, **2021-05-30T15:07:40Z**.
78+
* @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 &#x60;createdUntil&#x60; date. For example, **2021-05-30T15:07:40Z**.
79+
* @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 &#x60;createdSince&#x60; date. For example, **2021-05-30T15:07:40Z**.
8080
* @param cursor {@link string } The &#x60;cursor&#x60; returned in the links of the previous response.
8181
* @param limit {@link number } The number of items returned per page, maximum of 100 items. By default, the response returns 10 items per page.
8282
* @return {@link FindTransfersResponse }
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/*
2+
* The version of the OpenAPI document: v2
3+
*
4+
*
5+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6+
* https://openapi-generator.tech
7+
* Do not edit this class manually.
8+
*/
9+
10+
11+
export class AmountNonZeroDecimalsRequirement {
12+
/**
13+
* 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.
14+
*/
15+
'description'?: string;
16+
/**
17+
* **amountNonZeroDecimalsRequirement**
18+
*/
19+
'type': AmountNonZeroDecimalsRequirement.TypeEnum;
20+
21+
static discriminator: string | undefined = undefined;
22+
23+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
24+
{
25+
"name": "description",
26+
"baseName": "description",
27+
"type": "string"
28+
},
29+
{
30+
"name": "type",
31+
"baseName": "type",
32+
"type": "AmountNonZeroDecimalsRequirement.TypeEnum"
33+
} ];
34+
35+
static getAttributeTypeMap() {
36+
return AmountNonZeroDecimalsRequirement.attributeTypeMap;
37+
}
38+
}
39+
40+
export namespace AmountNonZeroDecimalsRequirement {
41+
export enum TypeEnum {
42+
AmountNonZeroDecimalsRequirement = 'amountNonZeroDecimalsRequirement'
43+
}
44+
}

src/typings/balancePlatform/createSweepConfigurationV2.ts

+10
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ export class CreateSweepConfigurationV2 {
3434
*/
3535
'reason'?: CreateSweepConfigurationV2.ReasonEnum;
3636
/**
37+
* The human readable reason for disabling the sweep.
38+
*/
39+
'reasonDetail'?: string;
40+
/**
3741
* Your reference for the sweep configuration.
3842
*/
3943
'reference'?: string;
@@ -87,6 +91,11 @@ export class CreateSweepConfigurationV2 {
8791
"baseName": "reason",
8892
"type": "CreateSweepConfigurationV2.ReasonEnum"
8993
},
94+
{
95+
"name": "reasonDetail",
96+
"baseName": "reasonDetail",
97+
"type": "string"
98+
},
9099
{
91100
"name": "reference",
92101
"baseName": "reference",
@@ -166,6 +175,7 @@ export namespace CreateSweepConfigurationV2 {
166175
PendingApproval = 'pendingApproval',
167176
PendingExecution = 'pendingExecution',
168177
RefusedByCounterpartyBank = 'refusedByCounterpartyBank',
178+
RefusedByCustomer = 'refusedByCustomer',
169179
RouteNotFound = 'routeNotFound',
170180
ScaFailed = 'scaFailed',
171181
TransferInstrumentDoesNotExist = 'transferInstrumentDoesNotExist',
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/*
2+
* The version of the OpenAPI document: v2
3+
*
4+
*
5+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6+
* https://openapi-generator.tech
7+
* Do not edit this class manually.
8+
*/
9+
10+
11+
export class IbanAccountIdentificationRequirement {
12+
/**
13+
* Specifies the allowed prefixes for the international bank account number as defined in the ISO-13616 standard.
14+
*/
15+
'description'?: string;
16+
/**
17+
* Contains the list of allowed prefixes for international bank accounts. For example: NL, US, UK.
18+
*/
19+
'ibanPrefixes'?: Array<string>;
20+
/**
21+
* **ibanAccountIdentificationRequirement**
22+
*/
23+
'type': IbanAccountIdentificationRequirement.TypeEnum;
24+
25+
static discriminator: string | undefined = undefined;
26+
27+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
28+
{
29+
"name": "description",
30+
"baseName": "description",
31+
"type": "string"
32+
},
33+
{
34+
"name": "ibanPrefixes",
35+
"baseName": "ibanPrefixes",
36+
"type": "Array<string>"
37+
},
38+
{
39+
"name": "type",
40+
"baseName": "type",
41+
"type": "IbanAccountIdentificationRequirement.TypeEnum"
42+
} ];
43+
44+
static getAttributeTypeMap() {
45+
return IbanAccountIdentificationRequirement.attributeTypeMap;
46+
}
47+
}
48+
49+
export namespace IbanAccountIdentificationRequirement {
50+
export enum TypeEnum {
51+
IbanAccountIdentificationRequirement = 'ibanAccountIdentificationRequirement'
52+
}
53+
}

src/typings/balancePlatform/models.ts

+12
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export * from './address';
2020
export * from './addressRequirement';
2121
export * from './amount';
2222
export * from './amountMinMaxRequirement';
23+
export * from './amountNonZeroDecimalsRequirement';
2324
export * from './authentication';
2425
export * from './bRLocalAccountIdentification';
2526
export * from './balance';
@@ -77,6 +78,7 @@ export * from './hKLocalAccountIdentification';
7778
export * from './hULocalAccountIdentification';
7879
export * from './href';
7980
export * from './ibanAccountIdentification';
81+
export * from './ibanAccountIdentificationRequirement';
8082
export * from './internationalTransactionRestriction';
8183
export * from './invalidField';
8284
export * from './link';
@@ -149,6 +151,7 @@ export * from './transferRoute';
149151
export * from './transferRouteRequest';
150152
export * from './transferRouteResponse';
151153
export * from './uKLocalAccountIdentification';
154+
export * from './uSInternationalAchAddressRequirement';
152155
export * from './uSLocalAccountIdentification';
153156
export * from './updateNetworkTokenRequest';
154157
export * from './updatePaymentInstrument';
@@ -170,6 +173,7 @@ import { Address } from './address';
170173
import { AddressRequirement } from './addressRequirement';
171174
import { Amount } from './amount';
172175
import { AmountMinMaxRequirement } from './amountMinMaxRequirement';
176+
import { AmountNonZeroDecimalsRequirement } from './amountNonZeroDecimalsRequirement';
173177
import { Authentication } from './authentication';
174178
import { BRLocalAccountIdentification } from './bRLocalAccountIdentification';
175179
import { Balance } from './balance';
@@ -227,6 +231,7 @@ import { HKLocalAccountIdentification } from './hKLocalAccountIdentification';
227231
import { HULocalAccountIdentification } from './hULocalAccountIdentification';
228232
import { Href } from './href';
229233
import { IbanAccountIdentification } from './ibanAccountIdentification';
234+
import { IbanAccountIdentificationRequirement } from './ibanAccountIdentificationRequirement';
230235
import { InternationalTransactionRestriction } from './internationalTransactionRestriction';
231236
import { InvalidField } from './invalidField';
232237
import { Link } from './link';
@@ -299,6 +304,7 @@ import { TransferRoute } from './transferRoute';
299304
import { TransferRouteRequest } from './transferRouteRequest';
300305
import { TransferRouteResponse } from './transferRouteResponse';
301306
import { UKLocalAccountIdentification } from './uKLocalAccountIdentification';
307+
import { USInternationalAchAddressRequirement } from './uSInternationalAchAddressRequirement';
302308
import { USLocalAccountIdentification } from './uSLocalAccountIdentification';
303309
import { UpdateNetworkTokenRequest } from './updateNetworkTokenRequest';
304310
import { UpdatePaymentInstrument } from './updatePaymentInstrument';
@@ -333,6 +339,7 @@ let enumsMap: {[index: string]: any} = {
333339
"AddressRequirement.RequiredAddressFieldsEnum": AddressRequirement.RequiredAddressFieldsEnum,
334340
"AddressRequirement.TypeEnum": AddressRequirement.TypeEnum,
335341
"AmountMinMaxRequirement.TypeEnum": AmountMinMaxRequirement.TypeEnum,
342+
"AmountNonZeroDecimalsRequirement.TypeEnum": AmountNonZeroDecimalsRequirement.TypeEnum,
336343
"BRLocalAccountIdentification.TypeEnum": BRLocalAccountIdentification.TypeEnum,
337344
"BalanceAccount.StatusEnum": BalanceAccount.StatusEnum,
338345
"BalanceAccountBase.StatusEnum": BalanceAccountBase.StatusEnum,
@@ -367,6 +374,7 @@ let enumsMap: {[index: string]: any} = {
367374
"HKLocalAccountIdentification.TypeEnum": HKLocalAccountIdentification.TypeEnum,
368375
"HULocalAccountIdentification.TypeEnum": HULocalAccountIdentification.TypeEnum,
369376
"IbanAccountIdentification.TypeEnum": IbanAccountIdentification.TypeEnum,
377+
"IbanAccountIdentificationRequirement.TypeEnum": IbanAccountIdentificationRequirement.TypeEnum,
370378
"MatchingValuesRestriction.ValueEnum": MatchingValuesRestriction.ValueEnum,
371379
"NOLocalAccountIdentification.TypeEnum": NOLocalAccountIdentification.TypeEnum,
372380
"NZLocalAccountIdentification.TypeEnum": NZLocalAccountIdentification.TypeEnum,
@@ -411,6 +419,7 @@ let enumsMap: {[index: string]: any} = {
411419
"TransferRouteRequest.CategoryEnum": TransferRouteRequest.CategoryEnum,
412420
"TransferRouteRequest.PrioritiesEnum": TransferRouteRequest.PrioritiesEnum,
413421
"UKLocalAccountIdentification.TypeEnum": UKLocalAccountIdentification.TypeEnum,
422+
"USInternationalAchAddressRequirement.TypeEnum": USInternationalAchAddressRequirement.TypeEnum,
414423
"USLocalAccountIdentification.AccountTypeEnum": USLocalAccountIdentification.AccountTypeEnum,
415424
"USLocalAccountIdentification.TypeEnum": USLocalAccountIdentification.TypeEnum,
416425
"UpdateNetworkTokenRequest.StatusEnum": UpdateNetworkTokenRequest.StatusEnum,
@@ -442,6 +451,7 @@ let typeMap: {[index: string]: any} = {
442451
"AddressRequirement": AddressRequirement,
443452
"Amount": Amount,
444453
"AmountMinMaxRequirement": AmountMinMaxRequirement,
454+
"AmountNonZeroDecimalsRequirement": AmountNonZeroDecimalsRequirement,
445455
"Authentication": Authentication,
446456
"BRLocalAccountIdentification": BRLocalAccountIdentification,
447457
"Balance": Balance,
@@ -499,6 +509,7 @@ let typeMap: {[index: string]: any} = {
499509
"HULocalAccountIdentification": HULocalAccountIdentification,
500510
"Href": Href,
501511
"IbanAccountIdentification": IbanAccountIdentification,
512+
"IbanAccountIdentificationRequirement": IbanAccountIdentificationRequirement,
502513
"InternationalTransactionRestriction": InternationalTransactionRestriction,
503514
"InvalidField": InvalidField,
504515
"Link": Link,
@@ -571,6 +582,7 @@ let typeMap: {[index: string]: any} = {
571582
"TransferRouteRequest": TransferRouteRequest,
572583
"TransferRouteResponse": TransferRouteResponse,
573584
"UKLocalAccountIdentification": UKLocalAccountIdentification,
585+
"USInternationalAchAddressRequirement": USInternationalAchAddressRequirement,
574586
"USLocalAccountIdentification": USLocalAccountIdentification,
575587
"UpdateNetworkTokenRequest": UpdateNetworkTokenRequest,
576588
"UpdatePaymentInstrument": UpdatePaymentInstrument,

src/typings/balancePlatform/paymentInstrument.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export class PaymentInstrument {
5858
*/
5959
'statusReason'?: PaymentInstrument.StatusReasonEnum;
6060
/**
61-
* Type of payment instrument. Possible value: **card**, **bankAccount**.
61+
* The type of payment instrument. Possible values: **card**, **bankAccount**.
6262
*/
6363
'type': PaymentInstrument.TypeEnum;
6464

src/typings/balancePlatform/paymentInstrumentInfo.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class PaymentInstrumentInfo {
4646
*/
4747
'statusReason'?: PaymentInstrumentInfo.StatusReasonEnum;
4848
/**
49-
* Type of payment instrument. Possible value: **card**, **bankAccount**.
49+
* The type of payment instrument. Possible values: **card**, **bankAccount**.
5050
*/
5151
'type': PaymentInstrumentInfo.TypeEnum;
5252

src/typings/balancePlatform/sweepConfigurationV2.ts

+10
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ export class SweepConfigurationV2 {
3838
*/
3939
'reason'?: SweepConfigurationV2.ReasonEnum;
4040
/**
41+
* The human readable reason for disabling the sweep.
42+
*/
43+
'reasonDetail'?: string;
44+
/**
4145
* Your reference for the sweep configuration.
4246
*/
4347
'reference'?: string;
@@ -96,6 +100,11 @@ export class SweepConfigurationV2 {
96100
"baseName": "reason",
97101
"type": "SweepConfigurationV2.ReasonEnum"
98102
},
103+
{
104+
"name": "reasonDetail",
105+
"baseName": "reasonDetail",
106+
"type": "string"
107+
},
99108
{
100109
"name": "reference",
101110
"baseName": "reference",
@@ -175,6 +184,7 @@ export namespace SweepConfigurationV2 {
175184
PendingApproval = 'pendingApproval',
176185
PendingExecution = 'pendingExecution',
177186
RefusedByCounterpartyBank = 'refusedByCounterpartyBank',
187+
RefusedByCustomer = 'refusedByCustomer',
178188
RouteNotFound = 'routeNotFound',
179189
ScaFailed = 'scaFailed',
180190
TransferInstrumentDoesNotExist = 'transferInstrumentDoesNotExist',

0 commit comments

Comments
 (0)