dodopayments 2.51.0 → 2.52.0
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/CHANGELOG.md +8 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/balances.d.mts +2 -2
- package/resources/balances.d.mts.map +1 -1
- package/resources/balances.d.ts +2 -2
- package/resources/balances.d.ts.map +1 -1
- package/resources/checkout-sessions.d.mts +69 -3
- package/resources/checkout-sessions.d.mts.map +1 -1
- package/resources/checkout-sessions.d.ts +69 -3
- package/resources/checkout-sessions.d.ts.map +1 -1
- package/resources/customers/emails.d.mts +5 -3
- package/resources/customers/emails.d.mts.map +1 -1
- package/resources/customers/emails.d.ts +5 -3
- package/resources/customers/emails.d.ts.map +1 -1
- package/resources/discounts.d.mts +13 -9
- package/resources/discounts.d.mts.map +1 -1
- package/resources/discounts.d.ts +13 -9
- package/resources/discounts.d.ts.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/moderation.d.mts +299 -0
- package/resources/moderation.d.mts.map +1 -0
- package/resources/moderation.d.ts +299 -0
- package/resources/moderation.d.ts.map +1 -0
- package/resources/moderation.js +41 -0
- package/resources/moderation.js.map +1 -0
- package/resources/moderation.mjs +37 -0
- package/resources/moderation.mjs.map +1 -0
- package/resources/payments.d.mts +27 -1
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +27 -1
- package/resources/payments.d.ts.map +1 -1
- package/resources/payouts/breakup/breakup.d.mts +17 -1
- package/resources/payouts/breakup/breakup.d.mts.map +1 -1
- package/resources/payouts/breakup/breakup.d.ts +17 -1
- package/resources/payouts/breakup/breakup.d.ts.map +1 -1
- package/resources/payouts/breakup/breakup.js.map +1 -1
- package/resources/payouts/breakup/breakup.mjs.map +1 -1
- package/resources/payouts/breakup/details.d.mts +9 -8
- package/resources/payouts/breakup/details.d.mts.map +1 -1
- package/resources/payouts/breakup/details.d.ts +9 -8
- package/resources/payouts/breakup/details.d.ts.map +1 -1
- package/resources/payouts/breakup/details.js +4 -4
- package/resources/payouts/breakup/details.mjs +4 -4
- package/src/client.ts +25 -0
- package/src/resources/balances.ts +8 -2
- package/src/resources/checkout-sessions.ts +78 -3
- package/src/resources/customers/emails.ts +5 -3
- package/src/resources/discounts.ts +13 -9
- package/src/resources/index.ts +11 -0
- package/src/resources/moderation.ts +388 -0
- package/src/resources/payments.ts +31 -1
- package/src/resources/payouts/breakup/breakup.ts +17 -1
- package/src/resources/payouts/breakup/details.ts +9 -8
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -24,11 +24,27 @@ export type BreakupRetrieveResponse = Array<BreakupRetrieveResponse.BreakupRetri
|
|
|
24
24
|
export declare namespace BreakupRetrieveResponse {
|
|
25
25
|
/**
|
|
26
26
|
* Payout breakup aggregated by event type, with amounts in the payout's currency.
|
|
27
|
+
*
|
|
28
|
+
* The rows sum to the payout amount. The last row can be `unattributed`, which is
|
|
29
|
+
* not a ledger event type. It holds the payout amount less the entries that fund
|
|
30
|
+
* it, and it takes either sign:
|
|
31
|
+
*
|
|
32
|
+
* - Positive: the entries come to less than the payout, so the payout drew on the
|
|
33
|
+
* balance an earlier cycle left over. A cycle of refunds and disputes produces a
|
|
34
|
+
* large positive value.
|
|
35
|
+
* - Negative: the entries come to more than the payout, and the remainder funds a
|
|
36
|
+
* later payout. This is the common case, for two reasons. The walk that claims
|
|
37
|
+
* the entries stops at the first one that reaches its target, so it passes the
|
|
38
|
+
* target by part of an entry. The target is also the gross debit, which holds
|
|
39
|
+
* the payout fee, and the fee is not a line here.
|
|
40
|
+
*
|
|
41
|
+
* The row is absent when the two are equal.
|
|
27
42
|
*/
|
|
28
43
|
interface BreakupRetrieveResponseItem {
|
|
29
44
|
/**
|
|
30
45
|
* The type of balance ledger event (e.g., "payment", "refund", "dispute",
|
|
31
|
-
* "payment_fees")
|
|
46
|
+
* "payment_fees"), or `unattributed` for the payout amount the entries do not
|
|
47
|
+
* account for.
|
|
32
48
|
*/
|
|
33
49
|
event_type: string;
|
|
34
50
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breakup.d.mts","sourceRoot":"","sources":["../../../src/resources/payouts/breakup/breakup.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,8CAA8C,EAC9C,OAAO,EACR,sBAAkB;AACnB,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE,qBAAa,OAAQ,SAAQ,WAAW;IACtC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;CAG1F;AAED,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,uBAAuB,CAAC,2BAA2B,CAAC,CAAC;AAEjG,yBAAiB,uBAAuB,CAAC;IACvC
|
|
1
|
+
{"version":3,"file":"breakup.d.mts","sourceRoot":"","sources":["../../../src/resources/payouts/breakup/breakup.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,8CAA8C,EAC9C,OAAO,EACR,sBAAkB;AACnB,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE,qBAAa,OAAQ,SAAQ,WAAW;IACtC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;CAG1F;AAED,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,uBAAuB,CAAC,2BAA2B,CAAC,CAAC;AAEjG,yBAAiB,uBAAuB,CAAC;IACvC;;;;;;;;;;;;;;;;;OAiBG;IACH,UAAiB,2BAA2B;QAC1C;;;;WAIG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;;WAGG;QACH,KAAK,EAAE,MAAM,CAAC;KACf;CACF;AAID,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,uBAAuB,IAAI,uBAAuB,EAAE,CAAC;IAEnE,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,8CAA8C,IAAI,8CAA8C,EACrG,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -24,11 +24,27 @@ export type BreakupRetrieveResponse = Array<BreakupRetrieveResponse.BreakupRetri
|
|
|
24
24
|
export declare namespace BreakupRetrieveResponse {
|
|
25
25
|
/**
|
|
26
26
|
* Payout breakup aggregated by event type, with amounts in the payout's currency.
|
|
27
|
+
*
|
|
28
|
+
* The rows sum to the payout amount. The last row can be `unattributed`, which is
|
|
29
|
+
* not a ledger event type. It holds the payout amount less the entries that fund
|
|
30
|
+
* it, and it takes either sign:
|
|
31
|
+
*
|
|
32
|
+
* - Positive: the entries come to less than the payout, so the payout drew on the
|
|
33
|
+
* balance an earlier cycle left over. A cycle of refunds and disputes produces a
|
|
34
|
+
* large positive value.
|
|
35
|
+
* - Negative: the entries come to more than the payout, and the remainder funds a
|
|
36
|
+
* later payout. This is the common case, for two reasons. The walk that claims
|
|
37
|
+
* the entries stops at the first one that reaches its target, so it passes the
|
|
38
|
+
* target by part of an entry. The target is also the gross debit, which holds
|
|
39
|
+
* the payout fee, and the fee is not a line here.
|
|
40
|
+
*
|
|
41
|
+
* The row is absent when the two are equal.
|
|
27
42
|
*/
|
|
28
43
|
interface BreakupRetrieveResponseItem {
|
|
29
44
|
/**
|
|
30
45
|
* The type of balance ledger event (e.g., "payment", "refund", "dispute",
|
|
31
|
-
* "payment_fees")
|
|
46
|
+
* "payment_fees"), or `unattributed` for the payout amount the entries do not
|
|
47
|
+
* account for.
|
|
32
48
|
*/
|
|
33
49
|
event_type: string;
|
|
34
50
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breakup.d.ts","sourceRoot":"","sources":["../../../src/resources/payouts/breakup/breakup.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,8CAA8C,EAC9C,OAAO,EACR,qBAAkB;AACnB,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,OAAQ,SAAQ,WAAW;IACtC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;CAG1F;AAED,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,uBAAuB,CAAC,2BAA2B,CAAC,CAAC;AAEjG,yBAAiB,uBAAuB,CAAC;IACvC
|
|
1
|
+
{"version":3,"file":"breakup.d.ts","sourceRoot":"","sources":["../../../src/resources/payouts/breakup/breakup.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,8CAA8C,EAC9C,OAAO,EACR,qBAAkB;AACnB,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,OAAQ,SAAQ,WAAW;IACtC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;CAG1F;AAED,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,uBAAuB,CAAC,2BAA2B,CAAC,CAAC;AAEjG,yBAAiB,uBAAuB,CAAC;IACvC;;;;;;;;;;;;;;;;;OAiBG;IACH,UAAiB,2BAA2B;QAC1C;;;;WAIG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;;WAGG;QACH,KAAK,EAAE,MAAM,CAAC;KACf;CACF;AAID,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,uBAAuB,IAAI,uBAAuB,EAAE,CAAC;IAEnE,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,8CAA8C,IAAI,8CAA8C,EACrG,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breakup.js","sourceRoot":"","sources":["../../../src/resources/payouts/breakup/breakup.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,iEAAwC;AACxC,0CAKmB;AAGnB,0DAAoD;AAEpD,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAkBrE,CAAC;IAhBC;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,QAAQ,UAAU,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;CACF;AAnBD,0BAmBC;
|
|
1
|
+
{"version":3,"file":"breakup.js","sourceRoot":"","sources":["../../../src/resources/payouts/breakup/breakup.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,iEAAwC;AACxC,0CAKmB;AAGnB,0DAAoD;AAEpD,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAkBrE,CAAC;IAhBC;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,QAAQ,UAAU,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;CACF;AAnBD,0BAmBC;AAuCD,OAAO,CAAC,OAAO,GAAG,iBAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breakup.mjs","sourceRoot":"","sources":["../../../src/resources/payouts/breakup/breakup.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAIL,OAAO,GACR,sBAAkB;AAGnB,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAkBrE,CAAC;IAhBC;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,QAAQ,UAAU,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"breakup.mjs","sourceRoot":"","sources":["../../../src/resources/payouts/breakup/breakup.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAIL,OAAO,GACR,sBAAkB;AAGnB,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAkBrE,CAAC;IAhBC;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,QAAQ,UAAU,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;CACF;AAuCD,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC"}
|
|
@@ -4,10 +4,10 @@ import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams, Pa
|
|
|
4
4
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
5
5
|
export declare class Details extends APIResource {
|
|
6
6
|
/**
|
|
7
|
-
* Returns paginated individual balance ledger entries for a payout
|
|
8
|
-
*
|
|
9
|
-
* `page_size` (default 10, max 100) and `page_number` (default 0)
|
|
10
|
-
* parameters.
|
|
7
|
+
* Returns paginated individual balance ledger entries for a payout. Each entry is
|
|
8
|
+
* converted into the payout's currency at the rate the payout settled at. Supports
|
|
9
|
+
* pagination via `page_size` (default 10, max 100) and `page_number` (default 0)
|
|
10
|
+
* query parameters.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* ```ts
|
|
@@ -37,8 +37,8 @@ export declare class Details extends APIResource {
|
|
|
37
37
|
}
|
|
38
38
|
export type DetailListResponsesDefaultPageNumberPagination = DefaultPageNumberPagination<DetailListResponse>;
|
|
39
39
|
/**
|
|
40
|
-
* Individual balance ledger entry for a payout,
|
|
41
|
-
*
|
|
40
|
+
* Individual balance ledger entry for a payout, converted into the payout's
|
|
41
|
+
* currency.
|
|
42
42
|
*/
|
|
43
43
|
export interface DetailListResponse {
|
|
44
44
|
/**
|
|
@@ -65,8 +65,9 @@ export interface DetailListResponse {
|
|
|
65
65
|
original_currency: string;
|
|
66
66
|
/**
|
|
67
67
|
* Amount in the payout's currency, in that currency's smallest unit (cents for
|
|
68
|
-
* USD, yen for JPY, fils for KWD).
|
|
69
|
-
*
|
|
68
|
+
* USD, yen for JPY, fils for KWD). The entry is converted at the rate the payout
|
|
69
|
+
* settled at. These amounts sum to the value of the entries, which can be less
|
|
70
|
+
* than the payout: the grouped breakup reports the difference as `unattributed`.
|
|
70
71
|
*/
|
|
71
72
|
payout_currency_amount: number;
|
|
72
73
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"details.d.mts","sourceRoot":"","sources":["../../../src/resources/payouts/breakup/details.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EACL,2BAA2B,EAC3B,KAAK,iCAAiC,EACtC,WAAW,EACZ,qCAAiC;AAElC,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CACF,QAAQ,EAAE,MAAM,EAChB,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,8CAA8C,EAAE,kBAAkB,CAAC;IAQlF;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAM1E;AAED,MAAM,MAAM,8CAA8C,GAAG,2BAA2B,CAAC,kBAAkB,CAAC,CAAC;AAE7G;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B
|
|
1
|
+
{"version":3,"file":"details.d.mts","sourceRoot":"","sources":["../../../src/resources/payouts/breakup/details.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EACL,2BAA2B,EAC3B,KAAK,iCAAiC,EACtC,WAAW,EACZ,qCAAiC;AAElC,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CACF,QAAQ,EAAE,MAAM,EAChB,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,8CAA8C,EAAE,kBAAkB,CAAC;IAQlF;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAM1E;AAED,MAAM,MAAM,8CAA8C,GAAG,2BAA2B,CAAC,kBAAkB,CAAC,CAAC;AAE7G;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;;;;OAKG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACrC;AAED,MAAM,WAAW,gBAAiB,SAAQ,iCAAiC;CAAG;AAE9E,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,8CAA8C,IAAI,8CAA8C,EACrG,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -4,10 +4,10 @@ import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams, Pa
|
|
|
4
4
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
5
5
|
export declare class Details extends APIResource {
|
|
6
6
|
/**
|
|
7
|
-
* Returns paginated individual balance ledger entries for a payout
|
|
8
|
-
*
|
|
9
|
-
* `page_size` (default 10, max 100) and `page_number` (default 0)
|
|
10
|
-
* parameters.
|
|
7
|
+
* Returns paginated individual balance ledger entries for a payout. Each entry is
|
|
8
|
+
* converted into the payout's currency at the rate the payout settled at. Supports
|
|
9
|
+
* pagination via `page_size` (default 10, max 100) and `page_number` (default 0)
|
|
10
|
+
* query parameters.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* ```ts
|
|
@@ -37,8 +37,8 @@ export declare class Details extends APIResource {
|
|
|
37
37
|
}
|
|
38
38
|
export type DetailListResponsesDefaultPageNumberPagination = DefaultPageNumberPagination<DetailListResponse>;
|
|
39
39
|
/**
|
|
40
|
-
* Individual balance ledger entry for a payout,
|
|
41
|
-
*
|
|
40
|
+
* Individual balance ledger entry for a payout, converted into the payout's
|
|
41
|
+
* currency.
|
|
42
42
|
*/
|
|
43
43
|
export interface DetailListResponse {
|
|
44
44
|
/**
|
|
@@ -65,8 +65,9 @@ export interface DetailListResponse {
|
|
|
65
65
|
original_currency: string;
|
|
66
66
|
/**
|
|
67
67
|
* Amount in the payout's currency, in that currency's smallest unit (cents for
|
|
68
|
-
* USD, yen for JPY, fils for KWD).
|
|
69
|
-
*
|
|
68
|
+
* USD, yen for JPY, fils for KWD). The entry is converted at the rate the payout
|
|
69
|
+
* settled at. These amounts sum to the value of the entries, which can be less
|
|
70
|
+
* than the payout: the grouped breakup reports the difference as `unattributed`.
|
|
70
71
|
*/
|
|
71
72
|
payout_currency_amount: number;
|
|
72
73
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"details.d.ts","sourceRoot":"","sources":["../../../src/resources/payouts/breakup/details.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EACL,2BAA2B,EAC3B,KAAK,iCAAiC,EACtC,WAAW,EACZ,oCAAiC;AAElC,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CACF,QAAQ,EAAE,MAAM,EAChB,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,8CAA8C,EAAE,kBAAkB,CAAC;IAQlF;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAM1E;AAED,MAAM,MAAM,8CAA8C,GAAG,2BAA2B,CAAC,kBAAkB,CAAC,CAAC;AAE7G;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B
|
|
1
|
+
{"version":3,"file":"details.d.ts","sourceRoot":"","sources":["../../../src/resources/payouts/breakup/details.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EACL,2BAA2B,EAC3B,KAAK,iCAAiC,EACtC,WAAW,EACZ,oCAAiC;AAElC,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CACF,QAAQ,EAAE,MAAM,EAChB,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,8CAA8C,EAAE,kBAAkB,CAAC;IAQlF;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAM1E;AAED,MAAM,MAAM,8CAA8C,GAAG,2BAA2B,CAAC,kBAAkB,CAAC,CAAC;AAE7G;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;;;;OAKG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACrC;AAED,MAAM,WAAW,gBAAiB,SAAQ,iCAAiC;CAAG;AAE9E,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,8CAA8C,IAAI,8CAA8C,EACrG,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -8,10 +8,10 @@ const headers_1 = require("../../../internal/headers.js");
|
|
|
8
8
|
const path_1 = require("../../../internal/utils/path.js");
|
|
9
9
|
class Details extends resource_1.APIResource {
|
|
10
10
|
/**
|
|
11
|
-
* Returns paginated individual balance ledger entries for a payout
|
|
12
|
-
*
|
|
13
|
-
* `page_size` (default 10, max 100) and `page_number` (default 0)
|
|
14
|
-
* parameters.
|
|
11
|
+
* Returns paginated individual balance ledger entries for a payout. Each entry is
|
|
12
|
+
* converted into the payout's currency at the rate the payout settled at. Supports
|
|
13
|
+
* pagination via `page_size` (default 10, max 100) and `page_number` (default 0)
|
|
14
|
+
* query parameters.
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
17
|
* ```ts
|
|
@@ -5,10 +5,10 @@ import { buildHeaders } from "../../../internal/headers.mjs";
|
|
|
5
5
|
import { path } from "../../../internal/utils/path.mjs";
|
|
6
6
|
export class Details extends APIResource {
|
|
7
7
|
/**
|
|
8
|
-
* Returns paginated individual balance ledger entries for a payout
|
|
9
|
-
*
|
|
10
|
-
* `page_size` (default 10, max 100) and `page_number` (default 0)
|
|
11
|
-
* parameters.
|
|
8
|
+
* Returns paginated individual balance ledger entries for a payout. Each entry is
|
|
9
|
+
* converted into the payout's currency at the rate the payout settled at. Supports
|
|
10
|
+
* pagination via `page_size` (default 10, max 100) and `page_number` (default 0)
|
|
11
|
+
* query parameters.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```ts
|
package/src/client.ts
CHANGED
|
@@ -132,6 +132,17 @@ import {
|
|
|
132
132
|
MiscListSupportedCountriesResponse,
|
|
133
133
|
TaxCategory,
|
|
134
134
|
} from './resources/misc';
|
|
135
|
+
import {
|
|
136
|
+
Moderation,
|
|
137
|
+
ModerationCategory,
|
|
138
|
+
ModerationCategoryProvenance,
|
|
139
|
+
ModerationCategoryScores,
|
|
140
|
+
ModerationDecision,
|
|
141
|
+
ModerationProvenance,
|
|
142
|
+
ModerationRetrieveUsageResponse,
|
|
143
|
+
ModerationScreenParams,
|
|
144
|
+
ModerationScreenResponse,
|
|
145
|
+
} from './resources/moderation';
|
|
135
146
|
import {
|
|
136
147
|
AttachExistingCustomer,
|
|
137
148
|
BillingAddress,
|
|
@@ -1133,6 +1144,7 @@ export class DodoPayments {
|
|
|
1133
1144
|
creditEntitlements: API.CreditEntitlements = new API.CreditEntitlements(this);
|
|
1134
1145
|
entitlements: API.Entitlements = new API.Entitlements(this);
|
|
1135
1146
|
productCollections: API.ProductCollections = new API.ProductCollections(this);
|
|
1147
|
+
moderation: API.Moderation = new API.Moderation(this);
|
|
1136
1148
|
}
|
|
1137
1149
|
|
|
1138
1150
|
DodoPayments.CheckoutSessions = CheckoutSessions;
|
|
@@ -1160,6 +1172,7 @@ DodoPayments.Balances = Balances;
|
|
|
1160
1172
|
DodoPayments.CreditEntitlements = CreditEntitlements;
|
|
1161
1173
|
DodoPayments.Entitlements = Entitlements;
|
|
1162
1174
|
DodoPayments.ProductCollections = ProductCollections;
|
|
1175
|
+
DodoPayments.Moderation = Moderation;
|
|
1163
1176
|
|
|
1164
1177
|
export declare namespace DodoPayments {
|
|
1165
1178
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -1522,4 +1535,16 @@ export declare namespace DodoPayments {
|
|
|
1522
1535
|
type ProductCollectionUpdateParams as ProductCollectionUpdateParams,
|
|
1523
1536
|
type ProductCollectionUpdateImagesParams as ProductCollectionUpdateImagesParams,
|
|
1524
1537
|
};
|
|
1538
|
+
|
|
1539
|
+
export {
|
|
1540
|
+
Moderation as Moderation,
|
|
1541
|
+
type ModerationCategory as ModerationCategory,
|
|
1542
|
+
type ModerationCategoryProvenance as ModerationCategoryProvenance,
|
|
1543
|
+
type ModerationCategoryScores as ModerationCategoryScores,
|
|
1544
|
+
type ModerationDecision as ModerationDecision,
|
|
1545
|
+
type ModerationProvenance as ModerationProvenance,
|
|
1546
|
+
type ModerationRetrieveUsageResponse as ModerationRetrieveUsageResponse,
|
|
1547
|
+
type ModerationScreenResponse as ModerationScreenResponse,
|
|
1548
|
+
type ModerationScreenParams as ModerationScreenParams,
|
|
1549
|
+
};
|
|
1525
1550
|
}
|
|
@@ -62,7 +62,10 @@ export interface BalanceLedgerEntry {
|
|
|
62
62
|
| 'visa_rdr_fee'
|
|
63
63
|
| 'dispute_fees_reversal'
|
|
64
64
|
| 'deflection_fees'
|
|
65
|
-
| 'deflection_fees_reversal'
|
|
65
|
+
| 'deflection_fees_reversal'
|
|
66
|
+
| 'reserve_hold'
|
|
67
|
+
| 'reserve_release'
|
|
68
|
+
| 'moderation_fees';
|
|
66
69
|
|
|
67
70
|
is_credit: boolean;
|
|
68
71
|
|
|
@@ -271,7 +274,10 @@ export interface BalanceRetrieveLedgerParams extends DefaultPageNumberPagination
|
|
|
271
274
|
| 'visa_rdr_fee'
|
|
272
275
|
| 'dispute_fees_reversal'
|
|
273
276
|
| 'deflection_fees'
|
|
274
|
-
| 'deflection_fees_reversal'
|
|
277
|
+
| 'deflection_fees_reversal'
|
|
278
|
+
| 'reserve_hold'
|
|
279
|
+
| 'reserve_release'
|
|
280
|
+
| 'moderation_fees';
|
|
275
281
|
|
|
276
282
|
/**
|
|
277
283
|
* Min : 1, Max : 100, default 10
|
|
@@ -192,6 +192,14 @@ export interface CheckoutSessionFlags {
|
|
|
192
192
|
*/
|
|
193
193
|
redirect_immediately?: boolean;
|
|
194
194
|
|
|
195
|
+
/**
|
|
196
|
+
* If true, the customer must give the name on the card to pay by card. The
|
|
197
|
+
* checkout page enforces this. Other payment methods ignore it.
|
|
198
|
+
*
|
|
199
|
+
* Default is false
|
|
200
|
+
*/
|
|
201
|
+
require_cardholder_name?: boolean;
|
|
202
|
+
|
|
195
203
|
/**
|
|
196
204
|
* If true, the customer must provide a phone number to complete checkout. Requires
|
|
197
205
|
* `allow_phone_number_collection` to also be true.
|
|
@@ -226,6 +234,11 @@ export interface CheckoutSessionFlags {
|
|
|
226
234
|
}
|
|
227
235
|
|
|
228
236
|
export interface CheckoutSessionRequest {
|
|
237
|
+
/**
|
|
238
|
+
* The products of the checkout. A cart holds at most 20 of them, one-time and
|
|
239
|
+
* subscription products together. An empty cart is valid for the
|
|
240
|
+
* product-collection flow, where the customer chooses the product later.
|
|
241
|
+
*/
|
|
229
242
|
product_cart: Array<ProductItemReq>;
|
|
230
243
|
|
|
231
244
|
/**
|
|
@@ -713,7 +726,9 @@ export interface CheckoutSessionPreviewResponse {
|
|
|
713
726
|
* The upcoming billing date for subscriptions, computed relative to now: with a
|
|
714
727
|
* trial it is `now + trial_period_days`, otherwise `now + payment frequency`.
|
|
715
728
|
* `None` for one-time-only carts. This is a preview estimate; the authoritative
|
|
716
|
-
* value is set when the subscription activates.
|
|
729
|
+
* value is set when the subscription activates. For a cart of more than one
|
|
730
|
+
* subscription, this is the earliest date of the cart. `subscriptions` gives the
|
|
731
|
+
* date of each subscription.
|
|
717
732
|
*/
|
|
718
733
|
next_billing_date?: string | null;
|
|
719
734
|
|
|
@@ -722,6 +737,12 @@ export interface CheckoutSessionPreviewResponse {
|
|
|
722
737
|
*/
|
|
723
738
|
recurring_breakup?: CheckoutSessionPreviewResponse.RecurringBreakup | null;
|
|
724
739
|
|
|
740
|
+
/**
|
|
741
|
+
* One entry for each subscription of a cart that holds more than one. Each
|
|
742
|
+
* subscription renews on its own schedule, so the checkout shows each one here.
|
|
743
|
+
*/
|
|
744
|
+
subscriptions?: Array<CheckoutSessionPreviewResponse.Subscription> | null;
|
|
745
|
+
|
|
725
746
|
/**
|
|
726
747
|
* Registered business name from the official registry (EU/GB/AU) when found
|
|
727
748
|
*/
|
|
@@ -745,13 +766,16 @@ export interface CheckoutSessionPreviewResponse {
|
|
|
745
766
|
/**
|
|
746
767
|
* Per-unit trial amount after discounts, in the price currency's minor units
|
|
747
768
|
* (pre-quantity, pre-tax; see `current_breakup` for the taxed total due today).
|
|
748
|
-
* Only present for a paid trial; `None` for a free trial or no trial.
|
|
769
|
+
* Only present for a paid trial; `None` for a free trial or no trial. Always
|
|
770
|
+
* `None` for a cart of more than one subscription.
|
|
749
771
|
*/
|
|
750
772
|
trial_amount?: number | null;
|
|
751
773
|
|
|
752
774
|
/**
|
|
753
775
|
* Effective trial duration in days for the subscription line, when there's a trial
|
|
754
|
-
* (free or paid). `None` if no subscription or no trial.
|
|
776
|
+
* (free or paid). `None` if no subscription or no trial. Always `None` for a cart
|
|
777
|
+
* of more than one subscription. Read the trial of each subscription from
|
|
778
|
+
* `subscriptions`.
|
|
755
779
|
*/
|
|
756
780
|
trial_period_days?: number | null;
|
|
757
781
|
}
|
|
@@ -976,9 +1000,55 @@ export namespace CheckoutSessionPreviewResponse {
|
|
|
976
1000
|
*/
|
|
977
1001
|
tax?: number | null;
|
|
978
1002
|
}
|
|
1003
|
+
|
|
1004
|
+
/**
|
|
1005
|
+
* The quote of one subscription in a cart of several.
|
|
1006
|
+
*/
|
|
1007
|
+
export interface Subscription {
|
|
1008
|
+
/**
|
|
1009
|
+
* The amount this subscription charges today, including tax.
|
|
1010
|
+
*/
|
|
1011
|
+
amount_due_now: number;
|
|
1012
|
+
|
|
1013
|
+
/**
|
|
1014
|
+
* The subscription product.
|
|
1015
|
+
*/
|
|
1016
|
+
product_id: string;
|
|
1017
|
+
|
|
1018
|
+
/**
|
|
1019
|
+
* The amount of each renewal, including tax.
|
|
1020
|
+
*/
|
|
1021
|
+
recurring_amount: number;
|
|
1022
|
+
|
|
1023
|
+
/**
|
|
1024
|
+
* A preview of the first renewal date. The date is set when the subscription
|
|
1025
|
+
* activates.
|
|
1026
|
+
*/
|
|
1027
|
+
next_billing_date?: string | null;
|
|
1028
|
+
|
|
1029
|
+
/**
|
|
1030
|
+
* The tax in `recurring_amount`.
|
|
1031
|
+
*/
|
|
1032
|
+
recurring_tax?: number | null;
|
|
1033
|
+
|
|
1034
|
+
/**
|
|
1035
|
+
* The tax in `amount_due_now`.
|
|
1036
|
+
*/
|
|
1037
|
+
tax_due_now?: number | null;
|
|
1038
|
+
|
|
1039
|
+
/**
|
|
1040
|
+
* The trial duration in days. `None` when the subscription has no trial.
|
|
1041
|
+
*/
|
|
1042
|
+
trial_period_days?: number | null;
|
|
1043
|
+
}
|
|
979
1044
|
}
|
|
980
1045
|
|
|
981
1046
|
export interface CheckoutSessionCreateParams {
|
|
1047
|
+
/**
|
|
1048
|
+
* The products of the checkout. A cart holds at most 20 of them, one-time and
|
|
1049
|
+
* subscription products together. An empty cart is valid for the
|
|
1050
|
+
* product-collection flow, where the customer chooses the product later.
|
|
1051
|
+
*/
|
|
982
1052
|
product_cart: Array<ProductItemReq>;
|
|
983
1053
|
|
|
984
1054
|
/**
|
|
@@ -1111,6 +1181,11 @@ export interface CheckoutSessionCreateParams {
|
|
|
1111
1181
|
}
|
|
1112
1182
|
|
|
1113
1183
|
export interface CheckoutSessionPreviewParams {
|
|
1184
|
+
/**
|
|
1185
|
+
* The products of the checkout. A cart holds at most 20 of them, one-time and
|
|
1186
|
+
* subscription products together. An empty cart is valid for the
|
|
1187
|
+
* product-collection flow, where the customer chooses the product later.
|
|
1188
|
+
*/
|
|
1114
1189
|
product_cart: Array<ProductItemReq>;
|
|
1115
1190
|
|
|
1116
1191
|
/**
|
|
@@ -166,7 +166,8 @@ export interface EmailLogItem {
|
|
|
166
166
|
from?: string | null;
|
|
167
167
|
|
|
168
168
|
/**
|
|
169
|
-
* The address the email
|
|
169
|
+
* The address the email went to. On a failed email this is the address the
|
|
170
|
+
* provider reports as bounced.
|
|
170
171
|
*/
|
|
171
172
|
recipient?: string | null;
|
|
172
173
|
|
|
@@ -210,8 +211,9 @@ export interface EmailPolicies {
|
|
|
210
211
|
retry_allowed: boolean;
|
|
211
212
|
|
|
212
213
|
/**
|
|
213
|
-
* A later send of this email
|
|
214
|
-
*
|
|
214
|
+
* A later send of this email replaced this row, so this row is history. A row that
|
|
215
|
+
* never went out needs a later send that reached the provider. A failed row needs
|
|
216
|
+
* a later send that was delivered.
|
|
215
217
|
*/
|
|
216
218
|
superseded: boolean;
|
|
217
219
|
}
|
|
@@ -375,9 +375,11 @@ export interface DiscountCreateParams {
|
|
|
375
375
|
|
|
376
376
|
/**
|
|
377
377
|
* Per-currency options (flat deduction / percentage cap + minimum subtotal).
|
|
378
|
-
*
|
|
379
|
-
*
|
|
380
|
-
* `
|
|
378
|
+
* Checkout uses the row for the currency the buyer pays in. For any other currency
|
|
379
|
+
* it converts the default row. Required for `flat` codes (must include a
|
|
380
|
+
* resolvable default); optional per-currency caps for `percentage` codes. Per-row
|
|
381
|
+
* invariants are checked in `normalize_currency_options`, not via
|
|
382
|
+
* `#[validate(nested)]`.
|
|
381
383
|
*/
|
|
382
384
|
currency_options?: Array<DiscountCreateParams.CurrencyOption> | null;
|
|
383
385
|
|
|
@@ -446,13 +448,14 @@ export namespace DiscountCreateParams {
|
|
|
446
448
|
*/
|
|
447
449
|
export interface CurrencyOption {
|
|
448
450
|
/**
|
|
449
|
-
* The currency this option applies to.
|
|
451
|
+
* The currency this option applies to. The row applies when the buyer pays in this
|
|
452
|
+
* currency.
|
|
450
453
|
*/
|
|
451
454
|
currency: MiscAPI.Currency;
|
|
452
455
|
|
|
453
456
|
/**
|
|
454
|
-
* Whether this row is the default to convert from
|
|
455
|
-
* most one row per discount may be default.
|
|
457
|
+
* Whether this row is the default to convert from when the buyer pays in a
|
|
458
|
+
* currency that has no row. At most one row per discount may be default.
|
|
456
459
|
*/
|
|
457
460
|
is_default?: boolean;
|
|
458
461
|
|
|
@@ -555,13 +558,14 @@ export namespace DiscountUpdateParams {
|
|
|
555
558
|
*/
|
|
556
559
|
export interface CurrencyOption {
|
|
557
560
|
/**
|
|
558
|
-
* The currency this option applies to.
|
|
561
|
+
* The currency this option applies to. The row applies when the buyer pays in this
|
|
562
|
+
* currency.
|
|
559
563
|
*/
|
|
560
564
|
currency: MiscAPI.Currency;
|
|
561
565
|
|
|
562
566
|
/**
|
|
563
|
-
* Whether this row is the default to convert from
|
|
564
|
-
* most one row per discount may be default.
|
|
567
|
+
* Whether this row is the default to convert from when the buyer pays in a
|
|
568
|
+
* currency that has no row. At most one row per discount may be default.
|
|
565
569
|
*/
|
|
566
570
|
is_default?: boolean;
|
|
567
571
|
|
package/src/resources/index.ts
CHANGED
|
@@ -146,6 +146,17 @@ export {
|
|
|
146
146
|
type TaxCategory,
|
|
147
147
|
type MiscListSupportedCountriesResponse,
|
|
148
148
|
} from './misc';
|
|
149
|
+
export {
|
|
150
|
+
Moderation,
|
|
151
|
+
type ModerationCategory,
|
|
152
|
+
type ModerationCategoryProvenance,
|
|
153
|
+
type ModerationCategoryScores,
|
|
154
|
+
type ModerationDecision,
|
|
155
|
+
type ModerationProvenance,
|
|
156
|
+
type ModerationRetrieveUsageResponse,
|
|
157
|
+
type ModerationScreenResponse,
|
|
158
|
+
type ModerationScreenParams,
|
|
159
|
+
} from './moderation';
|
|
149
160
|
export {
|
|
150
161
|
Payments,
|
|
151
162
|
type AttachExistingCustomer,
|