@blockchyp/blockchyp-ts 2.30.0 → 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 +1416 -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 +146 -115
- package/lib/src/models.js +133 -124
- package/lib/src/models.js.map +1 -1
- package/package.json +5 -2
- package/src/client.ts +8 -1
- package/src/models.ts +238 -186
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockchyp/blockchyp-ts",
|
|
3
|
-
"version": "2.30.
|
|
3
|
+
"version": "2.30.3",
|
|
4
4
|
"description": "BlockChyp Typescript Client",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"aes-js": "^3.1.1",
|
|
66
|
-
"axios": "^1.
|
|
66
|
+
"axios": "^1.15.0",
|
|
67
67
|
"base32": "^0.0.7",
|
|
68
68
|
"bn.js": "^4.12.2",
|
|
69
69
|
"buffer": "^6.0.3",
|
|
@@ -74,5 +74,8 @@
|
|
|
74
74
|
"moment": "^2.22.2",
|
|
75
75
|
"stream-browserify": "^3.0.0",
|
|
76
76
|
"uuidv4": "^6.2.13"
|
|
77
|
+
},
|
|
78
|
+
"overrides": {
|
|
79
|
+
"follow-redirects": "^1.16.0"
|
|
77
80
|
}
|
|
78
81
|
}
|
package/src/client.ts
CHANGED
|
@@ -320,10 +320,17 @@ export class BlockChypClient {
|
|
|
320
320
|
/**
|
|
321
321
|
* Calculates surcharge information for a payment request.
|
|
322
322
|
*/
|
|
323
|
-
surchargeReview(request: Models.
|
|
323
|
+
surchargeReview(request: Models.SurchargeReviewRequest): Promise<AxiosResponse<Models.SurchargeReviewResponse>> {
|
|
324
324
|
return this._gatewayRequest('post', '/api/surcharge-review', request);
|
|
325
325
|
}
|
|
326
326
|
|
|
327
|
+
/**
|
|
328
|
+
* Generates a short-lived API key scoped to terminal and payment operations.
|
|
329
|
+
*/
|
|
330
|
+
transientKey(request: Models.TransientKeyRequest): Promise<AxiosResponse<Models.TransientKeyResponse>> {
|
|
331
|
+
return this._gatewayRequest('post', '/api/transient-credentials', request);
|
|
332
|
+
}
|
|
333
|
+
|
|
327
334
|
/**
|
|
328
335
|
* Captures a preauthorization.
|
|
329
336
|
*/
|