@blockchyp/blockchyp-ts 2.18.8 → 2.20.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockchyp/blockchyp-ts",
3
- "version": "2.18.8",
3
+ "version": "2.20.1",
4
4
  "description": "BlockChyp Typescript Client",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
package/src/client.ts CHANGED
@@ -203,6 +203,13 @@ export class BlockChypClient {
203
203
  return this.routeTerminalRequest('post', request, '/api/enroll', '/api/enroll');
204
204
  }
205
205
 
206
+ /**
207
+ * Retrieves card metadata.
208
+ */
209
+ async cardMetadata(request: Models.CardMetadataRequest): Promise<AxiosResponse<Models.CardMetadataResponse>> {
210
+ return this.routeTerminalRequest('post', request, '/api/card-metadata', '/api/card-metadata');
211
+ }
212
+
206
213
  /**
207
214
  * Activates or recharges a gift card.
208
215
  */
@@ -522,6 +529,13 @@ export class BlockChypClient {
522
529
  return this._dashboardRequest('post', '/api/generate-merchant-creds', request);
523
530
  }
524
531
 
532
+ /**
533
+ * Submits and application to add a new merchant account.
534
+ */
535
+ submitApplication(request: Models.SubmitApplicationRequest): Promise<AxiosResponse<Models.Acknowledgement>> {
536
+ return this._dashboardRequest('post', '/api/submit-application', request);
537
+ }
538
+
525
539
  /**
526
540
  * Adds a test merchant account.
527
541
  */
@@ -551,6 +565,13 @@ export class BlockChypClient {
551
565
  return this._dashboardRequest('post', '/api/invite-merchant-user', request);
552
566
  }
553
567
 
568
+ /**
569
+ * Adds a live gateway merchant account.
570
+ */
571
+ addGatewayMerchant(request: Models.AddGatewayMerchantRequest): Promise<AxiosResponse<Models.MerchantProfileResponse>> {
572
+ return this._dashboardRequest('post', '/api/add-gateway-merchant', request);
573
+ }
574
+
554
575
  /**
555
576
  * Adds a test merchant account.
556
577
  */