@figuredev/payments-sdk
Advanced tools
Comparing version 0.26.11 to 0.26.12
@@ -1,2 +0,3 @@ | ||
import { PaymentAuthTokenDTO, PaymentGatewayDTO, PaymentGetResponseDTO, PaymentInitializedResponseDTO, PaymentInputDTO, PaymentRequestDTO, PaymentRequestSaveDTO } from "./types"; | ||
import { Maybe } from "fgr-lib-backend/lib/types"; | ||
import { AuthTokenTypeDTO, PaymentAuthTokenDTO, PaymentGatewayDTO, PaymentGetResponseDTO, PaymentInitializedResponseDTO, PaymentInputDTO, PaymentRequestDTO, PaymentRequestSaveDTO } from "./types"; | ||
import { UserContext } from "./utils"; | ||
@@ -21,4 +22,4 @@ declare type PaymentsClientConfig = { | ||
getPaymentAudit(ctx: UserContext, id: string): Promise<unknown[]>; | ||
getAuthenticationToken(ctx: UserContext, gateway: PaymentGatewayDTO, amount?: number): Promise<PaymentAuthTokenDTO>; | ||
getAuthenticationToken(ctx: UserContext, gateway: PaymentGatewayDTO, amount?: number, type?: Maybe<AuthTokenTypeDTO>): Promise<PaymentAuthTokenDTO>; | ||
} | ||
export {}; |
@@ -164,3 +164,3 @@ "use strict"; | ||
} | ||
getAuthenticationToken(ctx, gateway, amount) { | ||
getAuthenticationToken(ctx, gateway, amount, type) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -172,3 +172,3 @@ return yield http_1.createHttpRequest({ | ||
headers: utils_1.constructHeaders(this.config.secret, ctx), | ||
data: Object.assign({ gateway: gateway }, (amount == null ? null : { amount: amount })), | ||
data: Object.assign(Object.assign({ gateway: gateway }, (amount == null ? null : { amount: amount })), (type == null ? null : { type: type })), | ||
}).then((r) => r.data); | ||
@@ -175,0 +175,0 @@ }); |
@@ -178,1 +178,5 @@ import { Maybe } from "fgr-lib-backend/lib/types"; | ||
}; | ||
export declare enum AuthTokenTypeDTO { | ||
Sale = "Sale", | ||
ApplePay = "ApplePay" | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PaymentCardIssuerDTO = exports.PaymentEntryMethodDTO = exports.PaymentResponseCommandDTO = exports.PaymentResponseGatewayDTO = exports.PaymentResponseStatusDTO = exports.PaymentDeclineCode = exports.PaymentStatusDTO = exports.PaymentCommandDTO = exports.PaymentRequestEntryModeDTO = exports.PaymentGatewayDTO = void 0; | ||
exports.AuthTokenTypeDTO = exports.PaymentCardIssuerDTO = exports.PaymentEntryMethodDTO = exports.PaymentResponseCommandDTO = exports.PaymentResponseGatewayDTO = exports.PaymentResponseStatusDTO = exports.PaymentDeclineCode = exports.PaymentStatusDTO = exports.PaymentCommandDTO = exports.PaymentRequestEntryModeDTO = exports.PaymentGatewayDTO = void 0; | ||
var PaymentGatewayDTO; | ||
@@ -104,2 +104,8 @@ (function (PaymentGatewayDTO) { | ||
})(PaymentCardIssuerDTO = exports.PaymentCardIssuerDTO || (exports.PaymentCardIssuerDTO = {})); | ||
// auth token type | ||
var AuthTokenTypeDTO; | ||
(function (AuthTokenTypeDTO) { | ||
AuthTokenTypeDTO["Sale"] = "Sale"; | ||
AuthTokenTypeDTO["ApplePay"] = "ApplePay"; | ||
})(AuthTokenTypeDTO = exports.AuthTokenTypeDTO || (exports.AuthTokenTypeDTO = {})); | ||
//# sourceMappingURL=types.js.map |
{ | ||
"name": "@figuredev/payments-sdk", | ||
"version": "0.26.11", | ||
"version": "0.26.12", | ||
"license": "ISC", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32000
537