@blockchyp/blockchyp-ts 2.18.6 → 2.18.7
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 +2 -1
- package/_bundles/blockchyp.js.map +1 -1
- package/_bundles/blockchyp.min.js +1 -1
- package/_bundles/blockchyp.min.js.map +1 -1
- package/lib/src/models.d.ts +6 -1
- package/lib/src/models.js +2 -1
- package/lib/src/models.js.map +1 -1
- package/package.json +1 -1
- package/src/models.ts +8 -0
package/lib/src/models.d.ts
CHANGED
|
@@ -1461,9 +1461,14 @@ export declare class AuthorizationRequest {
|
|
|
1461
1461
|
* caution and in conjunction with the transaction status API.
|
|
1462
1462
|
*/
|
|
1463
1463
|
asyncReversals?: boolean;
|
|
1464
|
+
/**
|
|
1465
|
+
* A passthrough surcharge amount. This surcharge amount will be passed directly to the
|
|
1466
|
+
* gateway and is not directly calculated.
|
|
1467
|
+
*/
|
|
1468
|
+
passthroughSurcharge?: string;
|
|
1464
1469
|
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, 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?: {
|
|
1465
1470
|
[key: string]: string;
|
|
1466
|
-
} | undefined, customer?: Customer | undefined, roundingMode?: RoundingMode | undefined, healthcare?: Healthcare | undefined, cryptocurrency?: string | undefined, cryptoNetwork?: string | undefined, cryptoReceiveAddress?: string | undefined, paymentRequestLabel?: string | undefined, paymentRequestMessage?: string | undefined, simulateChipRejection?: boolean, simulateOutOfOrderReversal?: boolean, asyncReversals?: boolean);
|
|
1471
|
+
} | undefined, customer?: Customer | undefined, roundingMode?: RoundingMode | undefined, healthcare?: Healthcare | 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);
|
|
1467
1472
|
}
|
|
1468
1473
|
/**
|
|
1469
1474
|
* A request for the remaining balance on a payment type.
|
package/lib/src/models.js
CHANGED
|
@@ -1030,7 +1030,7 @@ exports.WhiteListedCard = WhiteListedCard;
|
|
|
1030
1030
|
*/
|
|
1031
1031
|
class AuthorizationRequest {
|
|
1032
1032
|
// Constructor with default values for optional fields
|
|
1033
|
-
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, 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, healthcare = undefined, cryptocurrency = undefined, cryptoNetwork = undefined, cryptoReceiveAddress = undefined, paymentRequestLabel = undefined, paymentRequestMessage = undefined, simulateChipRejection = false, simulateOutOfOrderReversal = false, asyncReversals = false) {
|
|
1033
|
+
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, 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, healthcare = undefined, cryptocurrency = undefined, cryptoNetwork = undefined, cryptoReceiveAddress = undefined, paymentRequestLabel = undefined, paymentRequestMessage = undefined, simulateChipRejection = false, simulateOutOfOrderReversal = false, asyncReversals = false, passthroughSurcharge = undefined) {
|
|
1034
1034
|
/**
|
|
1035
1035
|
* The request timeout in seconds.
|
|
1036
1036
|
*/
|
|
@@ -1151,6 +1151,7 @@ class AuthorizationRequest {
|
|
|
1151
1151
|
this.simulateChipRejection = simulateChipRejection;
|
|
1152
1152
|
this.simulateOutOfOrderReversal = simulateOutOfOrderReversal;
|
|
1153
1153
|
this.asyncReversals = asyncReversals;
|
|
1154
|
+
this.passthroughSurcharge = passthroughSurcharge;
|
|
1154
1155
|
}
|
|
1155
1156
|
}
|
|
1156
1157
|
exports.AuthorizationRequest = AuthorizationRequest;
|