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

payjp

Package Overview
Dependencies
Maintainers
0
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

payjp - npm Package Compare versions

Comparing version 2.2.5 to 2.3.0

built/threeDSecureRequest.d.ts

29

built/index.d.ts

@@ -14,2 +14,3 @@ import Accounts from './account';

import Balances from "./balance";
import ThreeDSecureRequests from "./threeDSecureRequest";
declare namespace Payjp {

@@ -35,2 +36,3 @@ export interface PayjpStatic {

balances: Balances;
three_d_secure_requests: ThreeDSecureRequests;
}

@@ -207,2 +209,3 @@ export interface PayjpOptions {

}
type ThreeDSecureStatus = null | 'unverified' | 'verified' | 'attempted' | 'failed' | 'error';
export interface Charge {

@@ -235,3 +238,3 @@ object: "charge";

product?: any;
three_d_secure_status: string | null;
three_d_secure_status: ThreeDSecureStatus;
term_id: string | null;

@@ -272,3 +275,3 @@ }

name: string | null;
three_d_secure_status: string | null;
three_d_secure_status: ThreeDSecureStatus;
email: string | null;

@@ -480,2 +483,24 @@ phone: string | null;

}
export interface ThreeDSecureRequest {
object: 'three_d_secure_request';
id: string;
resource_id: string;
livemode: boolean;
created: number;
state: 'created' | 'in_progress' | 'result_received' | 'finished';
started_at: null | number;
result_received_at: null | number;
finished_at: null | number;
expired_at: null | number;
tenant_id: null | string;
three_d_secure_status: ThreeDSecureStatus;
}
export interface ThreeDSecureRequestCreationOptions {
resource_id: string;
tenant_id?: string;
}
export interface ThreeDSecureRequestListOptions extends ListOptions {
resource_id?: string;
tenant_id?: string;
}
export interface Deleted {

@@ -482,0 +507,0 @@ deleted: boolean;

@@ -15,2 +15,3 @@ "use strict";

const balance_1 = require("./balance");
const threeDSecureRequest_1 = require("./threeDSecureRequest");
const Payjp = function (apikey, options = {}) {

@@ -50,4 +51,5 @@ if (!apikey) {

balances: new balance_1.default(payjpConfig),
three_d_secure_requests: new threeDSecureRequest_1.default(payjpConfig),
};
};
module.exports = Payjp;

@@ -8,2 +8,3 @@ import Resource from './resource';

retrieve(id: string): Promise<I.Token>;
tds_finish(id: string): Promise<I.Token>;
}

@@ -16,3 +16,6 @@ "use strict";

}
tds_finish(id) {
return this.request('POST', `${this.resource}/${id}/tds_finish`);
}
}
exports.default = Tokens;

2

package.json
{
"name": "payjp",
"version": "2.2.5",
"version": "2.3.0",
"description": "PAY.JP node.js bindings",

@@ -5,0 +5,0 @@ "main": "built/index.js",

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