Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@figuredev/payments-sdk

Package Overview
Dependencies
Maintainers
8
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@figuredev/payments-sdk - npm Package Compare versions

Comparing version 0.26.11 to 0.26.12

5

lib/index.d.ts

@@ -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 {};

4

lib/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc