@blockchyp/blockchyp-ts 2.18.8 → 2.19.0

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.19.0",
4
4
  "description": "BlockChyp Typescript Client",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
package/src/client.ts CHANGED
@@ -551,6 +551,13 @@ export class BlockChypClient {
551
551
  return this._dashboardRequest('post', '/api/invite-merchant-user', request);
552
552
  }
553
553
 
554
+ /**
555
+ * Adds a live gateway merchant account.
556
+ */
557
+ addGatewayMerchant(request: Models.AddGatewayMerchantRequest): Promise<AxiosResponse<Models.MerchantProfileResponse>> {
558
+ return this._dashboardRequest('post', '/api/add-gateway-merchant', request);
559
+ }
560
+
554
561
  /**
555
562
  * Adds a test merchant account.
556
563
  */
package/src/models.ts CHANGED
@@ -8701,6 +8701,38 @@ export class AddTestMerchantRequest {
8701
8701
  }
8702
8702
  }
8703
8703
 
8704
+ /**
8705
+ * Models basic information needed to create a gateway merchant.
8706
+ */
8707
+ export class AddGatewayMerchantRequest {
8708
+
8709
+ /**
8710
+ * Whether or not to route transaction to the test gateway.
8711
+ */
8712
+ test: boolean | null = null;
8713
+
8714
+ /**
8715
+ * The merchant profile to be boarded.
8716
+ */
8717
+ profile: MerchantProfile | null = null;
8718
+
8719
+ /**
8720
+ * The request timeout in seconds.
8721
+ */
8722
+ timeout: number | null = null;
8723
+
8724
+ // Constructor with default values for optional fields
8725
+ constructor(
8726
+ test: boolean | null = null,
8727
+ profile: MerchantProfile | null = null,
8728
+ timeout: number | null = null,
8729
+ ) {
8730
+ this.test = test;
8731
+ this.profile = profile;
8732
+ this.timeout = timeout;
8733
+ }
8734
+ }
8735
+
8704
8736
  /**
8705
8737
  * Models a request for information about the merchant profile.
8706
8738
  */
@@ -9117,6 +9149,11 @@ export class MerchantProfile {
9117
9149
  */
9118
9150
  merchantId: string | null = null;
9119
9151
 
9152
+ /**
9153
+ * The primary bank mid.
9154
+ */
9155
+ bankMid: string | null = null;
9156
+
9120
9157
  /**
9121
9158
  * The merchant's company name.
9122
9159
  */
@@ -9371,6 +9408,7 @@ export class MerchantProfile {
9371
9408
  timeout: number | null = null,
9372
9409
  test: boolean | null = null,
9373
9410
  merchantId: string | null = null,
9411
+ bankMid: string | null = null,
9374
9412
  companyName: string | null = null,
9375
9413
  dbaName: string | null = null,
9376
9414
  invoiceName: string | null = null,
@@ -9424,6 +9462,7 @@ export class MerchantProfile {
9424
9462
  this.timeout = timeout;
9425
9463
  this.test = test;
9426
9464
  this.merchantId = merchantId;
9465
+ this.bankMid = bankMid;
9427
9466
  this.companyName = companyName;
9428
9467
  this.dbaName = dbaName;
9429
9468
  this.invoiceName = invoiceName;
@@ -9506,6 +9545,11 @@ export class MerchantProfileResponse {
9506
9545
  */
9507
9546
  merchantId: string | null = null;
9508
9547
 
9548
+ /**
9549
+ * The primary bank mid.
9550
+ */
9551
+ bankMid: string | null = null;
9552
+
9509
9553
  /**
9510
9554
  * The merchant's company name.
9511
9555
  */
@@ -9762,6 +9806,7 @@ export class MerchantProfileResponse {
9762
9806
  responseDescription: string | null = null,
9763
9807
  test: boolean | null = null,
9764
9808
  merchantId: string | null = null,
9809
+ bankMid: string | null = null,
9765
9810
  companyName: string | null = null,
9766
9811
  dbaName: string | null = null,
9767
9812
  invoiceName: string | null = null,
@@ -9817,6 +9862,7 @@ export class MerchantProfileResponse {
9817
9862
  this.responseDescription = responseDescription;
9818
9863
  this.test = test;
9819
9864
  this.merchantId = merchantId;
9865
+ this.bankMid = bankMid;
9820
9866
  this.companyName = companyName;
9821
9867
  this.dbaName = dbaName;
9822
9868
  this.invoiceName = invoiceName;
@@ -11032,6 +11078,77 @@ export class MerchantPlatformsResponse {
11032
11078
  }
11033
11079
  }
11034
11080
 
11081
+ /**
11082
+ * Used to up platform configuration for gateway merchants.
11083
+ */
11084
+ export class UpdateMerchantPlatformRequest {
11085
+
11086
+ /**
11087
+ * The request timeout in seconds.
11088
+ */
11089
+ timeout: number | null = null;
11090
+
11091
+ /**
11092
+ * Whether or not to route transaction to the test gateway.
11093
+ */
11094
+ test: boolean | null = null;
11095
+
11096
+ /**
11097
+ * The merchant platform configuration.
11098
+ */
11099
+ platform: MerchantPlatform | null = null;
11100
+
11101
+ // Constructor with default values for optional fields
11102
+ constructor(
11103
+ timeout: number | null = null,
11104
+ test: boolean | null = null,
11105
+ platform: MerchantPlatform | null = null,
11106
+ ) {
11107
+ this.timeout = timeout;
11108
+ this.test = test;
11109
+ this.platform = platform;
11110
+ }
11111
+ }
11112
+
11113
+ /**
11114
+ * Echoes back the state of the current platform configuration after a change.
11115
+ */
11116
+ export class UpdateMerchantPlatformResponse {
11117
+
11118
+ /**
11119
+ * Whether or not the request succeeded.
11120
+ */
11121
+ success: boolean | null = null;
11122
+
11123
+ /**
11124
+ * The error, if an error occurred.
11125
+ */
11126
+ error: string | null = null;
11127
+
11128
+ /**
11129
+ * A narrative description of the transaction result.
11130
+ */
11131
+ responseDescription: string | null = null;
11132
+
11133
+ /**
11134
+ * The current platform configuration.
11135
+ */
11136
+ platform: MerchantPlatform | null = null;
11137
+
11138
+ // Constructor with default values for optional fields
11139
+ constructor(
11140
+ success: boolean | null = null,
11141
+ error: string | null = null,
11142
+ responseDescription: string | null = null,
11143
+ platform: MerchantPlatform | null = null,
11144
+ ) {
11145
+ this.success = success;
11146
+ this.error = error;
11147
+ this.responseDescription = responseDescription;
11148
+ this.platform = platform;
11149
+ }
11150
+ }
11151
+
11035
11152
  /**
11036
11153
  * Details about a merchant board platform configuration.
11037
11154
  */
@@ -15173,6 +15290,11 @@ export class MerchantCredentialGenerationRequest {
15173
15290
  */
15174
15291
  notes: string | null = null;
15175
15292
 
15293
+ /**
15294
+ * Type of credentials to generate, either API or TOKENIZING. Defaults to API.
15295
+ */
15296
+ credentialType: string | null = null;
15297
+
15176
15298
  // Constructor with default values for optional fields
15177
15299
  constructor(
15178
15300
  timeout: number | null = null,
@@ -15181,6 +15303,7 @@ export class MerchantCredentialGenerationRequest {
15181
15303
  deleteProtected: boolean | null = null,
15182
15304
  roles: string[] | null = null,
15183
15305
  notes: string | null = null,
15306
+ credentialType: string | null = null,
15184
15307
  ) {
15185
15308
  this.timeout = timeout;
15186
15309
  this.test = test;
@@ -15188,6 +15311,7 @@ export class MerchantCredentialGenerationRequest {
15188
15311
  this.deleteProtected = deleteProtected;
15189
15312
  this.roles = roles;
15190
15313
  this.notes = notes;
15314
+ this.credentialType = credentialType;
15191
15315
  }
15192
15316
  }
15193
15317
 
@@ -15226,6 +15350,11 @@ export class MerchantCredentialGenerationResponse {
15226
15350
  */
15227
15351
  signingKey: string | null = null;
15228
15352
 
15353
+ /**
15354
+ * The tokenizing key.
15355
+ */
15356
+ tokenizingKey: string | null = null;
15357
+
15229
15358
  // Constructor with default values for optional fields
15230
15359
  constructor(
15231
15360
  success: boolean | null = null,
@@ -15234,6 +15363,7 @@ export class MerchantCredentialGenerationResponse {
15234
15363
  apiKey: string | null = null,
15235
15364
  bearerToken: string | null = null,
15236
15365
  signingKey: string | null = null,
15366
+ tokenizingKey: string | null = null,
15237
15367
  ) {
15238
15368
  this.success = success;
15239
15369
  this.error = error;
@@ -15241,6 +15371,7 @@ export class MerchantCredentialGenerationResponse {
15241
15371
  this.apiKey = apiKey;
15242
15372
  this.bearerToken = bearerToken;
15243
15373
  this.signingKey = signingKey;
15374
+ this.tokenizingKey = tokenizingKey;
15244
15375
  }
15245
15376
  }
15246
15377