@notabene/javascript-sdk 1.24.0 → 1.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +11 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -39,6 +39,14 @@ yarn add @notabene/javascript-sdk
39
39
 
40
40
  ## Usage
41
41
 
42
+ ### Authentication
43
+
44
+ Use the [customer token endpoint](https://devx.notabene.id/docs/customertoken) with your access token to receive a token with a customer's scope.
45
+
46
+ > ⚠️ **IMPORTANT** ⚠️
47
+ >
48
+ > When requesting the `customer token` you **must pass a unique `customerRef` per customer** for ownership proof reusability, otherwise you might encounter unwanted behavior.
49
+
42
50
  Create a new Notabene instance:
43
51
 
44
52
  ```js
@@ -266,9 +274,10 @@ Possible fields customization support:
266
274
  | ------------------------ | -------------- | ---------- | ------------------------------------------------------- |
267
275
  | `counterparty` | -- | ☑️ | Counterparty VASP or Wallet (destination or originator) |
268
276
  | `dateAndPlaceOfBirth` | ☑️ | -- | Recipient (or Sender) Date and Place of Birth |
269
- | `geographicAddress` | ☑️ | ☑️ | Recipient (or Sender) Address |
277
+ | `geographicAddress` | ☑️ | ☑️ | Recipient (or Sender) Address |
270
278
  | `name` | ☑️ | -- | Recipient (or Sender) Name |
271
- | `nationalIdentification` | ☑️ | --️ | Recipient (or Sender) National Identification |
279
+ | `nationalIdentification` | ☑️ | --️ | Recipient (or Sender) National Identification |
280
+ | `country` | ☑️ | ☑️ | Recipient (or Sender) Country of Residence (for natural person) / Country of Registration (for legal person) |
272
281
 
273
282
  **Field Options**
274
283
 
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "author": "Notabene <developers@notabene.id>",
10
10
  "license": "MIT",
11
- "version": "1.24.0",
11
+ "version": "1.27.0",
12
12
  "main": "dist/index.js",
13
13
  "packageManager": "yarn@3.2.2",
14
14
  "browserslist": "> 0.5%, last 2 versions, not dead",