dodopayments 2.50.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.
Files changed (73) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/client.d.mts +3 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/balances.d.mts +2 -2
  12. package/resources/balances.d.mts.map +1 -1
  13. package/resources/balances.d.ts +2 -2
  14. package/resources/balances.d.ts.map +1 -1
  15. package/resources/checkout-sessions.d.mts +83 -3
  16. package/resources/checkout-sessions.d.mts.map +1 -1
  17. package/resources/checkout-sessions.d.ts +83 -3
  18. package/resources/checkout-sessions.d.ts.map +1 -1
  19. package/resources/customers/emails.d.mts +9 -7
  20. package/resources/customers/emails.d.mts.map +1 -1
  21. package/resources/customers/emails.d.ts +9 -7
  22. package/resources/customers/emails.d.ts.map +1 -1
  23. package/resources/discounts.d.mts +13 -9
  24. package/resources/discounts.d.mts.map +1 -1
  25. package/resources/discounts.d.ts +13 -9
  26. package/resources/discounts.d.ts.map +1 -1
  27. package/resources/index.d.mts +1 -0
  28. package/resources/index.d.mts.map +1 -1
  29. package/resources/index.d.ts +1 -0
  30. package/resources/index.d.ts.map +1 -1
  31. package/resources/index.js +3 -1
  32. package/resources/index.js.map +1 -1
  33. package/resources/index.mjs +1 -0
  34. package/resources/index.mjs.map +1 -1
  35. package/resources/moderation.d.mts +299 -0
  36. package/resources/moderation.d.mts.map +1 -0
  37. package/resources/moderation.d.ts +299 -0
  38. package/resources/moderation.d.ts.map +1 -0
  39. package/resources/moderation.js +41 -0
  40. package/resources/moderation.js.map +1 -0
  41. package/resources/moderation.mjs +37 -0
  42. package/resources/moderation.mjs.map +1 -0
  43. package/resources/payments.d.mts +27 -1
  44. package/resources/payments.d.mts.map +1 -1
  45. package/resources/payments.d.ts +27 -1
  46. package/resources/payments.d.ts.map +1 -1
  47. package/resources/payouts/breakup/breakup.d.mts +17 -1
  48. package/resources/payouts/breakup/breakup.d.mts.map +1 -1
  49. package/resources/payouts/breakup/breakup.d.ts +17 -1
  50. package/resources/payouts/breakup/breakup.d.ts.map +1 -1
  51. package/resources/payouts/breakup/breakup.js.map +1 -1
  52. package/resources/payouts/breakup/breakup.mjs.map +1 -1
  53. package/resources/payouts/breakup/details.d.mts +9 -8
  54. package/resources/payouts/breakup/details.d.mts.map +1 -1
  55. package/resources/payouts/breakup/details.d.ts +9 -8
  56. package/resources/payouts/breakup/details.d.ts.map +1 -1
  57. package/resources/payouts/breakup/details.js +4 -4
  58. package/resources/payouts/breakup/details.mjs +4 -4
  59. package/src/client.ts +25 -0
  60. package/src/resources/balances.ts +16 -2
  61. package/src/resources/checkout-sessions.ts +93 -3
  62. package/src/resources/customers/emails.ts +11 -8
  63. package/src/resources/discounts.ts +13 -9
  64. package/src/resources/index.ts +11 -0
  65. package/src/resources/moderation.ts +388 -0
  66. package/src/resources/payments.ts +31 -1
  67. package/src/resources/payouts/breakup/breakup.ts +17 -1
  68. package/src/resources/payouts/breakup/details.ts +9 -8
  69. package/src/version.ts +1 -1
  70. package/version.d.mts +1 -1
  71. package/version.d.ts +1 -1
  72. package/version.js +1 -1
  73. 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;;OAEG;IACH,UAAiB,2BAA2B;QAC1C;;;WAGG;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;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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;CAG1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,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;AAuBD,OAAO,CAAC,OAAO,GAAG,iBAAO,CAAC"}
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;AAuBD,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC"}
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, with each
8
- * entry's amount pro-rated into the payout's currency. Supports pagination via
9
- * `page_size` (default 10, max 100) and `page_number` (default 0) query
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, with amounts pro-rated into the
41
- * payout's currency.
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). Uses cumulative rounding to ensure sum matches
69
- * payout total exactly.
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.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AE,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, with each
8
- * entry's amount pro-rated into the payout's currency. Supports pagination via
9
- * `page_size` (default 10, max 100) and `page_number` (default 0) query
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, with amounts pro-rated into the
41
- * payout's currency.
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). Uses cumulative rounding to ensure sum matches
69
- * payout total exactly.
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;;;;OAIG;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,GAA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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, with each
12
- * entry's amount pro-rated into the payout's currency. Supports pagination via
13
- * `page_size` (default 10, max 100) and `page_number` (default 0) query
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, with each
9
- * entry's amount pro-rated into the payout's currency. Supports pagination via
10
- * `page_size` (default 10, max 100) and `page_number` (default 0) query
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
  }
@@ -58,7 +58,14 @@ export interface BalanceLedgerEntry {
58
58
  | 'payment_retry_fee'
59
59
  | 'byop_fee'
60
60
  | 'ethoca_fees'
61
- | 'ethoca_fees_reversal';
61
+ | 'ethoca_fees_reversal'
62
+ | 'visa_rdr_fee'
63
+ | 'dispute_fees_reversal'
64
+ | 'deflection_fees'
65
+ | 'deflection_fees_reversal'
66
+ | 'reserve_hold'
67
+ | 'reserve_release'
68
+ | 'moderation_fees';
62
69
 
63
70
  is_credit: boolean;
64
71
 
@@ -263,7 +270,14 @@ export interface BalanceRetrieveLedgerParams extends DefaultPageNumberPagination
263
270
  | 'payment_retry_fee'
264
271
  | 'byop_fee'
265
272
  | 'ethoca_fees'
266
- | 'ethoca_fees_reversal';
273
+ | 'ethoca_fees_reversal'
274
+ | 'visa_rdr_fee'
275
+ | 'dispute_fees_reversal'
276
+ | 'deflection_fees'
277
+ | 'deflection_fees_reversal'
278
+ | 'reserve_hold'
279
+ | 'reserve_release'
280
+ | 'moderation_fees';
267
281
 
268
282
  /**
269
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.
@@ -200,6 +208,21 @@ export interface CheckoutSessionFlags {
200
208
  */
201
209
  require_phone_number?: boolean;
202
210
 
211
+ /**
212
+ * If true, the customer must give a tax id to check out as a business. A tax id is
213
+ * the GST number in India, or the VAT number in the EU. You must also set
214
+ * `allow_tax_id` to true.
215
+ *
216
+ * On the checkout page, this field does not change checkout for a customer who
217
+ * buys as an individual.
218
+ *
219
+ * A `confirm: true` request skips the checkout page. The request must contain
220
+ * `tax_id`.
221
+ *
222
+ * Default is false
223
+ */
224
+ require_tax_id?: boolean;
225
+
203
226
  /**
204
227
  * If true, the session uses the single-page checkout flow: the page initializes
205
228
  * the payment at load time and confirms it in place, with no separate payment
@@ -211,6 +234,11 @@ export interface CheckoutSessionFlags {
211
234
  }
212
235
 
213
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
+ */
214
242
  product_cart: Array<ProductItemReq>;
215
243
 
216
244
  /**
@@ -698,7 +726,9 @@ export interface CheckoutSessionPreviewResponse {
698
726
  * The upcoming billing date for subscriptions, computed relative to now: with a
699
727
  * trial it is `now + trial_period_days`, otherwise `now + payment frequency`.
700
728
  * `None` for one-time-only carts. This is a preview estimate; the authoritative
701
- * 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.
702
732
  */
703
733
  next_billing_date?: string | null;
704
734
 
@@ -707,6 +737,12 @@ export interface CheckoutSessionPreviewResponse {
707
737
  */
708
738
  recurring_breakup?: CheckoutSessionPreviewResponse.RecurringBreakup | null;
709
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
+
710
746
  /**
711
747
  * Registered business name from the official registry (EU/GB/AU) when found
712
748
  */
@@ -730,13 +766,16 @@ export interface CheckoutSessionPreviewResponse {
730
766
  /**
731
767
  * Per-unit trial amount after discounts, in the price currency's minor units
732
768
  * (pre-quantity, pre-tax; see `current_breakup` for the taxed total due today).
733
- * 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.
734
771
  */
735
772
  trial_amount?: number | null;
736
773
 
737
774
  /**
738
775
  * Effective trial duration in days for the subscription line, when there's a trial
739
- * (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`.
740
779
  */
741
780
  trial_period_days?: number | null;
742
781
  }
@@ -961,9 +1000,55 @@ export namespace CheckoutSessionPreviewResponse {
961
1000
  */
962
1001
  tax?: number | null;
963
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
+ }
964
1044
  }
965
1045
 
966
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
+ */
967
1052
  product_cart: Array<ProductItemReq>;
968
1053
 
969
1054
  /**
@@ -1096,6 +1181,11 @@ export interface CheckoutSessionCreateParams {
1096
1181
  }
1097
1182
 
1098
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
+ */
1099
1189
  product_cart: Array<ProductItemReq>;
1100
1190
 
1101
1191
  /**
@@ -109,7 +109,8 @@ export type EmailFailureCode =
109
109
  | 'temporary_failure'
110
110
  | 'message_too_large'
111
111
  | 'marked_as_spam'
112
- | 'send_failed';
112
+ | 'send_failed'
113
+ | 'test_mode_quota_spent';
113
114
 
114
115
  export interface EmailLogItem {
115
116
  /**
@@ -165,13 +166,8 @@ export interface EmailLogItem {
165
166
  from?: string | null;
166
167
 
167
168
  /**
168
- * What the merchant typed, when test mode redirected the send to the business
169
- * owner.
170
- */
171
- intended_recipient?: string | null;
172
-
173
- /**
174
- * The address the email reached.
169
+ * The address the email went to. On a failed email this is the address the
170
+ * provider reports as bounced.
175
171
  */
176
172
  recipient?: string | null;
177
173
 
@@ -213,6 +209,13 @@ export interface EmailPolicies {
213
209
  * The row failed and may be sent again.
214
210
  */
215
211
  retry_allowed: boolean;
212
+
213
+ /**
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.
217
+ */
218
+ superseded: boolean;
216
219
  }
217
220
 
218
221
  export interface EmailListParams extends DefaultPageNumberPaginationParams {}
@@ -375,9 +375,11 @@ export interface DiscountCreateParams {
375
375
 
376
376
  /**
377
377
  * Per-currency options (flat deduction / percentage cap + minimum subtotal).
378
- * Required for `flat` codes (must include a resolvable default); optional
379
- * per-currency caps for `percentage` codes. Per-row invariants are checked in
380
- * `normalize_currency_options`, not via `#[validate(nested)]`.
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 for unconfigured currencies. At
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 for unconfigured currencies. At
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
 
@@ -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,