@blockchyp/blockchyp-ts 2.30.1 → 2.30.4
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 +2479 -1651
- 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 +149 -118
- package/lib/src/models.js +136 -127
- package/lib/src/models.js.map +1 -1
- package/package.json +5 -2
- package/src/client.ts +8 -1
- package/src/models.ts +239 -187
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) {
|
|
@@ -999,7 +999,7 @@ exports.UpdateTokenResponse = UpdateTokenResponse;
|
|
|
999
999
|
*/
|
|
1000
1000
|
class CustomerToken {
|
|
1001
1001
|
// Constructor with default values for optional fields
|
|
1002
|
-
constructor(token = null, maskedPan = null, expiryMonth = null, expiryYear = null, paymentType = null, accountType = null, accountHolderType = null, bankName = null, routingNumber = null, tokenHash = null, bin = null, postalCode = undefined, address = undefined, country = undefined, cardHolderName = undefined, customers = null) {
|
|
1002
|
+
constructor(token = null, maskedPan = null, expiryMonth = null, expiryYear = null, paymentType = null, accountType = null, accountHolderType = null, bankName = null, routingNumber = null, tokenHash = null, bin = null, postalCode = undefined, address = undefined, country = undefined, cardHolderName = undefined, hasCvv = null, customers = null) {
|
|
1003
1003
|
/**
|
|
1004
1004
|
* BlockChyp assigned customer id.
|
|
1005
1005
|
*/
|
|
@@ -1044,6 +1044,10 @@ class CustomerToken {
|
|
|
1044
1044
|
* Card bin.
|
|
1045
1045
|
*/
|
|
1046
1046
|
this.bin = null;
|
|
1047
|
+
/**
|
|
1048
|
+
* Whether the token was enrolled with a CVV value present.
|
|
1049
|
+
*/
|
|
1050
|
+
this.hasCvv = null;
|
|
1047
1051
|
/**
|
|
1048
1052
|
* Models customer records associated with a payment token.
|
|
1049
1053
|
*/
|
|
@@ -1063,6 +1067,7 @@ class CustomerToken {
|
|
|
1063
1067
|
this.address = address;
|
|
1064
1068
|
this.country = country;
|
|
1065
1069
|
this.cardHolderName = cardHolderName;
|
|
1070
|
+
this.hasCvv = hasCvv;
|
|
1066
1071
|
this.customers = customers;
|
|
1067
1072
|
}
|
|
1068
1073
|
}
|
|
@@ -1159,7 +1164,7 @@ exports.WhiteListedCard = WhiteListedCard;
|
|
|
1159
1164
|
*/
|
|
1160
1165
|
class AuthorizationRequest {
|
|
1161
1166
|
// 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) {
|
|
1167
|
+
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
1168
|
/**
|
|
1164
1169
|
* The request timeout in seconds.
|
|
1165
1170
|
*/
|
|
@@ -1305,6 +1310,7 @@ class AuthorizationRequest {
|
|
|
1305
1310
|
this.orderDate = orderDate;
|
|
1306
1311
|
this.shipmentCount = shipmentCount;
|
|
1307
1312
|
this.shipmentNumber = shipmentNumber;
|
|
1313
|
+
this.externalPartnerMetadata = externalPartnerMetadata;
|
|
1308
1314
|
}
|
|
1309
1315
|
}
|
|
1310
1316
|
exports.AuthorizationRequest = AuthorizationRequest;
|
|
@@ -1856,7 +1862,7 @@ exports.CaptureRequest = CaptureRequest;
|
|
|
1856
1862
|
*/
|
|
1857
1863
|
class CaptureResponse {
|
|
1858
1864
|
// 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) {
|
|
1865
|
+
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
1866
|
/**
|
|
1861
1867
|
* Whether or not the request succeeded.
|
|
1862
1868
|
*/
|
|
@@ -1996,6 +2002,7 @@ class CaptureResponse {
|
|
|
1996
2002
|
this.receiptSuggestions = receiptSuggestions;
|
|
1997
2003
|
this.customer = customer;
|
|
1998
2004
|
this.customers = customers;
|
|
2005
|
+
this.enhancedDataPassed = enhancedDataPassed;
|
|
1999
2006
|
}
|
|
2000
2007
|
}
|
|
2001
2008
|
exports.CaptureResponse = CaptureResponse;
|
|
@@ -2219,7 +2226,7 @@ exports.EnrollRequest = EnrollRequest;
|
|
|
2219
2226
|
*/
|
|
2220
2227
|
class EnrollResponse {
|
|
2221
2228
|
// Constructor with default values for optional fields
|
|
2222
|
-
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, 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, cardMetadata = undefined, accountType = undefined, accountHolderType = undefined, bankName = undefined, tokenHash = undefined, bin = undefined) {
|
|
2229
|
+
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, 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, cardMetadata = undefined, accountType = undefined, accountHolderType = undefined, bankName = undefined, tokenHash = undefined, bin = undefined, hasCvv = null) {
|
|
2223
2230
|
/**
|
|
2224
2231
|
* Whether or not the request succeeded.
|
|
2225
2232
|
*/
|
|
@@ -2268,6 +2275,10 @@ class EnrollResponse {
|
|
|
2268
2275
|
* Customer data, if any.
|
|
2269
2276
|
*/
|
|
2270
2277
|
this.customers = null;
|
|
2278
|
+
/**
|
|
2279
|
+
* Whether the token was enrolled with a CVV value present.
|
|
2280
|
+
*/
|
|
2281
|
+
this.hasCvv = null;
|
|
2271
2282
|
this.success = success;
|
|
2272
2283
|
this.error = error;
|
|
2273
2284
|
this.responseDescription = responseDescription;
|
|
@@ -2309,6 +2320,7 @@ class EnrollResponse {
|
|
|
2309
2320
|
this.bankName = bankName;
|
|
2310
2321
|
this.tokenHash = tokenHash;
|
|
2311
2322
|
this.bin = bin;
|
|
2323
|
+
this.hasCvv = hasCvv;
|
|
2312
2324
|
}
|
|
2313
2325
|
}
|
|
2314
2326
|
exports.EnrollResponse = EnrollResponse;
|
|
@@ -2766,7 +2778,7 @@ exports.TermsAndConditionsResponse = TermsAndConditionsResponse;
|
|
|
2766
2778
|
*/
|
|
2767
2779
|
class AuthorizationResponse {
|
|
2768
2780
|
// 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) {
|
|
2781
|
+
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
2782
|
/**
|
|
2771
2783
|
* Whether or not the request succeeded.
|
|
2772
2784
|
*/
|
|
@@ -2973,6 +2985,7 @@ class AuthorizationResponse {
|
|
|
2973
2985
|
this.storeAndForward = storeAndForward;
|
|
2974
2986
|
this.status = status;
|
|
2975
2987
|
this.cardMetadata = cardMetadata;
|
|
2988
|
+
this.enhancedDataPassed = enhancedDataPassed;
|
|
2976
2989
|
}
|
|
2977
2990
|
}
|
|
2978
2991
|
exports.AuthorizationResponse = AuthorizationResponse;
|
|
@@ -4464,7 +4477,7 @@ class BatchDetailsResponse {
|
|
|
4464
4477
|
*/
|
|
4465
4478
|
this.netDeposit = null;
|
|
4466
4479
|
/**
|
|
4467
|
-
* The daily fees for this batch
|
|
4480
|
+
* The daily fees for this batch.
|
|
4468
4481
|
*/
|
|
4469
4482
|
this.dailyFees = null;
|
|
4470
4483
|
this.success = success;
|
|
@@ -10031,133 +10044,102 @@ class SubmitApplicationRequest {
|
|
|
10031
10044
|
}
|
|
10032
10045
|
exports.SubmitApplicationRequest = SubmitApplicationRequest;
|
|
10033
10046
|
/**
|
|
10034
|
-
* Models
|
|
10047
|
+
* Models a surcharge review request.
|
|
10035
10048
|
*/
|
|
10036
|
-
class
|
|
10049
|
+
class SurchargeReviewRequest {
|
|
10037
10050
|
// Constructor with default values for optional fields
|
|
10038
|
-
constructor(
|
|
10051
|
+
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
10052
|
/**
|
|
10040
|
-
*
|
|
10053
|
+
* The request timeout in seconds.
|
|
10041
10054
|
*/
|
|
10042
|
-
this.
|
|
10055
|
+
this.timeout = null;
|
|
10043
10056
|
/**
|
|
10044
|
-
*
|
|
10057
|
+
* Whether or not to route transaction to the test gateway.
|
|
10045
10058
|
*/
|
|
10046
|
-
this.
|
|
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) {
|
|
10059
|
+
this.test = null;
|
|
10058
10060
|
/**
|
|
10059
|
-
* The
|
|
10061
|
+
* The surcharge policy.
|
|
10060
10062
|
*/
|
|
10061
|
-
this.
|
|
10063
|
+
this.surchargePolicy = null;
|
|
10062
10064
|
/**
|
|
10063
|
-
* The
|
|
10065
|
+
* The list of excluded merchant states.
|
|
10064
10066
|
*/
|
|
10065
|
-
this.
|
|
10067
|
+
this.excludedMerchantStates = null;
|
|
10066
10068
|
/**
|
|
10067
|
-
*
|
|
10069
|
+
* The zip code.
|
|
10068
10070
|
*/
|
|
10069
|
-
this.
|
|
10071
|
+
this.zip = null;
|
|
10070
10072
|
/**
|
|
10071
|
-
* The
|
|
10073
|
+
* The state or province.
|
|
10072
10074
|
*/
|
|
10073
|
-
this.
|
|
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) {
|
|
10075
|
+
this.state = null;
|
|
10093
10076
|
/**
|
|
10094
|
-
*
|
|
10077
|
+
* If foreign cards are exempt.
|
|
10095
10078
|
*/
|
|
10096
|
-
this.
|
|
10079
|
+
this.exemptForeignCards = null;
|
|
10097
10080
|
/**
|
|
10098
|
-
* The
|
|
10081
|
+
* The surcharging mode.
|
|
10099
10082
|
*/
|
|
10100
|
-
this.
|
|
10083
|
+
this.surchargingMode = null;
|
|
10084
|
+
/**
|
|
10085
|
+
* The pricing plan.
|
|
10086
|
+
*/
|
|
10087
|
+
this.pricingPlan = null;
|
|
10088
|
+
this.timeout = timeout;
|
|
10089
|
+
this.test = test;
|
|
10101
10090
|
this.cardNumber = cardNumber;
|
|
10102
10091
|
this.token = token;
|
|
10103
|
-
this.merchantIdentifier = merchantIdentifier;
|
|
10104
10092
|
this.amount = amount;
|
|
10105
|
-
this.
|
|
10106
|
-
this.
|
|
10093
|
+
this.surchargeRate = surchargeRate;
|
|
10094
|
+
this.debitTransFee = debitTransFee;
|
|
10095
|
+
this.debitDiscountRate = debitDiscountRate;
|
|
10096
|
+
this.surchargePolicy = surchargePolicy;
|
|
10097
|
+
this.excludedMerchantStates = excludedMerchantStates;
|
|
10098
|
+
this.zip = zip;
|
|
10107
10099
|
this.state = state;
|
|
10108
|
-
this.
|
|
10100
|
+
this.exemptForeignCards = exemptForeignCards;
|
|
10101
|
+
this.surchargingMode = surchargingMode;
|
|
10102
|
+
this.pricingPlan = pricingPlan;
|
|
10109
10103
|
}
|
|
10110
10104
|
}
|
|
10111
|
-
exports.
|
|
10105
|
+
exports.SurchargeReviewRequest = SurchargeReviewRequest;
|
|
10112
10106
|
/**
|
|
10113
|
-
* Models the data
|
|
10107
|
+
* Models the data included in a surcharge review response.
|
|
10114
10108
|
*/
|
|
10115
|
-
class
|
|
10109
|
+
class SurchargeReviewResponseData {
|
|
10116
10110
|
// Constructor with default values for optional fields
|
|
10117
10111
|
constructor(type = null, attributes = null) {
|
|
10118
10112
|
/**
|
|
10119
|
-
* The type of the
|
|
10113
|
+
* The type of the response.
|
|
10120
10114
|
*/
|
|
10121
10115
|
this.type = null;
|
|
10122
10116
|
/**
|
|
10123
|
-
* The
|
|
10117
|
+
* The attributes of the response.
|
|
10124
10118
|
*/
|
|
10125
10119
|
this.attributes = null;
|
|
10126
10120
|
this.type = type;
|
|
10127
10121
|
this.attributes = attributes;
|
|
10128
10122
|
}
|
|
10129
10123
|
}
|
|
10130
|
-
exports.
|
|
10124
|
+
exports.SurchargeReviewResponseData = SurchargeReviewResponseData;
|
|
10131
10125
|
/**
|
|
10132
|
-
* Models a
|
|
10126
|
+
* Models the surcharge attributes included in a surcharge review response.
|
|
10133
10127
|
*/
|
|
10134
|
-
class
|
|
10128
|
+
class SurchargeAttributeResponseData {
|
|
10135
10129
|
// Constructor with default values for optional fields
|
|
10136
|
-
constructor(
|
|
10130
|
+
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
10131
|
/**
|
|
10138
|
-
* The
|
|
10132
|
+
* The total amount including surcharge.
|
|
10139
10133
|
*/
|
|
10140
|
-
this.
|
|
10134
|
+
this.totalWithSurchargeAmount = null;
|
|
10141
10135
|
/**
|
|
10142
|
-
*
|
|
10136
|
+
* If the surcharge review was successful.
|
|
10143
10137
|
*/
|
|
10144
|
-
this.
|
|
10138
|
+
this.success = null;
|
|
10145
10139
|
/**
|
|
10146
|
-
* The
|
|
10140
|
+
* The type of the response.
|
|
10147
10141
|
*/
|
|
10148
|
-
this.
|
|
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) {
|
|
10142
|
+
this.type = null;
|
|
10161
10143
|
/**
|
|
10162
10144
|
* The surcharge percentage.
|
|
10163
10145
|
*/
|
|
@@ -10183,21 +10165,24 @@ class PricingResponseAttributes {
|
|
|
10183
10165
|
*/
|
|
10184
10166
|
this.bin = null;
|
|
10185
10167
|
/**
|
|
10186
|
-
*
|
|
10168
|
+
* If the card is commercial.
|
|
10187
10169
|
*/
|
|
10188
|
-
this.
|
|
10170
|
+
this.isCommercial = null;
|
|
10189
10171
|
/**
|
|
10190
|
-
*
|
|
10172
|
+
* If the card is Durbin-regulated (US debit).
|
|
10191
10173
|
*/
|
|
10192
|
-
this.
|
|
10174
|
+
this.isRegulated = null;
|
|
10193
10175
|
/**
|
|
10194
10176
|
* The country where the card was issued.
|
|
10195
10177
|
*/
|
|
10196
|
-
this.
|
|
10178
|
+
this.countryCode = null;
|
|
10197
10179
|
/**
|
|
10198
10180
|
* The unique identifier for the pricing response.
|
|
10199
10181
|
*/
|
|
10200
10182
|
this.uuid = null;
|
|
10183
|
+
this.totalWithSurchargeAmount = totalWithSurchargeAmount;
|
|
10184
|
+
this.success = success;
|
|
10185
|
+
this.type = type;
|
|
10201
10186
|
this.surchargePercent = surchargePercent;
|
|
10202
10187
|
this.surchargeAmount = surchargeAmount;
|
|
10203
10188
|
this.surchargeExempt = surchargeExempt;
|
|
@@ -10206,62 +10191,76 @@ class PricingResponseAttributes {
|
|
|
10206
10191
|
this.brand = brand;
|
|
10207
10192
|
this.bin = bin;
|
|
10208
10193
|
this.commercialIndicator = commercialIndicator;
|
|
10194
|
+
this.isCommercial = isCommercial;
|
|
10195
|
+
this.isRegulated = isRegulated;
|
|
10196
|
+
this.exemptionReason = exemptionReason;
|
|
10197
|
+
this.debitFeeAmount = debitFeeAmount;
|
|
10209
10198
|
this.disclosure = disclosure;
|
|
10210
10199
|
this.debitCategory = debitCategory;
|
|
10211
|
-
this.
|
|
10200
|
+
this.countryCode = countryCode;
|
|
10201
|
+
this.state = state;
|
|
10212
10202
|
this.uuid = uuid;
|
|
10203
|
+
this.expirationDate = expirationDate;
|
|
10204
|
+
this.disclosureAdditional = disclosureAdditional;
|
|
10205
|
+
this.cardholderInfo = cardholderInfo;
|
|
10213
10206
|
}
|
|
10214
10207
|
}
|
|
10215
|
-
exports.
|
|
10208
|
+
exports.SurchargeAttributeResponseData = SurchargeAttributeResponseData;
|
|
10216
10209
|
/**
|
|
10217
|
-
* Models
|
|
10210
|
+
* Models a surcharge review response.
|
|
10218
10211
|
*/
|
|
10219
|
-
class
|
|
10212
|
+
class SurchargeReviewResponse {
|
|
10220
10213
|
// Constructor with default values for optional fields
|
|
10221
|
-
constructor(
|
|
10214
|
+
constructor(success = null, error = null, responseDescription = null, data = null) {
|
|
10222
10215
|
/**
|
|
10223
|
-
*
|
|
10216
|
+
* Whether or not the request succeeded.
|
|
10224
10217
|
*/
|
|
10225
|
-
this.
|
|
10218
|
+
this.success = null;
|
|
10226
10219
|
/**
|
|
10227
|
-
* The
|
|
10220
|
+
* The error, if an error occurred.
|
|
10228
10221
|
*/
|
|
10229
|
-
this.
|
|
10230
|
-
|
|
10231
|
-
|
|
10222
|
+
this.error = null;
|
|
10223
|
+
/**
|
|
10224
|
+
* A narrative description of the transaction result.
|
|
10225
|
+
*/
|
|
10226
|
+
this.responseDescription = null;
|
|
10227
|
+
/**
|
|
10228
|
+
* The data included in the surcharge review response.
|
|
10229
|
+
*/
|
|
10230
|
+
this.data = null;
|
|
10231
|
+
this.success = success;
|
|
10232
|
+
this.error = error;
|
|
10233
|
+
this.responseDescription = responseDescription;
|
|
10234
|
+
this.data = data;
|
|
10232
10235
|
}
|
|
10233
10236
|
}
|
|
10234
|
-
exports.
|
|
10237
|
+
exports.SurchargeReviewResponse = SurchargeReviewResponse;
|
|
10235
10238
|
/**
|
|
10236
|
-
* Models
|
|
10239
|
+
* Models a request for short-lived API credentials.
|
|
10237
10240
|
*/
|
|
10238
|
-
class
|
|
10241
|
+
class TransientKeyRequest {
|
|
10239
10242
|
// Constructor with default values for optional fields
|
|
10240
|
-
constructor(
|
|
10243
|
+
constructor(timeout = null, test = null, oneTime = false) {
|
|
10241
10244
|
/**
|
|
10242
|
-
* The
|
|
10243
|
-
*/
|
|
10244
|
-
this.status = null;
|
|
10245
|
-
/**
|
|
10246
|
-
* The error title.
|
|
10245
|
+
* The request timeout in seconds.
|
|
10247
10246
|
*/
|
|
10248
|
-
this.
|
|
10247
|
+
this.timeout = null;
|
|
10249
10248
|
/**
|
|
10250
|
-
*
|
|
10249
|
+
* Whether or not to route transaction to the test gateway.
|
|
10251
10250
|
*/
|
|
10252
|
-
this.
|
|
10253
|
-
this.
|
|
10254
|
-
this.
|
|
10255
|
-
this.
|
|
10251
|
+
this.test = null;
|
|
10252
|
+
this.timeout = timeout;
|
|
10253
|
+
this.test = test;
|
|
10254
|
+
this.oneTime = oneTime;
|
|
10256
10255
|
}
|
|
10257
10256
|
}
|
|
10258
|
-
exports.
|
|
10257
|
+
exports.TransientKeyRequest = TransientKeyRequest;
|
|
10259
10258
|
/**
|
|
10260
|
-
* Models a
|
|
10259
|
+
* Models a response containing short-lived API credentials.
|
|
10261
10260
|
*/
|
|
10262
|
-
class
|
|
10261
|
+
class TransientKeyResponse {
|
|
10263
10262
|
// Constructor with default values for optional fields
|
|
10264
|
-
constructor(success = null, error = null, responseDescription = null,
|
|
10263
|
+
constructor(success = null, error = null, responseDescription = null, apiKey = null, bearerToken = null, signingKey = null) {
|
|
10265
10264
|
/**
|
|
10266
10265
|
* Whether or not the request succeeded.
|
|
10267
10266
|
*/
|
|
@@ -10275,16 +10274,26 @@ class PricingResponse {
|
|
|
10275
10274
|
*/
|
|
10276
10275
|
this.responseDescription = null;
|
|
10277
10276
|
/**
|
|
10278
|
-
* The
|
|
10277
|
+
* The transient API key.
|
|
10279
10278
|
*/
|
|
10280
|
-
this.
|
|
10279
|
+
this.apiKey = null;
|
|
10280
|
+
/**
|
|
10281
|
+
* The transient bearer token.
|
|
10282
|
+
*/
|
|
10283
|
+
this.bearerToken = null;
|
|
10284
|
+
/**
|
|
10285
|
+
* The transient signing key.
|
|
10286
|
+
*/
|
|
10287
|
+
this.signingKey = null;
|
|
10281
10288
|
this.success = success;
|
|
10282
10289
|
this.error = error;
|
|
10283
10290
|
this.responseDescription = responseDescription;
|
|
10284
|
-
this.
|
|
10291
|
+
this.apiKey = apiKey;
|
|
10292
|
+
this.bearerToken = bearerToken;
|
|
10293
|
+
this.signingKey = signingKey;
|
|
10285
10294
|
}
|
|
10286
10295
|
}
|
|
10287
|
-
exports.
|
|
10296
|
+
exports.TransientKeyResponse = TransientKeyResponse;
|
|
10288
10297
|
/**
|
|
10289
10298
|
* A request for customer signature data.
|
|
10290
10299
|
*/
|