Skip to content

Commit ac20271

Browse files
Merge pull request #1132 from Adyen/automation/release
Release v13.1.2
2 parents 4f8cd50 + 8664cc5 commit ac20271

File tree

194 files changed

+3174
-1268
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

194 files changed

+3174
-1268
lines changed

.github/workflows/gh-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
- uses: actions/checkout@v3
1616
with:
1717
fetch-depth: 0
18+
token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
1819
- name: Grab version
1920
uses: actions/github-script@v6
2021
id: release
@@ -24,7 +25,7 @@ jobs:
2425
core.setOutput('version', release.packageVersion())
2526
- name: Create new release
2627
env:
27-
GH_TOKEN: ${{ github.token }}
28+
GH_TOKEN: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
2829
run: |
2930
gh release create v${{steps.release.outputs.version}} \
3031
--title 'Adyen Node API Library v${{steps.release.outputs.version}}' \

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ $(services): build/spec $(openapi-generator-jar)
3535
-t templates/typescript \
3636
-o build \
3737
--global-property models,supportingFiles \
38-
--additional-properties=serviceName=$@
38+
--additional-properties=serviceName=$@ \
39+
--additional-properties=modelPropertyNaming=original
3940
mv build/model src/typings/$@
4041

4142
# Service
@@ -47,6 +48,7 @@ managementapi: build/spec $(openapi-generator-jar)
4748
-o build \
4849
--api-package $(service) \
4950
--model-package typings/$(service) \
51+
--additional-properties=modelPropertyNaming=original \
5052
--global-property apis \
5153
--additional-properties=serviceName=$(service)
5254
cp build/$(service)/* src/services/$(service)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@adyen/api-library",
3-
"version": "13.1.1",
3+
"version": "13.1.2",
44
"description": "The Adyen API Library for NodeJS enables you to work with Adyen APIs.",
55
"main": "lib/src/index.js",
66
"types": "lib/src/index.d.ts",

src/__tests__/checkout.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ function createAmountObject(currency: string, value: number): checkout.Amount {
2727
function createPaymentsDetailsRequest(): checkout.DetailsRequest {
2828
return {
2929
details: {
30-
mD: "mdValue",
31-
paRes: "paResValue",
30+
MD: "mdValue",
31+
PaRes: "paResValue",
3232
},
3333
paymentData: "Ab02b4c0!BQABAgCJN1wRZuGJmq8dMncmypvknj9s7l5Tj...",
3434
};

src/__tests__/platforms.spec.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ describe.skip("Platforms Test E2E", function(): void {
207207
accountHolderDetails,
208208
legalEntity: A.CreateAccountHolderRequest.LegalEntityEnum.Individual,
209209
});
210-
await platforms.Account.suspendAccountHolder({ accountHolderCode: accountHolderToUnSuspend.accountHolderCode});
210+
await platforms.Account.suspendAccountHolder({ accountHolderCode: accountHolderToUnSuspend.accountHolderCode!});
211211

212212
accountHolderToClose = await platforms.Account.createAccountHolder({
213213
accountHolderCode: generateRandomCode(),
@@ -242,7 +242,7 @@ describe.skip("Platforms Test E2E", function(): void {
242242
const result = await platforms.Account.getAccountHolder({
243243
accountHolderCode: accountHolder.accountHolderCode,
244244
});
245-
expect(result.accountHolderDetails.email).toEqual("random_email@example.com");
245+
expect(result.accountHolderDetails?.email).toEqual("random_email@example.com");
246246
} catch (e) {
247247
if(e instanceof HttpClientException) {
248248
assertError(e);
@@ -256,7 +256,7 @@ describe.skip("Platforms Test E2E", function(): void {
256256
nock.restore();
257257
try {
258258
const result = await platforms.Account.updateAccountHolder({
259-
accountHolderCode: accountHolder.accountHolderCode,
259+
accountHolderCode: accountHolder.accountHolderCode!,
260260
accountHolderDetails: {
261261
...accountHolderDetails,
262262
address: {
@@ -278,7 +278,7 @@ describe.skip("Platforms Test E2E", function(): void {
278278
nock.restore();
279279
try {
280280
const result = await platforms.Account.checkAccountHolder({
281-
accountHolderCode: accountHolder.accountHolderCode,
281+
accountHolderCode: accountHolder.accountHolderCode!,
282282
accountStateType: A.PerformVerificationRequest.AccountStateTypeEnum.Processing,
283283
tier: 2
284284
});
@@ -340,7 +340,7 @@ describe.skip("Platforms Test E2E", function(): void {
340340
}
341341
});
342342
const result = await platforms.Account.getUploadedDocuments({
343-
accountHolderCode: account.accountHolderCode,
343+
accountHolderCode: account.accountHolderCode!,
344344
});
345345
expect(result.documentDetails![0].filename).toEqual("IDCardFront.png");
346346
} catch (e) {
@@ -356,7 +356,7 @@ describe.skip("Platforms Test E2E", function(): void {
356356
nock.restore();
357357
try {
358358
const result = await platforms.Account.closeAccount({
359-
accountCode: accountToClose.accountCode
359+
accountCode: accountToClose.accountCode!
360360
});
361361
expect(result.status).toEqual("Closed");
362362
} catch (e) {
@@ -372,7 +372,7 @@ describe.skip("Platforms Test E2E", function(): void {
372372
nock.restore();
373373
try {
374374
const result = await platforms.Account.suspendAccountHolder({
375-
accountHolderCode: accountHolderToSuspend.accountHolderCode,
375+
accountHolderCode: accountHolderToSuspend.accountHolderCode!,
376376
});
377377
expect(result.pspReference).toBeDefined();
378378
} catch (e) {
@@ -387,7 +387,7 @@ describe.skip("Platforms Test E2E", function(): void {
387387
it("should unsuspend account holder", async function() {
388388
nock.restore();
389389
try {
390-
const result = await platforms.Account.unSuspendAccountHolder({ accountHolderCode: accountHolderToUnSuspend.accountHolderCode });
390+
const result = await platforms.Account.unSuspendAccountHolder({ accountHolderCode: accountHolderToUnSuspend.accountHolderCode! });
391391
expect(result.pspReference).toBeDefined();
392392
} catch (e) {
393393
if(e instanceof HttpClientException) {
@@ -402,7 +402,7 @@ describe.skip("Platforms Test E2E", function(): void {
402402
nock.restore();
403403
try {
404404
const result = await platforms.Account.updateAccountHolderState({
405-
accountHolderCode: accountHolder.accountHolderCode,
405+
accountHolderCode: accountHolder.accountHolderCode!,
406406
disable: false,
407407
stateType: A.UpdateAccountHolderStateRequest.StateTypeEnum.Payout
408408
});
@@ -420,7 +420,7 @@ describe.skip("Platforms Test E2E", function(): void {
420420
nock.restore();
421421
try {
422422
const result = await platforms.Account.closeAccountHolder({
423-
accountHolderCode: accountHolderToClose.accountHolderCode
423+
accountHolderCode: accountHolderToClose.accountHolderCode!
424424
});
425425
expect(result.pspReference).toBeDefined();
426426
} catch (e) {
@@ -436,7 +436,7 @@ describe.skip("Platforms Test E2E", function(): void {
436436
nock.restore();
437437
try {
438438
const result = await platforms.Account.getTaxForm({
439-
accountHolderCode: accountHolder.accountHolderCode,
439+
accountHolderCode: accountHolder.accountHolderCode!,
440440
formType: "1099-K",
441441
year: 2020
442442
});
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/*
2+
* The version of the OpenAPI document: v2
3+
* Contact: developer-experience@adyen.com
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 AULocalAccountIdentification {
12+
/**
13+
* The bank account number, without separators or whitespace.
14+
*/
15+
'accountNumber': string;
16+
/**
17+
* The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace.
18+
*/
19+
'bsbCode': string;
20+
/**
21+
* **auLocal**
22+
*/
23+
'type': AULocalAccountIdentification.TypeEnum;
24+
25+
static discriminator: string | undefined = undefined;
26+
27+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
28+
{
29+
"name": "accountNumber",
30+
"baseName": "accountNumber",
31+
"type": "string"
32+
},
33+
{
34+
"name": "bsbCode",
35+
"baseName": "bsbCode",
36+
"type": "string"
37+
},
38+
{
39+
"name": "type",
40+
"baseName": "type",
41+
"type": "AULocalAccountIdentification.TypeEnum"
42+
} ];
43+
44+
static getAttributeTypeMap() {
45+
return AULocalAccountIdentification.attributeTypeMap;
46+
}
47+
}
48+
49+
export namespace AULocalAccountIdentification {
50+
export enum TypeEnum {
51+
AuLocal = 'auLocal'
52+
}
53+
}

src/typings/balancePlatform/accountHolder.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
import { AccountHolderCapability } from './accountHolderCapability';
1111
import { ContactDetails } from './contactDetails';
12+
import { VerificationDeadline } from './verificationDeadline';
1213

1314
export class AccountHolder {
1415
/**
@@ -29,7 +30,7 @@ export class AccountHolder {
2930
*/
3031
'id': string;
3132
/**
32-
* The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder.
33+
* 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.
3334
*/
3435
'legalEntityId': string;
3536
/**
@@ -41,13 +42,17 @@ export class AccountHolder {
4142
*/
4243
'reference'?: string;
4344
/**
44-
* The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **inactive**: The account holder is temporarily inactive due to missing KYC details. You can set the account back to active by providing the missing KYC details. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
45+
* The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **inactive (Deprecated)**: The account holder is temporarily inactive due to missing KYC details. You can set the account back to active by providing the missing KYC details. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
4546
*/
4647
'status'?: AccountHolder.StatusEnum;
4748
/**
48-
* The [time zone](https://www.iana.org/time-zones) of the account holder. For example, **Europe/Amsterdam**. If not set, the time zone of the balance account will be used. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
49+
* The [time zone](https://www.iana.org/time-zones) 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).
4950
*/
5051
'timeZone'?: string;
52+
/**
53+
* List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved.
54+
*/
55+
'verificationDeadlines'?: Array<VerificationDeadline>;
5156

5257
static discriminator: string | undefined = undefined;
5358

@@ -101,6 +106,11 @@ export class AccountHolder {
101106
"name": "timeZone",
102107
"baseName": "timeZone",
103108
"type": "string"
109+
},
110+
{
111+
"name": "verificationDeadlines",
112+
"baseName": "verificationDeadlines",
113+
"type": "Array<VerificationDeadline>"
104114
} ];
105115

106116
static getAttributeTypeMap() {

src/typings/balancePlatform/accountHolderCapability.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* Do not edit this class manually.
88
*/
99

10+
import { AccountSupportingEntityCapability } from './accountSupportingEntityCapability';
1011
import { JSONObject } from './jSONObject';
1112

1213
export class AccountHolderCapability {
@@ -26,7 +27,7 @@ export class AccountHolderCapability {
2627
/**
2728
* Contains verification errors and the actions that you can take to resolve them.
2829
*/
29-
'problems'?: Array<any>;
30+
'problems'?: Array<object>;
3031
/**
3132
* Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field.
3233
*/
@@ -37,6 +38,10 @@ export class AccountHolderCapability {
3738
'requestedLevel'?: AccountHolderCapability.RequestedLevelEnum;
3839
'requestedSettings'?: JSONObject;
3940
/**
41+
* Contains the status of the transfer instruments associated with this capability.
42+
*/
43+
'transferInstruments'?: Array<AccountSupportingEntityCapability>;
44+
/**
4045
* 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.
4146
*/
4247
'verificationStatus'?: AccountHolderCapability.VerificationStatusEnum;
@@ -67,7 +72,7 @@ export class AccountHolderCapability {
6772
{
6873
"name": "problems",
6974
"baseName": "problems",
70-
"type": "Array<any>"
75+
"type": "Array<object>"
7176
},
7277
{
7378
"name": "requested",
@@ -84,6 +89,11 @@ export class AccountHolderCapability {
8489
"baseName": "requestedSettings",
8590
"type": "JSONObject"
8691
},
92+
{
93+
"name": "transferInstruments",
94+
"baseName": "transferInstruments",
95+
"type": "Array<AccountSupportingEntityCapability>"
96+
},
8797
{
8898
"name": "verificationStatus",
8999
"baseName": "verificationStatus",

src/typings/balancePlatform/accountHolderInfo.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ export class AccountHolderInfo {
2525
*/
2626
'description'?: string;
2727
/**
28-
* The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder.
28+
* 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.
2929
*/
3030
'legalEntityId': string;
3131
/**
3232
* Your reference for the account holder, maximum 150 characters.
3333
*/
3434
'reference'?: string;
3535
/**
36-
* The [time zone](https://www.iana.org/time-zones) of the account holder. For example, **Europe/Amsterdam**. If not set, the time zone of the balance account will be used. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
36+
* The [time zone](https://www.iana.org/time-zones) 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).
3737
*/
3838
'timeZone'?: string;
3939

0 commit comments

Comments
 (0)