You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-8Lines changed: 11 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -254,12 +254,12 @@ Alternatively, you can use the `Types` included in this module for Typescript an
254
254
#### Deserializing JSON Strings
255
255
In some setups you might need to deserialize JSON strings to request objects. For example, when using the libraries in combination with [Dropin/Components](https://github.com/Adyen/adyen-web). Please use the built-in deserialization functions:
256
256
```typescript
257
-
// Import the required model class
258
-
import { checkout } from"../typings";
257
+
// Import the models
258
+
import { Types } from"@adyen/api-library";
259
259
260
260
// Deserialize using built-in ObjectSerializer class
You can also parse the webhook with a generic type, in case you do not know the webhook type in advance. In this case you can check the instance of the webhook in order to parse it to the respective type (or just use it dynamically);
306
309
```typescript
@@ -331,7 +334,7 @@ To configure a proxy connection, set the `proxy` property of your `HttpURLConnec
## Using the Local Terminal API Integration without Encryption (Only on TEST)
500
503
If you wish to develop the Local Terminal API integration parallel to your encryption implementation, you can opt for the unencrypted version. Be sure to remove any encryption details from the CA terminal config page.
### Using the Cloud Terminal API Integration (async)
523
526
If you choose to integrate [Terminal API over Cloud](https://docs.adyen.com/point-of-sale/design-your-integration/choose-your-architecture/cloud/)**asynchronously**, you need to follow similar steps to initialize the client and prepare the request object. However the response will be asynchronous:
524
527
* a successful request will return `200` status code and `ok` as response body. Make sure to setup the [event notifications](https://docs.adyen.com/point-of-sale/design-your-integration/notifications/event-notifications/)
525
528
* a request that fails will return `200` status code and the `TerminalApiResponse` as response body
526
529
```typescript
527
530
// Step 1: Require the parts of the module you want to use
528
-
const {Client, TerminalCloudAPI} from "@adyen/api-library";
531
+
const {Client, TerminalCloudAPI, EnvironmentEnum} from "@adyen/api-library";
0 commit comments