@blockchyp/blockchyp-ts 2.18.5 → 2.18.6
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 +4 -0
- package/_bundles/blockchyp.js +10 -8
- 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/client.d.ts +4 -4
- package/lib/src/client.js +8 -7
- package/lib/src/client.js.map +1 -1
- package/lib/src/models.d.ts +5 -1
- package/lib/src/models.js +2 -1
- package/lib/src/models.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +9 -8
- package/src/models.ts +7 -0
package/README.md
CHANGED
|
@@ -4296,6 +4296,8 @@ Here's the full list with links to their GitHub repositories.
|
|
|
4296
4296
|
|
|
4297
4297
|
[Node.js/JavaScript SDK](https://github.com/blockchyp/blockchyp-js)
|
|
4298
4298
|
|
|
4299
|
+
[Typescript SDK](https://github.com/blockchyp/blockchyp-ts)
|
|
4300
|
+
|
|
4299
4301
|
[Java SDK](https://github.com/blockchyp/blockchyp-java)
|
|
4300
4302
|
|
|
4301
4303
|
[.net/C# SDK](https://github.com/blockchyp/blockchyp-csharp)
|
|
@@ -4307,3 +4309,5 @@ Here's the full list with links to their GitHub repositories.
|
|
|
4307
4309
|
[Python SDK](https://github.com/blockchyp/blockchyp-python)
|
|
4308
4310
|
|
|
4309
4311
|
[iOS (Objective-C/Swift) SDK](https://github.com/blockchyp/blockchyp-ios)
|
|
4312
|
+
|
|
4313
|
+
[Rust SDK](https://github.com/blockchyp/blockchyp-rust)
|
package/_bundles/blockchyp.js
CHANGED
|
@@ -60626,7 +60626,8 @@ exports.HealthcareType = Object.freeze({
|
|
|
60626
60626
|
DENTAL: 'dental',
|
|
60627
60627
|
});
|
|
60628
60628
|
/* eslint-enable no-unused-vars */
|
|
60629
|
-
|
|
60629
|
+
// TODO: Fix this to use the version from package.json
|
|
60630
|
+
const VERSION = "v1.0.0";
|
|
60630
60631
|
const USER_AGENT = `BlockChyp-TypeScript/${VERSION}`;
|
|
60631
60632
|
// Some browsers do not allow setting the user-agent header, so we set
|
|
60632
60633
|
// an alternative if running from a browser.
|
|
@@ -60984,12 +60985,6 @@ class BlockChypClient {
|
|
|
60984
60985
|
partnerCommissionBreakdown(request) {
|
|
60985
60986
|
return this._gatewayRequest('post', '/api/partner-commission-breakdown', request);
|
|
60986
60987
|
}
|
|
60987
|
-
/**
|
|
60988
|
-
* Generates and returns api credentials for a given merchant.
|
|
60989
|
-
*/
|
|
60990
|
-
merchantCredentialGeneration(request) {
|
|
60991
|
-
return this._gatewayRequest('post', '/api/creds/generateMerchant', request);
|
|
60992
|
-
}
|
|
60993
60988
|
/**
|
|
60994
60989
|
* Returns profile information for a merchant.
|
|
60995
60990
|
*/
|
|
@@ -61026,6 +61021,12 @@ class BlockChypClient {
|
|
|
61026
61021
|
deleteToken(request) {
|
|
61027
61022
|
return this._gatewayRequest('delete', '/api/token/' + request.token, request);
|
|
61028
61023
|
}
|
|
61024
|
+
/**
|
|
61025
|
+
* Generates and returns api credentials for a given merchant.
|
|
61026
|
+
*/
|
|
61027
|
+
merchantCredentialGeneration(request) {
|
|
61028
|
+
return this._dashboardRequest('post', '/api/generate-merchant-creds', request);
|
|
61029
|
+
}
|
|
61029
61030
|
/**
|
|
61030
61031
|
* Adds a test merchant account.
|
|
61031
61032
|
*/
|
|
@@ -62608,7 +62609,7 @@ exports.WhiteListedCard = WhiteListedCard;
|
|
|
62608
62609
|
*/
|
|
62609
62610
|
class AuthorizationRequest {
|
|
62610
62611
|
// Constructor with default values for optional fields
|
|
62611
|
-
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, 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) {
|
|
62612
|
+
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) {
|
|
62612
62613
|
/**
|
|
62613
62614
|
* The request timeout in seconds.
|
|
62614
62615
|
*/
|
|
@@ -62705,6 +62706,7 @@ class AuthorizationRequest {
|
|
|
62705
62706
|
this.transactionId = transactionId;
|
|
62706
62707
|
this.onlineAuthCode = onlineAuthCode;
|
|
62707
62708
|
this.enroll = enroll;
|
|
62709
|
+
this.bypassDupeFilter = bypassDupeFilter;
|
|
62708
62710
|
this.description = description;
|
|
62709
62711
|
this.promptForTip = promptForTip;
|
|
62710
62712
|
this.cashBackEnabled = cashBackEnabled;
|