@blockchyp/blockchyp-ts 2.28.1 → 2.30.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/lib/src/models.js CHANGED
@@ -10,7 +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.CoreResponse = 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.SubmitApplicationRequest = exports.MerchantApplication = exports.ApplicationAccount = exports.Owner = exports.AggregateBillingLineItemStats = exports.AggregateBillingLineItem = exports.BuyRateLineItem = exports.MerchantCredentialGenerationResponse = exports.MerchantCredentialGenerationRequest = exports.PartnerCommissionBreakdownResponse = exports.PartnerCommissionBreakdownRequest = 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;
14
15
  // CardType is used to differentiate credit, debit, and EBT.
15
16
  var CardType;
16
17
  (function (CardType) {
@@ -1158,7 +1159,7 @@ exports.WhiteListedCard = WhiteListedCard;
1158
1159
  */
1159
1160
  class AuthorizationRequest {
1160
1161
  // Constructor with default values for optional fields
1161
- 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, shippingAmount = undefined, processorId = undefined, externalCustomerId = undefined) {
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) {
1162
1163
  /**
1163
1164
  * The request timeout in seconds.
1164
1165
  */
@@ -1285,9 +1286,15 @@ class AuthorizationRequest {
1285
1286
  this.healthcareTotal = healthcareTotal;
1286
1287
  this.ebtTotal = ebtTotal;
1287
1288
  this.cardMetadataLookup = cardMetadataLookup;
1289
+ this.totalDiscountAmount = totalDiscountAmount;
1288
1290
  this.shippingAmount = shippingAmount;
1291
+ this.dutyAmount = dutyAmount;
1289
1292
  this.processorId = processorId;
1290
1293
  this.externalCustomerId = externalCustomerId;
1294
+ this.destinationCountryCode = destinationCountryCode;
1295
+ this.shipFromPostalCode = shipFromPostalCode;
1296
+ this.shipToPostalCode = shipToPostalCode;
1297
+ this.orderDate = orderDate;
1291
1298
  }
1292
1299
  }
1293
1300
  exports.AuthorizationRequest = AuthorizationRequest;
@@ -1752,7 +1759,7 @@ exports.RefundRequest = RefundRequest;
1752
1759
  */
1753
1760
  class CaptureRequest {
1754
1761
  // Constructor with default values for optional fields
1755
- constructor(timeout = null, test = null, transactionRef = undefined, autogeneratedRef = null, async = null, queue = null, waitForRemovedCard = false, force = false, orderRef = undefined, destinationAccount = undefined, testCase = undefined, transactionId = null, currencyCode = null, amount = null, taxExempt = null, surcharge = null, cashDiscount = null, tipAmount = undefined, taxAmount = undefined, shipmentCount = null, shipmentNumber = null) {
1762
+ constructor(timeout = null, test = null, transactionRef = undefined, autogeneratedRef = null, async = null, queue = null, waitForRemovedCard = false, force = false, orderRef = undefined, destinationAccount = undefined, testCase = undefined, transactionId = null, currencyCode = null, amount = null, taxExempt = null, surcharge = null, cashDiscount = null, tipAmount = undefined, taxAmount = undefined, shipmentCount = null, shipmentNumber = null, passthroughSurcharge = undefined) {
1756
1763
  /**
1757
1764
  * The request timeout in seconds.
1758
1765
  */
@@ -1830,6 +1837,7 @@ class CaptureRequest {
1830
1837
  this.taxAmount = taxAmount;
1831
1838
  this.shipmentCount = shipmentCount;
1832
1839
  this.shipmentNumber = shipmentNumber;
1840
+ this.passthroughSurcharge = passthroughSurcharge;
1833
1841
  }
1834
1842
  }
1835
1843
  exports.CaptureRequest = CaptureRequest;
@@ -3261,7 +3269,7 @@ exports.TransactionDisplayDiscount = TransactionDisplayDiscount;
3261
3269
  */
3262
3270
  class TransactionDisplayItem {
3263
3271
  // Constructor with default values for optional fields
3264
- constructor(id = null, description = null, price = null, quantity = null, extended = null, unitCode = null, commodityCode = null, productCode = null, discounts = null) {
3272
+ constructor(id = null, description = null, price = null, quantity = null, extended = null, unitCode = null, commodityCode = null, productCode = null, discounts = null, taxAmount = undefined, taxRate = undefined, discountCode = undefined) {
3265
3273
  /**
3266
3274
  * A unique value identifying the item. This is not required, but recommended since it is
3267
3275
  * required to update or delete line items.
@@ -3310,6 +3318,9 @@ class TransactionDisplayItem {
3310
3318
  this.commodityCode = commodityCode;
3311
3319
  this.productCode = productCode;
3312
3320
  this.discounts = discounts;
3321
+ this.taxAmount = taxAmount;
3322
+ this.taxRate = taxRate;
3323
+ this.discountCode = discountCode;
3313
3324
  }
3314
3325
  }
3315
3326
  exports.TransactionDisplayItem = TransactionDisplayItem;
@@ -10009,6 +10020,261 @@ class SubmitApplicationRequest {
10009
10020
  }
10010
10021
  }
10011
10022
  exports.SubmitApplicationRequest = SubmitApplicationRequest;
10023
+ /**
10024
+ * Models settings related to state checks for a merchant.
10025
+ */
10026
+ class StateCheckSettings {
10027
+ // Constructor with default values for optional fields
10028
+ constructor(enabled = null, surchargeExemptStates = null) {
10029
+ /**
10030
+ * If state checks are enabled for the merchant.
10031
+ */
10032
+ this.enabled = null;
10033
+ /**
10034
+ * The list of states that are exempt from surcharges.
10035
+ */
10036
+ this.surchargeExemptStates = null;
10037
+ this.enabled = enabled;
10038
+ this.surchargeExemptStates = surchargeExemptStates;
10039
+ }
10040
+ }
10041
+ exports.StateCheckSettings = StateCheckSettings;
10042
+ /**
10043
+ * Models merchant settings and configuration.
10044
+ */
10045
+ class PricingMerchantSettings {
10046
+ // Constructor with default values for optional fields
10047
+ constructor(account = null, gateway = null, surchargingEnabled = null, customSurchargePercent = 0, reducedRate = false, inversePricingEnabled = false, creditDiscountRate = 0, acquiringSolution = null, acceptDebit = false, stateCheckSettings = undefined) {
10048
+ /**
10049
+ * The merchant account identifier.
10050
+ */
10051
+ this.account = null;
10052
+ /**
10053
+ * The gateway identifier.
10054
+ */
10055
+ this.gateway = null;
10056
+ /**
10057
+ * Whether surcharging is enabled for the merchant.
10058
+ */
10059
+ this.surchargingEnabled = null;
10060
+ /**
10061
+ * The acquiring solution identifier.
10062
+ */
10063
+ this.acquiringSolution = null;
10064
+ this.account = account;
10065
+ this.gateway = gateway;
10066
+ this.surchargingEnabled = surchargingEnabled;
10067
+ this.customSurchargePercent = customSurchargePercent;
10068
+ this.reducedRate = reducedRate;
10069
+ this.inversePricingEnabled = inversePricingEnabled;
10070
+ this.creditDiscountRate = creditDiscountRate;
10071
+ this.acquiringSolution = acquiringSolution;
10072
+ this.acceptDebit = acceptDebit;
10073
+ this.stateCheckSettings = stateCheckSettings;
10074
+ }
10075
+ }
10076
+ exports.PricingMerchantSettings = PricingMerchantSettings;
10077
+ /**
10078
+ * Models the attributes for a pricing request.
10079
+ */
10080
+ class PricingRequestAttributes {
10081
+ // Constructor with default values for optional fields
10082
+ constructor(cardNumber = undefined, token = null, merchantIdentifier = undefined, amount = null, country = undefined, postalCode = undefined, state = undefined, merchantSettings = undefined) {
10083
+ /**
10084
+ * The payment token.
10085
+ */
10086
+ this.token = null;
10087
+ /**
10088
+ * The transaction amount.
10089
+ */
10090
+ this.amount = null;
10091
+ this.cardNumber = cardNumber;
10092
+ this.token = token;
10093
+ this.merchantIdentifier = merchantIdentifier;
10094
+ this.amount = amount;
10095
+ this.country = country;
10096
+ this.postalCode = postalCode;
10097
+ this.state = state;
10098
+ this.merchantSettings = merchantSettings;
10099
+ }
10100
+ }
10101
+ exports.PricingRequestAttributes = PricingRequestAttributes;
10102
+ /**
10103
+ * Models the data wrapper for a pricing request.
10104
+ */
10105
+ class PricingRequestData {
10106
+ // Constructor with default values for optional fields
10107
+ constructor(type = null, attributes = null) {
10108
+ /**
10109
+ * The type of the request.
10110
+ */
10111
+ this.type = null;
10112
+ /**
10113
+ * The pricing request attributes.
10114
+ */
10115
+ this.attributes = null;
10116
+ this.type = type;
10117
+ this.attributes = attributes;
10118
+ }
10119
+ }
10120
+ exports.PricingRequestData = PricingRequestData;
10121
+ /**
10122
+ * Models a pricing request.
10123
+ */
10124
+ class PricingRequest {
10125
+ // Constructor with default values for optional fields
10126
+ constructor(timeout = null, test = null, data = null) {
10127
+ /**
10128
+ * The request timeout in seconds.
10129
+ */
10130
+ this.timeout = null;
10131
+ /**
10132
+ * Whether or not to route transaction to the test gateway.
10133
+ */
10134
+ this.test = null;
10135
+ /**
10136
+ * The pricing request data.
10137
+ */
10138
+ this.data = null;
10139
+ this.timeout = timeout;
10140
+ this.test = test;
10141
+ this.data = data;
10142
+ }
10143
+ }
10144
+ exports.PricingRequest = PricingRequest;
10145
+ /**
10146
+ * Models pricing response data for new handler for pricing api responses.
10147
+ */
10148
+ class PricingResponseAttributes {
10149
+ // Constructor with default values for optional fields
10150
+ 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) {
10151
+ /**
10152
+ * The surcharge percentage.
10153
+ */
10154
+ this.surchargePercent = null;
10155
+ /**
10156
+ * The surcharge amount.
10157
+ */
10158
+ this.surchargeAmount = null;
10159
+ /**
10160
+ * If the transaction is exempt from surcharges.
10161
+ */
10162
+ this.surchargeExempt = null;
10163
+ /**
10164
+ * The type of card.
10165
+ */
10166
+ this.cardType = null;
10167
+ /**
10168
+ * The card brand.
10169
+ */
10170
+ this.brand = null;
10171
+ /**
10172
+ * The bank identification number.
10173
+ */
10174
+ this.bin = null;
10175
+ /**
10176
+ * The commercial card indicator.
10177
+ */
10178
+ this.commercialIndicator = null;
10179
+ /**
10180
+ * The debit card category.
10181
+ */
10182
+ this.debitCategory = null;
10183
+ /**
10184
+ * The country where the card was issued.
10185
+ */
10186
+ this.countryIssued = null;
10187
+ /**
10188
+ * The unique identifier for the pricing response.
10189
+ */
10190
+ this.uuid = null;
10191
+ this.surchargePercent = surchargePercent;
10192
+ this.surchargeAmount = surchargeAmount;
10193
+ this.surchargeExempt = surchargeExempt;
10194
+ this.cardType = cardType;
10195
+ this.cardToken = cardToken;
10196
+ this.brand = brand;
10197
+ this.bin = bin;
10198
+ this.commercialIndicator = commercialIndicator;
10199
+ this.disclosure = disclosure;
10200
+ this.debitCategory = debitCategory;
10201
+ this.countryIssued = countryIssued;
10202
+ this.uuid = uuid;
10203
+ }
10204
+ }
10205
+ exports.PricingResponseAttributes = PricingResponseAttributes;
10206
+ /**
10207
+ * Models the data wrapper for a pricing response.
10208
+ */
10209
+ class PricingResponseData {
10210
+ // Constructor with default values for optional fields
10211
+ constructor(type = null, attributes = null) {
10212
+ /**
10213
+ * The type of the response.
10214
+ */
10215
+ this.type = null;
10216
+ /**
10217
+ * The pricing response attributes.
10218
+ */
10219
+ this.attributes = null;
10220
+ this.type = type;
10221
+ this.attributes = attributes;
10222
+ }
10223
+ }
10224
+ exports.PricingResponseData = PricingResponseData;
10225
+ /**
10226
+ * Models an error response.
10227
+ */
10228
+ class ErrorType {
10229
+ // Constructor with default values for optional fields
10230
+ constructor(status = null, title = null, detail = null) {
10231
+ /**
10232
+ * The HTTP status code.
10233
+ */
10234
+ this.status = null;
10235
+ /**
10236
+ * The error title.
10237
+ */
10238
+ this.title = null;
10239
+ /**
10240
+ * The detailed error message.
10241
+ */
10242
+ this.detail = null;
10243
+ this.status = status;
10244
+ this.title = title;
10245
+ this.detail = detail;
10246
+ }
10247
+ }
10248
+ exports.ErrorType = ErrorType;
10249
+ /**
10250
+ * Models a pricing response.
10251
+ */
10252
+ class PricingResponse {
10253
+ // Constructor with default values for optional fields
10254
+ constructor(success = null, error = null, responseDescription = null, data = null) {
10255
+ /**
10256
+ * Whether or not the request succeeded.
10257
+ */
10258
+ this.success = null;
10259
+ /**
10260
+ * The error, if an error occurred.
10261
+ */
10262
+ this.error = null;
10263
+ /**
10264
+ * A narrative description of the transaction result.
10265
+ */
10266
+ this.responseDescription = null;
10267
+ /**
10268
+ * The pricing response data.
10269
+ */
10270
+ this.data = null;
10271
+ this.success = success;
10272
+ this.error = error;
10273
+ this.responseDescription = responseDescription;
10274
+ this.data = data;
10275
+ }
10276
+ }
10277
+ exports.PricingResponse = PricingResponse;
10012
10278
  /**
10013
10279
  * A request for customer signature data.
10014
10280
  */