@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 CHANGED
@@ -96,12 +96,40 @@ const client = BlockChyp.newClient({
96
96
  signingKey: '9c6a5e8e763df1c9256e3d72bd7f53dfbd07312938131c75b3bfd254da787947'
97
97
  });
98
98
 
99
- const request = new BlockChyp.PricingRequest();
99
+ const request = new BlockChyp.SurchargeReviewRequest();
100
100
 
101
101
 
102
102
  client.surchargeReview(request)
103
103
  .then(function(httpResponse) {
104
- const response: BlockChyp.PricingResponse = httpResponse.data;
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) {