Comparing version 2.2.5 to 2.3.0
@@ -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; |
{ | ||
"name": "payjp", | ||
"version": "2.2.5", | ||
"version": "2.3.0", | ||
"description": "PAY.JP node.js bindings", | ||
@@ -5,0 +5,0 @@ "main": "built/index.js", |
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
45231
41
1224