Skip to content

Commit 32e17e7

Browse files
authored
Merge pull request #1574 from Adyen/sdk-automation/models
Code generation: update services and models
2 parents 7ed4a20 + 8edadc2 commit 32e17e7

File tree

13 files changed

+48
-36
lines changed

13 files changed

+48
-36
lines changed

src/__tests__/balancePlatform.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@ describe("Balance Platform", (): void => {
12441244
it("should support DELETE /balanceAccounts/{id}/transferLimits/{transferLimitId}", async (): Promise<void> => {
12451245
scope.delete(`/balanceAccounts/${balanceAccountId}/transferLimits/${transferLimitId}`).reply(204);
12461246

1247-
await balancePlatformService.TransferLimitsBalanceAccountLevelApi.deletePendingTransferLimit(transferLimitId, balanceAccountId);
1247+
await balancePlatformService.TransferLimitsBalanceAccountLevelApi.deletePendingTransferLimit(balanceAccountId, transferLimitId);
12481248
});
12491249

12501250
it("should support GET /balanceAccounts/{id}/transferLimits/current", async (): Promise<void> => {
@@ -1291,7 +1291,7 @@ describe("Balance Platform", (): void => {
12911291
scope.get(`/balanceAccounts/${balanceAccountId}/transferLimits/${transferLimitId}`)
12921292
.reply(200, mockResponse);
12931293

1294-
const response: Types.balancePlatform.TransferLimit = await balancePlatformService.TransferLimitsBalanceAccountLevelApi.getSpecificTransferLimit(transferLimitId, balanceAccountId);
1294+
const response: Types.balancePlatform.TransferLimit = await balancePlatformService.TransferLimitsBalanceAccountLevelApi.getSpecificTransferLimit(balanceAccountId, transferLimitId);
12951295

12961296
expect(response.id).toBe(transferLimitId);
12971297
});
@@ -1364,7 +1364,7 @@ describe("Balance Platform", (): void => {
13641364
it("should support DELETE /balancePlatforms/{id}/transferLimits/{transferLimitId}", async (): Promise<void> => {
13651365
scope.delete(`/balancePlatforms/${balancePlatformId}/transferLimits/${transferLimitId}`).reply(204);
13661366

1367-
await balancePlatformService.TransferLimitsBalancePlatformLevelApi.deletePendingTransferLimit(transferLimitId, balancePlatformId);
1367+
await balancePlatformService.TransferLimitsBalancePlatformLevelApi.deletePendingTransferLimit(balancePlatformId, transferLimitId);
13681368
});
13691369

13701370
it("should support GET /balancePlatforms/{id}/transferLimits/{transferLimitId}", async (): Promise<void> => {
@@ -1389,7 +1389,7 @@ describe("Balance Platform", (): void => {
13891389
scope.get(`/balancePlatforms/${balancePlatformId}/transferLimits/${transferLimitId}`)
13901390
.reply(200, mockResponse);
13911391

1392-
const response: Types.balancePlatform.TransferLimit = await balancePlatformService.TransferLimitsBalancePlatformLevelApi.getSpecificTransferLimit(transferLimitId, balancePlatformId);
1392+
const response: Types.balancePlatform.TransferLimit = await balancePlatformService.TransferLimitsBalancePlatformLevelApi.getSpecificTransferLimit(balancePlatformId, transferLimitId);
13931393

13941394
expect(response.id).toBe("TRLI00000000000000000000000001");
13951395
});

src/services/balancePlatform/transferLimitsBalanceAccountLevelApi.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ export class TransferLimitsBalanceAccountLevelApi extends Service {
8080

8181
/**
8282
* @summary Delete a scheduled or pending transfer limit
83-
* @param transferLimitId {@link string } The unique identifier of the transfer limit.
8483
* @param id {@link string } The unique identifier of the balance account.
84+
* @param transferLimitId {@link string } The unique identifier of the transfer limit.
8585
* @param requestOptions {@link IRequest.Options }
8686
* @return {@link void }
8787
*/
88-
public async deletePendingTransferLimit(transferLimitId: string, id: string, requestOptions?: IRequest.Options): Promise<void> {
88+
public async deletePendingTransferLimit(id: string, transferLimitId: string, requestOptions?: IRequest.Options): Promise<void> {
8989
const endpoint = `${this.baseUrl}/balanceAccounts/{id}/transferLimits/{transferLimitId}`
90-
.replace("{" + "transferLimitId" + "}", encodeURIComponent(String(transferLimitId)))
91-
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
90+
.replace("{" + "id" + "}", encodeURIComponent(String(id)))
91+
.replace("{" + "transferLimitId" + "}", encodeURIComponent(String(transferLimitId)));
9292
const resource = new Resource(this, endpoint);
9393

9494
await getJsonResponse<string, void>(
@@ -129,15 +129,15 @@ export class TransferLimitsBalanceAccountLevelApi extends Service {
129129

130130
/**
131131
* @summary Get the details of a transfer limit
132-
* @param transferLimitId {@link string } The unique identifier of the transfer limit.
133132
* @param id {@link string } The unique identifier of the balance account.
133+
* @param transferLimitId {@link string } The unique identifier of the transfer limit.
134134
* @param requestOptions {@link IRequest.Options }
135135
* @return {@link TransferLimit }
136136
*/
137-
public async getSpecificTransferLimit(transferLimitId: string, id: string, requestOptions?: IRequest.Options): Promise<TransferLimit> {
137+
public async getSpecificTransferLimit(id: string, transferLimitId: string, requestOptions?: IRequest.Options): Promise<TransferLimit> {
138138
const endpoint = `${this.baseUrl}/balanceAccounts/{id}/transferLimits/{transferLimitId}`
139-
.replace("{" + "transferLimitId" + "}", encodeURIComponent(String(transferLimitId)))
140-
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
139+
.replace("{" + "id" + "}", encodeURIComponent(String(id)))
140+
.replace("{" + "transferLimitId" + "}", encodeURIComponent(String(transferLimitId)));
141141
const resource = new Resource(this, endpoint);
142142

143143
const response = await getJsonResponse<string, TransferLimit>(

src/services/balancePlatform/transferLimitsBalancePlatformLevelApi.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@ export class TransferLimitsBalancePlatformLevelApi extends Service {
5959

6060
/**
6161
* @summary Delete a scheduled or pending transfer limit
62-
* @param transferLimitId {@link string } The unique identifier of the transfer limit.
6362
* @param id {@link string } The unique identifier of the balance platform.
63+
* @param transferLimitId {@link string } The unique identifier of the transfer limit.
6464
* @param requestOptions {@link IRequest.Options }
6565
* @return {@link void }
6666
*/
67-
public async deletePendingTransferLimit(transferLimitId: string, id: string, requestOptions?: IRequest.Options): Promise<void> {
67+
public async deletePendingTransferLimit(id: string, transferLimitId: string, requestOptions?: IRequest.Options): Promise<void> {
6868
const endpoint = `${this.baseUrl}/balancePlatforms/{id}/transferLimits/{transferLimitId}`
69-
.replace("{" + "transferLimitId" + "}", encodeURIComponent(String(transferLimitId)))
70-
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
69+
.replace("{" + "id" + "}", encodeURIComponent(String(id)))
70+
.replace("{" + "transferLimitId" + "}", encodeURIComponent(String(transferLimitId)));
7171
const resource = new Resource(this, endpoint);
7272

7373
await getJsonResponse<string, void>(
@@ -79,15 +79,15 @@ export class TransferLimitsBalancePlatformLevelApi extends Service {
7979

8080
/**
8181
* @summary Get the details of a transfer limit
82-
* @param transferLimitId {@link string } The unique identifier of the transfer limit.
8382
* @param id {@link string } The unique identifier of the balance platform.
83+
* @param transferLimitId {@link string } The unique identifier of the transfer limit.
8484
* @param requestOptions {@link IRequest.Options }
8585
* @return {@link TransferLimit }
8686
*/
87-
public async getSpecificTransferLimit(transferLimitId: string, id: string, requestOptions?: IRequest.Options): Promise<TransferLimit> {
87+
public async getSpecificTransferLimit(id: string, transferLimitId: string, requestOptions?: IRequest.Options): Promise<TransferLimit> {
8888
const endpoint = `${this.baseUrl}/balancePlatforms/{id}/transferLimits/{transferLimitId}`
89-
.replace("{" + "transferLimitId" + "}", encodeURIComponent(String(transferLimitId)))
90-
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
89+
.replace("{" + "id" + "}", encodeURIComponent(String(id)))
90+
.replace("{" + "transferLimitId" + "}", encodeURIComponent(String(transferLimitId)));
9191
const resource = new Resource(this, endpoint);
9292

9393
const response = await getJsonResponse<string, TransferLimit>(

src/services/recurring/recurringApi.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ export class RecurringApi extends Service {
6868
* @param disableRequest {@link DisableRequest }
6969
* @param requestOptions {@link IRequest.Options }
7070
* @return {@link DisableResult }
71-
*
72-
* @deprecated since Adyen Recurring API v68
7371
*/
7472
public async disable(disableRequest: DisableRequest, requestOptions?: IRequest.Options): Promise<DisableResult> {
7573
const endpoint = `${this.baseUrl}/disable`;
@@ -112,8 +110,6 @@ export class RecurringApi extends Service {
112110
* @param recurringDetailsRequest {@link RecurringDetailsRequest }
113111
* @param requestOptions {@link IRequest.Options }
114112
* @return {@link RecurringDetailsResult }
115-
*
116-
* @deprecated since Adyen Recurring API v68
117113
*/
118114
public async listRecurringDetails(recurringDetailsRequest: RecurringDetailsRequest, requestOptions?: IRequest.Options): Promise<RecurringDetailsResult> {
119115
const endpoint = `${this.baseUrl}/listRecurringDetails`;
@@ -134,8 +130,6 @@ export class RecurringApi extends Service {
134130
* @param notifyShopperRequest {@link NotifyShopperRequest }
135131
* @param requestOptions {@link IRequest.Options }
136132
* @return {@link NotifyShopperResult }
137-
*
138-
* @deprecated since Adyen Recurring API v68
139133
*/
140134
public async notifyShopper(notifyShopperRequest: NotifyShopperRequest, requestOptions?: IRequest.Options): Promise<NotifyShopperResult> {
141135
const endpoint = `${this.baseUrl}/notifyShopper`;
@@ -156,8 +150,6 @@ export class RecurringApi extends Service {
156150
* @param scheduleAccountUpdaterRequest {@link ScheduleAccountUpdaterRequest }
157151
* @param requestOptions {@link IRequest.Options }
158152
* @return {@link ScheduleAccountUpdaterResult }
159-
*
160-
* @deprecated since Adyen Recurring API v68
161153
*/
162154
public async scheduleAccountUpdater(scheduleAccountUpdaterRequest: ScheduleAccountUpdaterRequest, requestOptions?: IRequest.Options): Promise<ScheduleAccountUpdaterResult> {
163155
const endpoint = `${this.baseUrl}/scheduleAccountUpdater`;

src/typings/balancePlatform/objectSerializer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,4 +877,4 @@ export class ObjectSerializer {
877877

878878
throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse.");
879879
}
880-
}
880+
}

src/typings/balancePlatform/transactionRule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class TransactionRule {
3232
"id"?: string;
3333
"interval": TransactionRuleInterval;
3434
/**
35-
* 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**.
35+
* 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** (default): 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. This value is not allowed when `requestType` is **bankTransfer**. * **enforceSCA**: your user is prompted to verify their identity using [3D Secure authentication](https://docs.adyen.com/issuing/3d-secure/). If the authentication fails or times out, the transaction is declined. This value is only allowed when `requestType` is **authentication**.
3636
*/
3737
"outcomeType"?: TransactionRule.OutcomeTypeEnum;
3838
/**

src/typings/balancePlatform/transactionRuleInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class TransactionRuleInfo {
2828
"entityKey": TransactionRuleEntityKey;
2929
"interval": TransactionRuleInterval;
3030
/**
31-
* 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**.
31+
* 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** (default): 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. This value is not allowed when `requestType` is **bankTransfer**. * **enforceSCA**: your user is prompted to verify their identity using [3D Secure authentication](https://docs.adyen.com/issuing/3d-secure/). If the authentication fails or times out, the transaction is declined. This value is only allowed when `requestType` is **authentication**.
3232
*/
3333
"outcomeType"?: TransactionRuleInfo.OutcomeTypeEnum;
3434
/**

src/typings/legalEntityManagement/attachment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class Attachment {
3030
*/
3131
"pageName"?: string;
3232
/**
33-
* Specifies which side of the ID card is uploaded. * If the `type` is **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For any other types, when this is omitted, we infer the page number based on the order of attachments.
33+
* Specifies which side of the ID card is uploaded. * If the `type` is **driversLicense** or **identityCard**, you must set this to **front** or **back** and include both sides in the same API request. * For any other types, when this is omitted, we infer the page number based on the order of attachments.
3434
*/
3535
"pageType"?: string;
3636

src/typings/management/additionalSettings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class AdditionalSettings {
1414
*/
1515
"includeEventCodes"?: Array<string>;
1616
/**
17-
* 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.
17+
* 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, `includeCaptureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured.
1818
*/
1919
"properties"?: { [key: string]: boolean; };
2020

src/typings/management/additionalSettingsResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class AdditionalSettingsResponse {
1818
*/
1919
"includeEventCodes"?: Array<string>;
2020
/**
21-
* 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.
21+
* 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, `includeCaptureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured.
2222
*/
2323
"properties"?: { [key: string]: boolean; };
2424

0 commit comments

Comments
 (0)