@blockchyp/blockchyp-ts 2.22.0 → 2.24.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.22.0",
3
+ "version": "2.24.0",
4
4
  "description": "BlockChyp Typescript Client",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
package/src/models.ts CHANGED
@@ -1879,6 +1879,16 @@ export class CustomerToken {
1879
1879
  */
1880
1880
  routingNumber: string | null = null;
1881
1881
 
1882
+ /**
1883
+ * Token hash (generated with a static salt, Merchant ID, Registration Date and PAN.
1884
+ */
1885
+ tokenHash: string | null = null;
1886
+
1887
+ /**
1888
+ * Card bin.
1889
+ */
1890
+ bin: string | null = null;
1891
+
1882
1892
  /**
1883
1893
  * Models customer records associated with a payment token.
1884
1894
  */
@@ -1895,6 +1905,8 @@ export class CustomerToken {
1895
1905
  accountHolderType: string | null = null,
1896
1906
  bankName: string | null = null,
1897
1907
  routingNumber: string | null = null,
1908
+ tokenHash: string | null = null,
1909
+ bin: string | null = null,
1898
1910
  customers: Customer[] | null = null,
1899
1911
  ) {
1900
1912
  this.token = token;
@@ -1906,6 +1918,8 @@ export class CustomerToken {
1906
1918
  this.accountHolderType = accountHolderType;
1907
1919
  this.bankName = bankName;
1908
1920
  this.routingNumber = routingNumber;
1921
+ this.tokenHash = tokenHash;
1922
+ this.bin = bin;
1909
1923
  this.customers = customers;
1910
1924
  }
1911
1925
  }
@@ -2980,6 +2994,11 @@ export class CardMetadataResponse {
2980
2994
  */
2981
2995
  avsResponse: AVSResponse | null = null;
2982
2996
 
2997
+ /**
2998
+ * The CVV verification result if CVV was submitted.
2999
+ */
3000
+ cvvResponse?: string;
3001
+
2983
3002
  /**
2984
3003
  * Suggested receipt fields.
2985
3004
  */
@@ -3017,6 +3036,7 @@ export class CardMetadataResponse {
3017
3036
  expMonth: string | undefined = undefined,
3018
3037
  expYear: string | undefined = undefined,
3019
3038
  avsResponse: AVSResponse | null = null,
3039
+ cvvResponse: string | undefined = undefined,
3020
3040
  receiptSuggestions: ReceiptSuggestions | null = null,
3021
3041
  customer: Customer | undefined = undefined,
3022
3042
  customers: Customer[] | null = null,
@@ -3037,6 +3057,7 @@ export class CardMetadataResponse {
3037
3057
  this.expMonth = expMonth;
3038
3058
  this.expYear = expYear;
3039
3059
  this.avsResponse = avsResponse;
3060
+ this.cvvResponse = cvvResponse;
3040
3061
  this.receiptSuggestions = receiptSuggestions;
3041
3062
  this.customer = customer;
3042
3063
  this.customers = customers;
@@ -3400,6 +3421,11 @@ export class BalanceResponse {
3400
3421
  */
3401
3422
  avsResponse: AVSResponse | null = null;
3402
3423
 
3424
+ /**
3425
+ * The CVV verification result if CVV was submitted.
3426
+ */
3427
+ cvvResponse?: string;
3428
+
3403
3429
  /**
3404
3430
  * Suggested receipt fields.
3405
3431
  */
@@ -3446,6 +3472,7 @@ export class BalanceResponse {
3446
3472
  expMonth: string | undefined = undefined,
3447
3473
  expYear: string | undefined = undefined,
3448
3474
  avsResponse: AVSResponse | null = null,
3475
+ cvvResponse: string | undefined = undefined,
3449
3476
  receiptSuggestions: ReceiptSuggestions | null = null,
3450
3477
  customer: Customer | undefined = undefined,
3451
3478
  customers: Customer[] | null = null,
@@ -3475,6 +3502,7 @@ export class BalanceResponse {
3475
3502
  this.expMonth = expMonth;
3476
3503
  this.expYear = expYear;
3477
3504
  this.avsResponse = avsResponse;
3505
+ this.cvvResponse = cvvResponse;
3478
3506
  this.receiptSuggestions = receiptSuggestions;
3479
3507
  this.customer = customer;
3480
3508
  this.customers = customers;
@@ -4214,6 +4242,11 @@ export class CaptureResponse {
4214
4242
  */
4215
4243
  avsResponse: AVSResponse | null = null;
4216
4244
 
4245
+ /**
4246
+ * The CVV verification result if CVV was submitted.
4247
+ */
4248
+ cvvResponse?: string;
4249
+
4217
4250
  /**
4218
4251
  * Suggested receipt fields.
4219
4252
  */
@@ -4269,6 +4302,7 @@ export class CaptureResponse {
4269
4302
  expMonth: string | undefined = undefined,
4270
4303
  expYear: string | undefined = undefined,
4271
4304
  avsResponse: AVSResponse | null = null,
4305
+ cvvResponse: string | undefined = undefined,
4272
4306
  receiptSuggestions: ReceiptSuggestions | null = null,
4273
4307
  customer: Customer | undefined = undefined,
4274
4308
  customers: Customer[] | null = null,
@@ -4311,6 +4345,7 @@ export class CaptureResponse {
4311
4345
  this.expMonth = expMonth;
4312
4346
  this.expYear = expYear;
4313
4347
  this.avsResponse = avsResponse;
4348
+ this.cvvResponse = cvvResponse;
4314
4349
  this.receiptSuggestions = receiptSuggestions;
4315
4350
  this.customer = customer;
4316
4351
  this.customers = customers;
@@ -4564,6 +4599,11 @@ export class VoidResponse {
4564
4599
  */
4565
4600
  avsResponse: AVSResponse | null = null;
4566
4601
 
4602
+ /**
4603
+ * The CVV verification result if CVV was submitted.
4604
+ */
4605
+ cvvResponse?: string;
4606
+
4567
4607
  /**
4568
4608
  * Suggested receipt fields.
4569
4609
  */
@@ -4613,6 +4653,7 @@ export class VoidResponse {
4613
4653
  expMonth: string | undefined = undefined,
4614
4654
  expYear: string | undefined = undefined,
4615
4655
  avsResponse: AVSResponse | null = null,
4656
+ cvvResponse: string | undefined = undefined,
4616
4657
  receiptSuggestions: ReceiptSuggestions | null = null,
4617
4658
  customer: Customer | undefined = undefined,
4618
4659
  customers: Customer[] | null = null,
@@ -4645,6 +4686,7 @@ export class VoidResponse {
4645
4686
  this.expMonth = expMonth;
4646
4687
  this.expYear = expYear;
4647
4688
  this.avsResponse = avsResponse;
4689
+ this.cvvResponse = cvvResponse;
4648
4690
  this.receiptSuggestions = receiptSuggestions;
4649
4691
  this.customer = customer;
4650
4692
  this.customers = customers;
@@ -5081,6 +5123,11 @@ export class EnrollResponse {
5081
5123
  */
5082
5124
  avsResponse: AVSResponse | null = null;
5083
5125
 
5126
+ /**
5127
+ * The CVV verification result if CVV was submitted.
5128
+ */
5129
+ cvvResponse?: string;
5130
+
5084
5131
  /**
5085
5132
  * Suggested receipt fields.
5086
5133
  */
@@ -5121,6 +5168,17 @@ export class EnrollResponse {
5121
5168
  */
5122
5169
  bankName?: string;
5123
5170
 
5171
+ /**
5172
+ * The token hash (generated with a static salt, Merchant ID, Registration Date and
5173
+ * PAN).
5174
+ */
5175
+ tokenHash?: string;
5176
+
5177
+ /**
5178
+ * The first 8 digits of the card aka the BIN.
5179
+ */
5180
+ bin?: string;
5181
+
5124
5182
  // Constructor with default values for optional fields
5125
5183
  constructor(
5126
5184
  success: boolean | null = null,
@@ -5150,6 +5208,7 @@ export class EnrollResponse {
5150
5208
  expMonth: string | undefined = undefined,
5151
5209
  expYear: string | undefined = undefined,
5152
5210
  avsResponse: AVSResponse | null = null,
5211
+ cvvResponse: string | undefined = undefined,
5153
5212
  receiptSuggestions: ReceiptSuggestions | null = null,
5154
5213
  customer: Customer | undefined = undefined,
5155
5214
  customers: Customer[] | null = null,
@@ -5158,6 +5217,8 @@ export class EnrollResponse {
5158
5217
  accountType: string | undefined = undefined,
5159
5218
  accountHolderType: string | undefined = undefined,
5160
5219
  bankName: string | undefined = undefined,
5220
+ tokenHash: string | undefined = undefined,
5221
+ bin: string | undefined = undefined,
5161
5222
  ) {
5162
5223
  this.success = success;
5163
5224
  this.error = error;
@@ -5186,6 +5247,7 @@ export class EnrollResponse {
5186
5247
  this.expMonth = expMonth;
5187
5248
  this.expYear = expYear;
5188
5249
  this.avsResponse = avsResponse;
5250
+ this.cvvResponse = cvvResponse;
5189
5251
  this.receiptSuggestions = receiptSuggestions;
5190
5252
  this.customer = customer;
5191
5253
  this.customers = customers;
@@ -5194,6 +5256,8 @@ export class EnrollResponse {
5194
5256
  this.accountType = accountType;
5195
5257
  this.accountHolderType = accountHolderType;
5196
5258
  this.bankName = bankName;
5259
+ this.tokenHash = tokenHash;
5260
+ this.bin = bin;
5197
5261
  }
5198
5262
  }
5199
5263
 
@@ -6338,6 +6402,11 @@ export class AuthorizationResponse {
6338
6402
  */
6339
6403
  avsResponse: AVSResponse | null = null;
6340
6404
 
6405
+ /**
6406
+ * The CVV verification result if CVV was submitted.
6407
+ */
6408
+ cvvResponse?: string;
6409
+
6341
6410
  /**
6342
6411
  * Suggested receipt fields.
6343
6412
  */
@@ -6429,6 +6498,7 @@ export class AuthorizationResponse {
6429
6498
  expMonth: string | undefined = undefined,
6430
6499
  expYear: string | undefined = undefined,
6431
6500
  avsResponse: AVSResponse | null = null,
6501
+ cvvResponse: string | undefined = undefined,
6432
6502
  receiptSuggestions: ReceiptSuggestions | null = null,
6433
6503
  customer: Customer | undefined = undefined,
6434
6504
  customers: Customer[] | null = null,
@@ -6486,6 +6556,7 @@ export class AuthorizationResponse {
6486
6556
  this.expMonth = expMonth;
6487
6557
  this.expYear = expYear;
6488
6558
  this.avsResponse = avsResponse;
6559
+ this.cvvResponse = cvvResponse;
6489
6560
  this.receiptSuggestions = receiptSuggestions;
6490
6561
  this.customer = customer;
6491
6562
  this.customers = customers;
@@ -7027,6 +7098,11 @@ export class TransactionStatus {
7027
7098
  */
7028
7099
  avsResponse: AVSResponse | null = null;
7029
7100
 
7101
+ /**
7102
+ * The CVV verification result if CVV was submitted.
7103
+ */
7104
+ cvvResponse?: string;
7105
+
7030
7106
  /**
7031
7107
  * Suggested receipt fields.
7032
7108
  */
@@ -7092,6 +7168,7 @@ export class TransactionStatus {
7092
7168
  expMonth: string | undefined = undefined,
7093
7169
  expYear: string | undefined = undefined,
7094
7170
  avsResponse: AVSResponse | null = null,
7171
+ cvvResponse: string | undefined = undefined,
7095
7172
  receiptSuggestions: ReceiptSuggestions | null = null,
7096
7173
  customer: Customer | undefined = undefined,
7097
7174
  customers: Customer[] | null = null,
@@ -7136,6 +7213,7 @@ export class TransactionStatus {
7136
7213
  this.expMonth = expMonth;
7137
7214
  this.expYear = expYear;
7138
7215
  this.avsResponse = avsResponse;
7216
+ this.cvvResponse = cvvResponse;
7139
7217
  this.receiptSuggestions = receiptSuggestions;
7140
7218
  this.customer = customer;
7141
7219
  this.customers = customers;
@@ -10015,6 +10093,32 @@ export class MerchantProfile {
10015
10093
  */
10016
10094
  passthroughSurchargeEnabled: boolean | null = null;
10017
10095
 
10096
+ /**
10097
+ * That CVV verification is enabled for manually entered transactions.
10098
+ */
10099
+ cvvVerificationEnabled: boolean | null = null;
10100
+
10101
+ /**
10102
+ * That CVV mismatch (N) responses should be declined.
10103
+ */
10104
+ cvvVerificationNEnabled: boolean | null = null;
10105
+
10106
+ /**
10107
+ * That CVV not processed (P) responses should be declined.
10108
+ */
10109
+ cvvVerificationPEnabled: boolean | null = null;
10110
+
10111
+ /**
10112
+ * That CVV should be on card but is not indicated (S) responses should be declined.
10113
+ */
10114
+ cvvVerificationSEnabled: boolean | null = null;
10115
+
10116
+ /**
10117
+ * That issuer not certified or has not provided encryption key (U) responses should be
10118
+ * declined.
10119
+ */
10120
+ cvvVerificationUEnabled: boolean | null = null;
10121
+
10018
10122
  // Constructor with default values for optional fields
10019
10123
  constructor(
10020
10124
  timeout: number | null = null,
@@ -10071,6 +10175,11 @@ export class MerchantProfile {
10071
10175
  gatewayOnly: boolean | null = null,
10072
10176
  bankAccounts: BankAccount[] | null = null,
10073
10177
  passthroughSurchargeEnabled: boolean | null = null,
10178
+ cvvVerificationEnabled: boolean | null = null,
10179
+ cvvVerificationNEnabled: boolean | null = null,
10180
+ cvvVerificationPEnabled: boolean | null = null,
10181
+ cvvVerificationSEnabled: boolean | null = null,
10182
+ cvvVerificationUEnabled: boolean | null = null,
10074
10183
  ) {
10075
10184
  this.timeout = timeout;
10076
10185
  this.test = test;
@@ -10126,6 +10235,11 @@ export class MerchantProfile {
10126
10235
  this.gatewayOnly = gatewayOnly;
10127
10236
  this.bankAccounts = bankAccounts;
10128
10237
  this.passthroughSurchargeEnabled = passthroughSurchargeEnabled;
10238
+ this.cvvVerificationEnabled = cvvVerificationEnabled;
10239
+ this.cvvVerificationNEnabled = cvvVerificationNEnabled;
10240
+ this.cvvVerificationPEnabled = cvvVerificationPEnabled;
10241
+ this.cvvVerificationSEnabled = cvvVerificationSEnabled;
10242
+ this.cvvVerificationUEnabled = cvvVerificationUEnabled;
10129
10243
  }
10130
10244
  }
10131
10245
 
@@ -10418,6 +10532,32 @@ export class MerchantProfileResponse {
10418
10532
  */
10419
10533
  passthroughSurchargeEnabled: boolean | null = null;
10420
10534
 
10535
+ /**
10536
+ * That CVV verification is enabled for manually entered transactions.
10537
+ */
10538
+ cvvVerificationEnabled: boolean | null = null;
10539
+
10540
+ /**
10541
+ * That CVV mismatch (N) responses should be declined.
10542
+ */
10543
+ cvvVerificationNEnabled: boolean | null = null;
10544
+
10545
+ /**
10546
+ * That CVV not processed (P) responses should be declined.
10547
+ */
10548
+ cvvVerificationPEnabled: boolean | null = null;
10549
+
10550
+ /**
10551
+ * That CVV should be on card but is not indicated (S) responses should be declined.
10552
+ */
10553
+ cvvVerificationSEnabled: boolean | null = null;
10554
+
10555
+ /**
10556
+ * That issuer not certified or has not provided encryption key (U) responses should be
10557
+ * declined.
10558
+ */
10559
+ cvvVerificationUEnabled: boolean | null = null;
10560
+
10421
10561
  // Constructor with default values for optional fields
10422
10562
  constructor(
10423
10563
  success: boolean | null = null,
@@ -10476,6 +10616,11 @@ export class MerchantProfileResponse {
10476
10616
  gatewayOnly: boolean | null = null,
10477
10617
  bankAccounts: BankAccount[] | null = null,
10478
10618
  passthroughSurchargeEnabled: boolean | null = null,
10619
+ cvvVerificationEnabled: boolean | null = null,
10620
+ cvvVerificationNEnabled: boolean | null = null,
10621
+ cvvVerificationPEnabled: boolean | null = null,
10622
+ cvvVerificationSEnabled: boolean | null = null,
10623
+ cvvVerificationUEnabled: boolean | null = null,
10479
10624
  ) {
10480
10625
  this.success = success;
10481
10626
  this.error = error;
@@ -10533,6 +10678,11 @@ export class MerchantProfileResponse {
10533
10678
  this.gatewayOnly = gatewayOnly;
10534
10679
  this.bankAccounts = bankAccounts;
10535
10680
  this.passthroughSurchargeEnabled = passthroughSurchargeEnabled;
10681
+ this.cvvVerificationEnabled = cvvVerificationEnabled;
10682
+ this.cvvVerificationNEnabled = cvvVerificationNEnabled;
10683
+ this.cvvVerificationPEnabled = cvvVerificationPEnabled;
10684
+ this.cvvVerificationSEnabled = cvvVerificationSEnabled;
10685
+ this.cvvVerificationUEnabled = cvvVerificationUEnabled;
10536
10686
  }
10537
10687
  }
10538
10688
 
@@ -17653,6 +17803,11 @@ export class PaymentMethodResponse {
17653
17803
  */
17654
17804
  avsResponse: AVSResponse | null = null;
17655
17805
 
17806
+ /**
17807
+ * The CVV verification result if CVV was submitted.
17808
+ */
17809
+ cvvResponse?: string;
17810
+
17656
17811
  /**
17657
17812
  * Suggested receipt fields.
17658
17813
  */
@@ -17681,6 +17836,7 @@ export class PaymentMethodResponse {
17681
17836
  expMonth: string | undefined = undefined,
17682
17837
  expYear: string | undefined = undefined,
17683
17838
  avsResponse: AVSResponse | null = null,
17839
+ cvvResponse: string | undefined = undefined,
17684
17840
  receiptSuggestions: ReceiptSuggestions | null = null,
17685
17841
  customer: Customer | undefined = undefined,
17686
17842
  customers: Customer[] | null = null,
@@ -17697,6 +17853,7 @@ export class PaymentMethodResponse {
17697
17853
  this.expMonth = expMonth;
17698
17854
  this.expYear = expYear;
17699
17855
  this.avsResponse = avsResponse;
17856
+ this.cvvResponse = cvvResponse;
17700
17857
  this.receiptSuggestions = receiptSuggestions;
17701
17858
  this.customer = customer;
17702
17859
  this.customers = customers;