@blockchyp/blockchyp-ts 2.30.1 → 2.30.3
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 +30 -2
- package/_bundles/blockchyp.js +1406 -951
- package/_bundles/blockchyp.js.map +1 -1
- package/_bundles/blockchyp.min.js +1 -1
- package/_bundles/blockchyp.min.js.LICENSE.txt +1 -1
- package/_bundles/blockchyp.min.js.map +1 -1
- package/lib/src/client.d.ts +5 -1
- package/lib/src/client.js +6 -0
- package/lib/src/client.js.map +1 -1
- package/lib/src/models.d.ts +138 -115
- package/lib/src/models.js +123 -124
- package/lib/src/models.js.map +1 -1
- package/package.json +5 -2
- package/src/client.ts +8 -1
- package/src/models.ts +224 -186
package/README.md
CHANGED
|
@@ -96,12 +96,40 @@ const client = BlockChyp.newClient({
|
|
|
96
96
|
signingKey: '9c6a5e8e763df1c9256e3d72bd7f53dfbd07312938131c75b3bfd254da787947'
|
|
97
97
|
});
|
|
98
98
|
|
|
99
|
-
const request = new BlockChyp.
|
|
99
|
+
const request = new BlockChyp.SurchargeReviewRequest();
|
|
100
100
|
|
|
101
101
|
|
|
102
102
|
client.surchargeReview(request)
|
|
103
103
|
.then(function(httpResponse) {
|
|
104
|
-
const response: BlockChyp.
|
|
104
|
+
const response: BlockChyp.SurchargeReviewResponse = httpResponse.data;
|
|
105
|
+
console.log('Response: ' + JSON.stringify(response));
|
|
106
|
+
})
|
|
107
|
+
.catch(function (error: any) {
|
|
108
|
+
console.log(error);
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
#### Transient Key
|
|
114
|
+
|
|
115
|
+
Generates a short-lived API key scoped to terminal and payment operations.
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
```typescript
|
|
119
|
+
import * as BlockChyp from '@blockchyp/blockchyp-ts';
|
|
120
|
+
|
|
121
|
+
const client = BlockChyp.newClient({
|
|
122
|
+
apiKey: 'ZDSMMZLGRPBPRTJUBTAFBYZ33Q',
|
|
123
|
+
bearerToken: 'ZLBW5NR4U5PKD5PNP3ZP3OZS5U',
|
|
124
|
+
signingKey: '9c6a5e8e763df1c9256e3d72bd7f53dfbd07312938131c75b3bfd254da787947'
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
const request = new BlockChyp.TransientKeyRequest();
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
client.transientKey(request)
|
|
131
|
+
.then(function(httpResponse) {
|
|
132
|
+
const response: BlockChyp.TransientKeyResponse = httpResponse.data;
|
|
105
133
|
console.log('Response: ' + JSON.stringify(response));
|
|
106
134
|
})
|
|
107
135
|
.catch(function (error: any) {
|