@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/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -68,7 +68,8 @@ export const HealthcareType = Object.freeze({
|
|
|
68
68
|
DENTAL: 'dental',
|
|
69
69
|
})
|
|
70
70
|
/* eslint-enable no-unused-vars */
|
|
71
|
-
|
|
71
|
+
// TODO: Fix this to use the version from package.json
|
|
72
|
+
const VERSION: string = "v1.0.0";
|
|
72
73
|
const USER_AGENT: string = `BlockChyp-TypeScript/${VERSION}`;
|
|
73
74
|
// Some browsers do not allow setting the user-agent header, so we set
|
|
74
75
|
// an alternative if running from a browser.
|
|
@@ -472,13 +473,6 @@ export class BlockChypClient {
|
|
|
472
473
|
return this._gatewayRequest('post', '/api/partner-commission-breakdown', request);
|
|
473
474
|
}
|
|
474
475
|
|
|
475
|
-
/**
|
|
476
|
-
* Generates and returns api credentials for a given merchant.
|
|
477
|
-
*/
|
|
478
|
-
merchantCredentialGeneration(request: Models.MerchantCredentialGenerationRequest): Promise<AxiosResponse<Models.MerchantCredentialGenerationResponse>> {
|
|
479
|
-
return this._gatewayRequest('post', '/api/creds/generateMerchant', request);
|
|
480
|
-
}
|
|
481
|
-
|
|
482
476
|
/**
|
|
483
477
|
* Returns profile information for a merchant.
|
|
484
478
|
*/
|
|
@@ -521,6 +515,13 @@ export class BlockChypClient {
|
|
|
521
515
|
return this._gatewayRequest('delete', '/api/token/' + request.token, request);
|
|
522
516
|
}
|
|
523
517
|
|
|
518
|
+
/**
|
|
519
|
+
* Generates and returns api credentials for a given merchant.
|
|
520
|
+
*/
|
|
521
|
+
merchantCredentialGeneration(request: Models.MerchantCredentialGenerationRequest): Promise<AxiosResponse<Models.MerchantCredentialGenerationResponse>> {
|
|
522
|
+
return this._dashboardRequest('post', '/api/generate-merchant-creds', request);
|
|
523
|
+
}
|
|
524
|
+
|
|
524
525
|
/**
|
|
525
526
|
* Adds a test merchant account.
|
|
526
527
|
*/
|
package/src/models.ts
CHANGED
|
@@ -2228,6 +2228,11 @@ export class AuthorizationRequest {
|
|
|
2228
2228
|
*/
|
|
2229
2229
|
enroll?: boolean;
|
|
2230
2230
|
|
|
2231
|
+
/**
|
|
2232
|
+
* Duplicate detection should be bypassed.
|
|
2233
|
+
*/
|
|
2234
|
+
bypassDupeFilter?: boolean;
|
|
2235
|
+
|
|
2231
2236
|
/**
|
|
2232
2237
|
* A narrative description of the transaction.
|
|
2233
2238
|
*/
|
|
@@ -2399,6 +2404,7 @@ export class AuthorizationRequest {
|
|
|
2399
2404
|
transactionId: string | undefined = undefined,
|
|
2400
2405
|
onlineAuthCode: string | undefined = undefined,
|
|
2401
2406
|
enroll: boolean = false,
|
|
2407
|
+
bypassDupeFilter: boolean = false,
|
|
2402
2408
|
description: string | undefined = undefined,
|
|
2403
2409
|
promptForTip: boolean = false,
|
|
2404
2410
|
cashBackEnabled: boolean = false,
|
|
@@ -2466,6 +2472,7 @@ export class AuthorizationRequest {
|
|
|
2466
2472
|
this.transactionId = transactionId;
|
|
2467
2473
|
this.onlineAuthCode = onlineAuthCode;
|
|
2468
2474
|
this.enroll = enroll;
|
|
2475
|
+
this.bypassDupeFilter = bypassDupeFilter;
|
|
2469
2476
|
this.description = description;
|
|
2470
2477
|
this.promptForTip = promptForTip;
|
|
2471
2478
|
this.cashBackEnabled = cashBackEnabled;
|