@blockchyp/blockchyp-ts 2.25.0 → 2.26.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.25.0",
3
+ "version": "2.26.1",
4
4
  "description": "BlockChyp Typescript Client",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
package/src/models.ts CHANGED
@@ -2016,6 +2016,26 @@ export class CustomerToken {
2016
2016
  */
2017
2017
  bin: string | null = null;
2018
2018
 
2019
+ /**
2020
+ * The card postal code.
2021
+ */
2022
+ postalCode?: string;
2023
+
2024
+ /**
2025
+ * The card address.
2026
+ */
2027
+ address?: string;
2028
+
2029
+ /**
2030
+ * The card country.
2031
+ */
2032
+ country?: string;
2033
+
2034
+ /**
2035
+ * The card holder name.
2036
+ */
2037
+ cardHolderName?: string;
2038
+
2019
2039
  /**
2020
2040
  * Models customer records associated with a payment token.
2021
2041
  */
@@ -2034,6 +2054,10 @@ export class CustomerToken {
2034
2054
  routingNumber: string | null = null,
2035
2055
  tokenHash: string | null = null,
2036
2056
  bin: string | null = null,
2057
+ postalCode: string | undefined = undefined,
2058
+ address: string | undefined = undefined,
2059
+ country: string | undefined = undefined,
2060
+ cardHolderName: string | undefined = undefined,
2037
2061
  customers: Customer[] | null = null,
2038
2062
  ) {
2039
2063
  this.token = token;
@@ -2047,6 +2071,10 @@ export class CustomerToken {
2047
2071
  this.routingNumber = routingNumber;
2048
2072
  this.tokenHash = tokenHash;
2049
2073
  this.bin = bin;
2074
+ this.postalCode = postalCode;
2075
+ this.address = address;
2076
+ this.country = country;
2077
+ this.cardHolderName = cardHolderName;
2050
2078
  this.customers = customers;
2051
2079
  }
2052
2080
  }
@@ -2292,6 +2320,11 @@ export class AuthorizationRequest {
2292
2320
  */
2293
2321
  postalCode?: string;
2294
2322
 
2323
+ /**
2324
+ * The cardholder country.
2325
+ */
2326
+ country?: string;
2327
+
2295
2328
  /**
2296
2329
  * That the payment entry method is a manual keyed transaction. If this is true, no other
2297
2330
  * payment method will be accepted.
@@ -2561,6 +2594,21 @@ export class AuthorizationRequest {
2561
2594
  */
2562
2595
  cardMetadataLookup?: boolean;
2563
2596
 
2597
+ /**
2598
+ * The shipping cost associated with the transaction
2599
+ */
2600
+ shippingAmount?: string;
2601
+
2602
+ /**
2603
+ * The processor ID associated with the transaction
2604
+ */
2605
+ processorId?: string;
2606
+
2607
+ /**
2608
+ * The external customer ID associated with the transaction
2609
+ */
2610
+ externalCustomerId?: string;
2611
+
2564
2612
  // Constructor with default values for optional fields
2565
2613
  constructor(
2566
2614
  timeout: number | null = null,
@@ -2585,6 +2633,7 @@ export class AuthorizationRequest {
2585
2633
  cvv: string | undefined = undefined,
2586
2634
  address: string | undefined = undefined,
2587
2635
  postalCode: string | undefined = undefined,
2636
+ country: string | undefined = undefined,
2588
2637
  manualEntry: boolean = false,
2589
2638
  ksn: string | undefined = undefined,
2590
2639
  pinBlock: string | undefined = undefined,
@@ -2635,6 +2684,9 @@ export class AuthorizationRequest {
2635
2684
  healthcareTotal: string | undefined = undefined,
2636
2685
  ebtTotal: string | undefined = undefined,
2637
2686
  cardMetadataLookup: boolean = false,
2687
+ shippingAmount: string | undefined = undefined,
2688
+ processorId: string | undefined = undefined,
2689
+ externalCustomerId: string | undefined = undefined,
2638
2690
  ) {
2639
2691
  this.timeout = timeout;
2640
2692
  this.test = test;
@@ -2658,6 +2710,7 @@ export class AuthorizationRequest {
2658
2710
  this.cvv = cvv;
2659
2711
  this.address = address;
2660
2712
  this.postalCode = postalCode;
2713
+ this.country = country;
2661
2714
  this.manualEntry = manualEntry;
2662
2715
  this.ksn = ksn;
2663
2716
  this.pinBlock = pinBlock;
@@ -2708,6 +2761,9 @@ export class AuthorizationRequest {
2708
2761
  this.healthcareTotal = healthcareTotal;
2709
2762
  this.ebtTotal = ebtTotal;
2710
2763
  this.cardMetadataLookup = cardMetadataLookup;
2764
+ this.shippingAmount = shippingAmount;
2765
+ this.processorId = processorId;
2766
+ this.externalCustomerId = externalCustomerId;
2711
2767
  }
2712
2768
  }
2713
2769
 
@@ -2930,6 +2986,11 @@ export class CardMetadataRequest {
2930
2986
  */
2931
2987
  postalCode?: string;
2932
2988
 
2989
+ /**
2990
+ * The cardholder country.
2991
+ */
2992
+ country?: string;
2993
+
2933
2994
  /**
2934
2995
  * That the payment entry method is a manual keyed transaction. If this is true, no other
2935
2996
  * payment method will be accepted.
@@ -2996,6 +3057,7 @@ export class CardMetadataRequest {
2996
3057
  cvv: string | undefined = undefined,
2997
3058
  address: string | undefined = undefined,
2998
3059
  postalCode: string | undefined = undefined,
3060
+ country: string | undefined = undefined,
2999
3061
  manualEntry: boolean = false,
3000
3062
  ksn: string | undefined = undefined,
3001
3063
  pinBlock: string | undefined = undefined,
@@ -3027,6 +3089,7 @@ export class CardMetadataRequest {
3027
3089
  this.cvv = cvv;
3028
3090
  this.address = address;
3029
3091
  this.postalCode = postalCode;
3092
+ this.country = country;
3030
3093
  this.manualEntry = manualEntry;
3031
3094
  this.ksn = ksn;
3032
3095
  this.pinBlock = pinBlock;
@@ -3116,6 +3179,21 @@ export class CardMetadataResponse {
3116
3179
  */
3117
3180
  expYear?: string;
3118
3181
 
3182
+ /**
3183
+ * The card postal code.
3184
+ */
3185
+ postalCode?: string;
3186
+
3187
+ /**
3188
+ * The card address.
3189
+ */
3190
+ address?: string;
3191
+
3192
+ /**
3193
+ * The card country.
3194
+ */
3195
+ country?: string;
3196
+
3119
3197
  /**
3120
3198
  * Address verification results if address information was submitted.
3121
3199
  */
@@ -3162,6 +3240,9 @@ export class CardMetadataResponse {
3162
3240
  cardHolder: string | undefined = undefined,
3163
3241
  expMonth: string | undefined = undefined,
3164
3242
  expYear: string | undefined = undefined,
3243
+ postalCode: string | undefined = undefined,
3244
+ address: string | undefined = undefined,
3245
+ country: string | undefined = undefined,
3165
3246
  avsResponse: AVSResponse | null = null,
3166
3247
  cvvResponse: string | undefined = undefined,
3167
3248
  receiptSuggestions: ReceiptSuggestions | null = null,
@@ -3183,6 +3264,9 @@ export class CardMetadataResponse {
3183
3264
  this.cardHolder = cardHolder;
3184
3265
  this.expMonth = expMonth;
3185
3266
  this.expYear = expYear;
3267
+ this.postalCode = postalCode;
3268
+ this.address = address;
3269
+ this.country = country;
3186
3270
  this.avsResponse = avsResponse;
3187
3271
  this.cvvResponse = cvvResponse;
3188
3272
  this.receiptSuggestions = receiptSuggestions;
@@ -3316,6 +3400,11 @@ export class BalanceRequest {
3316
3400
  */
3317
3401
  postalCode?: string;
3318
3402
 
3403
+ /**
3404
+ * The cardholder country.
3405
+ */
3406
+ country?: string;
3407
+
3319
3408
  /**
3320
3409
  * That the payment entry method is a manual keyed transaction. If this is true, no other
3321
3410
  * payment method will be accepted.
@@ -3377,6 +3466,7 @@ export class BalanceRequest {
3377
3466
  cvv: string | undefined = undefined,
3378
3467
  address: string | undefined = undefined,
3379
3468
  postalCode: string | undefined = undefined,
3469
+ country: string | undefined = undefined,
3380
3470
  manualEntry: boolean = false,
3381
3471
  ksn: string | undefined = undefined,
3382
3472
  pinBlock: string | undefined = undefined,
@@ -3407,6 +3497,7 @@ export class BalanceRequest {
3407
3497
  this.cvv = cvv;
3408
3498
  this.address = address;
3409
3499
  this.postalCode = postalCode;
3500
+ this.country = country;
3410
3501
  this.manualEntry = manualEntry;
3411
3502
  this.ksn = ksn;
3412
3503
  this.pinBlock = pinBlock;
@@ -3543,6 +3634,21 @@ export class BalanceResponse {
3543
3634
  */
3544
3635
  expYear?: string;
3545
3636
 
3637
+ /**
3638
+ * The card postal code.
3639
+ */
3640
+ postalCode?: string;
3641
+
3642
+ /**
3643
+ * The card address.
3644
+ */
3645
+ address?: string;
3646
+
3647
+ /**
3648
+ * The card country.
3649
+ */
3650
+ country?: string;
3651
+
3546
3652
  /**
3547
3653
  * Address verification results if address information was submitted.
3548
3654
  */
@@ -3598,6 +3704,9 @@ export class BalanceResponse {
3598
3704
  cardHolder: string | undefined = undefined,
3599
3705
  expMonth: string | undefined = undefined,
3600
3706
  expYear: string | undefined = undefined,
3707
+ postalCode: string | undefined = undefined,
3708
+ address: string | undefined = undefined,
3709
+ country: string | undefined = undefined,
3601
3710
  avsResponse: AVSResponse | null = null,
3602
3711
  cvvResponse: string | undefined = undefined,
3603
3712
  receiptSuggestions: ReceiptSuggestions | null = null,
@@ -3628,6 +3737,9 @@ export class BalanceResponse {
3628
3737
  this.cardHolder = cardHolder;
3629
3738
  this.expMonth = expMonth;
3630
3739
  this.expYear = expYear;
3740
+ this.postalCode = postalCode;
3741
+ this.address = address;
3742
+ this.country = country;
3631
3743
  this.avsResponse = avsResponse;
3632
3744
  this.cvvResponse = cvvResponse;
3633
3745
  this.receiptSuggestions = receiptSuggestions;
@@ -3761,6 +3873,11 @@ export class RefundRequest {
3761
3873
  */
3762
3874
  postalCode?: string;
3763
3875
 
3876
+ /**
3877
+ * The cardholder country.
3878
+ */
3879
+ country?: string;
3880
+
3764
3881
  /**
3765
3882
  * That the payment entry method is a manual keyed transaction. If this is true, no other
3766
3883
  * payment method will be accepted.
@@ -3923,6 +4040,7 @@ export class RefundRequest {
3923
4040
  cvv: string | undefined = undefined,
3924
4041
  address: string | undefined = undefined,
3925
4042
  postalCode: string | undefined = undefined,
4043
+ country: string | undefined = undefined,
3926
4044
  manualEntry: boolean = false,
3927
4045
  ksn: string | undefined = undefined,
3928
4046
  pinBlock: string | undefined = undefined,
@@ -3972,6 +4090,7 @@ export class RefundRequest {
3972
4090
  this.cvv = cvv;
3973
4091
  this.address = address;
3974
4092
  this.postalCode = postalCode;
4093
+ this.country = country;
3975
4094
  this.manualEntry = manualEntry;
3976
4095
  this.ksn = ksn;
3977
4096
  this.pinBlock = pinBlock;
@@ -4364,6 +4483,21 @@ export class CaptureResponse {
4364
4483
  */
4365
4484
  expYear?: string;
4366
4485
 
4486
+ /**
4487
+ * The card postal code.
4488
+ */
4489
+ postalCode?: string;
4490
+
4491
+ /**
4492
+ * The card address.
4493
+ */
4494
+ address?: string;
4495
+
4496
+ /**
4497
+ * The card country.
4498
+ */
4499
+ country?: string;
4500
+
4367
4501
  /**
4368
4502
  * Address verification results if address information was submitted.
4369
4503
  */
@@ -4428,6 +4562,9 @@ export class CaptureResponse {
4428
4562
  cardHolder: string | undefined = undefined,
4429
4563
  expMonth: string | undefined = undefined,
4430
4564
  expYear: string | undefined = undefined,
4565
+ postalCode: string | undefined = undefined,
4566
+ address: string | undefined = undefined,
4567
+ country: string | undefined = undefined,
4431
4568
  avsResponse: AVSResponse | null = null,
4432
4569
  cvvResponse: string | undefined = undefined,
4433
4570
  receiptSuggestions: ReceiptSuggestions | null = null,
@@ -4471,6 +4608,9 @@ export class CaptureResponse {
4471
4608
  this.cardHolder = cardHolder;
4472
4609
  this.expMonth = expMonth;
4473
4610
  this.expYear = expYear;
4611
+ this.postalCode = postalCode;
4612
+ this.address = address;
4613
+ this.country = country;
4474
4614
  this.avsResponse = avsResponse;
4475
4615
  this.cvvResponse = cvvResponse;
4476
4616
  this.receiptSuggestions = receiptSuggestions;
@@ -4721,6 +4861,21 @@ export class VoidResponse {
4721
4861
  */
4722
4862
  expYear?: string;
4723
4863
 
4864
+ /**
4865
+ * The card postal code.
4866
+ */
4867
+ postalCode?: string;
4868
+
4869
+ /**
4870
+ * The card address.
4871
+ */
4872
+ address?: string;
4873
+
4874
+ /**
4875
+ * The card country.
4876
+ */
4877
+ country?: string;
4878
+
4724
4879
  /**
4725
4880
  * Address verification results if address information was submitted.
4726
4881
  */
@@ -4779,6 +4934,9 @@ export class VoidResponse {
4779
4934
  cardHolder: string | undefined = undefined,
4780
4935
  expMonth: string | undefined = undefined,
4781
4936
  expYear: string | undefined = undefined,
4937
+ postalCode: string | undefined = undefined,
4938
+ address: string | undefined = undefined,
4939
+ country: string | undefined = undefined,
4782
4940
  avsResponse: AVSResponse | null = null,
4783
4941
  cvvResponse: string | undefined = undefined,
4784
4942
  receiptSuggestions: ReceiptSuggestions | null = null,
@@ -4812,6 +4970,9 @@ export class VoidResponse {
4812
4970
  this.cardHolder = cardHolder;
4813
4971
  this.expMonth = expMonth;
4814
4972
  this.expYear = expYear;
4973
+ this.postalCode = postalCode;
4974
+ this.address = address;
4975
+ this.country = country;
4815
4976
  this.avsResponse = avsResponse;
4816
4977
  this.cvvResponse = cvvResponse;
4817
4978
  this.receiptSuggestions = receiptSuggestions;
@@ -4945,6 +5106,11 @@ export class EnrollRequest {
4945
5106
  */
4946
5107
  postalCode?: string;
4947
5108
 
5109
+ /**
5110
+ * The cardholder country.
5111
+ */
5112
+ country?: string;
5113
+
4948
5114
  /**
4949
5115
  * That the payment entry method is a manual keyed transaction. If this is true, no other
4950
5116
  * payment method will be accepted.
@@ -5047,6 +5213,7 @@ export class EnrollRequest {
5047
5213
  cvv: string | undefined = undefined,
5048
5214
  address: string | undefined = undefined,
5049
5215
  postalCode: string | undefined = undefined,
5216
+ country: string | undefined = undefined,
5050
5217
  manualEntry: boolean = false,
5051
5218
  ksn: string | undefined = undefined,
5052
5219
  pinBlock: string | undefined = undefined,
@@ -5085,6 +5252,7 @@ export class EnrollRequest {
5085
5252
  this.cvv = cvv;
5086
5253
  this.address = address;
5087
5254
  this.postalCode = postalCode;
5255
+ this.country = country;
5088
5256
  this.manualEntry = manualEntry;
5089
5257
  this.ksn = ksn;
5090
5258
  this.pinBlock = pinBlock;
@@ -5245,6 +5413,21 @@ export class EnrollResponse {
5245
5413
  */
5246
5414
  expYear?: string;
5247
5415
 
5416
+ /**
5417
+ * The card postal code.
5418
+ */
5419
+ postalCode?: string;
5420
+
5421
+ /**
5422
+ * The card address.
5423
+ */
5424
+ address?: string;
5425
+
5426
+ /**
5427
+ * The card country.
5428
+ */
5429
+ country?: string;
5430
+
5248
5431
  /**
5249
5432
  * Address verification results if address information was submitted.
5250
5433
  */
@@ -5334,6 +5517,9 @@ export class EnrollResponse {
5334
5517
  cardHolder: string | undefined = undefined,
5335
5518
  expMonth: string | undefined = undefined,
5336
5519
  expYear: string | undefined = undefined,
5520
+ postalCode: string | undefined = undefined,
5521
+ address: string | undefined = undefined,
5522
+ country: string | undefined = undefined,
5337
5523
  avsResponse: AVSResponse | null = null,
5338
5524
  cvvResponse: string | undefined = undefined,
5339
5525
  receiptSuggestions: ReceiptSuggestions | null = null,
@@ -5373,6 +5559,9 @@ export class EnrollResponse {
5373
5559
  this.cardHolder = cardHolder;
5374
5560
  this.expMonth = expMonth;
5375
5561
  this.expYear = expYear;
5562
+ this.postalCode = postalCode;
5563
+ this.address = address;
5564
+ this.country = country;
5376
5565
  this.avsResponse = avsResponse;
5377
5566
  this.cvvResponse = cvvResponse;
5378
5567
  this.receiptSuggestions = receiptSuggestions;
@@ -6524,6 +6713,21 @@ export class AuthorizationResponse {
6524
6713
  */
6525
6714
  expYear?: string;
6526
6715
 
6716
+ /**
6717
+ * The card postal code.
6718
+ */
6719
+ postalCode?: string;
6720
+
6721
+ /**
6722
+ * The card address.
6723
+ */
6724
+ address?: string;
6725
+
6726
+ /**
6727
+ * The card country.
6728
+ */
6729
+ country?: string;
6730
+
6527
6731
  /**
6528
6732
  * Address verification results if address information was submitted.
6529
6733
  */
@@ -6624,6 +6828,9 @@ export class AuthorizationResponse {
6624
6828
  cardHolder: string | undefined = undefined,
6625
6829
  expMonth: string | undefined = undefined,
6626
6830
  expYear: string | undefined = undefined,
6831
+ postalCode: string | undefined = undefined,
6832
+ address: string | undefined = undefined,
6833
+ country: string | undefined = undefined,
6627
6834
  avsResponse: AVSResponse | null = null,
6628
6835
  cvvResponse: string | undefined = undefined,
6629
6836
  receiptSuggestions: ReceiptSuggestions | null = null,
@@ -6682,6 +6889,9 @@ export class AuthorizationResponse {
6682
6889
  this.cardHolder = cardHolder;
6683
6890
  this.expMonth = expMonth;
6684
6891
  this.expYear = expYear;
6892
+ this.postalCode = postalCode;
6893
+ this.address = address;
6894
+ this.country = country;
6685
6895
  this.avsResponse = avsResponse;
6686
6896
  this.cvvResponse = cvvResponse;
6687
6897
  this.receiptSuggestions = receiptSuggestions;
@@ -7220,6 +7430,21 @@ export class TransactionStatus {
7220
7430
  */
7221
7431
  expYear?: string;
7222
7432
 
7433
+ /**
7434
+ * The card postal code.
7435
+ */
7436
+ postalCode?: string;
7437
+
7438
+ /**
7439
+ * The card address.
7440
+ */
7441
+ address?: string;
7442
+
7443
+ /**
7444
+ * The card country.
7445
+ */
7446
+ country?: string;
7447
+
7223
7448
  /**
7224
7449
  * Address verification results if address information was submitted.
7225
7450
  */
@@ -7294,6 +7519,9 @@ export class TransactionStatus {
7294
7519
  cardHolder: string | undefined = undefined,
7295
7520
  expMonth: string | undefined = undefined,
7296
7521
  expYear: string | undefined = undefined,
7522
+ postalCode: string | undefined = undefined,
7523
+ address: string | undefined = undefined,
7524
+ country: string | undefined = undefined,
7297
7525
  avsResponse: AVSResponse | null = null,
7298
7526
  cvvResponse: string | undefined = undefined,
7299
7527
  receiptSuggestions: ReceiptSuggestions | null = null,
@@ -7339,6 +7567,9 @@ export class TransactionStatus {
7339
7567
  this.cardHolder = cardHolder;
7340
7568
  this.expMonth = expMonth;
7341
7569
  this.expYear = expYear;
7570
+ this.postalCode = postalCode;
7571
+ this.address = address;
7572
+ this.country = country;
7342
7573
  this.avsResponse = avsResponse;
7343
7574
  this.cvvResponse = cvvResponse;
7344
7575
  this.receiptSuggestions = receiptSuggestions;
@@ -18003,6 +18234,21 @@ export class PaymentMethodResponse {
18003
18234
  */
18004
18235
  expYear?: string;
18005
18236
 
18237
+ /**
18238
+ * The card postal code.
18239
+ */
18240
+ postalCode?: string;
18241
+
18242
+ /**
18243
+ * The card address.
18244
+ */
18245
+ address?: string;
18246
+
18247
+ /**
18248
+ * The card country.
18249
+ */
18250
+ country?: string;
18251
+
18006
18252
  /**
18007
18253
  * Address verification results if address information was submitted.
18008
18254
  */
@@ -18040,6 +18286,9 @@ export class PaymentMethodResponse {
18040
18286
  cardHolder: string | undefined = undefined,
18041
18287
  expMonth: string | undefined = undefined,
18042
18288
  expYear: string | undefined = undefined,
18289
+ postalCode: string | undefined = undefined,
18290
+ address: string | undefined = undefined,
18291
+ country: string | undefined = undefined,
18043
18292
  avsResponse: AVSResponse | null = null,
18044
18293
  cvvResponse: string | undefined = undefined,
18045
18294
  receiptSuggestions: ReceiptSuggestions | null = null,
@@ -18057,6 +18306,9 @@ export class PaymentMethodResponse {
18057
18306
  this.cardHolder = cardHolder;
18058
18307
  this.expMonth = expMonth;
18059
18308
  this.expYear = expYear;
18309
+ this.postalCode = postalCode;
18310
+ this.address = address;
18311
+ this.country = country;
18060
18312
  this.avsResponse = avsResponse;
18061
18313
  this.cvvResponse = cvvResponse;
18062
18314
  this.receiptSuggestions = receiptSuggestions;
@@ -18302,6 +18554,11 @@ export class PaymentMethod {
18302
18554
  */
18303
18555
  postalCode?: string;
18304
18556
 
18557
+ /**
18558
+ * The cardholder country.
18559
+ */
18560
+ country?: string;
18561
+
18305
18562
  /**
18306
18563
  * That the payment entry method is a manual keyed transaction. If this is true, no other
18307
18564
  * payment method will be accepted.
@@ -18340,6 +18597,7 @@ export class PaymentMethod {
18340
18597
  cvv: string | undefined = undefined,
18341
18598
  address: string | undefined = undefined,
18342
18599
  postalCode: string | undefined = undefined,
18600
+ country: string | undefined = undefined,
18343
18601
  manualEntry: boolean = false,
18344
18602
  ksn: string | undefined = undefined,
18345
18603
  pinBlock: string | undefined = undefined,
@@ -18357,6 +18615,7 @@ export class PaymentMethod {
18357
18615
  this.cvv = cvv;
18358
18616
  this.address = address;
18359
18617
  this.postalCode = postalCode;
18618
+ this.country = country;
18360
18619
  this.manualEntry = manualEntry;
18361
18620
  this.ksn = ksn;
18362
18621
  this.pinBlock = pinBlock;