@blockchyp/blockchyp-ts 2.30.1 → 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/lib/src/models.js CHANGED
@@ -10,8 +10,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.TransactionStatus = exports.PaymentLinkStatusResponse = exports.PaymentLinkStatusRequest = exports.TransactionStatusRequest = exports.AuthorizationResponse = exports.TermsAndConditionsResponse = exports.TermsAndConditionsRequest = exports.CloseBatchResponse = exports.CloseBatchRequest = exports.GiftActivateResponse = exports.GiftActivateRequest = exports.ClearTerminalRequest = exports.EnrollResponse = exports.EnrollRequest = exports.VoidResponse = exports.VoidRequest = exports.CaptureResponse = exports.CaptureRequest = exports.RefundRequest = exports.BalanceResponse = exports.BalanceRequest = exports.CardMetadataResponse = exports.CardMetadataRequest = exports.CardMetadata = exports.AuthorizationRequest = exports.WhiteListedCard = exports.BooleanPromptResponse = exports.TextPromptResponse = exports.CustomerToken = exports.UpdateTokenResponse = exports.UpdateTokenRequest = exports.TokenMetadataResponse = exports.TokenMetadataRequest = exports.Customer = exports.CustomerSearchResponse = exports.UpdateCustomerRequest = exports.CustomerSearchRequest = exports.CustomerResponse = exports.CustomerRequest = exports.TextPromptRequest = exports.BooleanPromptRequest = exports.MessageRequest = exports.LocateResponse = exports.LocateRequest = exports.PingResponse = exports.PingRequest = exports.CaptureSignatureResponse = exports.CaptureSignatureRequest = exports.Acknowledgement = exports.ReceiptSuggestions = void 0;
11
11
  exports.UpdateMerchantPlatformRequest = exports.MerchantPlatformsResponse = exports.MerchantUser = exports.MerchantUsersResponse = exports.GetMerchantsResponse = exports.GetMerchantsRequest = exports.HealthcareGroup = exports.HealthcareMetadata = exports.UnlinkTokenRequest = exports.LinkTokenRequest = exports.DeleteTokenResponse = exports.DeleteTokenRequest = exports.DeleteCustomerResponse = exports.DeleteCustomerRequest = exports.DeleteQueuedTransactionResponse = exports.DeleteQueuedTransactionRequest = exports.ListQueuedTransactionsResponse = exports.ListQueuedTransactionsRequest = exports.BankAccount = exports.MerchantProfileResponse = exports.MerchantProfile = exports.Address = exports.InviteMerchantUserRequest = exports.MerchantPlatformRequest = exports.MerchantProfileRequest = exports.AddGatewayMerchantRequest = exports.AddTestMerchantRequest = exports.TerminalVolume = exports.BatchDetailsResponse = exports.BatchDetailsRequest = exports.BatchSummary = exports.BatchHistoryResponse = exports.BatchHistoryRequest = exports.TransactionHistoryResponse = exports.TransactionHistoryRequest = exports.CashDiscountResponse = exports.CashDiscountRequest = exports.ResendPaymentLinkResponse = exports.ResendPaymentLinkRequest = exports.CancelPaymentLinkResponse = exports.CancelPaymentLinkRequest = exports.PaymentLinkResponse = exports.PaymentLinkRequest = exports.TerminalStatusResponse = exports.TerminalStatusRequest = exports.HeartbeatResponse = exports.TransactionDisplayRequest = exports.TransactionDisplayTransaction = exports.TransactionDisplayItem = exports.TransactionDisplayDiscount = void 0;
12
12
  exports.StatementDeposit = exports.InvoicePayment = exports.InvoiceLineItem = exports.MerchantInvoiceDetailResponse = exports.MerchantInvoiceDetailRequest = exports.MerchantInvoiceSummary = exports.MerchantInvoiceListResponse = exports.MerchantInvoiceListRequest = exports.PartnerStatementAdjustment = exports.PartnerStatementDisbursement = exports.PartnerStatementLineItem = exports.PartnerStatementDetailResponse = exports.PartnerStatementDetailRequest = exports.PartnerStatementListResponse = exports.PartnerStatementSummary = exports.PartnerStatementListRequest = exports.PricingPolicyResponse = exports.PricePoint = exports.PricingPolicyRequest = exports.BrandingAssetResponse = exports.BrandingAsset = exports.BrandingAssetRequest = exports.SlideShowRequest = exports.SlideShowResponse = exports.SlideShow = exports.Slide = exports.MediaLibraryResponse = exports.MediaRequest = exports.UploadStatusRequest = exports.UploadStatus = exports.UploadMetadata = exports.MediaMetadata = exports.SurveyResultsRequest = exports.SurveyDataPoint = exports.SurveyQuestionResponse = exports.SurveyQuestionRequest = exports.SurveyQuestion = exports.TermsAndConditionsLogEntry = exports.TermsAndConditionsLogResponse = exports.TermsAndConditionsLogRequest = exports.TermsAndConditionsTemplateResponse = exports.TermsAndConditionsTemplateRequest = exports.TermsAndConditionsTemplate = exports.TerminalProfile = exports.TerminalActivationRequest = exports.TerminalDeactivationRequest = exports.TerminalProfileResponse = exports.TerminalProfileRequest = exports.MerchantPlatform = exports.UpdateMerchantPlatformResponse = void 0;
13
- exports.PaymentMethod = exports.PaymentAmounts = exports.CryptocurrencyResponse = exports.PaymentMethodResponse = exports.CoreRequest = exports.TimeoutRequest = exports.ApprovalResponse = exports.SignatureRequest = exports.SignatureResponse = exports.TerminalReference = exports.AbstractAcknowledgement = exports.TerminalDeleteQueuedTransactionRequest = exports.TerminalListQueuedTransactionsRequest = exports.TerminalTerminalStatusRequest = exports.TerminalTransactionDisplayRequest = exports.TerminalTermsAndConditionsResponse = exports.TerminalTermsAndConditionsRequest = exports.TerminalGiftActivateRequest = exports.TerminalClearTerminalRequest = exports.TerminalEnrollRequest = exports.TerminalRefundRequest = exports.TerminalBalanceRequest = exports.TerminalCardMetadataRequest = exports.TerminalAuthorizationRequest = exports.TerminalTextPromptRequest = exports.TerminalBooleanPromptRequest = exports.TerminalMessageRequest = exports.TerminalLocateRequest = exports.TerminalPingRequest = exports.TerminalCaptureSignatureRequest = exports.PricingResponse = exports.ErrorType = exports.PricingResponseData = exports.PricingResponseAttributes = exports.PricingRequest = exports.PricingRequestData = exports.PricingRequestAttributes = exports.PricingMerchantSettings = exports.StateCheckSettings = exports.SubmitApplicationRequest = exports.MerchantApplication = exports.ApplicationAccount = exports.Owner = exports.AggregateBillingLineItemStats = exports.AggregateBillingLineItem = exports.BuyRateLineItem = exports.MerchantCredentialGenerationResponse = exports.MerchantCredentialGenerationRequest = exports.PartnerCommissionBreakdownResponse = exports.PartnerCommissionBreakdownRequest = void 0;
14
- exports.CoreResponse = exports.PreviousTransaction = exports.Subtotals = exports.RequestAmount = void 0;
13
+ exports.PreviousTransaction = exports.Subtotals = exports.RequestAmount = exports.PaymentMethod = exports.PaymentAmounts = exports.CryptocurrencyResponse = exports.PaymentMethodResponse = exports.CoreRequest = exports.TimeoutRequest = exports.ApprovalResponse = exports.SignatureRequest = exports.SignatureResponse = exports.TerminalReference = exports.AbstractAcknowledgement = exports.TerminalDeleteQueuedTransactionRequest = exports.TerminalListQueuedTransactionsRequest = exports.TerminalTerminalStatusRequest = exports.TerminalTransactionDisplayRequest = exports.TerminalTermsAndConditionsResponse = exports.TerminalTermsAndConditionsRequest = exports.TerminalGiftActivateRequest = exports.TerminalClearTerminalRequest = exports.TerminalEnrollRequest = exports.TerminalRefundRequest = exports.TerminalBalanceRequest = exports.TerminalCardMetadataRequest = exports.TerminalAuthorizationRequest = exports.TerminalTextPromptRequest = exports.TerminalBooleanPromptRequest = exports.TerminalMessageRequest = exports.TerminalLocateRequest = exports.TerminalPingRequest = exports.TerminalCaptureSignatureRequest = exports.TransientKeyResponse = exports.TransientKeyRequest = exports.SurchargeReviewResponse = exports.SurchargeAttributeResponseData = exports.SurchargeReviewResponseData = exports.SurchargeReviewRequest = exports.SubmitApplicationRequest = exports.MerchantApplication = exports.ApplicationAccount = exports.Owner = exports.AggregateBillingLineItemStats = exports.AggregateBillingLineItem = exports.BuyRateLineItem = exports.MerchantCredentialGenerationResponse = exports.MerchantCredentialGenerationRequest = exports.PartnerCommissionBreakdownResponse = exports.PartnerCommissionBreakdownRequest = void 0;
14
+ exports.CoreResponse = void 0;
15
15
  // CardType is used to differentiate credit, debit, and EBT.
16
16
  var CardType;
17
17
  (function (CardType) {
@@ -1159,7 +1159,7 @@ exports.WhiteListedCard = WhiteListedCard;
1159
1159
  */
1160
1160
  class AuthorizationRequest {
1161
1161
  // Constructor with default values for optional fields
1162
- constructor(timeout = null, test = null, transactionRef = undefined, autogeneratedRef = null, async = null, queue = null, waitForRemovedCard = false, force = false, orderRef = undefined, destinationAccount = undefined, testCase = undefined, token = undefined, track1 = undefined, track2 = undefined, pan = undefined, routingNumber = undefined, cardholderName = undefined, expMonth = undefined, expYear = undefined, cvv = undefined, address = undefined, postalCode = undefined, country = undefined, manualEntry = false, ksn = undefined, pinBlock = undefined, cardType = undefined, paymentType = undefined, currencyCode = null, amount = null, taxExempt = null, surcharge = null, cashDiscount = null, sigFile = undefined, sigFormat = undefined, sigWidth = 0, disableSignature = false, tipAmount = undefined, taxAmount = undefined, terminalName = undefined, resetConnection = null, transactionId = undefined, onlineAuthCode = undefined, enroll = false, bypassDupeFilter = false, description = undefined, promptForTip = false, cashBackEnabled = false, cardOnFile = false, recurring = false, cit = false, mit = false, subscription = false, purchaseOrderNumber = undefined, supplierReferenceNumber = undefined, lineItems = null, altPrices = undefined, customer = undefined, roundingMode = undefined, healthcareMetadata = undefined, cryptocurrency = undefined, cryptoNetwork = undefined, cryptoReceiveAddress = undefined, paymentRequestLabel = undefined, paymentRequestMessage = undefined, simulateChipRejection = false, simulateOutOfOrderReversal = false, asyncReversals = false, passthroughSurcharge = undefined, healthcare = false, healthcareTotal = undefined, ebtTotal = undefined, cardMetadataLookup = false, totalDiscountAmount = undefined, shippingAmount = undefined, dutyAmount = undefined, processorId = undefined, externalCustomerId = undefined, destinationCountryCode = undefined, shipFromPostalCode = undefined, shipToPostalCode = undefined, orderDate = undefined, shipmentCount = null, shipmentNumber = null) {
1162
+ constructor(timeout = null, test = null, transactionRef = undefined, autogeneratedRef = null, async = null, queue = null, waitForRemovedCard = false, force = false, orderRef = undefined, destinationAccount = undefined, testCase = undefined, token = undefined, track1 = undefined, track2 = undefined, pan = undefined, routingNumber = undefined, cardholderName = undefined, expMonth = undefined, expYear = undefined, cvv = undefined, address = undefined, postalCode = undefined, country = undefined, manualEntry = false, ksn = undefined, pinBlock = undefined, cardType = undefined, paymentType = undefined, currencyCode = null, amount = null, taxExempt = null, surcharge = null, cashDiscount = null, sigFile = undefined, sigFormat = undefined, sigWidth = 0, disableSignature = false, tipAmount = undefined, taxAmount = undefined, terminalName = undefined, resetConnection = null, transactionId = undefined, onlineAuthCode = undefined, enroll = false, bypassDupeFilter = false, description = undefined, promptForTip = false, cashBackEnabled = false, cardOnFile = false, recurring = false, cit = false, mit = false, subscription = false, purchaseOrderNumber = undefined, supplierReferenceNumber = undefined, lineItems = null, altPrices = undefined, customer = undefined, roundingMode = undefined, healthcareMetadata = undefined, cryptocurrency = undefined, cryptoNetwork = undefined, cryptoReceiveAddress = undefined, paymentRequestLabel = undefined, paymentRequestMessage = undefined, simulateChipRejection = false, simulateOutOfOrderReversal = false, asyncReversals = false, passthroughSurcharge = undefined, healthcare = false, healthcareTotal = undefined, ebtTotal = undefined, cardMetadataLookup = false, totalDiscountAmount = undefined, shippingAmount = undefined, dutyAmount = undefined, processorId = undefined, externalCustomerId = undefined, destinationCountryCode = undefined, shipFromPostalCode = undefined, shipToPostalCode = undefined, orderDate = undefined, shipmentCount = null, shipmentNumber = null, externalPartnerMetadata = undefined) {
1163
1163
  /**
1164
1164
  * The request timeout in seconds.
1165
1165
  */
@@ -1305,6 +1305,7 @@ class AuthorizationRequest {
1305
1305
  this.orderDate = orderDate;
1306
1306
  this.shipmentCount = shipmentCount;
1307
1307
  this.shipmentNumber = shipmentNumber;
1308
+ this.externalPartnerMetadata = externalPartnerMetadata;
1308
1309
  }
1309
1310
  }
1310
1311
  exports.AuthorizationRequest = AuthorizationRequest;
@@ -1856,7 +1857,7 @@ exports.CaptureRequest = CaptureRequest;
1856
1857
  */
1857
1858
  class CaptureResponse {
1858
1859
  // Constructor with default values for optional fields
1859
- constructor(success = null, error = null, responseDescription = null, approved = null, authCode = undefined, authResponseCode = undefined, transactionId = null, batchId = undefined, transactionRef = undefined, transactionType = null, timestamp = null, tickBlock = null, test = null, destinationAccount = undefined, sig = undefined, partialAuth = null, altCurrency = null, fsaAuth = null, currencyCode = null, requestedAmount = null, authorizedAmount = null, remainingBalance = null, tipAmount = null, taxAmount = null, requestedCashBackAmount = null, authorizedCashBackAmount = null, token = undefined, entryMethod = undefined, paymentType = undefined, network = undefined, logo = undefined, maskedPan = undefined, publicKey = undefined, ScopeAlert = false, cardHolder = undefined, expMonth = undefined, expYear = undefined, postalCode = undefined, address = undefined, country = undefined, avsResponse = null, cvvResponse = undefined, receiptSuggestions = null, customer = undefined, customers = null) {
1860
+ constructor(success = null, error = null, responseDescription = null, approved = null, authCode = undefined, authResponseCode = undefined, transactionId = null, batchId = undefined, transactionRef = undefined, transactionType = null, timestamp = null, tickBlock = null, test = null, destinationAccount = undefined, sig = undefined, partialAuth = null, altCurrency = null, fsaAuth = null, currencyCode = null, requestedAmount = null, authorizedAmount = null, remainingBalance = null, tipAmount = null, taxAmount = null, requestedCashBackAmount = null, authorizedCashBackAmount = null, token = undefined, entryMethod = undefined, paymentType = undefined, network = undefined, logo = undefined, maskedPan = undefined, publicKey = undefined, ScopeAlert = false, cardHolder = undefined, expMonth = undefined, expYear = undefined, postalCode = undefined, address = undefined, country = undefined, avsResponse = null, cvvResponse = undefined, receiptSuggestions = null, customer = undefined, customers = null, enhancedDataPassed = false) {
1860
1861
  /**
1861
1862
  * Whether or not the request succeeded.
1862
1863
  */
@@ -1996,6 +1997,7 @@ class CaptureResponse {
1996
1997
  this.receiptSuggestions = receiptSuggestions;
1997
1998
  this.customer = customer;
1998
1999
  this.customers = customers;
2000
+ this.enhancedDataPassed = enhancedDataPassed;
1999
2001
  }
2000
2002
  }
2001
2003
  exports.CaptureResponse = CaptureResponse;
@@ -2766,7 +2768,7 @@ exports.TermsAndConditionsResponse = TermsAndConditionsResponse;
2766
2768
  */
2767
2769
  class AuthorizationResponse {
2768
2770
  // Constructor with default values for optional fields
2769
- constructor(success = null, error = null, responseDescription = null, approved = null, authCode = undefined, authResponseCode = undefined, transactionId = null, batchId = undefined, transactionRef = undefined, transactionType = null, timestamp = null, tickBlock = null, test = null, destinationAccount = undefined, sig = undefined, partialAuth = null, altCurrency = null, fsaAuth = null, currencyCode = null, requestedAmount = null, authorizedAmount = null, remainingBalance = null, tipAmount = null, taxAmount = null, requestedCashBackAmount = null, authorizedCashBackAmount = null, confirmed = null, cryptoAuthorizedAmount = null, cryptoNetworkFee = null, cryptocurrency = null, cryptoNetwork = null, cryptoReceiveAddress = null, cryptoBlock = null, cryptoTransactionId = null, cryptoPaymentRequest = null, cryptoStatus = null, token = undefined, entryMethod = undefined, paymentType = undefined, network = undefined, logo = undefined, maskedPan = undefined, publicKey = undefined, ScopeAlert = false, cardHolder = undefined, expMonth = undefined, expYear = undefined, postalCode = undefined, address = undefined, country = undefined, avsResponse = null, cvvResponse = undefined, receiptSuggestions = null, customer = undefined, customers = null, sigFile = undefined, whiteListedCard = undefined, storeAndForward = null, status = null, cardMetadata = undefined) {
2771
+ constructor(success = null, error = null, responseDescription = null, approved = null, authCode = undefined, authResponseCode = undefined, transactionId = null, batchId = undefined, transactionRef = undefined, transactionType = null, timestamp = null, tickBlock = null, test = null, destinationAccount = undefined, sig = undefined, partialAuth = null, altCurrency = null, fsaAuth = null, currencyCode = null, requestedAmount = null, authorizedAmount = null, remainingBalance = null, tipAmount = null, taxAmount = null, requestedCashBackAmount = null, authorizedCashBackAmount = null, confirmed = null, cryptoAuthorizedAmount = null, cryptoNetworkFee = null, cryptocurrency = null, cryptoNetwork = null, cryptoReceiveAddress = null, cryptoBlock = null, cryptoTransactionId = null, cryptoPaymentRequest = null, cryptoStatus = null, token = undefined, entryMethod = undefined, paymentType = undefined, network = undefined, logo = undefined, maskedPan = undefined, publicKey = undefined, ScopeAlert = false, cardHolder = undefined, expMonth = undefined, expYear = undefined, postalCode = undefined, address = undefined, country = undefined, avsResponse = null, cvvResponse = undefined, receiptSuggestions = null, customer = undefined, customers = null, sigFile = undefined, whiteListedCard = undefined, storeAndForward = null, status = null, cardMetadata = undefined, enhancedDataPassed = false) {
2770
2772
  /**
2771
2773
  * Whether or not the request succeeded.
2772
2774
  */
@@ -2973,6 +2975,7 @@ class AuthorizationResponse {
2973
2975
  this.storeAndForward = storeAndForward;
2974
2976
  this.status = status;
2975
2977
  this.cardMetadata = cardMetadata;
2978
+ this.enhancedDataPassed = enhancedDataPassed;
2976
2979
  }
2977
2980
  }
2978
2981
  exports.AuthorizationResponse = AuthorizationResponse;
@@ -10031,133 +10034,102 @@ class SubmitApplicationRequest {
10031
10034
  }
10032
10035
  exports.SubmitApplicationRequest = SubmitApplicationRequest;
10033
10036
  /**
10034
- * Models settings related to state checks for a merchant.
10037
+ * Models a surcharge review request.
10035
10038
  */
10036
- class StateCheckSettings {
10039
+ class SurchargeReviewRequest {
10037
10040
  // Constructor with default values for optional fields
10038
- constructor(enabled = null, surchargeExemptStates = null) {
10041
+ constructor(timeout = null, test = null, cardNumber = undefined, token = undefined, amount = undefined, surchargeRate = undefined, debitTransFee = undefined, debitDiscountRate = undefined, surchargePolicy = null, excludedMerchantStates = null, zip = null, state = null, exemptForeignCards = null, surchargingMode = null, pricingPlan = null) {
10039
10042
  /**
10040
- * If state checks are enabled for the merchant.
10043
+ * The request timeout in seconds.
10041
10044
  */
10042
- this.enabled = null;
10045
+ this.timeout = null;
10043
10046
  /**
10044
- * The list of states that are exempt from surcharges.
10047
+ * Whether or not to route transaction to the test gateway.
10045
10048
  */
10046
- this.surchargeExemptStates = null;
10047
- this.enabled = enabled;
10048
- this.surchargeExemptStates = surchargeExemptStates;
10049
- }
10050
- }
10051
- exports.StateCheckSettings = StateCheckSettings;
10052
- /**
10053
- * Models merchant settings and configuration.
10054
- */
10055
- class PricingMerchantSettings {
10056
- // Constructor with default values for optional fields
10057
- constructor(account = null, gateway = null, surchargingEnabled = null, customSurchargePercent = 0, reducedRate = false, inversePricingEnabled = false, creditDiscountRate = 0, acquiringSolution = null, acceptDebit = false, stateCheckSettings = undefined) {
10049
+ this.test = null;
10058
10050
  /**
10059
- * The merchant account identifier.
10051
+ * The surcharge policy.
10060
10052
  */
10061
- this.account = null;
10053
+ this.surchargePolicy = null;
10062
10054
  /**
10063
- * The gateway identifier.
10055
+ * The list of excluded merchant states.
10064
10056
  */
10065
- this.gateway = null;
10057
+ this.excludedMerchantStates = null;
10066
10058
  /**
10067
- * Whether surcharging is enabled for the merchant.
10059
+ * The zip code.
10068
10060
  */
10069
- this.surchargingEnabled = null;
10061
+ this.zip = null;
10070
10062
  /**
10071
- * The acquiring solution identifier.
10063
+ * The state or province.
10072
10064
  */
10073
- this.acquiringSolution = null;
10074
- this.account = account;
10075
- this.gateway = gateway;
10076
- this.surchargingEnabled = surchargingEnabled;
10077
- this.customSurchargePercent = customSurchargePercent;
10078
- this.reducedRate = reducedRate;
10079
- this.inversePricingEnabled = inversePricingEnabled;
10080
- this.creditDiscountRate = creditDiscountRate;
10081
- this.acquiringSolution = acquiringSolution;
10082
- this.acceptDebit = acceptDebit;
10083
- this.stateCheckSettings = stateCheckSettings;
10084
- }
10085
- }
10086
- exports.PricingMerchantSettings = PricingMerchantSettings;
10087
- /**
10088
- * Models the attributes for a pricing request.
10089
- */
10090
- class PricingRequestAttributes {
10091
- // Constructor with default values for optional fields
10092
- constructor(cardNumber = undefined, token = null, merchantIdentifier = undefined, amount = null, country = undefined, postalCode = undefined, state = undefined, merchantSettings = undefined) {
10065
+ this.state = null;
10093
10066
  /**
10094
- * The payment token.
10067
+ * If foreign cards are exempt.
10095
10068
  */
10096
- this.token = null;
10069
+ this.exemptForeignCards = null;
10097
10070
  /**
10098
- * The transaction amount.
10071
+ * The surcharging mode.
10099
10072
  */
10100
- this.amount = null;
10073
+ this.surchargingMode = null;
10074
+ /**
10075
+ * The pricing plan.
10076
+ */
10077
+ this.pricingPlan = null;
10078
+ this.timeout = timeout;
10079
+ this.test = test;
10101
10080
  this.cardNumber = cardNumber;
10102
10081
  this.token = token;
10103
- this.merchantIdentifier = merchantIdentifier;
10104
10082
  this.amount = amount;
10105
- this.country = country;
10106
- this.postalCode = postalCode;
10083
+ this.surchargeRate = surchargeRate;
10084
+ this.debitTransFee = debitTransFee;
10085
+ this.debitDiscountRate = debitDiscountRate;
10086
+ this.surchargePolicy = surchargePolicy;
10087
+ this.excludedMerchantStates = excludedMerchantStates;
10088
+ this.zip = zip;
10107
10089
  this.state = state;
10108
- this.merchantSettings = merchantSettings;
10090
+ this.exemptForeignCards = exemptForeignCards;
10091
+ this.surchargingMode = surchargingMode;
10092
+ this.pricingPlan = pricingPlan;
10109
10093
  }
10110
10094
  }
10111
- exports.PricingRequestAttributes = PricingRequestAttributes;
10095
+ exports.SurchargeReviewRequest = SurchargeReviewRequest;
10112
10096
  /**
10113
- * Models the data wrapper for a pricing request.
10097
+ * Models the data included in a surcharge review response.
10114
10098
  */
10115
- class PricingRequestData {
10099
+ class SurchargeReviewResponseData {
10116
10100
  // Constructor with default values for optional fields
10117
10101
  constructor(type = null, attributes = null) {
10118
10102
  /**
10119
- * The type of the request.
10103
+ * The type of the response.
10120
10104
  */
10121
10105
  this.type = null;
10122
10106
  /**
10123
- * The pricing request attributes.
10107
+ * The attributes of the response.
10124
10108
  */
10125
10109
  this.attributes = null;
10126
10110
  this.type = type;
10127
10111
  this.attributes = attributes;
10128
10112
  }
10129
10113
  }
10130
- exports.PricingRequestData = PricingRequestData;
10114
+ exports.SurchargeReviewResponseData = SurchargeReviewResponseData;
10131
10115
  /**
10132
- * Models a pricing request.
10116
+ * Models the surcharge attributes included in a surcharge review response.
10133
10117
  */
10134
- class PricingRequest {
10118
+ class SurchargeAttributeResponseData {
10135
10119
  // Constructor with default values for optional fields
10136
- constructor(timeout = null, test = null, data = null) {
10120
+ constructor(totalWithSurchargeAmount = null, success = null, type = null, surchargePercent = null, surchargeAmount = null, surchargeExempt = null, cardType = null, cardToken = undefined, brand = null, bin = null, commercialIndicator = undefined, isCommercial = null, isRegulated = null, exemptionReason = undefined, debitFeeAmount = undefined, disclosure = undefined, debitCategory = undefined, countryCode = null, state = undefined, uuid = null, expirationDate = undefined, disclosureAdditional = undefined, cardholderInfo = undefined) {
10137
10121
  /**
10138
- * The request timeout in seconds.
10122
+ * The total amount including surcharge.
10139
10123
  */
10140
- this.timeout = null;
10124
+ this.totalWithSurchargeAmount = null;
10141
10125
  /**
10142
- * Whether or not to route transaction to the test gateway.
10126
+ * If the surcharge review was successful.
10143
10127
  */
10144
- this.test = null;
10128
+ this.success = null;
10145
10129
  /**
10146
- * The pricing request data.
10130
+ * The type of the response.
10147
10131
  */
10148
- this.data = null;
10149
- this.timeout = timeout;
10150
- this.test = test;
10151
- this.data = data;
10152
- }
10153
- }
10154
- exports.PricingRequest = PricingRequest;
10155
- /**
10156
- * Models pricing response data for new handler for pricing api responses.
10157
- */
10158
- class PricingResponseAttributes {
10159
- // Constructor with default values for optional fields
10160
- constructor(surchargePercent = null, surchargeAmount = null, surchargeExempt = null, cardType = null, cardToken = undefined, brand = null, bin = null, commercialIndicator = null, disclosure = undefined, debitCategory = null, countryIssued = null, uuid = null) {
10132
+ this.type = null;
10161
10133
  /**
10162
10134
  * The surcharge percentage.
10163
10135
  */
@@ -10183,21 +10155,24 @@ class PricingResponseAttributes {
10183
10155
  */
10184
10156
  this.bin = null;
10185
10157
  /**
10186
- * The commercial card indicator.
10158
+ * If the card is commercial.
10187
10159
  */
10188
- this.commercialIndicator = null;
10160
+ this.isCommercial = null;
10189
10161
  /**
10190
- * The debit card category.
10162
+ * If the card is Durbin-regulated (US debit).
10191
10163
  */
10192
- this.debitCategory = null;
10164
+ this.isRegulated = null;
10193
10165
  /**
10194
10166
  * The country where the card was issued.
10195
10167
  */
10196
- this.countryIssued = null;
10168
+ this.countryCode = null;
10197
10169
  /**
10198
10170
  * The unique identifier for the pricing response.
10199
10171
  */
10200
10172
  this.uuid = null;
10173
+ this.totalWithSurchargeAmount = totalWithSurchargeAmount;
10174
+ this.success = success;
10175
+ this.type = type;
10201
10176
  this.surchargePercent = surchargePercent;
10202
10177
  this.surchargeAmount = surchargeAmount;
10203
10178
  this.surchargeExempt = surchargeExempt;
@@ -10206,62 +10181,76 @@ class PricingResponseAttributes {
10206
10181
  this.brand = brand;
10207
10182
  this.bin = bin;
10208
10183
  this.commercialIndicator = commercialIndicator;
10184
+ this.isCommercial = isCommercial;
10185
+ this.isRegulated = isRegulated;
10186
+ this.exemptionReason = exemptionReason;
10187
+ this.debitFeeAmount = debitFeeAmount;
10209
10188
  this.disclosure = disclosure;
10210
10189
  this.debitCategory = debitCategory;
10211
- this.countryIssued = countryIssued;
10190
+ this.countryCode = countryCode;
10191
+ this.state = state;
10212
10192
  this.uuid = uuid;
10193
+ this.expirationDate = expirationDate;
10194
+ this.disclosureAdditional = disclosureAdditional;
10195
+ this.cardholderInfo = cardholderInfo;
10213
10196
  }
10214
10197
  }
10215
- exports.PricingResponseAttributes = PricingResponseAttributes;
10198
+ exports.SurchargeAttributeResponseData = SurchargeAttributeResponseData;
10216
10199
  /**
10217
- * Models the data wrapper for a pricing response.
10200
+ * Models a surcharge review response.
10218
10201
  */
10219
- class PricingResponseData {
10202
+ class SurchargeReviewResponse {
10220
10203
  // Constructor with default values for optional fields
10221
- constructor(type = null, attributes = null) {
10204
+ constructor(success = null, error = null, responseDescription = null, data = null) {
10222
10205
  /**
10223
- * The type of the response.
10206
+ * Whether or not the request succeeded.
10224
10207
  */
10225
- this.type = null;
10208
+ this.success = null;
10226
10209
  /**
10227
- * The pricing response attributes.
10210
+ * The error, if an error occurred.
10228
10211
  */
10229
- this.attributes = null;
10230
- this.type = type;
10231
- this.attributes = attributes;
10212
+ this.error = null;
10213
+ /**
10214
+ * A narrative description of the transaction result.
10215
+ */
10216
+ this.responseDescription = null;
10217
+ /**
10218
+ * The data included in the surcharge review response.
10219
+ */
10220
+ this.data = null;
10221
+ this.success = success;
10222
+ this.error = error;
10223
+ this.responseDescription = responseDescription;
10224
+ this.data = data;
10232
10225
  }
10233
10226
  }
10234
- exports.PricingResponseData = PricingResponseData;
10227
+ exports.SurchargeReviewResponse = SurchargeReviewResponse;
10235
10228
  /**
10236
- * Models an error response.
10229
+ * Models a request for short-lived API credentials.
10237
10230
  */
10238
- class ErrorType {
10231
+ class TransientKeyRequest {
10239
10232
  // Constructor with default values for optional fields
10240
- constructor(status = null, title = null, detail = null) {
10233
+ constructor(timeout = null, test = null, oneTime = false) {
10241
10234
  /**
10242
- * The HTTP status code.
10243
- */
10244
- this.status = null;
10245
- /**
10246
- * The error title.
10235
+ * The request timeout in seconds.
10247
10236
  */
10248
- this.title = null;
10237
+ this.timeout = null;
10249
10238
  /**
10250
- * The detailed error message.
10239
+ * Whether or not to route transaction to the test gateway.
10251
10240
  */
10252
- this.detail = null;
10253
- this.status = status;
10254
- this.title = title;
10255
- this.detail = detail;
10241
+ this.test = null;
10242
+ this.timeout = timeout;
10243
+ this.test = test;
10244
+ this.oneTime = oneTime;
10256
10245
  }
10257
10246
  }
10258
- exports.ErrorType = ErrorType;
10247
+ exports.TransientKeyRequest = TransientKeyRequest;
10259
10248
  /**
10260
- * Models a pricing response.
10249
+ * Models a response containing short-lived API credentials.
10261
10250
  */
10262
- class PricingResponse {
10251
+ class TransientKeyResponse {
10263
10252
  // Constructor with default values for optional fields
10264
- constructor(success = null, error = null, responseDescription = null, data = null) {
10253
+ constructor(success = null, error = null, responseDescription = null, apiKey = null, bearerToken = null, signingKey = null) {
10265
10254
  /**
10266
10255
  * Whether or not the request succeeded.
10267
10256
  */
@@ -10275,16 +10264,26 @@ class PricingResponse {
10275
10264
  */
10276
10265
  this.responseDescription = null;
10277
10266
  /**
10278
- * The pricing response data.
10267
+ * The transient API key.
10279
10268
  */
10280
- this.data = null;
10269
+ this.apiKey = null;
10270
+ /**
10271
+ * The transient bearer token.
10272
+ */
10273
+ this.bearerToken = null;
10274
+ /**
10275
+ * The transient signing key.
10276
+ */
10277
+ this.signingKey = null;
10281
10278
  this.success = success;
10282
10279
  this.error = error;
10283
10280
  this.responseDescription = responseDescription;
10284
- this.data = data;
10281
+ this.apiKey = apiKey;
10282
+ this.bearerToken = bearerToken;
10283
+ this.signingKey = signingKey;
10285
10284
  }
10286
10285
  }
10287
- exports.PricingResponse = PricingResponse;
10286
+ exports.TransientKeyResponse = TransientKeyResponse;
10288
10287
  /**
10289
10288
  * A request for customer signature data.
10290
10289
  */