@blockchyp/blockchyp-ts 2.30.3 → 2.30.5
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/_bundles/blockchyp.js +1585 -1177
- 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/models.d.ts +24 -4
- package/lib/src/models.js +17 -4
- package/lib/src/models.js.map +1 -1
- package/package.json +1 -1
- package/src/models.ts +36 -1
package/lib/src/models.d.ts
CHANGED
|
@@ -1204,11 +1204,15 @@ export declare class CustomerToken {
|
|
|
1204
1204
|
* The card holder name.
|
|
1205
1205
|
*/
|
|
1206
1206
|
cardHolderName?: string;
|
|
1207
|
+
/**
|
|
1208
|
+
* Whether the token was enrolled with a CVV value present.
|
|
1209
|
+
*/
|
|
1210
|
+
hasCvv: boolean | null;
|
|
1207
1211
|
/**
|
|
1208
1212
|
* Models customer records associated with a payment token.
|
|
1209
1213
|
*/
|
|
1210
1214
|
customers: Customer[] | null;
|
|
1211
|
-
constructor(token?: string | null, maskedPan?: string | null, expiryMonth?: string | null, expiryYear?: string | null, paymentType?: string | null, accountType?: string | null, accountHolderType?: string | null, bankName?: string | null, routingNumber?: string | null, tokenHash?: string | null, bin?: string | null, postalCode?: string | undefined, address?: string | undefined, country?: string | undefined, cardHolderName?: string | undefined, customers?: Customer[] | null);
|
|
1215
|
+
constructor(token?: string | null, maskedPan?: string | null, expiryMonth?: string | null, expiryYear?: string | null, paymentType?: string | null, accountType?: string | null, accountHolderType?: string | null, bankName?: string | null, routingNumber?: string | null, tokenHash?: string | null, bin?: string | null, postalCode?: string | undefined, address?: string | undefined, country?: string | undefined, cardHolderName?: string | undefined, hasCvv?: boolean | null, customers?: Customer[] | null);
|
|
1212
1216
|
}
|
|
1213
1217
|
/**
|
|
1214
1218
|
* The response to a text prompt request.
|
|
@@ -1654,9 +1658,21 @@ export declare class AuthorizationRequest {
|
|
|
1654
1658
|
* An optional field that can be used to pass through data to external partners.
|
|
1655
1659
|
*/
|
|
1656
1660
|
externalPartnerMetadata?: string;
|
|
1661
|
+
/**
|
|
1662
|
+
* The external customer's email address.
|
|
1663
|
+
*/
|
|
1664
|
+
externalCustomerEmail?: string;
|
|
1665
|
+
/**
|
|
1666
|
+
* The external customer's phone number.
|
|
1667
|
+
*/
|
|
1668
|
+
externalCustomerPhone?: string;
|
|
1669
|
+
/**
|
|
1670
|
+
* The external customer's company name.
|
|
1671
|
+
*/
|
|
1672
|
+
externalCustomerCompany?: string;
|
|
1657
1673
|
constructor(timeout?: number | null, test?: boolean | null, transactionRef?: string | undefined, autogeneratedRef?: boolean | null, async?: boolean | null, queue?: boolean | null, waitForRemovedCard?: boolean, force?: boolean, orderRef?: string | undefined, destinationAccount?: string | undefined, testCase?: string | undefined, token?: string | undefined, track1?: string | undefined, track2?: string | undefined, pan?: string | undefined, routingNumber?: string | undefined, cardholderName?: string | undefined, expMonth?: string | undefined, expYear?: string | undefined, cvv?: string | undefined, address?: string | undefined, postalCode?: string | undefined, country?: string | undefined, manualEntry?: boolean, ksn?: string | undefined, pinBlock?: string | undefined, cardType?: CardType | undefined, paymentType?: string | undefined, currencyCode?: string | null, amount?: string | null, taxExempt?: boolean | null, surcharge?: boolean | null, cashDiscount?: boolean | null, sigFile?: string | undefined, sigFormat?: SignatureFormat | undefined, sigWidth?: number, disableSignature?: boolean, tipAmount?: string | undefined, taxAmount?: string | undefined, terminalName?: string | undefined, resetConnection?: boolean | null, transactionId?: string | undefined, onlineAuthCode?: string | undefined, enroll?: boolean, bypassDupeFilter?: boolean, description?: string | undefined, promptForTip?: boolean, cashBackEnabled?: boolean, cardOnFile?: boolean, recurring?: boolean, cit?: boolean, mit?: boolean, subscription?: boolean, purchaseOrderNumber?: string | undefined, supplierReferenceNumber?: string | undefined, lineItems?: TransactionDisplayItem[] | null, altPrices?: {
|
|
1658
1674
|
[key: string]: string;
|
|
1659
|
-
} | undefined, customer?: Customer | undefined, roundingMode?: RoundingMode | undefined, healthcareMetadata?: HealthcareMetadata | undefined, cryptocurrency?: string | undefined, cryptoNetwork?: string | undefined, cryptoReceiveAddress?: string | undefined, paymentRequestLabel?: string | undefined, paymentRequestMessage?: string | undefined, simulateChipRejection?: boolean, simulateOutOfOrderReversal?: boolean, asyncReversals?: boolean, passthroughSurcharge?: string | undefined, healthcare?: boolean, healthcareTotal?: string | undefined, ebtTotal?: string | undefined, cardMetadataLookup?: boolean, totalDiscountAmount?: string | undefined, shippingAmount?: string | undefined, dutyAmount?: string | undefined, processorId?: string | undefined, externalCustomerId?: string | undefined, destinationCountryCode?: string | undefined, shipFromPostalCode?: string | undefined, shipToPostalCode?: string | undefined, orderDate?: Date | undefined, shipmentCount?: number | null, shipmentNumber?: number | null, externalPartnerMetadata?: string | undefined);
|
|
1675
|
+
} | undefined, customer?: Customer | undefined, roundingMode?: RoundingMode | undefined, healthcareMetadata?: HealthcareMetadata | undefined, cryptocurrency?: string | undefined, cryptoNetwork?: string | undefined, cryptoReceiveAddress?: string | undefined, paymentRequestLabel?: string | undefined, paymentRequestMessage?: string | undefined, simulateChipRejection?: boolean, simulateOutOfOrderReversal?: boolean, asyncReversals?: boolean, passthroughSurcharge?: string | undefined, healthcare?: boolean, healthcareTotal?: string | undefined, ebtTotal?: string | undefined, cardMetadataLookup?: boolean, totalDiscountAmount?: string | undefined, shippingAmount?: string | undefined, dutyAmount?: string | undefined, processorId?: string | undefined, externalCustomerId?: string | undefined, destinationCountryCode?: string | undefined, shipFromPostalCode?: string | undefined, shipToPostalCode?: string | undefined, orderDate?: Date | undefined, shipmentCount?: number | null, shipmentNumber?: number | null, externalPartnerMetadata?: string | undefined, externalCustomerEmail?: string | undefined, externalCustomerPhone?: string | undefined, externalCustomerCompany?: string | undefined);
|
|
1660
1676
|
}
|
|
1661
1677
|
/**
|
|
1662
1678
|
* Essential information about a payment card derived from its BIN/IIN.
|
|
@@ -3308,7 +3324,11 @@ export declare class EnrollResponse {
|
|
|
3308
3324
|
* The first 8 digits of the card aka the BIN.
|
|
3309
3325
|
*/
|
|
3310
3326
|
bin?: string;
|
|
3311
|
-
|
|
3327
|
+
/**
|
|
3328
|
+
* Whether the token was enrolled with a CVV value present.
|
|
3329
|
+
*/
|
|
3330
|
+
hasCvv: boolean | null;
|
|
3331
|
+
constructor(success?: boolean | null, error?: string | null, responseDescription?: string | null, approved?: boolean | null, authCode?: string | undefined, authResponseCode?: string | undefined, transactionId?: string | null, batchId?: string | undefined, transactionRef?: string | undefined, transactionType?: string | null, timestamp?: string | null, tickBlock?: string | null, test?: boolean | null, destinationAccount?: string | undefined, sig?: string | undefined, token?: string | undefined, entryMethod?: string | undefined, paymentType?: string | undefined, network?: string | undefined, logo?: string | undefined, maskedPan?: string | undefined, publicKey?: string | undefined, ScopeAlert?: boolean, cardHolder?: string | undefined, expMonth?: string | undefined, expYear?: string | undefined, postalCode?: string | undefined, address?: string | undefined, country?: string | undefined, avsResponse?: AVSResponse | null, cvvResponse?: string | undefined, receiptSuggestions?: ReceiptSuggestions | null, customer?: Customer | undefined, customers?: Customer[] | null, sigFile?: string | undefined, cardMetadata?: CardMetadata | undefined, accountType?: string | undefined, accountHolderType?: string | undefined, bankName?: string | undefined, tokenHash?: string | undefined, bin?: string | undefined, hasCvv?: boolean | null);
|
|
3312
3332
|
}
|
|
3313
3333
|
/**
|
|
3314
3334
|
* The information needed to enroll a new payment method in the token vault.
|
|
@@ -5712,7 +5732,7 @@ export declare class BatchDetailsResponse {
|
|
|
5712
5732
|
*/
|
|
5713
5733
|
netDeposit: string | null;
|
|
5714
5734
|
/**
|
|
5715
|
-
* The daily fees for this batch
|
|
5735
|
+
* The daily fees for this batch.
|
|
5716
5736
|
*/
|
|
5717
5737
|
dailyFees: string | null;
|
|
5718
5738
|
constructor(success?: boolean | null, error?: string | null, responseDescription?: string | null, test?: boolean | null, batchId?: string | null, entryMethod?: string | null, destinationAccountId?: string | null, capturedAmount?: string | null, openPreauths?: string | null, totalVolume?: string | null, transactionCount?: number | null, giftCardsSold?: string | null, giftCardVolume?: string | null, expectedDeposit?: string | null, open?: boolean | null, openDate?: Date | null, closeDate?: Date | null, volumeByTerminal?: TerminalVolume[] | null, netDeposit?: string | null, dailyFees?: string | null);
|
package/lib/src/models.js
CHANGED
|
@@ -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, externalPartnerMetadata = undefined) {
|
|
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, externalCustomerEmail = undefined, externalCustomerPhone = undefined, externalCustomerCompany = undefined) {
|
|
1163
1168
|
/**
|
|
1164
1169
|
* The request timeout in seconds.
|
|
1165
1170
|
*/
|
|
@@ -1306,6 +1311,9 @@ class AuthorizationRequest {
|
|
|
1306
1311
|
this.shipmentCount = shipmentCount;
|
|
1307
1312
|
this.shipmentNumber = shipmentNumber;
|
|
1308
1313
|
this.externalPartnerMetadata = externalPartnerMetadata;
|
|
1314
|
+
this.externalCustomerEmail = externalCustomerEmail;
|
|
1315
|
+
this.externalCustomerPhone = externalCustomerPhone;
|
|
1316
|
+
this.externalCustomerCompany = externalCustomerCompany;
|
|
1309
1317
|
}
|
|
1310
1318
|
}
|
|
1311
1319
|
exports.AuthorizationRequest = AuthorizationRequest;
|
|
@@ -2221,7 +2229,7 @@ exports.EnrollRequest = EnrollRequest;
|
|
|
2221
2229
|
*/
|
|
2222
2230
|
class EnrollResponse {
|
|
2223
2231
|
// Constructor with default values for optional fields
|
|
2224
|
-
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) {
|
|
2232
|
+
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) {
|
|
2225
2233
|
/**
|
|
2226
2234
|
* Whether or not the request succeeded.
|
|
2227
2235
|
*/
|
|
@@ -2270,6 +2278,10 @@ class EnrollResponse {
|
|
|
2270
2278
|
* Customer data, if any.
|
|
2271
2279
|
*/
|
|
2272
2280
|
this.customers = null;
|
|
2281
|
+
/**
|
|
2282
|
+
* Whether the token was enrolled with a CVV value present.
|
|
2283
|
+
*/
|
|
2284
|
+
this.hasCvv = null;
|
|
2273
2285
|
this.success = success;
|
|
2274
2286
|
this.error = error;
|
|
2275
2287
|
this.responseDescription = responseDescription;
|
|
@@ -2311,6 +2323,7 @@ class EnrollResponse {
|
|
|
2311
2323
|
this.bankName = bankName;
|
|
2312
2324
|
this.tokenHash = tokenHash;
|
|
2313
2325
|
this.bin = bin;
|
|
2326
|
+
this.hasCvv = hasCvv;
|
|
2314
2327
|
}
|
|
2315
2328
|
}
|
|
2316
2329
|
exports.EnrollResponse = EnrollResponse;
|
|
@@ -4467,7 +4480,7 @@ class BatchDetailsResponse {
|
|
|
4467
4480
|
*/
|
|
4468
4481
|
this.netDeposit = null;
|
|
4469
4482
|
/**
|
|
4470
|
-
* The daily fees for this batch
|
|
4483
|
+
* The daily fees for this batch.
|
|
4471
4484
|
*/
|
|
4472
4485
|
this.dailyFees = null;
|
|
4473
4486
|
this.success = success;
|