@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/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.
|
|
14
|
-
exports.CoreResponse =
|
|
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) {
|
|
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
|
*/
|
|
@@ -1213,6 +1213,14 @@ class AuthorizationRequest {
|
|
|
1213
1213
|
* An item to display. Can be overwritten or appended, based on the request type.
|
|
1214
1214
|
*/
|
|
1215
1215
|
this.lineItems = null;
|
|
1216
|
+
/**
|
|
1217
|
+
* The number of shipments the original authorization will be broken into.
|
|
1218
|
+
*/
|
|
1219
|
+
this.shipmentCount = null;
|
|
1220
|
+
/**
|
|
1221
|
+
* Which shipment this particular capture is for.
|
|
1222
|
+
*/
|
|
1223
|
+
this.shipmentNumber = null;
|
|
1216
1224
|
this.timeout = timeout;
|
|
1217
1225
|
this.test = test;
|
|
1218
1226
|
this.transactionRef = transactionRef;
|
|
@@ -1295,6 +1303,9 @@ class AuthorizationRequest {
|
|
|
1295
1303
|
this.shipFromPostalCode = shipFromPostalCode;
|
|
1296
1304
|
this.shipToPostalCode = shipToPostalCode;
|
|
1297
1305
|
this.orderDate = orderDate;
|
|
1306
|
+
this.shipmentCount = shipmentCount;
|
|
1307
|
+
this.shipmentNumber = shipmentNumber;
|
|
1308
|
+
this.externalPartnerMetadata = externalPartnerMetadata;
|
|
1298
1309
|
}
|
|
1299
1310
|
}
|
|
1300
1311
|
exports.AuthorizationRequest = AuthorizationRequest;
|
|
@@ -1846,7 +1857,7 @@ exports.CaptureRequest = CaptureRequest;
|
|
|
1846
1857
|
*/
|
|
1847
1858
|
class CaptureResponse {
|
|
1848
1859
|
// Constructor with default values for optional fields
|
|
1849
|
-
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) {
|
|
1850
1861
|
/**
|
|
1851
1862
|
* Whether or not the request succeeded.
|
|
1852
1863
|
*/
|
|
@@ -1986,6 +1997,7 @@ class CaptureResponse {
|
|
|
1986
1997
|
this.receiptSuggestions = receiptSuggestions;
|
|
1987
1998
|
this.customer = customer;
|
|
1988
1999
|
this.customers = customers;
|
|
2000
|
+
this.enhancedDataPassed = enhancedDataPassed;
|
|
1989
2001
|
}
|
|
1990
2002
|
}
|
|
1991
2003
|
exports.CaptureResponse = CaptureResponse;
|
|
@@ -2756,7 +2768,7 @@ exports.TermsAndConditionsResponse = TermsAndConditionsResponse;
|
|
|
2756
2768
|
*/
|
|
2757
2769
|
class AuthorizationResponse {
|
|
2758
2770
|
// Constructor with default values for optional fields
|
|
2759
|
-
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) {
|
|
2760
2772
|
/**
|
|
2761
2773
|
* Whether or not the request succeeded.
|
|
2762
2774
|
*/
|
|
@@ -2963,6 +2975,7 @@ class AuthorizationResponse {
|
|
|
2963
2975
|
this.storeAndForward = storeAndForward;
|
|
2964
2976
|
this.status = status;
|
|
2965
2977
|
this.cardMetadata = cardMetadata;
|
|
2978
|
+
this.enhancedDataPassed = enhancedDataPassed;
|
|
2966
2979
|
}
|
|
2967
2980
|
}
|
|
2968
2981
|
exports.AuthorizationResponse = AuthorizationResponse;
|
|
@@ -10021,133 +10034,102 @@ class SubmitApplicationRequest {
|
|
|
10021
10034
|
}
|
|
10022
10035
|
exports.SubmitApplicationRequest = SubmitApplicationRequest;
|
|
10023
10036
|
/**
|
|
10024
|
-
* Models
|
|
10037
|
+
* Models a surcharge review request.
|
|
10025
10038
|
*/
|
|
10026
|
-
class
|
|
10039
|
+
class SurchargeReviewRequest {
|
|
10027
10040
|
// Constructor with default values for optional fields
|
|
10028
|
-
constructor(
|
|
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) {
|
|
10029
10042
|
/**
|
|
10030
|
-
*
|
|
10043
|
+
* The request timeout in seconds.
|
|
10031
10044
|
*/
|
|
10032
|
-
this.
|
|
10045
|
+
this.timeout = null;
|
|
10033
10046
|
/**
|
|
10034
|
-
*
|
|
10047
|
+
* Whether or not to route transaction to the test gateway.
|
|
10035
10048
|
*/
|
|
10036
|
-
this.
|
|
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) {
|
|
10049
|
+
this.test = null;
|
|
10048
10050
|
/**
|
|
10049
|
-
* The
|
|
10051
|
+
* The surcharge policy.
|
|
10050
10052
|
*/
|
|
10051
|
-
this.
|
|
10053
|
+
this.surchargePolicy = null;
|
|
10052
10054
|
/**
|
|
10053
|
-
* The
|
|
10055
|
+
* The list of excluded merchant states.
|
|
10054
10056
|
*/
|
|
10055
|
-
this.
|
|
10057
|
+
this.excludedMerchantStates = null;
|
|
10056
10058
|
/**
|
|
10057
|
-
*
|
|
10059
|
+
* The zip code.
|
|
10058
10060
|
*/
|
|
10059
|
-
this.
|
|
10061
|
+
this.zip = null;
|
|
10060
10062
|
/**
|
|
10061
|
-
* The
|
|
10063
|
+
* The state or province.
|
|
10062
10064
|
*/
|
|
10063
|
-
this.
|
|
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) {
|
|
10065
|
+
this.state = null;
|
|
10083
10066
|
/**
|
|
10084
|
-
*
|
|
10067
|
+
* If foreign cards are exempt.
|
|
10085
10068
|
*/
|
|
10086
|
-
this.
|
|
10069
|
+
this.exemptForeignCards = null;
|
|
10087
10070
|
/**
|
|
10088
|
-
* The
|
|
10071
|
+
* The surcharging mode.
|
|
10089
10072
|
*/
|
|
10090
|
-
this.
|
|
10073
|
+
this.surchargingMode = null;
|
|
10074
|
+
/**
|
|
10075
|
+
* The pricing plan.
|
|
10076
|
+
*/
|
|
10077
|
+
this.pricingPlan = null;
|
|
10078
|
+
this.timeout = timeout;
|
|
10079
|
+
this.test = test;
|
|
10091
10080
|
this.cardNumber = cardNumber;
|
|
10092
10081
|
this.token = token;
|
|
10093
|
-
this.merchantIdentifier = merchantIdentifier;
|
|
10094
10082
|
this.amount = amount;
|
|
10095
|
-
this.
|
|
10096
|
-
this.
|
|
10083
|
+
this.surchargeRate = surchargeRate;
|
|
10084
|
+
this.debitTransFee = debitTransFee;
|
|
10085
|
+
this.debitDiscountRate = debitDiscountRate;
|
|
10086
|
+
this.surchargePolicy = surchargePolicy;
|
|
10087
|
+
this.excludedMerchantStates = excludedMerchantStates;
|
|
10088
|
+
this.zip = zip;
|
|
10097
10089
|
this.state = state;
|
|
10098
|
-
this.
|
|
10090
|
+
this.exemptForeignCards = exemptForeignCards;
|
|
10091
|
+
this.surchargingMode = surchargingMode;
|
|
10092
|
+
this.pricingPlan = pricingPlan;
|
|
10099
10093
|
}
|
|
10100
10094
|
}
|
|
10101
|
-
exports.
|
|
10095
|
+
exports.SurchargeReviewRequest = SurchargeReviewRequest;
|
|
10102
10096
|
/**
|
|
10103
|
-
* Models the data
|
|
10097
|
+
* Models the data included in a surcharge review response.
|
|
10104
10098
|
*/
|
|
10105
|
-
class
|
|
10099
|
+
class SurchargeReviewResponseData {
|
|
10106
10100
|
// Constructor with default values for optional fields
|
|
10107
10101
|
constructor(type = null, attributes = null) {
|
|
10108
10102
|
/**
|
|
10109
|
-
* The type of the
|
|
10103
|
+
* The type of the response.
|
|
10110
10104
|
*/
|
|
10111
10105
|
this.type = null;
|
|
10112
10106
|
/**
|
|
10113
|
-
* The
|
|
10107
|
+
* The attributes of the response.
|
|
10114
10108
|
*/
|
|
10115
10109
|
this.attributes = null;
|
|
10116
10110
|
this.type = type;
|
|
10117
10111
|
this.attributes = attributes;
|
|
10118
10112
|
}
|
|
10119
10113
|
}
|
|
10120
|
-
exports.
|
|
10114
|
+
exports.SurchargeReviewResponseData = SurchargeReviewResponseData;
|
|
10121
10115
|
/**
|
|
10122
|
-
* Models a
|
|
10116
|
+
* Models the surcharge attributes included in a surcharge review response.
|
|
10123
10117
|
*/
|
|
10124
|
-
class
|
|
10118
|
+
class SurchargeAttributeResponseData {
|
|
10125
10119
|
// Constructor with default values for optional fields
|
|
10126
|
-
constructor(
|
|
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) {
|
|
10127
10121
|
/**
|
|
10128
|
-
* The
|
|
10122
|
+
* The total amount including surcharge.
|
|
10129
10123
|
*/
|
|
10130
|
-
this.
|
|
10124
|
+
this.totalWithSurchargeAmount = null;
|
|
10131
10125
|
/**
|
|
10132
|
-
*
|
|
10126
|
+
* If the surcharge review was successful.
|
|
10133
10127
|
*/
|
|
10134
|
-
this.
|
|
10128
|
+
this.success = null;
|
|
10135
10129
|
/**
|
|
10136
|
-
* The
|
|
10130
|
+
* The type of the response.
|
|
10137
10131
|
*/
|
|
10138
|
-
this.
|
|
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) {
|
|
10132
|
+
this.type = null;
|
|
10151
10133
|
/**
|
|
10152
10134
|
* The surcharge percentage.
|
|
10153
10135
|
*/
|
|
@@ -10173,21 +10155,24 @@ class PricingResponseAttributes {
|
|
|
10173
10155
|
*/
|
|
10174
10156
|
this.bin = null;
|
|
10175
10157
|
/**
|
|
10176
|
-
*
|
|
10158
|
+
* If the card is commercial.
|
|
10177
10159
|
*/
|
|
10178
|
-
this.
|
|
10160
|
+
this.isCommercial = null;
|
|
10179
10161
|
/**
|
|
10180
|
-
*
|
|
10162
|
+
* If the card is Durbin-regulated (US debit).
|
|
10181
10163
|
*/
|
|
10182
|
-
this.
|
|
10164
|
+
this.isRegulated = null;
|
|
10183
10165
|
/**
|
|
10184
10166
|
* The country where the card was issued.
|
|
10185
10167
|
*/
|
|
10186
|
-
this.
|
|
10168
|
+
this.countryCode = null;
|
|
10187
10169
|
/**
|
|
10188
10170
|
* The unique identifier for the pricing response.
|
|
10189
10171
|
*/
|
|
10190
10172
|
this.uuid = null;
|
|
10173
|
+
this.totalWithSurchargeAmount = totalWithSurchargeAmount;
|
|
10174
|
+
this.success = success;
|
|
10175
|
+
this.type = type;
|
|
10191
10176
|
this.surchargePercent = surchargePercent;
|
|
10192
10177
|
this.surchargeAmount = surchargeAmount;
|
|
10193
10178
|
this.surchargeExempt = surchargeExempt;
|
|
@@ -10196,62 +10181,76 @@ class PricingResponseAttributes {
|
|
|
10196
10181
|
this.brand = brand;
|
|
10197
10182
|
this.bin = bin;
|
|
10198
10183
|
this.commercialIndicator = commercialIndicator;
|
|
10184
|
+
this.isCommercial = isCommercial;
|
|
10185
|
+
this.isRegulated = isRegulated;
|
|
10186
|
+
this.exemptionReason = exemptionReason;
|
|
10187
|
+
this.debitFeeAmount = debitFeeAmount;
|
|
10199
10188
|
this.disclosure = disclosure;
|
|
10200
10189
|
this.debitCategory = debitCategory;
|
|
10201
|
-
this.
|
|
10190
|
+
this.countryCode = countryCode;
|
|
10191
|
+
this.state = state;
|
|
10202
10192
|
this.uuid = uuid;
|
|
10193
|
+
this.expirationDate = expirationDate;
|
|
10194
|
+
this.disclosureAdditional = disclosureAdditional;
|
|
10195
|
+
this.cardholderInfo = cardholderInfo;
|
|
10203
10196
|
}
|
|
10204
10197
|
}
|
|
10205
|
-
exports.
|
|
10198
|
+
exports.SurchargeAttributeResponseData = SurchargeAttributeResponseData;
|
|
10206
10199
|
/**
|
|
10207
|
-
* Models
|
|
10200
|
+
* Models a surcharge review response.
|
|
10208
10201
|
*/
|
|
10209
|
-
class
|
|
10202
|
+
class SurchargeReviewResponse {
|
|
10210
10203
|
// Constructor with default values for optional fields
|
|
10211
|
-
constructor(
|
|
10204
|
+
constructor(success = null, error = null, responseDescription = null, data = null) {
|
|
10212
10205
|
/**
|
|
10213
|
-
*
|
|
10206
|
+
* Whether or not the request succeeded.
|
|
10214
10207
|
*/
|
|
10215
|
-
this.
|
|
10208
|
+
this.success = null;
|
|
10216
10209
|
/**
|
|
10217
|
-
* The
|
|
10210
|
+
* The error, if an error occurred.
|
|
10218
10211
|
*/
|
|
10219
|
-
this.
|
|
10220
|
-
|
|
10221
|
-
|
|
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;
|
|
10222
10225
|
}
|
|
10223
10226
|
}
|
|
10224
|
-
exports.
|
|
10227
|
+
exports.SurchargeReviewResponse = SurchargeReviewResponse;
|
|
10225
10228
|
/**
|
|
10226
|
-
* Models
|
|
10229
|
+
* Models a request for short-lived API credentials.
|
|
10227
10230
|
*/
|
|
10228
|
-
class
|
|
10231
|
+
class TransientKeyRequest {
|
|
10229
10232
|
// Constructor with default values for optional fields
|
|
10230
|
-
constructor(
|
|
10233
|
+
constructor(timeout = null, test = null, oneTime = false) {
|
|
10231
10234
|
/**
|
|
10232
|
-
* The
|
|
10233
|
-
*/
|
|
10234
|
-
this.status = null;
|
|
10235
|
-
/**
|
|
10236
|
-
* The error title.
|
|
10235
|
+
* The request timeout in seconds.
|
|
10237
10236
|
*/
|
|
10238
|
-
this.
|
|
10237
|
+
this.timeout = null;
|
|
10239
10238
|
/**
|
|
10240
|
-
*
|
|
10239
|
+
* Whether or not to route transaction to the test gateway.
|
|
10241
10240
|
*/
|
|
10242
|
-
this.
|
|
10243
|
-
this.
|
|
10244
|
-
this.
|
|
10245
|
-
this.
|
|
10241
|
+
this.test = null;
|
|
10242
|
+
this.timeout = timeout;
|
|
10243
|
+
this.test = test;
|
|
10244
|
+
this.oneTime = oneTime;
|
|
10246
10245
|
}
|
|
10247
10246
|
}
|
|
10248
|
-
exports.
|
|
10247
|
+
exports.TransientKeyRequest = TransientKeyRequest;
|
|
10249
10248
|
/**
|
|
10250
|
-
* Models a
|
|
10249
|
+
* Models a response containing short-lived API credentials.
|
|
10251
10250
|
*/
|
|
10252
|
-
class
|
|
10251
|
+
class TransientKeyResponse {
|
|
10253
10252
|
// Constructor with default values for optional fields
|
|
10254
|
-
constructor(success = null, error = null, responseDescription = null,
|
|
10253
|
+
constructor(success = null, error = null, responseDescription = null, apiKey = null, bearerToken = null, signingKey = null) {
|
|
10255
10254
|
/**
|
|
10256
10255
|
* Whether or not the request succeeded.
|
|
10257
10256
|
*/
|
|
@@ -10265,16 +10264,26 @@ class PricingResponse {
|
|
|
10265
10264
|
*/
|
|
10266
10265
|
this.responseDescription = null;
|
|
10267
10266
|
/**
|
|
10268
|
-
* The
|
|
10267
|
+
* The transient API key.
|
|
10269
10268
|
*/
|
|
10270
|
-
this.
|
|
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;
|
|
10271
10278
|
this.success = success;
|
|
10272
10279
|
this.error = error;
|
|
10273
10280
|
this.responseDescription = responseDescription;
|
|
10274
|
-
this.
|
|
10281
|
+
this.apiKey = apiKey;
|
|
10282
|
+
this.bearerToken = bearerToken;
|
|
10283
|
+
this.signingKey = signingKey;
|
|
10275
10284
|
}
|
|
10276
10285
|
}
|
|
10277
|
-
exports.
|
|
10286
|
+
exports.TransientKeyResponse = TransientKeyResponse;
|
|
10278
10287
|
/**
|
|
10279
10288
|
* A request for customer signature data.
|
|
10280
10289
|
*/
|