payjp 2.2.0 → 2.2.2
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/built/balance.d.ts +1 -0
- package/built/balance.js +3 -0
- package/built/index.d.ts +20 -17
- package/package.json +1 -1
package/built/balance.d.ts
CHANGED
|
@@ -5,4 +5,5 @@ export default class Balances extends Resource {
|
|
|
5
5
|
constructor(payjp: any);
|
|
6
6
|
list(query?: I.BalanceListOptions): Promise<I.List<I.Balance>>;
|
|
7
7
|
retrieve(id: string): Promise<I.Balance>;
|
|
8
|
+
statementUrls(id: string, query?: I.StatementUrlOptions): Promise<I.StatementUrl>;
|
|
8
9
|
}
|
package/built/balance.js
CHANGED
|
@@ -13,5 +13,8 @@ class Balances extends resource_1.default {
|
|
|
13
13
|
retrieve(id) {
|
|
14
14
|
return this.request('GET', `${this.resource}/${id}`);
|
|
15
15
|
}
|
|
16
|
+
statementUrls(id, query = {}) {
|
|
17
|
+
return this.request('POST', `${this.resource}/${id}/statement_urls`, query);
|
|
18
|
+
}
|
|
16
19
|
}
|
|
17
20
|
exports.default = Balances;
|
package/built/index.d.ts
CHANGED
|
@@ -50,6 +50,7 @@ declare namespace Payjp {
|
|
|
50
50
|
export interface ChargeListOptions extends TransferChargeListOptions {
|
|
51
51
|
subscription?: string;
|
|
52
52
|
tenant?: string;
|
|
53
|
+
term?: string;
|
|
53
54
|
}
|
|
54
55
|
export interface CustomerSubscriptionListOptions extends ListOptions {
|
|
55
56
|
plan?: string;
|
|
@@ -80,7 +81,7 @@ declare namespace Payjp {
|
|
|
80
81
|
source_transfer?: string;
|
|
81
82
|
tenant?: string;
|
|
82
83
|
term?: string;
|
|
83
|
-
type?: "sales" | "service_fee" | "transfer_fee";
|
|
84
|
+
type?: "sales" | "service_fee" | "transfer_fee" | "misc";
|
|
84
85
|
}
|
|
85
86
|
export interface TermListOptions extends PaginationOptions {
|
|
86
87
|
since_start_at?: number;
|
|
@@ -394,21 +395,21 @@ declare namespace Payjp {
|
|
|
394
395
|
reviewed_brands: ReviewedBrand[];
|
|
395
396
|
}
|
|
396
397
|
export interface Statement {
|
|
397
|
-
created: number;
|
|
398
|
-
id: string;
|
|
399
|
-
livemode: boolean;
|
|
400
398
|
object: "statement";
|
|
399
|
+
livemode: boolean;
|
|
400
|
+
id: string;
|
|
401
401
|
title: string;
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
402
|
+
type: "sales" | "service_fee" | "transfer_fee" | "misc";
|
|
403
|
+
created: number;
|
|
404
|
+
updated: number;
|
|
405
|
+
tenant_id: string | null;
|
|
405
406
|
term: Term | null;
|
|
406
|
-
balance_id: string;
|
|
407
|
+
balance_id: string | null;
|
|
407
408
|
items: StatementItems[];
|
|
408
|
-
|
|
409
|
+
net: number;
|
|
409
410
|
}
|
|
410
411
|
export interface StatementItems {
|
|
411
|
-
subject: "gross_sales" | "fee" | "platform_fee" | "gross_refund" | "refund_fee_offset" | "refund_platform_fee_offset" | "chargeback" | "chargeback_fee_offset" | "chargeback_platform_fee_offset" | "proplan" | "transfer_fee";
|
|
412
|
+
subject: "gross_sales" | "fee" | "platform_fee" | "gross_refund" | "refund_fee_offset" | "refund_platform_fee_offset" | "chargeback" | "chargeback_fee_offset" | "chargeback_platform_fee_offset" | "proplan" | "plan_fee" | "transfer_fee" | "other";
|
|
412
413
|
amount: number;
|
|
413
414
|
name: string;
|
|
414
415
|
tax_rate: string;
|
|
@@ -437,14 +438,15 @@ declare namespace Payjp {
|
|
|
437
438
|
total_platform_fee: number;
|
|
438
439
|
}
|
|
439
440
|
export interface Term {
|
|
441
|
+
object: "term";
|
|
440
442
|
id: string;
|
|
441
443
|
livemode: boolean;
|
|
442
|
-
|
|
444
|
+
start_at: number | null;
|
|
445
|
+
end_at: number | null;
|
|
446
|
+
closed: boolean;
|
|
443
447
|
charge_count: number;
|
|
444
448
|
refund_count: number;
|
|
445
449
|
dispute_count: number;
|
|
446
|
-
end_at: number;
|
|
447
|
-
start_at: number;
|
|
448
450
|
}
|
|
449
451
|
export interface BankInfo {
|
|
450
452
|
bank_code: string;
|
|
@@ -455,16 +457,17 @@ declare namespace Payjp {
|
|
|
455
457
|
bank_account_status: "success" | "failed" | "pending";
|
|
456
458
|
}
|
|
457
459
|
export interface Balance {
|
|
458
|
-
|
|
460
|
+
object: "balance";
|
|
459
461
|
id: string;
|
|
460
462
|
livemode: boolean;
|
|
463
|
+
created: number;
|
|
464
|
+
tenant_id: string | null;
|
|
461
465
|
net: number;
|
|
462
|
-
object: "balance";
|
|
463
|
-
state: "collecting" | "transfer" | "claim";
|
|
464
466
|
statements: Statement[];
|
|
467
|
+
state: "collecting" | "transfer" | "claim";
|
|
465
468
|
closed: boolean;
|
|
469
|
+
closed_date: number | null;
|
|
466
470
|
due_date: null | number;
|
|
467
|
-
tenant_id: string;
|
|
468
471
|
bank_info: null | BankInfo;
|
|
469
472
|
}
|
|
470
473
|
export interface Deleted {
|