@notabene/javascript-sdk 2.14.0 → 2.14.1-next.2
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.
- package/README.md +4 -4
- package/dist/cjs/notabene.cjs +23 -1
- package/dist/cjs/notabene.d.ts +75 -51
- package/dist/cjs/package.json +1 -1
- package/dist/esm/notabene.d.ts +75 -51
- package/dist/esm/notabene.js +12115 -449
- package/dist/esm/package.json +1 -1
- package/dist/notabene.d.ts +75 -51
- package/dist/notabene.js +12115 -449
- package/package.json +1 -1
- package/src/responseTransformer/__tests__/transformer.test.ts +638 -0
- package/src/responseTransformer/__tests__/utils.test.ts +35 -0
- package/src/responseTransformer/mappers.ts +94 -24
- package/src/responseTransformer/transformer.ts +121 -73
- package/src/responseTransformer/types.ts +12 -1
- package/src/responseTransformer/utils.ts +37 -1
- package/src/types.ts +1 -3
package/README.md
CHANGED
|
@@ -410,7 +410,6 @@ const deposit = notabene.createDepositAssist(
|
|
|
410
410
|
asset: 'ETH',
|
|
411
411
|
amountDecimal: 1.23,
|
|
412
412
|
source: '0x...',
|
|
413
|
-
destination: '0x...',
|
|
414
413
|
transactionId: "UUID"
|
|
415
414
|
},
|
|
416
415
|
{
|
|
@@ -423,7 +422,6 @@ const deposit = notabene.createDepositAssist(
|
|
|
423
422
|
|
|
424
423
|
- `asset`: The cryptocurrency or token being transferred. See [Asset Specification](#asset-specification)
|
|
425
424
|
- `source`: The source or blockchain address for the deposit. See [Origin](#origin)
|
|
426
|
-
- `destination`: The destination or blockchain address for the deposit. See [Destination](#destination)
|
|
427
425
|
- `amountDecimal`: Optional amount to deposit in decimal format. See [Transaction Amount](#transaction-amount)
|
|
428
426
|
- `transactionId`: Optional transactionId of a Notabene transaction. Will be returned with the payload to assist updating the Transaction
|
|
429
427
|
|
|
@@ -794,7 +792,6 @@ const options: TransactionOptions = {
|
|
|
794
792
|
nationalIdentification: false,
|
|
795
793
|
countryOfRegistration: true,
|
|
796
794
|
},
|
|
797
|
-
hide: [ValidationSections.ASSET, ValidationSections.DESTINATION], // Don't show specific sections of component
|
|
798
795
|
},
|
|
799
796
|
vasps: {
|
|
800
797
|
addUnknown: true, // Allow users to add a missing VASP - Defaults to false
|
|
@@ -810,8 +807,11 @@ const options: TransactionOptions = {
|
|
|
810
807
|
PersonType.NATURAL, // JS: 'natural'
|
|
811
808
|
PersonType.SELF, // JS: 'self'
|
|
812
809
|
],
|
|
813
|
-
}
|
|
810
|
+
},
|
|
811
|
+
hide: [ValidationSections.ASSET, ValidationSections.DESTINATION], // Don't show specific sections of component
|
|
812
|
+
autoSubmit: false // Automatically sends the complete event and hides the complete button - Default false
|
|
814
813
|
};
|
|
814
|
+
|
|
815
815
|
const withdrawal = notabene.createWithdrawalAssist(tx, options);
|
|
816
816
|
```
|
|
817
817
|
|