increase 0.8.0 → 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 (219) hide show
  1. package/CHANGELOG.md +40 -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/core.d.ts +10 -0
  13. package/core.d.ts.map +1 -1
  14. package/core.js +96 -2
  15. package/core.js.map +1 -1
  16. package/core.mjs +86 -2
  17. package/core.mjs.map +1 -1
  18. package/error.d.ts +1 -0
  19. package/error.d.ts.map +1 -1
  20. package/error.js +12 -3
  21. package/error.js.map +1 -1
  22. package/error.mjs +12 -3
  23. package/error.mjs.map +1 -1
  24. package/index.d.mts +6 -1
  25. package/index.d.ts +6 -1
  26. package/index.d.ts.map +1 -1
  27. package/index.js +11 -8
  28. package/index.js.map +1 -1
  29. package/index.mjs +11 -8
  30. package/index.mjs.map +1 -1
  31. package/package.json +1 -1
  32. package/resources/account-numbers.d.ts.map +1 -1
  33. package/resources/account-statements.d.ts.map +1 -1
  34. package/resources/account-transfers.d.ts.map +1 -1
  35. package/resources/accounts.d.ts.map +1 -1
  36. package/resources/ach-prenotifications.d.ts.map +1 -1
  37. package/resources/ach-transfers.d.ts.map +1 -1
  38. package/resources/balance-lookups.d.ts.map +1 -1
  39. package/resources/bookkeeping-accounts.d.ts.map +1 -1
  40. package/resources/bookkeeping-entries.d.ts.map +1 -1
  41. package/resources/bookkeeping-entry-sets.d.ts.map +1 -1
  42. package/resources/card-disputes.d.ts.map +1 -1
  43. package/resources/card-profiles.d.ts +17 -4
  44. package/resources/card-profiles.d.ts.map +1 -1
  45. package/resources/card-profiles.js.map +1 -1
  46. package/resources/card-profiles.mjs.map +1 -1
  47. package/resources/card-purchase-supplements.d.ts +270 -0
  48. package/resources/card-purchase-supplements.d.ts.map +1 -0
  49. package/resources/card-purchase-supplements.js +28 -0
  50. package/resources/card-purchase-supplements.js.map +1 -0
  51. package/resources/card-purchase-supplements.mjs +21 -0
  52. package/resources/card-purchase-supplements.mjs.map +1 -0
  53. package/resources/cards.d.ts.map +1 -1
  54. package/resources/check-deposits.d.ts.map +1 -1
  55. package/resources/check-transfers.d.ts +3 -1
  56. package/resources/check-transfers.d.ts.map +1 -1
  57. package/resources/check-transfers.js.map +1 -1
  58. package/resources/check-transfers.mjs.map +1 -1
  59. package/resources/declined-transactions.d.ts.map +1 -1
  60. package/resources/digital-wallet-tokens.d.ts.map +1 -1
  61. package/resources/documents.d.ts.map +1 -1
  62. package/resources/entities/beneficial-owners.d.ts +219 -0
  63. package/resources/entities/beneficial-owners.d.ts.map +1 -0
  64. package/resources/entities/beneficial-owners.js +18 -0
  65. package/resources/entities/beneficial-owners.js.map +1 -0
  66. package/resources/entities/beneficial-owners.mjs +12 -0
  67. package/resources/entities/beneficial-owners.mjs.map +1 -0
  68. package/resources/entities/entities.d.ts +4 -0
  69. package/resources/entities/entities.d.ts.map +1 -1
  70. package/resources/entities/entities.js +3 -0
  71. package/resources/entities/entities.js.map +1 -1
  72. package/resources/entities/entities.mjs +3 -0
  73. package/resources/entities/entities.mjs.map +1 -1
  74. package/resources/entities/index.d.ts +1 -0
  75. package/resources/entities/index.d.ts.map +1 -1
  76. package/resources/entities/index.js +8 -0
  77. package/resources/entities/index.js.map +1 -1
  78. package/resources/entities/index.mjs +1 -0
  79. package/resources/entities/index.mjs.map +1 -1
  80. package/resources/entities/supplemental-documents.d.ts.map +1 -1
  81. package/resources/event-subscriptions.d.ts.map +1 -1
  82. package/resources/events.d.ts.map +1 -1
  83. package/resources/exports.d.ts.map +1 -1
  84. package/resources/external-accounts.d.ts.map +1 -1
  85. package/resources/files.d.ts.map +1 -1
  86. package/resources/groups.d.ts.map +1 -1
  87. package/resources/inbound-ach-transfer-returns.d.ts.map +1 -1
  88. package/resources/inbound-wire-drawdown-requests.d.ts.map +1 -1
  89. package/resources/index.d.ts +6 -0
  90. package/resources/index.d.ts.map +1 -1
  91. package/resources/index.js +18 -3
  92. package/resources/index.js.map +1 -1
  93. package/resources/index.mjs +1 -0
  94. package/resources/index.mjs.map +1 -1
  95. package/resources/limits.d.ts.map +1 -1
  96. package/resources/oauth-connections.d.ts.map +1 -1
  97. package/resources/pending-transactions.d.ts +4 -0
  98. package/resources/pending-transactions.d.ts.map +1 -1
  99. package/resources/pending-transactions.js.map +1 -1
  100. package/resources/pending-transactions.mjs.map +1 -1
  101. package/resources/programs.d.ts.map +1 -1
  102. package/resources/real-time-decisions.d.ts.map +1 -1
  103. package/resources/real-time-payments-transfers.d.ts.map +1 -1
  104. package/resources/routing-numbers.d.ts.map +1 -1
  105. package/resources/simulations/account-statements.d.ts.map +1 -1
  106. package/resources/simulations/ach-transfers.d.ts +939 -19
  107. package/resources/simulations/ach-transfers.d.ts.map +1 -1
  108. package/resources/simulations/ach-transfers.js.map +1 -1
  109. package/resources/simulations/ach-transfers.mjs.map +1 -1
  110. package/resources/simulations/card-disputes.d.ts.map +1 -1
  111. package/resources/simulations/card-refunds.d.ts.map +1 -1
  112. package/resources/simulations/cards.d.ts +4 -0
  113. package/resources/simulations/cards.d.ts.map +1 -1
  114. package/resources/simulations/cards.js.map +1 -1
  115. package/resources/simulations/cards.mjs.map +1 -1
  116. package/resources/simulations/digital-wallet-token-requests.d.ts.map +1 -1
  117. package/resources/simulations/documents.d.ts.map +1 -1
  118. package/resources/simulations/inbound-funds-holds.d.ts +4 -0
  119. package/resources/simulations/inbound-funds-holds.d.ts.map +1 -1
  120. package/resources/simulations/inbound-funds-holds.js.map +1 -1
  121. package/resources/simulations/inbound-funds-holds.mjs.map +1 -1
  122. package/resources/simulations/inbound-wire-drawdown-requests.d.ts.map +1 -1
  123. package/resources/simulations/interest-payments.d.ts +947 -19
  124. package/resources/simulations/interest-payments.d.ts.map +1 -1
  125. package/resources/simulations/interest-payments.js.map +1 -1
  126. package/resources/simulations/interest-payments.mjs.map +1 -1
  127. package/resources/simulations/programs.d.ts.map +1 -1
  128. package/resources/simulations/real-time-payments-transfers.d.ts +939 -19
  129. package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  130. package/resources/simulations/real-time-payments-transfers.js.map +1 -1
  131. package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
  132. package/resources/simulations/simulations.d.ts.map +1 -1
  133. package/resources/simulations/simulations.js.map +1 -1
  134. package/resources/simulations/wire-transfers.d.ts +939 -19
  135. package/resources/simulations/wire-transfers.d.ts.map +1 -1
  136. package/resources/simulations/wire-transfers.js.map +1 -1
  137. package/resources/simulations/wire-transfers.mjs.map +1 -1
  138. package/resources/transactions.d.ts +939 -20
  139. package/resources/transactions.d.ts.map +1 -1
  140. package/resources/transactions.js.map +1 -1
  141. package/resources/transactions.mjs.map +1 -1
  142. package/resources/wire-drawdown-requests.d.ts.map +1 -1
  143. package/resources/wire-transfers.d.ts.map +1 -1
  144. package/src/_shims/ReadableStream.d.ts +38 -0
  145. package/src/_shims/ReadableStream.js +5 -0
  146. package/src/_shims/ReadableStream.mjs +7 -0
  147. package/src/_shims/ReadableStream.node.ts +6 -0
  148. package/src/_shims/fetch.deno.ts +23 -0
  149. package/src/_shims/formdata.deno.ts +16 -0
  150. package/src/core.ts +103 -4
  151. package/src/error.ts +11 -1
  152. package/src/index.ts +16 -9
  153. package/src/resources/account-numbers.ts +1 -1
  154. package/src/resources/account-statements.ts +1 -1
  155. package/src/resources/account-transfers.ts +1 -1
  156. package/src/resources/accounts.ts +1 -1
  157. package/src/resources/ach-prenotifications.ts +1 -1
  158. package/src/resources/ach-transfers.ts +1 -1
  159. package/src/resources/balance-lookups.ts +1 -1
  160. package/src/resources/bookkeeping-accounts.ts +1 -1
  161. package/src/resources/bookkeeping-entries.ts +1 -1
  162. package/src/resources/bookkeeping-entry-sets.ts +1 -1
  163. package/src/resources/card-disputes.ts +1 -1
  164. package/src/resources/card-profiles.ts +19 -5
  165. package/src/resources/card-purchase-supplements.ts +331 -0
  166. package/src/resources/cards.ts +1 -1
  167. package/src/resources/check-deposits.ts +1 -1
  168. package/src/resources/check-transfers.ts +4 -2
  169. package/src/resources/declined-transactions.ts +1 -1
  170. package/src/resources/digital-wallet-tokens.ts +1 -1
  171. package/src/resources/documents.ts +1 -1
  172. package/src/resources/entities/beneficial-owners.ts +255 -0
  173. package/src/resources/entities/entities.ts +6 -1
  174. package/src/resources/entities/index.ts +1 -0
  175. package/src/resources/entities/supplemental-documents.ts +1 -1
  176. package/src/resources/event-subscriptions.ts +1 -1
  177. package/src/resources/events.ts +1 -1
  178. package/src/resources/exports.ts +1 -1
  179. package/src/resources/external-accounts.ts +1 -1
  180. package/src/resources/files.ts +1 -1
  181. package/src/resources/groups.ts +1 -1
  182. package/src/resources/inbound-ach-transfer-returns.ts +1 -1
  183. package/src/resources/inbound-wire-drawdown-requests.ts +1 -1
  184. package/src/resources/index.ts +6 -0
  185. package/src/resources/limits.ts +1 -1
  186. package/src/resources/oauth-connections.ts +1 -1
  187. package/src/resources/pending-transactions.ts +6 -1
  188. package/src/resources/programs.ts +1 -1
  189. package/src/resources/real-time-decisions.ts +1 -1
  190. package/src/resources/real-time-payments-transfers.ts +1 -1
  191. package/src/resources/routing-numbers.ts +1 -1
  192. package/src/resources/simulations/account-statements.ts +1 -1
  193. package/src/resources/simulations/ach-transfers.ts +1076 -22
  194. package/src/resources/simulations/card-disputes.ts +1 -1
  195. package/src/resources/simulations/card-refunds.ts +1 -1
  196. package/src/resources/simulations/cards.ts +6 -1
  197. package/src/resources/simulations/digital-wallet-token-requests.ts +1 -1
  198. package/src/resources/simulations/documents.ts +1 -1
  199. package/src/resources/simulations/inbound-funds-holds.ts +6 -1
  200. package/src/resources/simulations/inbound-wire-drawdown-requests.ts +1 -1
  201. package/src/resources/simulations/interest-payments.ts +1086 -22
  202. package/src/resources/simulations/programs.ts +1 -1
  203. package/src/resources/simulations/real-time-payments-transfers.ts +1076 -22
  204. package/src/resources/simulations/simulations.ts +1 -1
  205. package/src/resources/simulations/wire-transfers.ts +1076 -22
  206. package/src/resources/transactions.ts +1076 -23
  207. package/src/resources/wire-drawdown-requests.ts +1 -1
  208. package/src/resources/wire-transfers.ts +1 -1
  209. package/src/uploads.ts +7 -6
  210. package/src/version.ts +1 -1
  211. package/uploads.d.ts +5 -4
  212. package/uploads.d.ts.map +1 -1
  213. package/uploads.js +2 -2
  214. package/uploads.js.map +1 -1
  215. package/uploads.mjs +2 -2
  216. package/uploads.mjs.map +1 -1
  217. package/version.d.ts +1 -1
  218. package/version.js +1 -1
  219. 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 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 {
@@ -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 CheckTransfers extends APIResource {
@@ -417,9 +417,11 @@ export namespace CheckTransfer {
417
417
  * The reason why this transfer was stopped.
418
418
  *
419
419
  * - `mail_delivery_failed` - The check could not be delivered.
420
+ * - `rejected_by_increase` - The check was cancelled by an Increase operator who
421
+ * will provide details out-of-band.
420
422
  * - `unknown` - The check was stopped for another reason.
421
423
  */
422
- reason: 'mail_delivery_failed' | 'unknown';
424
+ reason: 'mail_delivery_failed' | 'rejected_by_increase' | 'unknown';
423
425
 
424
426
  /**
425
427
  * The time the stop-payment was requested.
@@ -4,7 +4,7 @@ import * as Core from '../core';
4
4
  import { APIResource } from '../resource';
5
5
  import { isRequestOptions } from '../core';
6
6
  import * as Shared from './shared';
7
- import * as API from '.';
7
+ import * as API from './index';
8
8
  import { Page, PageParams } from '../pagination';
9
9
 
10
10
  export class DeclinedTransactions 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 DigitalWalletTokens 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 Documents extends APIResource {
@@ -0,0 +1,255 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ import * as Core from '../../core';
4
+ import { APIResource } from '../../resource';
5
+ import * as Entities from './index';
6
+ import * as API from './index';
7
+
8
+ export class BeneficialOwners extends APIResource {
9
+ /**
10
+ * Create a beneficial owner for a corporate Entity
11
+ */
12
+ create(
13
+ entityId: string,
14
+ body: BeneficialOwnerCreateParams,
15
+ options?: Core.RequestOptions,
16
+ ): Promise<Core.APIResponse<Entities.Entity>> {
17
+ return this.post(`/entities/${entityId}/beneficial_owners`, { body, ...options });
18
+ }
19
+ }
20
+
21
+ export interface BeneficialOwnerCreateParams {
22
+ /**
23
+ * The identifying details of anyone controlling or owning 25% or more of the
24
+ * corporation.
25
+ */
26
+ beneficial_owner: BeneficialOwnerCreateParams.BeneficialOwner;
27
+ }
28
+
29
+ export namespace BeneficialOwnerCreateParams {
30
+ /**
31
+ * The identifying details of anyone controlling or owning 25% or more of the
32
+ * corporation.
33
+ */
34
+ export interface BeneficialOwner {
35
+ /**
36
+ * Personal details for the beneficial owner.
37
+ */
38
+ individual: BeneficialOwner.Individual;
39
+
40
+ /**
41
+ * Why this person is considered a beneficial owner of the entity.
42
+ *
43
+ * - `ownership` - A person with 25% or greater direct or indirect ownership of the
44
+ * entity.
45
+ * - `control` - A person who manages, directs, or has significant control of the
46
+ * entity.
47
+ */
48
+ prong: 'ownership' | 'control';
49
+
50
+ /**
51
+ * This person's role or title within the entity.
52
+ */
53
+ company_title?: string;
54
+ }
55
+
56
+ export namespace BeneficialOwner {
57
+ /**
58
+ * Personal details for the beneficial owner.
59
+ */
60
+ export interface Individual {
61
+ /**
62
+ * The individual's address.
63
+ */
64
+ address: Individual.Address;
65
+
66
+ /**
67
+ * The person's date of birth in YYYY-MM-DD format.
68
+ */
69
+ date_of_birth: string;
70
+
71
+ /**
72
+ * A means of verifying the person's identity.
73
+ */
74
+ identification: Individual.Identification;
75
+
76
+ /**
77
+ * The person's legal name.
78
+ */
79
+ name: string;
80
+
81
+ /**
82
+ * The identification method for an individual can only be a passport, driver's
83
+ * license, or other document if you've confirmed the individual does not have a US
84
+ * tax id (either a Social Security Number or Individual Taxpayer Identification
85
+ * Number).
86
+ */
87
+ confirmed_no_us_tax_id?: boolean;
88
+ }
89
+
90
+ export namespace Individual {
91
+ /**
92
+ * The individual's address.
93
+ */
94
+ export interface Address {
95
+ /**
96
+ * The city of the address.
97
+ */
98
+ city: string;
99
+
100
+ /**
101
+ * The first line of the address. This is usually the street number and street.
102
+ */
103
+ line1: string;
104
+
105
+ /**
106
+ * The two-letter United States Postal Service (USPS) abbreviation for the state of
107
+ * the address.
108
+ */
109
+ state: string;
110
+
111
+ /**
112
+ * The ZIP code of the address.
113
+ */
114
+ zip: string;
115
+
116
+ /**
117
+ * The second line of the address. This might be the floor or room number.
118
+ */
119
+ line2?: string;
120
+ }
121
+
122
+ /**
123
+ * A means of verifying the person's identity.
124
+ */
125
+ export interface Identification {
126
+ /**
127
+ * A method that can be used to verify the individual's identity.
128
+ *
129
+ * - `social_security_number` - A social security number.
130
+ * - `individual_taxpayer_identification_number` - An individual taxpayer
131
+ * identification number (ITIN).
132
+ * - `passport` - A passport number.
133
+ * - `drivers_license` - A driver's license number.
134
+ * - `other` - Another identifying document.
135
+ */
136
+ method:
137
+ | 'social_security_number'
138
+ | 'individual_taxpayer_identification_number'
139
+ | 'passport'
140
+ | 'drivers_license'
141
+ | 'other';
142
+
143
+ /**
144
+ * An identification number that can be used to verify the individual's identity,
145
+ * such as a social security number.
146
+ */
147
+ number: string;
148
+
149
+ /**
150
+ * Information about the United States driver's license used for identification.
151
+ * Required if `method` is equal to `drivers_license`.
152
+ */
153
+ drivers_license?: Identification.DriversLicense;
154
+
155
+ /**
156
+ * Information about the identification document provided. Required if `method` is
157
+ * equal to `other`.
158
+ */
159
+ other?: Identification.Other;
160
+
161
+ /**
162
+ * Information about the passport used for identification. Required if `method` is
163
+ * equal to `passport`.
164
+ */
165
+ passport?: Identification.Passport;
166
+ }
167
+
168
+ export namespace Identification {
169
+ /**
170
+ * Information about the United States driver's license used for identification.
171
+ * Required if `method` is equal to `drivers_license`.
172
+ */
173
+ export interface DriversLicense {
174
+ /**
175
+ * The driver's license's expiration date in YYYY-MM-DD format.
176
+ */
177
+ expiration_date: string;
178
+
179
+ /**
180
+ * The identifier of the File containing the front of the driver's license.
181
+ */
182
+ file_id: string;
183
+
184
+ /**
185
+ * The state that issued the provided driver's license.
186
+ */
187
+ state: string;
188
+
189
+ /**
190
+ * The identifier of the File containing the back of the driver's license.
191
+ */
192
+ back_file_id?: string;
193
+ }
194
+
195
+ /**
196
+ * Information about the identification document provided. Required if `method` is
197
+ * equal to `other`.
198
+ */
199
+ export interface Other {
200
+ /**
201
+ * The two-character ISO 3166-1 code representing the country that issued the
202
+ * document.
203
+ */
204
+ country: string;
205
+
206
+ /**
207
+ * A description of the document submitted.
208
+ */
209
+ description: string;
210
+
211
+ /**
212
+ * The identifier of the File containing the front of the document.
213
+ */
214
+ file_id: string;
215
+
216
+ /**
217
+ * The identifier of the File containing the back of the document. Not every
218
+ * document has a reverse side.
219
+ */
220
+ back_file_id?: string;
221
+
222
+ /**
223
+ * The document's expiration date in YYYY-MM-DD format.
224
+ */
225
+ expiration_date?: string;
226
+ }
227
+
228
+ /**
229
+ * Information about the passport used for identification. Required if `method` is
230
+ * equal to `passport`.
231
+ */
232
+ export interface Passport {
233
+ /**
234
+ * The country that issued the passport.
235
+ */
236
+ country: string;
237
+
238
+ /**
239
+ * The passport's expiration date in YYYY-MM-DD format.
240
+ */
241
+ expiration_date: string;
242
+
243
+ /**
244
+ * The identifier of the File containing the passport.
245
+ */
246
+ file_id: string;
247
+ }
248
+ }
249
+ }
250
+ }
251
+ }
252
+
253
+ export namespace BeneficialOwners {
254
+ export import BeneficialOwnerCreateParams = API.BeneficialOwnerCreateParams;
255
+ }