increase 0.7.1 → 0.8.1

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 (231) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/README.md +8 -4
  3. package/_shims/ReadableStream.d.ts +38 -0
  4. package/_shims/ReadableStream.js +5 -0
  5. package/_shims/ReadableStream.mjs +7 -0
  6. package/_shims/ReadableStream.node.d.ts +6 -0
  7. package/_shims/ReadableStream.node.d.ts.map +1 -0
  8. package/_shims/ReadableStream.node.js +14 -0
  9. package/_shims/ReadableStream.node.js.map +1 -0
  10. package/_shims/ReadableStream.node.mjs +3 -0
  11. package/_shims/ReadableStream.node.mjs.map +1 -0
  12. package/_shims/fetch.js +1 -1
  13. package/core.d.ts +11 -10
  14. package/core.d.ts.map +1 -1
  15. package/core.js +123 -60
  16. package/core.js.map +1 -1
  17. package/core.mjs +113 -20
  18. package/core.mjs.map +1 -1
  19. package/error.d.ts +1 -0
  20. package/error.d.ts.map +1 -1
  21. package/error.js +12 -3
  22. package/error.js.map +1 -1
  23. package/error.mjs +12 -3
  24. package/error.mjs.map +1 -1
  25. package/index.d.mts +9 -5
  26. package/index.d.ts +9 -5
  27. package/index.d.ts.map +1 -1
  28. package/index.js +15 -11
  29. package/index.js.map +1 -1
  30. package/index.mjs +15 -11
  31. package/index.mjs.map +1 -1
  32. package/package.json +4 -4
  33. package/resources/account-numbers.d.ts.map +1 -1
  34. package/resources/account-statements.d.ts.map +1 -1
  35. package/resources/account-transfers.d.ts.map +1 -1
  36. package/resources/accounts.d.ts.map +1 -1
  37. package/resources/ach-prenotifications.d.ts.map +1 -1
  38. package/resources/ach-transfers.d.ts.map +1 -1
  39. package/resources/balance-lookups.d.ts.map +1 -1
  40. package/resources/bookkeeping-accounts.d.ts.map +1 -1
  41. package/resources/bookkeeping-entries.d.ts.map +1 -1
  42. package/resources/bookkeeping-entry-sets.d.ts.map +1 -1
  43. package/resources/card-disputes.d.ts.map +1 -1
  44. package/resources/card-profiles.d.ts +17 -4
  45. package/resources/card-profiles.d.ts.map +1 -1
  46. package/resources/card-profiles.js.map +1 -1
  47. package/resources/card-profiles.mjs.map +1 -1
  48. package/resources/card-purchase-supplements.d.ts +270 -0
  49. package/resources/card-purchase-supplements.d.ts.map +1 -0
  50. package/resources/card-purchase-supplements.js +28 -0
  51. package/resources/card-purchase-supplements.js.map +1 -0
  52. package/resources/card-purchase-supplements.mjs +21 -0
  53. package/resources/card-purchase-supplements.mjs.map +1 -0
  54. package/resources/cards.d.ts.map +1 -1
  55. package/resources/check-deposits.d.ts.map +1 -1
  56. package/resources/check-transfers.d.ts +184 -98
  57. package/resources/check-transfers.d.ts.map +1 -1
  58. package/resources/check-transfers.js.map +1 -1
  59. package/resources/check-transfers.mjs.map +1 -1
  60. package/resources/declined-transactions.d.ts +9 -7
  61. package/resources/declined-transactions.d.ts.map +1 -1
  62. package/resources/declined-transactions.js.map +1 -1
  63. package/resources/declined-transactions.mjs.map +1 -1
  64. package/resources/digital-wallet-tokens.d.ts.map +1 -1
  65. package/resources/documents.d.ts.map +1 -1
  66. package/resources/entities/beneficial-owners.d.ts +219 -0
  67. package/resources/entities/beneficial-owners.d.ts.map +1 -0
  68. package/resources/entities/beneficial-owners.js +18 -0
  69. package/resources/entities/beneficial-owners.js.map +1 -0
  70. package/resources/entities/beneficial-owners.mjs +12 -0
  71. package/resources/entities/beneficial-owners.mjs.map +1 -0
  72. package/resources/entities/entities.d.ts +4 -0
  73. package/resources/entities/entities.d.ts.map +1 -1
  74. package/resources/entities/entities.js +3 -0
  75. package/resources/entities/entities.js.map +1 -1
  76. package/resources/entities/entities.mjs +3 -0
  77. package/resources/entities/entities.mjs.map +1 -1
  78. package/resources/entities/index.d.ts +1 -0
  79. package/resources/entities/index.d.ts.map +1 -1
  80. package/resources/entities/index.js +8 -0
  81. package/resources/entities/index.js.map +1 -1
  82. package/resources/entities/index.mjs +1 -0
  83. package/resources/entities/index.mjs.map +1 -1
  84. package/resources/entities/supplemental-documents.d.ts.map +1 -1
  85. package/resources/event-subscriptions.d.ts.map +1 -1
  86. package/resources/events.d.ts.map +1 -1
  87. package/resources/exports.d.ts.map +1 -1
  88. package/resources/external-accounts.d.ts.map +1 -1
  89. package/resources/files.d.ts.map +1 -1
  90. package/resources/groups.d.ts.map +1 -1
  91. package/resources/inbound-ach-transfer-returns.d.ts.map +1 -1
  92. package/resources/inbound-wire-drawdown-requests.d.ts.map +1 -1
  93. package/resources/index.d.ts +6 -0
  94. package/resources/index.d.ts.map +1 -1
  95. package/resources/index.js +18 -3
  96. package/resources/index.js.map +1 -1
  97. package/resources/index.mjs +1 -0
  98. package/resources/index.mjs.map +1 -1
  99. package/resources/limits.d.ts +2 -2
  100. package/resources/limits.d.ts.map +1 -1
  101. package/resources/oauth-connections.d.ts.map +1 -1
  102. package/resources/pending-transactions.d.ts +11 -7
  103. package/resources/pending-transactions.d.ts.map +1 -1
  104. package/resources/pending-transactions.js.map +1 -1
  105. package/resources/pending-transactions.mjs.map +1 -1
  106. package/resources/programs.d.ts.map +1 -1
  107. package/resources/real-time-decisions.d.ts +49 -7
  108. package/resources/real-time-decisions.d.ts.map +1 -1
  109. package/resources/real-time-decisions.js.map +1 -1
  110. package/resources/real-time-decisions.mjs.map +1 -1
  111. package/resources/real-time-payments-transfers.d.ts.map +1 -1
  112. package/resources/routing-numbers.d.ts.map +1 -1
  113. package/resources/shared.d.ts +2 -0
  114. package/resources/shared.d.ts.map +1 -1
  115. package/resources/simulations/account-statements.d.ts.map +1 -1
  116. package/resources/simulations/ach-transfers.d.ts +952 -26
  117. package/resources/simulations/ach-transfers.d.ts.map +1 -1
  118. package/resources/simulations/ach-transfers.js.map +1 -1
  119. package/resources/simulations/ach-transfers.mjs.map +1 -1
  120. package/resources/simulations/card-disputes.d.ts.map +1 -1
  121. package/resources/simulations/card-refunds.d.ts.map +1 -1
  122. package/resources/simulations/cards.d.ts +20 -14
  123. package/resources/simulations/cards.d.ts.map +1 -1
  124. package/resources/simulations/cards.js.map +1 -1
  125. package/resources/simulations/cards.mjs.map +1 -1
  126. package/resources/simulations/digital-wallet-token-requests.d.ts.map +1 -1
  127. package/resources/simulations/documents.d.ts.map +1 -1
  128. package/resources/simulations/inbound-funds-holds.d.ts +4 -0
  129. package/resources/simulations/inbound-funds-holds.d.ts.map +1 -1
  130. package/resources/simulations/inbound-funds-holds.js.map +1 -1
  131. package/resources/simulations/inbound-funds-holds.mjs.map +1 -1
  132. package/resources/simulations/inbound-wire-drawdown-requests.d.ts.map +1 -1
  133. package/resources/simulations/interest-payments.d.ts +951 -19
  134. package/resources/simulations/interest-payments.d.ts.map +1 -1
  135. package/resources/simulations/interest-payments.js.map +1 -1
  136. package/resources/simulations/interest-payments.mjs.map +1 -1
  137. package/resources/simulations/programs.d.ts.map +1 -1
  138. package/resources/simulations/real-time-payments-transfers.d.ts +952 -26
  139. package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  140. package/resources/simulations/real-time-payments-transfers.js.map +1 -1
  141. package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
  142. package/resources/simulations/simulations.d.ts.map +1 -1
  143. package/resources/simulations/simulations.js.map +1 -1
  144. package/resources/simulations/wire-transfers.d.ts +943 -19
  145. package/resources/simulations/wire-transfers.d.ts.map +1 -1
  146. package/resources/simulations/wire-transfers.js.map +1 -1
  147. package/resources/simulations/wire-transfers.mjs.map +1 -1
  148. package/resources/transactions.d.ts +943 -20
  149. package/resources/transactions.d.ts.map +1 -1
  150. package/resources/transactions.js.map +1 -1
  151. package/resources/transactions.mjs.map +1 -1
  152. package/resources/wire-drawdown-requests.d.ts.map +1 -1
  153. package/resources/wire-transfers.d.ts.map +1 -1
  154. package/src/_shims/ReadableStream.d.ts +38 -0
  155. package/src/_shims/ReadableStream.js +5 -0
  156. package/src/_shims/ReadableStream.mjs +7 -0
  157. package/src/_shims/ReadableStream.node.ts +6 -0
  158. package/src/_shims/fetch.deno.ts +23 -0
  159. package/src/_shims/fetch.js +1 -1
  160. package/src/_shims/formdata.deno.ts +16 -0
  161. package/src/core.ts +130 -21
  162. package/src/error.ts +11 -1
  163. package/src/index.ts +23 -16
  164. package/src/resources/account-numbers.ts +1 -1
  165. package/src/resources/account-statements.ts +1 -1
  166. package/src/resources/account-transfers.ts +1 -1
  167. package/src/resources/accounts.ts +1 -1
  168. package/src/resources/ach-prenotifications.ts +1 -1
  169. package/src/resources/ach-transfers.ts +1 -1
  170. package/src/resources/balance-lookups.ts +1 -1
  171. package/src/resources/bookkeeping-accounts.ts +1 -1
  172. package/src/resources/bookkeeping-entries.ts +1 -1
  173. package/src/resources/bookkeeping-entry-sets.ts +1 -1
  174. package/src/resources/card-disputes.ts +1 -1
  175. package/src/resources/card-profiles.ts +19 -5
  176. package/src/resources/card-purchase-supplements.ts +331 -0
  177. package/src/resources/cards.ts +1 -1
  178. package/src/resources/check-deposits.ts +1 -1
  179. package/src/resources/check-transfers.ts +208 -113
  180. package/src/resources/declined-transactions.ts +11 -9
  181. package/src/resources/digital-wallet-tokens.ts +1 -1
  182. package/src/resources/documents.ts +1 -1
  183. package/src/resources/entities/beneficial-owners.ts +255 -0
  184. package/src/resources/entities/entities.ts +6 -1
  185. package/src/resources/entities/index.ts +1 -0
  186. package/src/resources/entities/supplemental-documents.ts +1 -1
  187. package/src/resources/event-subscriptions.ts +1 -1
  188. package/src/resources/events.ts +1 -1
  189. package/src/resources/exports.ts +1 -1
  190. package/src/resources/external-accounts.ts +1 -1
  191. package/src/resources/files.ts +1 -1
  192. package/src/resources/groups.ts +1 -1
  193. package/src/resources/inbound-ach-transfer-returns.ts +1 -1
  194. package/src/resources/inbound-wire-drawdown-requests.ts +1 -1
  195. package/src/resources/index.ts +6 -0
  196. package/src/resources/limits.ts +3 -3
  197. package/src/resources/oauth-connections.ts +1 -1
  198. package/src/resources/pending-transactions.ts +14 -9
  199. package/src/resources/programs.ts +1 -1
  200. package/src/resources/real-time-decisions.ts +57 -9
  201. package/src/resources/real-time-payments-transfers.ts +1 -1
  202. package/src/resources/routing-numbers.ts +1 -1
  203. package/src/resources/shared.ts +2 -0
  204. package/src/resources/simulations/account-statements.ts +1 -1
  205. package/src/resources/simulations/ach-transfers.ts +1091 -30
  206. package/src/resources/simulations/card-disputes.ts +1 -1
  207. package/src/resources/simulations/card-refunds.ts +1 -1
  208. package/src/resources/simulations/cards.ts +24 -17
  209. package/src/resources/simulations/digital-wallet-token-requests.ts +1 -1
  210. package/src/resources/simulations/documents.ts +1 -1
  211. package/src/resources/simulations/inbound-funds-holds.ts +6 -1
  212. package/src/resources/simulations/inbound-wire-drawdown-requests.ts +1 -1
  213. package/src/resources/simulations/interest-payments.ts +1091 -22
  214. package/src/resources/simulations/programs.ts +1 -1
  215. package/src/resources/simulations/real-time-payments-transfers.ts +1091 -30
  216. package/src/resources/simulations/simulations.ts +1 -1
  217. package/src/resources/simulations/wire-transfers.ts +1081 -22
  218. package/src/resources/transactions.ts +1081 -23
  219. package/src/resources/wire-drawdown-requests.ts +1 -1
  220. package/src/resources/wire-transfers.ts +1 -1
  221. package/src/uploads.ts +7 -6
  222. package/src/version.ts +1 -1
  223. package/uploads.d.ts +5 -4
  224. package/uploads.d.ts.map +1 -1
  225. package/uploads.js +2 -2
  226. package/uploads.js.map +1 -1
  227. package/uploads.mjs +2 -2
  228. package/uploads.mjs.map +1 -1
  229. package/version.d.ts +1 -1
  230. package/version.js +1 -1
  231. package/version.mjs +1 -1
@@ -3,7 +3,7 @@
3
3
  import * as Core from '../core';
4
4
  import { APIResource } from '../resource';
5
5
  import { isRequestOptions } from '../core';
6
- import * as API from '.';
6
+ import * as API from './index';
7
7
  import { Page, PageParams } from '../pagination';
8
8
 
9
9
  export class AccountTransfers extends APIResource {
@@ -3,7 +3,7 @@
3
3
  import * as Core from '../core';
4
4
  import { APIResource } from '../resource';
5
5
  import { isRequestOptions } from '../core';
6
- import * as API from '.';
6
+ import * as API from './index';
7
7
  import { Page, PageParams } from '../pagination';
8
8
 
9
9
  export class Accounts extends APIResource {
@@ -3,7 +3,7 @@
3
3
  import * as Core from '../core';
4
4
  import { APIResource } from '../resource';
5
5
  import { isRequestOptions } from '../core';
6
- import * as API from '.';
6
+ import * as API from './index';
7
7
  import { Page, PageParams } from '../pagination';
8
8
 
9
9
  export class ACHPrenotifications extends APIResource {
@@ -3,7 +3,7 @@
3
3
  import * as Core from '../core';
4
4
  import { APIResource } from '../resource';
5
5
  import { isRequestOptions } from '../core';
6
- import * as API from '.';
6
+ import * as API from './index';
7
7
  import { Page, PageParams } from '../pagination';
8
8
 
9
9
  export class ACHTransfers extends APIResource {
@@ -2,7 +2,7 @@
2
2
 
3
3
  import * as Core from '../core';
4
4
  import { APIResource } from '../resource';
5
- import * as API from '.';
5
+ import * as API from './index';
6
6
 
7
7
  export class BalanceLookups extends APIResource {
8
8
  /**
@@ -3,7 +3,7 @@
3
3
  import * as Core from '../core';
4
4
  import { APIResource } from '../resource';
5
5
  import { isRequestOptions } from '../core';
6
- import * as API from '.';
6
+ import * as API from './index';
7
7
  import { Page, PageParams } from '../pagination';
8
8
 
9
9
  export class BookkeepingAccounts extends APIResource {
@@ -3,7 +3,7 @@
3
3
  import * as Core from '../core';
4
4
  import { APIResource } from '../resource';
5
5
  import { isRequestOptions } from '../core';
6
- import * as API from '.';
6
+ import * as API from './index';
7
7
  import { Page, PageParams } from '../pagination';
8
8
 
9
9
  export class BookkeepingEntries extends APIResource {
@@ -2,7 +2,7 @@
2
2
 
3
3
  import * as Core from '../core';
4
4
  import { APIResource } from '../resource';
5
- import * as API from '.';
5
+ import * as API from './index';
6
6
 
7
7
  export class BookkeepingEntrySets extends APIResource {
8
8
  /**
@@ -3,7 +3,7 @@
3
3
  import * as Core from '../core';
4
4
  import { APIResource } from '../resource';
5
5
  import { isRequestOptions } from '../core';
6
- import * as API from '.';
6
+ import * as API from './index';
7
7
  import { Page, PageParams } from '../pagination';
8
8
 
9
9
  export class CardDisputes extends APIResource {
@@ -3,7 +3,7 @@
3
3
  import * as Core from '../core';
4
4
  import { APIResource } from '../resource';
5
5
  import { isRequestOptions } from '../core';
6
- import * as API from '.';
6
+ import * as API from './index';
7
7
  import { Page, PageParams } from '../pagination';
8
8
 
9
9
  export class CardProfiles extends APIResource {
@@ -171,22 +171,36 @@ export namespace CardProfile {
171
171
  /**
172
172
  * The identifier of the File containing the physical card's back image.
173
173
  */
174
- back_image_file_id: string;
174
+ back_image_file_id: string | null;
175
175
 
176
176
  /**
177
177
  * The identifier of the File containing the physical card's carrier image.
178
178
  */
179
- carrier_image_file_id: string;
179
+ carrier_image_file_id: string | null;
180
180
 
181
181
  /**
182
182
  * A phone number the user can contact to receive support for their card.
183
183
  */
184
- contact_phone: string;
184
+ contact_phone: string | null;
185
185
 
186
186
  /**
187
187
  * The identifier of the File containing the physical card's front image.
188
188
  */
189
- front_image_file_id: string;
189
+ front_image_file_id: string | null;
190
+
191
+ /**
192
+ * The status of the Physical Card Profile.
193
+ *
194
+ * - `not_eligible` - The Card Profile is not eligible for physical cards.
195
+ * - `rejected` - There is an issue with the Physical Card Profile preventing it
196
+ * from use.
197
+ * - `pending_reviewing` - The card profile is awaiting review by Increase.
198
+ * - `pending_submitting` - The card profile is awaiting submission to the
199
+ * fulfillment provider.
200
+ * - `submitted` - The Physical Card Profile has been submitted to the fulfillment
201
+ * provider.
202
+ */
203
+ status: 'not_eligible' | 'rejected' | 'pending_reviewing' | 'pending_submitting' | 'submitted';
190
204
  }
191
205
  }
192
206
 
@@ -0,0 +1,331 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ import * as Core from '../core';
4
+ import { APIResource } from '../resource';
5
+ import { isRequestOptions } from '../core';
6
+ import * as API from './index';
7
+ import { Page, PageParams } from '../pagination';
8
+
9
+ export class CardPurchaseSupplements extends APIResource {
10
+ /**
11
+ * Retrieve a Card Purchase Supplement
12
+ */
13
+ retrieve(
14
+ cardPurchaseSupplementId: string,
15
+ options?: Core.RequestOptions,
16
+ ): Promise<Core.APIResponse<CardPurchaseSupplement>> {
17
+ return this.get(`/card_purchase_supplements/${cardPurchaseSupplementId}`, options);
18
+ }
19
+
20
+ /**
21
+ * List Card Purchase Supplements
22
+ */
23
+ list(
24
+ query?: CardPurchaseSupplementListParams,
25
+ options?: Core.RequestOptions,
26
+ ): Core.PagePromise<CardPurchaseSupplementsPage>;
27
+ list(options?: Core.RequestOptions): Core.PagePromise<CardPurchaseSupplementsPage>;
28
+ list(
29
+ query: CardPurchaseSupplementListParams | Core.RequestOptions = {},
30
+ options?: Core.RequestOptions,
31
+ ): Core.PagePromise<CardPurchaseSupplementsPage> {
32
+ if (isRequestOptions(query)) {
33
+ return this.list({}, query);
34
+ }
35
+ return this.getAPIList('/card_purchase_supplements', CardPurchaseSupplementsPage, { query, ...options });
36
+ }
37
+ }
38
+
39
+ export class CardPurchaseSupplementsPage extends Page<CardPurchaseSupplement> {}
40
+ // alias so we can export it in the namespace
41
+ type _CardPurchaseSupplementsPage = CardPurchaseSupplementsPage;
42
+
43
+ /**
44
+ * Additional information about a card purchase (e.g., settlement or refund), such
45
+ * as level 3 line item data.
46
+ */
47
+ export interface CardPurchaseSupplement {
48
+ /**
49
+ * The Card Purchase Supplement identifier.
50
+ */
51
+ id: string;
52
+
53
+ /**
54
+ * The ID of the Card Payment this transaction belongs to.
55
+ */
56
+ card_payment_id: string | null;
57
+
58
+ /**
59
+ * Invoice-level information about the payment.
60
+ */
61
+ invoice: CardPurchaseSupplement.Invoice | null;
62
+
63
+ /**
64
+ * Line item information, such as individual products purchased.
65
+ */
66
+ line_items: Array<CardPurchaseSupplement.LineItem> | null;
67
+
68
+ /**
69
+ * The ID of the transaction.
70
+ */
71
+ transaction_id: string;
72
+
73
+ /**
74
+ * A constant representing the object's type. For this resource it will always be
75
+ * `card_purchase_supplement`.
76
+ */
77
+ type: 'card_purchase_supplement';
78
+ }
79
+
80
+ export namespace CardPurchaseSupplement {
81
+ /**
82
+ * Invoice-level information about the payment.
83
+ */
84
+ export interface Invoice {
85
+ /**
86
+ * Discount given to cardholder.
87
+ */
88
+ discount_amount: number | null;
89
+
90
+ /**
91
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the discount.
92
+ */
93
+ discount_currency: string | null;
94
+
95
+ /**
96
+ * Indicates how the merchant applied the discount.
97
+ *
98
+ * - `no_invoice_level_discount_provided` - No invoice level discount provided
99
+ * - `tax_calculated_on_post_discount_invoice_total` - Tax calculated on post
100
+ * discount invoice total
101
+ * - `tax_calculated_on_pre_discount_invoice_total` - Tax calculated on pre
102
+ * discount invoice total
103
+ */
104
+ discount_treatment_code:
105
+ | 'no_invoice_level_discount_provided'
106
+ | 'tax_calculated_on_post_discount_invoice_total'
107
+ | 'tax_calculated_on_pre_discount_invoice_total'
108
+ | null;
109
+
110
+ /**
111
+ * Amount of duty taxes.
112
+ */
113
+ duty_tax_amount: number | null;
114
+
115
+ /**
116
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the duty tax.
117
+ */
118
+ duty_tax_currency: string | null;
119
+
120
+ /**
121
+ * Date the order was taken.
122
+ */
123
+ order_date: string | null;
124
+
125
+ /**
126
+ * The shipping cost.
127
+ */
128
+ shipping_amount: number | null;
129
+
130
+ /**
131
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the shipping
132
+ * cost.
133
+ */
134
+ shipping_currency: string | null;
135
+
136
+ /**
137
+ * Country code of the shipping destination.
138
+ */
139
+ shipping_destination_country_code: string | null;
140
+
141
+ /**
142
+ * Postal code of the shipping destination.
143
+ */
144
+ shipping_destination_postal_code: string | null;
145
+
146
+ /**
147
+ * Postal code of the location being shipped from.
148
+ */
149
+ shipping_source_postal_code: string | null;
150
+
151
+ /**
152
+ * Taxes paid for freight and shipping.
153
+ */
154
+ shipping_tax_amount: number | null;
155
+
156
+ /**
157
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the shipping
158
+ * tax.
159
+ */
160
+ shipping_tax_currency: string | null;
161
+
162
+ /**
163
+ * Tax rate for freight and shipping.
164
+ */
165
+ shipping_tax_rate: string | null;
166
+
167
+ /**
168
+ * Indicates how the merchant applied taxes.
169
+ *
170
+ * - `no_tax_applies` - No tax applies
171
+ * - `net_price_line_item_level` - Net price line item level
172
+ * - `net_price_invoice_level` - Net price invoice level
173
+ * - `gross_price_line_item_level` - Gross price line item level
174
+ * - `gross_price_invoice_level` - Gross price invoice level
175
+ */
176
+ tax_treatments:
177
+ | 'no_tax_applies'
178
+ | 'net_price_line_item_level'
179
+ | 'net_price_invoice_level'
180
+ | 'gross_price_line_item_level'
181
+ | 'gross_price_invoice_level'
182
+ | null;
183
+
184
+ /**
185
+ * Value added tax invoice reference number.
186
+ */
187
+ unique_value_added_tax_invoice_reference: string | null;
188
+ }
189
+
190
+ export interface LineItem {
191
+ /**
192
+ * Indicates the type of line item.
193
+ *
194
+ * - `normal` - Normal
195
+ * - `credit` - Credit
196
+ * - `payment` - Purchase
197
+ */
198
+ detail_indicator: 'normal' | 'credit' | 'payment' | null;
199
+
200
+ /**
201
+ * Discount amount for this specific line item.
202
+ */
203
+ discount_amount: number | null;
204
+
205
+ /**
206
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the discount.
207
+ */
208
+ discount_currency: string | null;
209
+
210
+ /**
211
+ * Indicates how the merchant applied the discount for this specific line item.
212
+ *
213
+ * - `no_line_item_level_discount_provided` - No line item level discount provided
214
+ * - `tax_calculated_on_post_discount_line_item_total` - Tax calculated on post
215
+ * discount line item total
216
+ * - `tax_calculated_on_pre_discount_line_item_total` - Tax calculated on pre
217
+ * discount line item total
218
+ */
219
+ discount_treatment_code:
220
+ | 'no_line_item_level_discount_provided'
221
+ | 'tax_calculated_on_post_discount_line_item_total'
222
+ | 'tax_calculated_on_pre_discount_line_item_total'
223
+ | null;
224
+
225
+ /**
226
+ * Code used to categorize the purchase item.
227
+ */
228
+ item_commodity_code: string | null;
229
+
230
+ /**
231
+ * Description of the purchase item.
232
+ */
233
+ item_descriptor: string | null;
234
+
235
+ /**
236
+ * The number of units of the product being purchased.
237
+ */
238
+ item_quantity: string | null;
239
+
240
+ /**
241
+ * Code used to categorize the product being purchased.
242
+ */
243
+ product_code: string | null;
244
+
245
+ /**
246
+ * Sales tax amount for this line item.
247
+ */
248
+ sales_tax_amount: number | null;
249
+
250
+ /**
251
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the sales tax
252
+ * assessed.
253
+ */
254
+ sales_tax_currency: string | null;
255
+
256
+ /**
257
+ * Sales tax rate for this line item.
258
+ */
259
+ sales_tax_rate: string | null;
260
+
261
+ /**
262
+ * Total amount of all line items
263
+ */
264
+ total_amount: number | null;
265
+
266
+ /**
267
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the totla
268
+ * amount.
269
+ */
270
+ total_amount_currency: string | null;
271
+
272
+ /**
273
+ * Cost of line item per unit of measure, in major units.
274
+ */
275
+ unit_cost: string | null;
276
+
277
+ /**
278
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the unit cost.
279
+ */
280
+ unit_cost_currency: string | null;
281
+
282
+ /**
283
+ * Code indicating unit of measure (gallons, etc.)
284
+ */
285
+ unit_of_measure_code: string | null;
286
+ }
287
+ }
288
+
289
+ export interface CardPurchaseSupplementListParams extends PageParams {
290
+ /**
291
+ * Filter Card Purchase Supplements to ones belonging to the specified Card
292
+ * Payment.
293
+ */
294
+ card_payment_id?: string;
295
+
296
+ created_at?: CardPurchaseSupplementListParams.CreatedAt;
297
+ }
298
+
299
+ export namespace CardPurchaseSupplementListParams {
300
+ export interface CreatedAt {
301
+ /**
302
+ * Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
303
+ * timestamp.
304
+ */
305
+ after?: string;
306
+
307
+ /**
308
+ * Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
309
+ * timestamp.
310
+ */
311
+ before?: string;
312
+
313
+ /**
314
+ * Return results on or after this
315
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
316
+ */
317
+ on_or_after?: string;
318
+
319
+ /**
320
+ * Return results on or before this
321
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
322
+ */
323
+ on_or_before?: string;
324
+ }
325
+ }
326
+
327
+ export namespace CardPurchaseSupplements {
328
+ export import CardPurchaseSupplement = API.CardPurchaseSupplement;
329
+ export type CardPurchaseSupplementsPage = _CardPurchaseSupplementsPage;
330
+ export import CardPurchaseSupplementListParams = API.CardPurchaseSupplementListParams;
331
+ }
@@ -3,7 +3,7 @@
3
3
  import * as Core from '../core';
4
4
  import { APIResource } from '../resource';
5
5
  import { isRequestOptions } from '../core';
6
- import * as API from '.';
6
+ import * as API from './index';
7
7
  import { Page, PageParams } from '../pagination';
8
8
 
9
9
  export class Cards extends APIResource {
@@ -3,7 +3,7 @@
3
3
  import * as Core from '../core';
4
4
  import { APIResource } from '../resource';
5
5
  import { isRequestOptions } from '../core';
6
- import * as API from '.';
6
+ import * as API from './index';
7
7
  import { Page, PageParams } from '../pagination';
8
8
 
9
9
  export class CheckDeposits extends APIResource {