Skip to content

Commit d6b50a3

Browse files
authored
Merge pull request #1028 from Adyen/develop
Release 12.1.0
2 parents 20097e6 + 59ce9c5 commit d6b50a3

File tree

216 files changed

+7189
-1044
lines changed

Some content is hidden

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

216 files changed

+7189
-1044
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @zaiddreakh @maassenbas @AlexandrosMor @peterojo @wboereboom @michaelpaul
1+
* @Adyen/javascript

.github/workflows/models.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,14 @@ jobs:
88
name: Generate Models
99
steps:
1010
- uses: actions/checkout@v3
11-
- name: Generate models
12-
run: make models
11+
- run: make models
12+
- name: Set PR variables
13+
id: vars
14+
run: |
15+
cd build/spec
16+
echo ::set-output name=pr_title::"Update models"
17+
echo ::set-output name=pr_body::"OpenAPI spec or templates produced new models on $(date +%d-%m-%Y) \
18+
by [commit](https://github.com/Adyen/adyen-openapi/commit/$(git rev-parse HEAD))."
1319
- name: Create Pull Request
1420
uses: peter-evans/create-pull-request@v4
1521
with:
@@ -18,7 +24,7 @@ jobs:
1824
author: ${{ secrets.ADYEN_AUTOMATION_BOT_EMAIL }}
1925
base: develop
2026
branch: automation/models
21-
title: Update models
22-
body: OpenAPI spec or templates produced new models.
27+
title: ${{ steps.vars.outputs.pr_title }}
28+
body: ${{ steps.vars.outputs.pr_body }}
2329
add-paths: |
2430
src/typings

.github/workflows/npmpublish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v2
1313
- uses: actions/setup-node@v1
1414
with:
15-
node-version: 12
15+
node-version: 14
1616
registry-url: https://registry.npmjs.org/
1717
- run: |
1818
npm install

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
generator:=typescript-node
22
openapi-generator-cli:=docker run --user $(shell id -u):$(shell id -g) --rm -v ${PWD}:/local -w /local openapitools/openapi-generator-cli:v5.4.0
3-
services:=binlookup checkout storedValue terminalManagement payments recurring payouts management balancePlatform platformsAccount platformsFund platformsNotificationConfiguration platformsHostedOnboardingPage
3+
services:=binlookup checkout storedValue terminalManagement payments recurring payouts management legalEntityManagement balancePlatform platformsAccount platformsFund platformsNotificationConfiguration platformsHostedOnboardingPage transfer
44

55
# Generate models (for each service)
66
models: $(services)
@@ -13,11 +13,13 @@ payments: spec=PaymentService-v68
1313
recurring: spec=RecurringService-v68
1414
payouts: spec=PayoutService-v68
1515
management: spec=ManagementService-v1
16+
legalEntityManagement: spec=LegalEntityService-v2
1617
balancePlatform: spec=BalancePlatformService-v2
1718
platformsAccount: spec=AccountService-v6
1819
platformsFund: spec=FundService-v6
1920
platformsNotificationConfiguration: spec=NotificationConfigurationService-v6
2021
platformsHostedOnboardingPage: spec=HopService-v6
22+
transfer: spec=TransferService-v3
2123

2224
$(services): build/spec
2325
rm -rf src/typings/$@ build/model

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,26 @@ This is the officially supported NodeJS library for using Adyen's APIs.
1313
## Integration
1414
The Library supports all APIs under the following services:
1515

16-
* [BIN lookup API](https://docs.adyen.com/api-explorer/#/BinLookup/v50/overview): The BIN Lookup API provides endpoints for retrieving information based on a given BIN. Current supported version: **v52**
16+
* [BIN lookup API](https://docs.adyen.com/api-explorer/#/BinLookup/v52/overview): The BIN Lookup API provides endpoints for retrieving information based on a given BIN. Current supported version: **v52**
1717
* [Checkout API](https://docs.adyen.com/api-explorer/#/CheckoutService/v69/overview): Our latest integration for accepting online payments. Current supported version: **v69**
1818
* [Configuration API](https://docs.adyen.com/api-explorer/#/balanceplatform/v2/overview): The Configuration API enables you to create a platform where you can onboard your users as account holders and create balance accounts, cards, and business accounts. Current supported verison: **v2**
19+
* [Legal Entity Management API](https://docs.adyen.com/api-explorer/#/legalentity/v2/overview): Manage legal entities that contain information required for verification. Current supported version: **v2**
1920
* [Local/Cloud-based Terminal API](https://docs.adyen.com/point-of-sale/terminal-api-reference): Our point-of-sale integration.
2021
* [Management API](https://docs.adyen.com/api-explorer/#/ManagementService/v1/overview): Configure and manage your Adyen company and merchant accounts, stores, and payment terminals. Current supported version **v1**
2122
* [Payments API](https://docs.adyen.com/api-explorer/#/Payment/v68/overview): Our classic integration for online payments. Current supported version: **v68**
22-
* [Payouts API](https://docs.adyen.com/api-explorer/#/Payout/v64/overview): Endpoints for sending funds to your customers. Current supported version: **v68**
23+
* [Payouts API](https://docs.adyen.com/api-explorer/#/Payout/v68/overview): Endpoints for sending funds to your customers. Current supported version: **v68**
2324
* [Platforms APIs](https://docs.adyen.com/platforms/api): Set of APIs when using Adyen for Platforms. This API is used for the classic integration.
2425
* [Account API](https://docs.adyen.com/api-explorer/#/Account/v6/overview) Current supported version: **v6**
2526
* [Fund API](https://docs.adyen.com/api-explorer/#/Fund/v6/overview) Current supported version: **v6**
2627
* [Hosted onboarding API](https://docs.adyen.com/api-explorer/#/Hop/v6/overview): Current supported version: **v6**
2728
* [Notification Configuration API](https://docs.adyen.com/api-explorer/#/NotificationConfigurationService/v6/overview) Current supported version: **v6**
29+
* [Platforms Notifications Webhooks](https://docs.adyen.com/api-explorer/#/NotificationService/v6/overview) Current supported version: **v6**
2830
* [POS Terminal Management API](https://docs.adyen.com/api-explorer/#/postfmapi/v1/overview): Endpoints for managing your point-of-sale payment terminals. Current supported version **v1**
2931
* [Recurring API](https://docs.adyen.com/api-explorer/#/Recurring/v68/overview): Endpoints for managing saved payment details. Current supported version: **v68**
3032
* [Stored Value API](https://docs.adyen.com/payment-methods/gift-cards/stored-value-api): Manage both online and point-of-sale gift cards and other stored-value cards. Current supported version: **v46**
33+
* [Transfers API](https://docs.adyen.com/api-explorer/transfers/3/overview) The Transfers API provides endpoints that you can use to get information about all your transactions, move funds within your balance platform or send funds from your balance platform to a transfer instrument. **v3**
3134

32-
In addition it supports the following type collections:
3335

34-
* [Platforms Notifications Webhooks](https://docs.adyen.com/api-explorer/#/NotificationService/v6/overview) Current supported version: **v6**
3536

3637
For more information, refer to our [documentation](https://docs.adyen.com/) or the [API Explorer](https://docs.adyen.com/api-explorer/).
3738

@@ -131,7 +132,7 @@ We strongly encourage you to join us in contributing to this repository so every
131132
Read our [**contribution guidelines**](CONTRIBUTING.md) to find out how to create a pull request.
132133

133134
## Support
134-
If you have a feature request, or spotted a bug or a technical problem, create a GitHub issue. For other questions, contact our [support team](https://support.adyen.com/).
135+
If you have a feature request, or spotted a bug or a technical problem, create a GitHub issue. For other questions, contact our [support team](https://www.adyen.help).
135136

136137
## Licence
137138
This repository is available under the [MIT license](LICENSE).

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@adyen/api-library",
3-
"version": "12.0.0",
3+
"version": "12.1.0",
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",
@@ -37,23 +37,23 @@
3737
"devDependencies": {
3838
"@types/jest": "27.5.0",
3939
"@types/nock": "11.1.0",
40-
"@typescript-eslint/eslint-plugin": "5.35.1",
41-
"@typescript-eslint/parser": "5.35.1",
40+
"@typescript-eslint/eslint-plugin": "5.41.0",
41+
"@typescript-eslint/parser": "5.41.0",
4242
"acorn": "^8.0.1",
4343
"coveralls": "3.1.1",
4444
"dotenv": "^16.0.0",
45-
"eslint": "8.22.0",
45+
"eslint": "8.26.0",
4646
"jest": "^27.0.6",
4747
"jest-ts-auto-mock": "^2.0.0",
4848
"kind-of": "^6.0.3",
4949
"minimist": ">=1.2.3",
5050
"nock": "13.2.9",
51-
"release-it": "15.4.0",
51+
"release-it": "15.5.0",
5252
"ts-auto-mock": "^3.3.5",
5353
"ts-jest": "^27.0.4",
5454
"ts-loader": "8.0.10",
5555
"ttypescript": "^1.5.10",
56-
"typescript": "4.7.4"
56+
"typescript": "4.8.4"
5757
},
5858
"dependencies": {
5959
"https-proxy-agent": "5.0.1"

src/__mocks__/base.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ export const createClient = (apiKey = process.env.ADYEN_API_KEY): Client => {
4949
config.terminalManagementEndpoint = Client.TERMINAL_MANAGEMENT_API_ENDPOINT_TEST;
5050
config.managementEndpoint = Client.MANAGEMENT_API_ENDPOINT_TEST;
5151
config.balancePlatformEndpoint = Client.BALANCE_PLATFORM_API_ENDPOINT_TEST;
52+
config.legalEntityManagementEndpoint = Client.LEGAL_ENTITY_MANAGEMENT_API_ENDPOINT_TEST;
53+
config.transfersEndpoint = Client.TRANSFERS_API_VERSION_TEST;
5254

5355
return new Client({ config });
5456
};
Lines changed: 233 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,233 @@
1+
2+
export const businessLineInfo = {
3+
"capability": "issueBankAccount",
4+
"industryCode": "55",
5+
"webData": [
6+
{
7+
"webAddress": "https://www.adyen.com"
8+
}
9+
],
10+
"legalEntityId": "LE322KT223222D5FJ7THR293F",
11+
"sourceOfFunds": {
12+
"type": "business",
13+
"adyenProcessedFunds": "false",
14+
"description": "Funds from my flower shop business"
15+
}
16+
};
17+
18+
export const businessLineInfoUpdate = {
19+
"capability": "string",
20+
"industryCode": "string",
21+
"legalEntityId": "string",
22+
"salesChannels": ["string"],
23+
"sourceOfFunds": {
24+
"acquiringBusinessLineId": "string",
25+
"adyenProcessedFunds": false,
26+
"description": "string",
27+
"type": "business"
28+
},
29+
"webData": [{ "webAddress": "string" }],
30+
"webDataExemption": { "reason": "noOnlinePresence" }
31+
};
32+
33+
export const document = {
34+
"attachment": {
35+
"content": "string",
36+
"contentType": "string",
37+
"filename": "string",
38+
"pageName": "string",
39+
"pageType": "string"
40+
},
41+
"attachments": [{
42+
"content": "string",
43+
"contentType": "string",
44+
"filename": "string",
45+
"pageName": "string",
46+
"pageType": "string"
47+
}],
48+
"description": "string",
49+
"expiryDate": "string",
50+
"fileName": "string",
51+
"id": "string",
52+
"issuerCountry": "string",
53+
"issuerState": "string",
54+
"number": "string",
55+
"owner": {
56+
"id": "string",
57+
"type": "string"
58+
},
59+
"type": "bankStatement"
60+
};
61+
62+
export const onboardingLinkInfo = {
63+
"locale": "cs-CZ",
64+
"redirectUrl": "https://your.redirect-url.com",
65+
"themeId": "123456789"
66+
};
67+
68+
export const legalEntityInfo = {
69+
"type": "individual",
70+
"individual": {
71+
"residentialAddress": {
72+
"city": "San Francisco",
73+
"country": "US",
74+
"postalCode": "94107",
75+
"street": "Brannan Street 274",
76+
"stateOrProvince": "CA"
77+
},
78+
"phone": {
79+
"countryCode": "US",
80+
"number": "5551231234",
81+
"type": "mobile"
82+
},
83+
"name": {
84+
"firstName": "Simone",
85+
"lastName": "Hopper"
86+
},
87+
"birthData": {
88+
"dateOfBirth": "1981-12-01"
89+
},
90+
"email": "[email protected]"
91+
}
92+
};
93+
94+
export const genericEntityInfo = {
95+
"entityAssociations": [{
96+
"associatorId": "string",
97+
"entityType": "string",
98+
"jobTitle": "string",
99+
"legalEntityId": "string",
100+
"name": "string",
101+
"type": "signatory"
102+
}],
103+
"individual": {
104+
"birthData": { "dateOfBirth": "string" },
105+
"email": "string",
106+
"identificationData": {
107+
"expiryDate": "string",
108+
"issuerCountry": "string",
109+
"issuerState": "string",
110+
"nationalIdExempt": false,
111+
"number": "string",
112+
"type": "bankStatement"
113+
},
114+
"name": {
115+
"firstName": "string",
116+
"infix": "string",
117+
"lastName": "string"
118+
},
119+
"nationality": "string",
120+
"phone": {
121+
"number": "string",
122+
"type": "string"
123+
},
124+
"residentialAddress": {
125+
"city": "string",
126+
"country": "string",
127+
"postalCode": "string",
128+
"stateOrProvince": "string",
129+
"street": "string",
130+
"street2": "string"
131+
},
132+
"taxInformation": [{
133+
"country": "string",
134+
"number": "string",
135+
"type": "string"
136+
}],
137+
"webData": { "webAddress": "string" }
138+
},
139+
"organization": {
140+
"description": "string",
141+
"doingBusinessAs": "string",
142+
"email": "string",
143+
"legalName": "string",
144+
"phone": {
145+
"number": "string",
146+
"type": "string"
147+
},
148+
"principalPlaceOfBusiness": {
149+
"city": "string",
150+
"country": "string",
151+
"postalCode": "string",
152+
"stateOrProvince": "string",
153+
"street": "string",
154+
"street2": "string"
155+
},
156+
"registeredAddress": {
157+
"city": "string",
158+
"country": "string",
159+
"postalCode": "string",
160+
"stateOrProvince": "string",
161+
"street": "string",
162+
"street2": "string"
163+
},
164+
"registrationNumber": "string",
165+
"stockData": {
166+
"marketIdentifier": "string",
167+
"stockNumber": "string",
168+
"tickerSymbol": "string"
169+
},
170+
"taxInformation": [{
171+
"country": "string",
172+
"number": "string",
173+
"type": "string"
174+
}],
175+
"taxReportingClassification": {
176+
"businessType": "other",
177+
"financialInstitutionNumber": "string",
178+
"mainSourceOfIncome": "businessOperation",
179+
"type": "nonFinancialNonReportable"
180+
},
181+
"type": "associationIncorporated",
182+
"vatAbsenceReason": "industryExemption",
183+
"vatNumber": "string",
184+
"webData": { "webAddress": "string" }
185+
},
186+
"soleProprietorship": {
187+
"countryOfGoverningLaw": "string",
188+
"doingBusinessAs": "string",
189+
"name": "string",
190+
"principalPlaceOfBusiness": {
191+
"city": "string",
192+
"country": "string",
193+
"postalCode": "string",
194+
"stateOrProvince": "string",
195+
"street": "string",
196+
"street2": "string"
197+
},
198+
"registeredAddress": {
199+
"city": "string",
200+
"country": "string",
201+
"postalCode": "string",
202+
"stateOrProvince": "string",
203+
"street": "string",
204+
"street2": "string"
205+
},
206+
"registrationNumber": "string",
207+
"vatAbsenceReason": "industryExemption",
208+
"vatNumber": "string"
209+
}
210+
};
211+
212+
export const transferInstrumentInfo = {
213+
"bankAccount": {
214+
"accountNumber": "string",
215+
"accountType": "string",
216+
"bankBicSwift": "string",
217+
"bankCity": "string",
218+
"bankCode": "string",
219+
"bankName": "string",
220+
"branchCode": "string",
221+
"checkCode": "string",
222+
"countryCode": "string",
223+
"currencyCode": "string",
224+
"iban": "string"
225+
},
226+
"legalEntityId": "string",
227+
"recurringDetail": {
228+
"merchantAccount": "string",
229+
"reference": "string",
230+
"shopperReference": "string"
231+
},
232+
"type": "bankAccount"
233+
};

0 commit comments

Comments
 (0)