@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 +30 -2
- package/_bundles/blockchyp.js +1416 -951
- package/_bundles/blockchyp.js.map +1 -1
- package/_bundles/blockchyp.min.js +1 -1
- package/_bundles/blockchyp.min.js.LICENSE.txt +1 -1
- package/_bundles/blockchyp.min.js.map +1 -1
- package/lib/src/client.d.ts +5 -1
- package/lib/src/client.js +6 -0
- package/lib/src/client.js.map +1 -1
- package/lib/src/models.d.ts +146 -115
- package/lib/src/models.js +133 -124
- package/lib/src/models.js.map +1 -1
- package/package.json +5 -2
- package/src/client.ts +8 -1
- package/src/models.ts +238 -186
package/src/models.ts
CHANGED
|
@@ -2643,6 +2643,21 @@ export class AuthorizationRequest {
|
|
|
2643
2643
|
*/
|
|
2644
2644
|
orderDate?: Date;
|
|
2645
2645
|
|
|
2646
|
+
/**
|
|
2647
|
+
* The number of shipments the original authorization will be broken into.
|
|
2648
|
+
*/
|
|
2649
|
+
shipmentCount: number | null = null;
|
|
2650
|
+
|
|
2651
|
+
/**
|
|
2652
|
+
* Which shipment this particular capture is for.
|
|
2653
|
+
*/
|
|
2654
|
+
shipmentNumber: number | null = null;
|
|
2655
|
+
|
|
2656
|
+
/**
|
|
2657
|
+
* An optional field that can be used to pass through data to external partners.
|
|
2658
|
+
*/
|
|
2659
|
+
externalPartnerMetadata?: string;
|
|
2660
|
+
|
|
2646
2661
|
// Constructor with default values for optional fields
|
|
2647
2662
|
constructor(
|
|
2648
2663
|
timeout: number | null = null,
|
|
@@ -2727,6 +2742,9 @@ export class AuthorizationRequest {
|
|
|
2727
2742
|
shipFromPostalCode: string | undefined = undefined,
|
|
2728
2743
|
shipToPostalCode: string | undefined = undefined,
|
|
2729
2744
|
orderDate: Date | undefined = undefined,
|
|
2745
|
+
shipmentCount: number | null = null,
|
|
2746
|
+
shipmentNumber: number | null = null,
|
|
2747
|
+
externalPartnerMetadata: string | undefined = undefined,
|
|
2730
2748
|
) {
|
|
2731
2749
|
this.timeout = timeout;
|
|
2732
2750
|
this.test = test;
|
|
@@ -2810,6 +2828,9 @@ export class AuthorizationRequest {
|
|
|
2810
2828
|
this.shipFromPostalCode = shipFromPostalCode;
|
|
2811
2829
|
this.shipToPostalCode = shipToPostalCode;
|
|
2812
2830
|
this.orderDate = orderDate;
|
|
2831
|
+
this.shipmentCount = shipmentCount;
|
|
2832
|
+
this.shipmentNumber = shipmentNumber;
|
|
2833
|
+
this.externalPartnerMetadata = externalPartnerMetadata;
|
|
2813
2834
|
}
|
|
2814
2835
|
}
|
|
2815
2836
|
|
|
@@ -4577,6 +4598,11 @@ export class CaptureResponse {
|
|
|
4577
4598
|
*/
|
|
4578
4599
|
customers: Customer[] | null = null;
|
|
4579
4600
|
|
|
4601
|
+
/**
|
|
4602
|
+
* Whether enhanced data was passed for the transaction.
|
|
4603
|
+
*/
|
|
4604
|
+
enhancedDataPassed?: boolean;
|
|
4605
|
+
|
|
4580
4606
|
// Constructor with default values for optional fields
|
|
4581
4607
|
constructor(
|
|
4582
4608
|
success: boolean | null = null,
|
|
@@ -4624,6 +4650,7 @@ export class CaptureResponse {
|
|
|
4624
4650
|
receiptSuggestions: ReceiptSuggestions | null = null,
|
|
4625
4651
|
customer: Customer | undefined = undefined,
|
|
4626
4652
|
customers: Customer[] | null = null,
|
|
4653
|
+
enhancedDataPassed: boolean = false,
|
|
4627
4654
|
) {
|
|
4628
4655
|
this.success = success;
|
|
4629
4656
|
this.error = error;
|
|
@@ -4670,6 +4697,7 @@ export class CaptureResponse {
|
|
|
4670
4697
|
this.receiptSuggestions = receiptSuggestions;
|
|
4671
4698
|
this.customer = customer;
|
|
4672
4699
|
this.customers = customers;
|
|
4700
|
+
this.enhancedDataPassed = enhancedDataPassed;
|
|
4673
4701
|
}
|
|
4674
4702
|
}
|
|
4675
4703
|
|
|
@@ -6833,6 +6861,11 @@ export class AuthorizationResponse {
|
|
|
6833
6861
|
*/
|
|
6834
6862
|
cardMetadata?: CardMetadata;
|
|
6835
6863
|
|
|
6864
|
+
/**
|
|
6865
|
+
* Whether enhanced data was passed for the transaction.
|
|
6866
|
+
*/
|
|
6867
|
+
enhancedDataPassed?: boolean;
|
|
6868
|
+
|
|
6836
6869
|
// Constructor with default values for optional fields
|
|
6837
6870
|
constructor(
|
|
6838
6871
|
success: boolean | null = null,
|
|
@@ -6895,6 +6928,7 @@ export class AuthorizationResponse {
|
|
|
6895
6928
|
storeAndForward: boolean | null = null,
|
|
6896
6929
|
status: string | null = null,
|
|
6897
6930
|
cardMetadata: CardMetadata | undefined = undefined,
|
|
6931
|
+
enhancedDataPassed: boolean = false,
|
|
6898
6932
|
) {
|
|
6899
6933
|
this.success = success;
|
|
6900
6934
|
this.error = error;
|
|
@@ -6956,6 +6990,7 @@ export class AuthorizationResponse {
|
|
|
6956
6990
|
this.storeAndForward = storeAndForward;
|
|
6957
6991
|
this.status = status;
|
|
6958
6992
|
this.cardMetadata = cardMetadata;
|
|
6993
|
+
this.enhancedDataPassed = enhancedDataPassed;
|
|
6959
6994
|
}
|
|
6960
6995
|
}
|
|
6961
6996
|
|
|
@@ -17744,197 +17779,140 @@ export class SubmitApplicationRequest {
|
|
|
17744
17779
|
}
|
|
17745
17780
|
|
|
17746
17781
|
/**
|
|
17747
|
-
* Models
|
|
17748
|
-
*/
|
|
17749
|
-
export class StateCheckSettings {
|
|
17750
|
-
|
|
17751
|
-
/**
|
|
17752
|
-
* If state checks are enabled for the merchant.
|
|
17753
|
-
*/
|
|
17754
|
-
enabled: boolean | null = null;
|
|
17755
|
-
|
|
17756
|
-
/**
|
|
17757
|
-
* The list of states that are exempt from surcharges.
|
|
17758
|
-
*/
|
|
17759
|
-
surchargeExemptStates: string[] | null = null;
|
|
17760
|
-
|
|
17761
|
-
// Constructor with default values for optional fields
|
|
17762
|
-
constructor(
|
|
17763
|
-
enabled: boolean | null = null,
|
|
17764
|
-
surchargeExemptStates: string[] | null = null,
|
|
17765
|
-
) {
|
|
17766
|
-
this.enabled = enabled;
|
|
17767
|
-
this.surchargeExemptStates = surchargeExemptStates;
|
|
17768
|
-
}
|
|
17769
|
-
}
|
|
17770
|
-
|
|
17771
|
-
/**
|
|
17772
|
-
* Models merchant settings and configuration.
|
|
17773
|
-
*/
|
|
17774
|
-
export class PricingMerchantSettings {
|
|
17775
|
-
|
|
17776
|
-
/**
|
|
17777
|
-
* The merchant account identifier.
|
|
17778
|
-
*/
|
|
17779
|
-
account: string | null = null;
|
|
17780
|
-
|
|
17781
|
-
/**
|
|
17782
|
-
* The gateway identifier.
|
|
17783
|
-
*/
|
|
17784
|
-
gateway: string | null = null;
|
|
17785
|
-
|
|
17786
|
-
/**
|
|
17787
|
-
* Whether surcharging is enabled for the merchant.
|
|
17782
|
+
* Models a surcharge review request.
|
|
17788
17783
|
*/
|
|
17789
|
-
|
|
17784
|
+
export class SurchargeReviewRequest {
|
|
17790
17785
|
|
|
17791
17786
|
/**
|
|
17792
|
-
* The
|
|
17787
|
+
* The request timeout in seconds.
|
|
17793
17788
|
*/
|
|
17794
|
-
|
|
17789
|
+
timeout: number | null = null;
|
|
17795
17790
|
|
|
17796
17791
|
/**
|
|
17797
|
-
*
|
|
17792
|
+
* Whether or not to route transaction to the test gateway.
|
|
17798
17793
|
*/
|
|
17799
|
-
|
|
17794
|
+
test: boolean | null = null;
|
|
17800
17795
|
|
|
17801
17796
|
/**
|
|
17802
|
-
*
|
|
17797
|
+
* The card number for the pricing request.
|
|
17803
17798
|
*/
|
|
17804
|
-
|
|
17799
|
+
cardNumber?: string;
|
|
17805
17800
|
|
|
17806
17801
|
/**
|
|
17807
|
-
* The
|
|
17802
|
+
* The payment token.
|
|
17808
17803
|
*/
|
|
17809
|
-
|
|
17804
|
+
token?: string;
|
|
17810
17805
|
|
|
17811
17806
|
/**
|
|
17812
|
-
* The
|
|
17807
|
+
* The transaction amount.
|
|
17813
17808
|
*/
|
|
17814
|
-
|
|
17809
|
+
amount?: string;
|
|
17815
17810
|
|
|
17816
17811
|
/**
|
|
17817
|
-
*
|
|
17812
|
+
* The surcharge rate.
|
|
17818
17813
|
*/
|
|
17819
|
-
|
|
17814
|
+
surchargeRate?: string;
|
|
17820
17815
|
|
|
17821
17816
|
/**
|
|
17822
|
-
*
|
|
17817
|
+
* The debit transaction fee.
|
|
17823
17818
|
*/
|
|
17824
|
-
|
|
17825
|
-
|
|
17826
|
-
// Constructor with default values for optional fields
|
|
17827
|
-
constructor(
|
|
17828
|
-
account: string | null = null,
|
|
17829
|
-
gateway: string | null = null,
|
|
17830
|
-
surchargingEnabled: boolean | null = null,
|
|
17831
|
-
customSurchargePercent: number = 0,
|
|
17832
|
-
reducedRate: boolean = false,
|
|
17833
|
-
inversePricingEnabled: boolean = false,
|
|
17834
|
-
creditDiscountRate: number = 0,
|
|
17835
|
-
acquiringSolution: string | null = null,
|
|
17836
|
-
acceptDebit: boolean = false,
|
|
17837
|
-
stateCheckSettings: StateCheckSettings | undefined = undefined,
|
|
17838
|
-
) {
|
|
17839
|
-
this.account = account;
|
|
17840
|
-
this.gateway = gateway;
|
|
17841
|
-
this.surchargingEnabled = surchargingEnabled;
|
|
17842
|
-
this.customSurchargePercent = customSurchargePercent;
|
|
17843
|
-
this.reducedRate = reducedRate;
|
|
17844
|
-
this.inversePricingEnabled = inversePricingEnabled;
|
|
17845
|
-
this.creditDiscountRate = creditDiscountRate;
|
|
17846
|
-
this.acquiringSolution = acquiringSolution;
|
|
17847
|
-
this.acceptDebit = acceptDebit;
|
|
17848
|
-
this.stateCheckSettings = stateCheckSettings;
|
|
17849
|
-
}
|
|
17850
|
-
}
|
|
17851
|
-
|
|
17852
|
-
/**
|
|
17853
|
-
* Models the attributes for a pricing request.
|
|
17854
|
-
*/
|
|
17855
|
-
export class PricingRequestAttributes {
|
|
17819
|
+
debitTransFee?: string;
|
|
17856
17820
|
|
|
17857
17821
|
/**
|
|
17858
|
-
* The
|
|
17822
|
+
* The debit discount rate.
|
|
17859
17823
|
*/
|
|
17860
|
-
|
|
17824
|
+
debitDiscountRate?: string;
|
|
17861
17825
|
|
|
17862
17826
|
/**
|
|
17863
|
-
* The
|
|
17827
|
+
* The surcharge policy.
|
|
17864
17828
|
*/
|
|
17865
|
-
|
|
17829
|
+
surchargePolicy: string | null = null;
|
|
17866
17830
|
|
|
17867
17831
|
/**
|
|
17868
|
-
* The merchant
|
|
17832
|
+
* The list of excluded merchant states.
|
|
17869
17833
|
*/
|
|
17870
|
-
|
|
17834
|
+
excludedMerchantStates: string[] | null = null;
|
|
17871
17835
|
|
|
17872
17836
|
/**
|
|
17873
|
-
* The
|
|
17837
|
+
* The zip code.
|
|
17874
17838
|
*/
|
|
17875
|
-
|
|
17839
|
+
zip: string | null = null;
|
|
17876
17840
|
|
|
17877
17841
|
/**
|
|
17878
|
-
* The
|
|
17842
|
+
* The state or province.
|
|
17879
17843
|
*/
|
|
17880
|
-
|
|
17844
|
+
state: string | null = null;
|
|
17881
17845
|
|
|
17882
17846
|
/**
|
|
17883
|
-
*
|
|
17847
|
+
* If foreign cards are exempt.
|
|
17884
17848
|
*/
|
|
17885
|
-
|
|
17849
|
+
exemptForeignCards: boolean | null = null;
|
|
17886
17850
|
|
|
17887
17851
|
/**
|
|
17888
|
-
* The
|
|
17852
|
+
* The surcharging mode.
|
|
17889
17853
|
*/
|
|
17890
|
-
|
|
17854
|
+
surchargingMode: string | null = null;
|
|
17891
17855
|
|
|
17892
17856
|
/**
|
|
17893
|
-
*
|
|
17857
|
+
* The pricing plan.
|
|
17894
17858
|
*/
|
|
17895
|
-
|
|
17859
|
+
pricingPlan: string | null = null;
|
|
17896
17860
|
|
|
17897
17861
|
// Constructor with default values for optional fields
|
|
17898
17862
|
constructor(
|
|
17863
|
+
timeout: number | null = null,
|
|
17864
|
+
test: boolean | null = null,
|
|
17899
17865
|
cardNumber: string | undefined = undefined,
|
|
17900
|
-
token: string |
|
|
17901
|
-
|
|
17902
|
-
|
|
17903
|
-
|
|
17904
|
-
|
|
17905
|
-
|
|
17906
|
-
|
|
17866
|
+
token: string | undefined = undefined,
|
|
17867
|
+
amount: string | undefined = undefined,
|
|
17868
|
+
surchargeRate: string | undefined = undefined,
|
|
17869
|
+
debitTransFee: string | undefined = undefined,
|
|
17870
|
+
debitDiscountRate: string | undefined = undefined,
|
|
17871
|
+
surchargePolicy: string | null = null,
|
|
17872
|
+
excludedMerchantStates: string[] | null = null,
|
|
17873
|
+
zip: string | null = null,
|
|
17874
|
+
state: string | null = null,
|
|
17875
|
+
exemptForeignCards: boolean | null = null,
|
|
17876
|
+
surchargingMode: string | null = null,
|
|
17877
|
+
pricingPlan: string | null = null,
|
|
17907
17878
|
) {
|
|
17879
|
+
this.timeout = timeout;
|
|
17880
|
+
this.test = test;
|
|
17908
17881
|
this.cardNumber = cardNumber;
|
|
17909
17882
|
this.token = token;
|
|
17910
|
-
this.merchantIdentifier = merchantIdentifier;
|
|
17911
17883
|
this.amount = amount;
|
|
17912
|
-
this.
|
|
17913
|
-
this.
|
|
17884
|
+
this.surchargeRate = surchargeRate;
|
|
17885
|
+
this.debitTransFee = debitTransFee;
|
|
17886
|
+
this.debitDiscountRate = debitDiscountRate;
|
|
17887
|
+
this.surchargePolicy = surchargePolicy;
|
|
17888
|
+
this.excludedMerchantStates = excludedMerchantStates;
|
|
17889
|
+
this.zip = zip;
|
|
17914
17890
|
this.state = state;
|
|
17915
|
-
this.
|
|
17891
|
+
this.exemptForeignCards = exemptForeignCards;
|
|
17892
|
+
this.surchargingMode = surchargingMode;
|
|
17893
|
+
this.pricingPlan = pricingPlan;
|
|
17916
17894
|
}
|
|
17917
17895
|
}
|
|
17918
17896
|
|
|
17919
17897
|
/**
|
|
17920
|
-
* Models the data
|
|
17898
|
+
* Models the data included in a surcharge review response.
|
|
17921
17899
|
*/
|
|
17922
|
-
export class
|
|
17900
|
+
export class SurchargeReviewResponseData {
|
|
17923
17901
|
|
|
17924
17902
|
/**
|
|
17925
|
-
* The type of the
|
|
17903
|
+
* The type of the response.
|
|
17926
17904
|
*/
|
|
17927
17905
|
type: string | null = null;
|
|
17928
17906
|
|
|
17929
17907
|
/**
|
|
17930
|
-
* The
|
|
17908
|
+
* The attributes of the response.
|
|
17931
17909
|
*/
|
|
17932
|
-
attributes:
|
|
17910
|
+
attributes: SurchargeAttributeResponseData | null = null;
|
|
17933
17911
|
|
|
17934
17912
|
// Constructor with default values for optional fields
|
|
17935
17913
|
constructor(
|
|
17936
17914
|
type: string | null = null,
|
|
17937
|
-
attributes:
|
|
17915
|
+
attributes: SurchargeAttributeResponseData | null = null,
|
|
17938
17916
|
) {
|
|
17939
17917
|
this.type = type;
|
|
17940
17918
|
this.attributes = attributes;
|
|
@@ -17942,51 +17920,34 @@ export class PricingRequestData {
|
|
|
17942
17920
|
}
|
|
17943
17921
|
|
|
17944
17922
|
/**
|
|
17945
|
-
* Models a
|
|
17946
|
-
*/
|
|
17947
|
-
export class PricingRequest {
|
|
17948
|
-
|
|
17949
|
-
/**
|
|
17950
|
-
* The request timeout in seconds.
|
|
17923
|
+
* Models the surcharge attributes included in a surcharge review response.
|
|
17951
17924
|
*/
|
|
17952
|
-
|
|
17925
|
+
export class SurchargeAttributeResponseData {
|
|
17953
17926
|
|
|
17954
17927
|
/**
|
|
17955
|
-
*
|
|
17928
|
+
* The total amount including surcharge.
|
|
17956
17929
|
*/
|
|
17957
|
-
|
|
17930
|
+
totalWithSurchargeAmount: string | null = null;
|
|
17958
17931
|
|
|
17959
17932
|
/**
|
|
17960
|
-
*
|
|
17933
|
+
* If the surcharge review was successful.
|
|
17961
17934
|
*/
|
|
17962
|
-
|
|
17963
|
-
|
|
17964
|
-
// Constructor with default values for optional fields
|
|
17965
|
-
constructor(
|
|
17966
|
-
timeout: number | null = null,
|
|
17967
|
-
test: boolean | null = null,
|
|
17968
|
-
data: PricingRequestData | null = null,
|
|
17969
|
-
) {
|
|
17970
|
-
this.timeout = timeout;
|
|
17971
|
-
this.test = test;
|
|
17972
|
-
this.data = data;
|
|
17973
|
-
}
|
|
17974
|
-
}
|
|
17935
|
+
success: boolean | null = null;
|
|
17975
17936
|
|
|
17976
17937
|
/**
|
|
17977
|
-
*
|
|
17938
|
+
* The type of the response.
|
|
17978
17939
|
*/
|
|
17979
|
-
|
|
17940
|
+
type: string | null = null;
|
|
17980
17941
|
|
|
17981
17942
|
/**
|
|
17982
17943
|
* The surcharge percentage.
|
|
17983
17944
|
*/
|
|
17984
|
-
surchargePercent:
|
|
17945
|
+
surchargePercent: string | null = null;
|
|
17985
17946
|
|
|
17986
17947
|
/**
|
|
17987
17948
|
* The surcharge amount.
|
|
17988
17949
|
*/
|
|
17989
|
-
surchargeAmount:
|
|
17950
|
+
surchargeAmount: string | null = null;
|
|
17990
17951
|
|
|
17991
17952
|
/**
|
|
17992
17953
|
* If the transaction is exempt from surcharges.
|
|
@@ -18016,7 +17977,27 @@ export class PricingResponseAttributes {
|
|
|
18016
17977
|
/**
|
|
18017
17978
|
* The commercial card indicator.
|
|
18018
17979
|
*/
|
|
18019
|
-
commercialIndicator
|
|
17980
|
+
commercialIndicator?: string;
|
|
17981
|
+
|
|
17982
|
+
/**
|
|
17983
|
+
* If the card is commercial.
|
|
17984
|
+
*/
|
|
17985
|
+
isCommercial: boolean | null = null;
|
|
17986
|
+
|
|
17987
|
+
/**
|
|
17988
|
+
* If the card is Durbin-regulated (US debit).
|
|
17989
|
+
*/
|
|
17990
|
+
isRegulated: boolean | null = null;
|
|
17991
|
+
|
|
17992
|
+
/**
|
|
17993
|
+
* The reason for the exemption.
|
|
17994
|
+
*/
|
|
17995
|
+
exemptionReason?: string;
|
|
17996
|
+
|
|
17997
|
+
/**
|
|
17998
|
+
* The debit fee amount.
|
|
17999
|
+
*/
|
|
18000
|
+
debitFeeAmount?: string;
|
|
18020
18001
|
|
|
18021
18002
|
/**
|
|
18022
18003
|
* The disclosure statement.
|
|
@@ -18026,33 +18007,68 @@ export class PricingResponseAttributes {
|
|
|
18026
18007
|
/**
|
|
18027
18008
|
* The debit card category.
|
|
18028
18009
|
*/
|
|
18029
|
-
debitCategory
|
|
18010
|
+
debitCategory?: string;
|
|
18030
18011
|
|
|
18031
18012
|
/**
|
|
18032
18013
|
* The country where the card was issued.
|
|
18033
18014
|
*/
|
|
18034
|
-
|
|
18015
|
+
countryCode: string | null = null;
|
|
18016
|
+
|
|
18017
|
+
/**
|
|
18018
|
+
* Only included if state was sent in request OR derived from ZIP code.
|
|
18019
|
+
*/
|
|
18020
|
+
state?: string;
|
|
18035
18021
|
|
|
18036
18022
|
/**
|
|
18037
18023
|
* The unique identifier for the pricing response.
|
|
18038
18024
|
*/
|
|
18039
18025
|
uuid: string | null = null;
|
|
18040
18026
|
|
|
18027
|
+
/**
|
|
18028
|
+
* The expiration date of the card.
|
|
18029
|
+
*/
|
|
18030
|
+
expirationDate?: string;
|
|
18031
|
+
|
|
18032
|
+
/**
|
|
18033
|
+
* When surcharging is enabled AND state is 'CO' (Colorado-specific statutory
|
|
18034
|
+
* language).
|
|
18035
|
+
*/
|
|
18036
|
+
disclosureAdditional?: string;
|
|
18037
|
+
|
|
18038
|
+
/**
|
|
18039
|
+
* The cardholder information.
|
|
18040
|
+
*/
|
|
18041
|
+
cardholderInfo?: string;
|
|
18042
|
+
|
|
18041
18043
|
// Constructor with default values for optional fields
|
|
18042
18044
|
constructor(
|
|
18043
|
-
|
|
18044
|
-
|
|
18045
|
+
totalWithSurchargeAmount: string | null = null,
|
|
18046
|
+
success: boolean | null = null,
|
|
18047
|
+
type: string | null = null,
|
|
18048
|
+
surchargePercent: string | null = null,
|
|
18049
|
+
surchargeAmount: string | null = null,
|
|
18045
18050
|
surchargeExempt: boolean | null = null,
|
|
18046
18051
|
cardType: string | null = null,
|
|
18047
18052
|
cardToken: string | undefined = undefined,
|
|
18048
18053
|
brand: string | null = null,
|
|
18049
18054
|
bin: string | null = null,
|
|
18050
|
-
commercialIndicator: string |
|
|
18055
|
+
commercialIndicator: string | undefined = undefined,
|
|
18056
|
+
isCommercial: boolean | null = null,
|
|
18057
|
+
isRegulated: boolean | null = null,
|
|
18058
|
+
exemptionReason: string | undefined = undefined,
|
|
18059
|
+
debitFeeAmount: string | undefined = undefined,
|
|
18051
18060
|
disclosure: string | undefined = undefined,
|
|
18052
|
-
debitCategory: string |
|
|
18053
|
-
|
|
18061
|
+
debitCategory: string | undefined = undefined,
|
|
18062
|
+
countryCode: string | null = null,
|
|
18063
|
+
state: string | undefined = undefined,
|
|
18054
18064
|
uuid: string | null = null,
|
|
18065
|
+
expirationDate: string | undefined = undefined,
|
|
18066
|
+
disclosureAdditional: string | undefined = undefined,
|
|
18067
|
+
cardholderInfo: string | undefined = undefined,
|
|
18055
18068
|
) {
|
|
18069
|
+
this.totalWithSurchargeAmount = totalWithSurchargeAmount;
|
|
18070
|
+
this.success = success;
|
|
18071
|
+
this.type = type;
|
|
18056
18072
|
this.surchargePercent = surchargePercent;
|
|
18057
18073
|
this.surchargeAmount = surchargeAmount;
|
|
18058
18074
|
this.surchargeExempt = surchargeExempt;
|
|
@@ -18061,74 +18077,96 @@ export class PricingResponseAttributes {
|
|
|
18061
18077
|
this.brand = brand;
|
|
18062
18078
|
this.bin = bin;
|
|
18063
18079
|
this.commercialIndicator = commercialIndicator;
|
|
18080
|
+
this.isCommercial = isCommercial;
|
|
18081
|
+
this.isRegulated = isRegulated;
|
|
18082
|
+
this.exemptionReason = exemptionReason;
|
|
18083
|
+
this.debitFeeAmount = debitFeeAmount;
|
|
18064
18084
|
this.disclosure = disclosure;
|
|
18065
18085
|
this.debitCategory = debitCategory;
|
|
18066
|
-
this.
|
|
18086
|
+
this.countryCode = countryCode;
|
|
18087
|
+
this.state = state;
|
|
18067
18088
|
this.uuid = uuid;
|
|
18089
|
+
this.expirationDate = expirationDate;
|
|
18090
|
+
this.disclosureAdditional = disclosureAdditional;
|
|
18091
|
+
this.cardholderInfo = cardholderInfo;
|
|
18068
18092
|
}
|
|
18069
18093
|
}
|
|
18070
18094
|
|
|
18071
18095
|
/**
|
|
18072
|
-
* Models
|
|
18096
|
+
* Models a surcharge review response.
|
|
18073
18097
|
*/
|
|
18074
|
-
export class
|
|
18098
|
+
export class SurchargeReviewResponse {
|
|
18075
18099
|
|
|
18076
18100
|
/**
|
|
18077
|
-
*
|
|
18101
|
+
* Whether or not the request succeeded.
|
|
18078
18102
|
*/
|
|
18079
|
-
|
|
18103
|
+
success: boolean | null = null;
|
|
18080
18104
|
|
|
18081
18105
|
/**
|
|
18082
|
-
* The
|
|
18106
|
+
* The error, if an error occurred.
|
|
18083
18107
|
*/
|
|
18084
|
-
|
|
18108
|
+
error: string | null = null;
|
|
18109
|
+
|
|
18110
|
+
/**
|
|
18111
|
+
* A narrative description of the transaction result.
|
|
18112
|
+
*/
|
|
18113
|
+
responseDescription: string | null = null;
|
|
18114
|
+
|
|
18115
|
+
/**
|
|
18116
|
+
* The data included in the surcharge review response.
|
|
18117
|
+
*/
|
|
18118
|
+
data: SurchargeReviewResponseData | null = null;
|
|
18085
18119
|
|
|
18086
18120
|
// Constructor with default values for optional fields
|
|
18087
18121
|
constructor(
|
|
18088
|
-
|
|
18089
|
-
|
|
18122
|
+
success: boolean | null = null,
|
|
18123
|
+
error: string | null = null,
|
|
18124
|
+
responseDescription: string | null = null,
|
|
18125
|
+
data: SurchargeReviewResponseData | null = null,
|
|
18090
18126
|
) {
|
|
18091
|
-
this.
|
|
18092
|
-
this.
|
|
18127
|
+
this.success = success;
|
|
18128
|
+
this.error = error;
|
|
18129
|
+
this.responseDescription = responseDescription;
|
|
18130
|
+
this.data = data;
|
|
18093
18131
|
}
|
|
18094
18132
|
}
|
|
18095
18133
|
|
|
18096
18134
|
/**
|
|
18097
|
-
* Models
|
|
18135
|
+
* Models a request for short-lived API credentials.
|
|
18098
18136
|
*/
|
|
18099
|
-
export class
|
|
18137
|
+
export class TransientKeyRequest {
|
|
18100
18138
|
|
|
18101
18139
|
/**
|
|
18102
|
-
* The
|
|
18140
|
+
* The request timeout in seconds.
|
|
18103
18141
|
*/
|
|
18104
|
-
|
|
18142
|
+
timeout: number | null = null;
|
|
18105
18143
|
|
|
18106
18144
|
/**
|
|
18107
|
-
*
|
|
18145
|
+
* Whether or not to route transaction to the test gateway.
|
|
18108
18146
|
*/
|
|
18109
|
-
|
|
18147
|
+
test: boolean | null = null;
|
|
18110
18148
|
|
|
18111
18149
|
/**
|
|
18112
|
-
*
|
|
18150
|
+
* Restricts the returned credentials to a single API call when true.
|
|
18113
18151
|
*/
|
|
18114
|
-
|
|
18152
|
+
oneTime?: boolean;
|
|
18115
18153
|
|
|
18116
18154
|
// Constructor with default values for optional fields
|
|
18117
18155
|
constructor(
|
|
18118
|
-
|
|
18119
|
-
|
|
18120
|
-
|
|
18156
|
+
timeout: number | null = null,
|
|
18157
|
+
test: boolean | null = null,
|
|
18158
|
+
oneTime: boolean = false,
|
|
18121
18159
|
) {
|
|
18122
|
-
this.
|
|
18123
|
-
this.
|
|
18124
|
-
this.
|
|
18160
|
+
this.timeout = timeout;
|
|
18161
|
+
this.test = test;
|
|
18162
|
+
this.oneTime = oneTime;
|
|
18125
18163
|
}
|
|
18126
18164
|
}
|
|
18127
18165
|
|
|
18128
18166
|
/**
|
|
18129
|
-
* Models a
|
|
18167
|
+
* Models a response containing short-lived API credentials.
|
|
18130
18168
|
*/
|
|
18131
|
-
export class
|
|
18169
|
+
export class TransientKeyResponse {
|
|
18132
18170
|
|
|
18133
18171
|
/**
|
|
18134
18172
|
* Whether or not the request succeeded.
|
|
@@ -18146,21 +18184,35 @@ export class PricingResponse {
|
|
|
18146
18184
|
responseDescription: string | null = null;
|
|
18147
18185
|
|
|
18148
18186
|
/**
|
|
18149
|
-
* The
|
|
18187
|
+
* The transient API key.
|
|
18188
|
+
*/
|
|
18189
|
+
apiKey: string | null = null;
|
|
18190
|
+
|
|
18191
|
+
/**
|
|
18192
|
+
* The transient bearer token.
|
|
18150
18193
|
*/
|
|
18151
|
-
|
|
18194
|
+
bearerToken: string | null = null;
|
|
18195
|
+
|
|
18196
|
+
/**
|
|
18197
|
+
* The transient signing key.
|
|
18198
|
+
*/
|
|
18199
|
+
signingKey: string | null = null;
|
|
18152
18200
|
|
|
18153
18201
|
// Constructor with default values for optional fields
|
|
18154
18202
|
constructor(
|
|
18155
18203
|
success: boolean | null = null,
|
|
18156
18204
|
error: string | null = null,
|
|
18157
18205
|
responseDescription: string | null = null,
|
|
18158
|
-
|
|
18206
|
+
apiKey: string | null = null,
|
|
18207
|
+
bearerToken: string | null = null,
|
|
18208
|
+
signingKey: string | null = null,
|
|
18159
18209
|
) {
|
|
18160
18210
|
this.success = success;
|
|
18161
18211
|
this.error = error;
|
|
18162
18212
|
this.responseDescription = responseDescription;
|
|
18163
|
-
this.
|
|
18213
|
+
this.apiKey = apiKey;
|
|
18214
|
+
this.bearerToken = bearerToken;
|
|
18215
|
+
this.signingKey = signingKey;
|
|
18164
18216
|
}
|
|
18165
18217
|
}
|
|
18166
18218
|
|