208 Commits

Author SHA1 Message Date
jillingk
bf1e643973 [PW-7765] add create/disablePermit and simple UT (#1082)
* add create/disablePermit and simple UT

* Add serializer for Date objects and quick test

Co-authored-by: Michael Paul <michael@michaelpaul.com.br>
2023-01-19 16:57:26 +01:00
Michael Paul
316542a166 PW-7514: Fully Generated Management API client (#1064)
* PW-7514: Update models

* PW-7514: Switch to JAR based installation

* PW-7514: Default API template

* PW-7514: Customize API template

* PW-7514: Serialize request

* PW-7514: Query string

* PW-7514: Fix version patch

* PW-7514: Client generated

* PW-7514: Export class by default

* PW-7514: Make path and body params required

* PW-7514: Dynamic service name

* PW-7514: Link all classes into one parent

* PW-7514: Dynamic method names

* PW-7514: Fix merge issues

* PW-7514: Generate using latest specs

Co-authored-by: jillingk <93914435+jillingk@users.noreply.github.com>
2023-01-19 15:59:16 +01:00
Wouter Boereboom
bd70b93c08 update unit tests to test uniform error handling over APIs (#1079)
Co-authored-by: jillingk <93914435+jillingk@users.noreply.github.com>
2023-01-13 15:54:15 +01:00
Michael Paul
a289846a16 PW-7502: Bind QueryString type to URLSearchParams (#1077) 2022-12-30 13:22:21 +01:00
Wouter Boereboom
277edb212c remove API calls from unit tests. Remove ASCII headers from test files, use typings index in test classes. add missing entries to typings index class (#1075) 2022-12-23 10:05:52 +01:00
Wouter Boereboom
be9194fafe add basic auth option to the client (#1076) 2022-12-22 10:38:07 +01:00
Wouter Boereboom
c8220fe6d4 fix: add balancePlatform to services index (#1068) 2022-11-30 12:58:05 +01:00
Wouter Boereboom
790c880eef add dataProtection service to library (#1063)
* add dataProtection service to library

* add missing import

* fix mock class for unit test
2022-11-30 12:51:27 +01:00
jillingk
791f68163a Changed name of Value to BarcodeValue corresponding to docs(and API) (#1051) 2022-11-18 14:50:54 +01:00
Eoin Falconer
8aa158b943 Arribatec/fix terminal comms typo (#1029)
* Fix the namings of CommunicationOKFlag

* Revert "Fix the namings of CommunicationOKFlag"

This reverts commit 15e85c2665947a87ce7cfd8b6dae5df0fde16cb1.

* Updated with correct linting

* Update pOIStatus.ts

Co-authored-by: jillingk <93914435+jillingk@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2022-11-18 08:47:40 +01:00
AdyenAutomationBot
50548c1857 [create-pull-request] automated change (#980) 2022-10-28 16:28:50 +02:00
Wouter Boereboom
ffbf955b95 Pw 6850/bank issueing fund transfers (#1027)
* add TransferService to Makefile

* add transfers API to library

* update typings and add unit tests
2022-10-27 16:45:47 +02:00
Wouter Boereboom
1e83db3465 add LEM service to services index 2022-10-06 13:01:02 +02:00
jillingk
ad5559c55a [PW-6847] Add support for LEM endpoints (#999)
* Generate models and add services

* Makefile changes and document

* PW-6847: Mocks

* Update src/__tests__/legalEntityManagement.spec.ts

Co-authored-by: Michael Paul <michael@michaelpaul.com.br>

* small fix and renames

* Update src/__tests__/balancePlatform.spec.ts

Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>

* modified README and index

* Update src/services/resource/legalEntityManagementResource.ts

Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>

* Update src/services/resource/legalEntityManagementResource.ts

Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>

Co-authored-by: michaelpa <michael.paul@adyen.com>
Co-authored-by: Michael Paul <michael@michaelpaul.com.br>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2022-09-30 13:48:35 +02:00
Jilling Kingma
aefb0e5e19 made simple if statement instead of catch block 2022-09-28 11:05:55 +02:00
Jilling Kingma
692a133058 return undefined response item 2022-09-19 14:18:46 +02:00
Jilling Kingma
e36af2f7c7 add catch block for nexocryptoexception 2022-09-19 13:28:56 +02:00
Jilling Kingma
9a12c9e46b Changed solution to try catch block and custom error 2022-09-19 11:20:46 +02:00
Jilling Kingma
1d365df9c8 Added jsonResponse empty string catch 2022-09-14 09:34:55 +02:00
Wouter Boereboom
4a6c1218ea Bump version and pre-release fixes (#974)
* Update README.md

* update client API version constant used by payouts

* update package version and remove client js header

* remove some obsolete blank lines
2022-08-24 17:06:07 +02:00
AdyenAutomationBot
26803de094 [create-pull-request] automated change (#973) 2022-08-24 14:25:31 +02:00
AdyenAutomationBot
f6d61eae30 [create-pull-request] automated change (#969)
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2022-08-23 11:36:41 +02:00
Wouter Boereboom
41f58990b4 fix unit tests (#972) 2022-08-23 11:29:17 +02:00
Steeven Labelle
a250acfa21 allow splits terminal for marketplace (#967)
* allow splits terminal for marketplace

* fix: SaleToAcquirerData accept SaleToAcquirerData type or string
2022-08-23 08:23:02 +02:00
Wouter Boereboom
13309b073a remove binlookup interface in favor of generated models (#965)
* remove binlookup interface in favor of generated models

* Update src/typings/index.ts

Fix typo in  typings index.ts

Co-authored-by: Michael Paul <michael@michaelpaul.com.br>

Co-authored-by: Michael Paul <michael@michaelpaul.com.br>
Co-authored-by: jillingk <93914435+jillingk@users.noreply.github.com>
2022-08-19 13:56:48 +02:00
jillingk
e4c7c62807 Merge branch 'develop' into fix/metadata 2022-08-18 17:08:36 +02:00
Michael Paul
de7cd45027 PW-6940: Management API merchant endpoints (#953)
* PW-6940: Update CI workflows

Remove redundant reviewers and push event. Upgrade Node for coverage report.

* PW-6940: Upgrade CodeQL

* PW-6940: Update models

* PW-6940: Add merchant level endpoints

* Revert "PW-6940: Update models"

This reverts commit 1044f2ab1b2ab90fd980588ba35ba5fb6b55d93e.

* PW-6940: Linking services

* PW-6940: Add documentation

* PW-6940: Add unit tests

* PW-6940: Fix delete methods return value

Co-authored-by: Ángel Campos <angel.campos@adyen.com>
Co-authored-by: Alexandros Moraitis <amoraitis@outlook.com>
2022-08-18 13:24:37 +02:00
Alexandros Moraitis
219f51620a Merge branch 'develop' into fix/metadata 2022-08-18 11:55:56 +02:00
AdyenAutomationBot
e76c16e540 [create-pull-request] automated change (#958)
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2022-08-18 11:18:42 +02:00
Wouter Boereboom
45ec478631 Merge branch 'develop' into fix/metadata 2022-08-18 10:40:41 +02:00
Wouter Boereboom
d7f5a17296 move payouts from interface models to generated models (#962)
* update makefile so payouts models will be generated

* remove existing interface and use models directory

* reversed duplicate payouts entry
2022-08-18 09:31:55 +02:00
Wouter Boereboom
747f369aa5 Merge branch 'develop' into fix/metadata 2022-08-17 08:42:31 +02:00
AdyenAutomationBot
085ac91bf3 [create-pull-request] automated change (#956) 2022-08-10 17:51:04 +02:00
Jilling Kingma
f742cbe542 added metadata to attribute map 2022-08-10 10:06:48 +02:00
Michael Paul
7300b9e37b PW-6846: Platforms and financial products - Configuration (#949)
* PW-6846: Add Balance Platform to generator

* PW-6846: Models

* PW-6846: Add configuration options

* PW-6846: Account holders

* PW-6846: Add AccountHolders tests

* PW-6846: Add query string parameters

* PW-6846: Make `AccountHolder.id` optional

The `AccountHolder.id` field is required at the specs level.

It should be optional (or not exist) when sending an update request.

* PW-6846: Add Balance accounts endpoints

* PW-6846: General endpoints

* PW-6846: Add Payment Instruments endpoints

* PW-6846: Add Payment Instrument Groups endpoints

* PW-6846: Add Transaction Rules endpoints

* PW-6846: Fix linting issues
2022-08-09 11:10:53 +02:00
Michael Paul
1b636e98a3 PW-6668: POS Terminal Management API (#922)
* PW-6668: Add resources

* PW-6668: Add models

* PW-6668: Add service

* PW-6668: Add unit tests

* PW-6668: Update readme

* PW-6668: Import models from models.ts

* PW-6668: Deserialize terminal management responses
2022-08-04 15:10:54 +02:00
Wouter Boereboom
706201f0e2 fix linting warnings for using "any" as type (#927) 2022-07-26 16:05:08 +02:00
Wouter Boereboom
5d00b0cba1 add requestoptions to all checkout requests in order to use idempotency key. update paymentlinks resource creation to prevent code bleed in unit tests (#943) 2022-07-26 14:27:16 +02:00
Michael Paul
5631c99d12 PW-6832: Parse datetime fields as Date (#936)
* PW-6832: Parse Date for sessions endpoint

* PW-6832: Fix integration test

* PW-6832: Deserialize all Checkout endpoints
2022-07-25 17:12:16 +02:00
Michael Paul
e06f45ed49 PW-6843: Add /debitAccountHolder endpoint (#938)
* PW-6843: Add /debitAccountHolder endpoint

* PW-6843: Fix imports

Co-authored-by: Alexandros Moraitis <amoraitis@outlook.com>
2022-07-25 16:52:24 +02:00
Wouter Boereboom
c4e1c96736 Pw 6904/management api (#926)
* create first version of management api structure and
"me" endpoints

* change me/allowedOrigins response to fix bug in API Spec file
2022-07-25 08:57:09 +02:00
AdyenAutomationBot
6c049d8b0d [create-pull-request] automated change (#932) 2022-07-21 11:59:30 +02:00
Wouter Boereboom
0bb8963d94 update HOP API (#921)
* update HOP API

* update typings index

* add storedValue to typings index
2022-07-12 16:39:21 +02:00
Wouter Boereboom
0a835c55be update recurringService to v68 (#919)
* update recurringService to v68

* remove actual api calls from unit tests and remove superfluous file headers
2022-07-12 10:47:09 +02:00
Wouter Boereboom
aba0c19859 Pw 6826/storedvalue api (#918)
* merge modifications service with checkout service and add cardDetails endpoint to checkout service

* add classic integration/payment API types and service to library

* add unit test for cardDetails endpoint

* fix unit tests for binlookup

* PW-6663: Do not run model generation on every PR

* remove inconsistent e2e/unit hybrid test for binlookup

* add storedValue API

* upgrade linter packages and fix linting issues in repo

* add storedValue API to Readme

Co-authored-by: Michael Paul <michael@michaelpaul.com.br>
2022-07-12 10:44:19 +02:00
jillingk
1e60855be9 set value of qrcode to proper value stated in docs (#900)
Co-authored-by: Michael Paul <michael@michaelpaul.com.br>
2022-07-11 15:09:48 +02:00
AdyenAutomationBot
9943b41589 [create-pull-request] automated change (#917) 2022-07-08 14:51:48 +02:00
Wouter Boereboom
a479c38bf1 Pw 6663/fix checkout + payments services (#903)
* merge modifications service with checkout service and add cardDetails endpoint to checkout service

* add classic integration/payment API types and service to library

* add unit test for cardDetails endpoint

* fix unit tests for binlookup

* PW-6663: Do not run model generation on every PR

* remove inconsistent e2e/unit hybrid test for binlookup

Co-authored-by: Michael Paul <michael@michaelpaul.com.br>
2022-07-06 09:51:49 +02:00
Michael Paul
75243ebd6e PW-6628: Serialize SaleToAcquirerData
Using same option (base64 encoded JSON string) on all terminal requests.
2022-06-17 08:20:55 +00:00
Michael Paul
e3f8eef013 PW-6628: Test adding currency to a refund request
Remove duplicated data provider when running on CI. Make it a single
control variable.
2022-06-16 13:30:27 +00:00