modern-treasury 0.0.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 (169) hide show
  1. package/.eslintrc.js +10 -0
  2. package/.prettierrc +6 -0
  3. package/LICENSE +7 -0
  4. package/README.md +198 -0
  5. package/build +10 -0
  6. package/core.ts +746 -0
  7. package/dist/cjs/core.d.ts +215 -0
  8. package/dist/cjs/core.js +815 -0
  9. package/dist/cjs/core.js.map +1 -0
  10. package/dist/cjs/index.d.ts +118 -0
  11. package/dist/cjs/index.js +128 -0
  12. package/dist/cjs/index.js.map +1 -0
  13. package/dist/cjs/pagination.d.ts +14 -0
  14. package/dist/cjs/pagination.js +22 -0
  15. package/dist/cjs/pagination.js.map +1 -0
  16. package/dist/cjs/resource.d.ts +11 -0
  17. package/dist/cjs/resource.js +16 -0
  18. package/dist/cjs/resource.js.map +1 -0
  19. package/dist/cjs/resources/counterparties.d.ts +500 -0
  20. package/dist/cjs/resources/counterparties.js +57 -0
  21. package/dist/cjs/resources/counterparties.js.map +1 -0
  22. package/dist/cjs/resources/documents.d.ts +66 -0
  23. package/dist/cjs/resources/documents.js +23 -0
  24. package/dist/cjs/resources/documents.js.map +1 -0
  25. package/dist/cjs/resources/events.d.ts +53 -0
  26. package/dist/cjs/resources/events.js +22 -0
  27. package/dist/cjs/resources/events.js.map +1 -0
  28. package/dist/cjs/resources/expected-payments.d.ts +928 -0
  29. package/dist/cjs/resources/expected-payments.js +31 -0
  30. package/dist/cjs/resources/expected-payments.js.map +1 -0
  31. package/dist/cjs/resources/external-accounts.d.ts +597 -0
  32. package/dist/cjs/resources/external-accounts.js +51 -0
  33. package/dist/cjs/resources/external-accounts.js.map +1 -0
  34. package/dist/cjs/resources/incoming-payment-details.d.ts +487 -0
  35. package/dist/cjs/resources/incoming-payment-details.js +35 -0
  36. package/dist/cjs/resources/incoming-payment-details.js.map +1 -0
  37. package/dist/cjs/resources/index.d.ts +15 -0
  38. package/dist/cjs/resources/index.js +46 -0
  39. package/dist/cjs/resources/index.js.map +1 -0
  40. package/dist/cjs/resources/internal-accounts.d.ts +666 -0
  41. package/dist/cjs/resources/internal-accounts.js +31 -0
  42. package/dist/cjs/resources/internal-accounts.js.map +1 -0
  43. package/dist/cjs/resources/line-items.d.ts +90 -0
  44. package/dist/cjs/resources/line-items.js +38 -0
  45. package/dist/cjs/resources/line-items.js.map +1 -0
  46. package/dist/cjs/resources/paper-items.d.ts +279 -0
  47. package/dist/cjs/resources/paper-items.js +25 -0
  48. package/dist/cjs/resources/paper-items.js.map +1 -0
  49. package/dist/cjs/resources/payment-orders/index.d.ts +2 -0
  50. package/dist/cjs/resources/payment-orders/index.js +33 -0
  51. package/dist/cjs/resources/payment-orders/index.js.map +1 -0
  52. package/dist/cjs/resources/payment-orders/payment-orders.d.ts +2180 -0
  53. package/dist/cjs/resources/payment-orders/payment-orders.js +56 -0
  54. package/dist/cjs/resources/payment-orders/payment-orders.js.map +1 -0
  55. package/dist/cjs/resources/payment-orders/reversals.d.ts +46 -0
  56. package/dist/cjs/resources/payment-orders/reversals.js +23 -0
  57. package/dist/cjs/resources/payment-orders/reversals.js.map +1 -0
  58. package/dist/cjs/resources/returns.d.ts +487 -0
  59. package/dist/cjs/resources/returns.js +31 -0
  60. package/dist/cjs/resources/returns.js.map +1 -0
  61. package/dist/cjs/resources/top-level.d.ts +3 -0
  62. package/dist/cjs/resources/top-level.js +4 -0
  63. package/dist/cjs/resources/top-level.js.map +1 -0
  64. package/dist/cjs/resources/transactions.d.ts +377 -0
  65. package/dist/cjs/resources/transactions.js +31 -0
  66. package/dist/cjs/resources/transactions.js.map +1 -0
  67. package/dist/cjs/resources/validations.d.ts +97 -0
  68. package/dist/cjs/resources/validations.js +16 -0
  69. package/dist/cjs/resources/validations.js.map +1 -0
  70. package/dist/cjs/resources/webhooks.d.ts +31 -0
  71. package/dist/cjs/resources/webhooks.js +44 -0
  72. package/dist/cjs/resources/webhooks.js.map +1 -0
  73. package/dist/cjs/tests/api-resources/counterparties.test.d.ts +1 -0
  74. package/dist/cjs/tests/api-resources/counterparties.test.js +275 -0
  75. package/dist/cjs/tests/api-resources/counterparties.test.js.map +1 -0
  76. package/dist/cjs/tests/api-resources/documents.test.d.ts +1 -0
  77. package/dist/cjs/tests/api-resources/documents.test.js +78 -0
  78. package/dist/cjs/tests/api-resources/documents.test.js.map +1 -0
  79. package/dist/cjs/tests/api-resources/events.test.d.ts +1 -0
  80. package/dist/cjs/tests/api-resources/events.test.js +100 -0
  81. package/dist/cjs/tests/api-resources/events.test.js.map +1 -0
  82. package/dist/cjs/tests/api-resources/expected-payments.test.d.ts +1 -0
  83. package/dist/cjs/tests/api-resources/expected-payments.test.js +176 -0
  84. package/dist/cjs/tests/api-resources/expected-payments.test.js.map +1 -0
  85. package/dist/cjs/tests/api-resources/external-accounts.test.d.ts +1 -0
  86. package/dist/cjs/tests/api-resources/external-accounts.test.js +248 -0
  87. package/dist/cjs/tests/api-resources/external-accounts.test.js.map +1 -0
  88. package/dist/cjs/tests/api-resources/incoming-payment-details.test.d.ts +1 -0
  89. package/dist/cjs/tests/api-resources/incoming-payment-details.test.js +130 -0
  90. package/dist/cjs/tests/api-resources/incoming-payment-details.test.js.map +1 -0
  91. package/dist/cjs/tests/api-resources/internal-accounts.test.d.ts +1 -0
  92. package/dist/cjs/tests/api-resources/internal-accounts.test.js +144 -0
  93. package/dist/cjs/tests/api-resources/internal-accounts.test.js.map +1 -0
  94. package/dist/cjs/tests/api-resources/line-items.test.d.ts +1 -0
  95. package/dist/cjs/tests/api-resources/line-items.test.js +123 -0
  96. package/dist/cjs/tests/api-resources/line-items.test.js.map +1 -0
  97. package/dist/cjs/tests/api-resources/paper-items.test.d.ts +1 -0
  98. package/dist/cjs/tests/api-resources/paper-items.test.js +96 -0
  99. package/dist/cjs/tests/api-resources/paper-items.test.js.map +1 -0
  100. package/dist/cjs/tests/api-resources/payment-orders/payment-orders.test.d.ts +1 -0
  101. package/dist/cjs/tests/api-resources/payment-orders/payment-orders.test.js +77 -0
  102. package/dist/cjs/tests/api-resources/payment-orders/payment-orders.test.js.map +1 -0
  103. package/dist/cjs/tests/api-resources/returns.test.d.ts +1 -0
  104. package/dist/cjs/tests/api-resources/returns.test.js +116 -0
  105. package/dist/cjs/tests/api-resources/returns.test.js.map +1 -0
  106. package/dist/cjs/tests/api-resources/top-level.test.d.ts +1 -0
  107. package/dist/cjs/tests/api-resources/top-level.test.js +59 -0
  108. package/dist/cjs/tests/api-resources/top-level.test.js.map +1 -0
  109. package/dist/cjs/tests/api-resources/transactions.test.d.ts +1 -0
  110. package/dist/cjs/tests/api-resources/transactions.test.js +134 -0
  111. package/dist/cjs/tests/api-resources/transactions.test.js.map +1 -0
  112. package/dist/cjs/tests/api-resources/validations.test.d.ts +1 -0
  113. package/dist/cjs/tests/api-resources/validations.test.js +62 -0
  114. package/dist/cjs/tests/api-resources/validations.test.js.map +1 -0
  115. package/dist/cjs/tests/api-resources/webhooks.test.d.ts +1 -0
  116. package/dist/cjs/tests/api-resources/webhooks.test.js +100 -0
  117. package/dist/cjs/tests/api-resources/webhooks.test.js.map +1 -0
  118. package/dist/cjs/tests/form.test.d.ts +1 -0
  119. package/dist/cjs/tests/form.test.js +61 -0
  120. package/dist/cjs/tests/form.test.js.map +1 -0
  121. package/dist/cjs/tests/index.test.d.ts +1 -0
  122. package/dist/cjs/tests/index.test.js +57 -0
  123. package/dist/cjs/tests/index.test.js.map +1 -0
  124. package/dist/cjs/tests/responses.test.d.ts +1 -0
  125. package/dist/cjs/tests/responses.test.js +60 -0
  126. package/dist/cjs/tests/responses.test.js.map +1 -0
  127. package/index.ts +175 -0
  128. package/jest.config.js +8 -0
  129. package/package.json +47 -0
  130. package/pagination.ts +36 -0
  131. package/resource.ts +22 -0
  132. package/resources/counterparties.ts +666 -0
  133. package/resources/documents.ts +97 -0
  134. package/resources/events.ts +86 -0
  135. package/resources/expected-payments.ts +1016 -0
  136. package/resources/external-accounts.ts +762 -0
  137. package/resources/incoming-payment-details.ts +592 -0
  138. package/resources/index.ts +16 -0
  139. package/resources/internal-accounts.ts +774 -0
  140. package/resources/line-items.ts +138 -0
  141. package/resources/paper-items.ts +317 -0
  142. package/resources/payment-orders/index.ts +3 -0
  143. package/resources/payment-orders/payment-orders.ts +2486 -0
  144. package/resources/payment-orders/reversals.ts +72 -0
  145. package/resources/returns.ts +545 -0
  146. package/resources/top-level.ts +5 -0
  147. package/resources/transactions.ts +441 -0
  148. package/resources/validations.ts +115 -0
  149. package/resources/webhooks.ts +48 -0
  150. package/tests/api-resources/counterparties.test.ts +237 -0
  151. package/tests/api-resources/documents.test.ts +40 -0
  152. package/tests/api-resources/events.test.ts +62 -0
  153. package/tests/api-resources/expected-payments.test.ts +138 -0
  154. package/tests/api-resources/external-accounts.test.ts +210 -0
  155. package/tests/api-resources/incoming-payment-details.test.ts +92 -0
  156. package/tests/api-resources/internal-accounts.test.ts +103 -0
  157. package/tests/api-resources/line-items.test.ts +85 -0
  158. package/tests/api-resources/paper-items.test.ts +58 -0
  159. package/tests/api-resources/payment-orders/payment-orders.test.ts +39 -0
  160. package/tests/api-resources/returns.test.ts +78 -0
  161. package/tests/api-resources/top-level.test.ts +21 -0
  162. package/tests/api-resources/transactions.test.ts +96 -0
  163. package/tests/api-resources/validations.test.ts +24 -0
  164. package/tests/api-resources/webhooks.test.ts +102 -0
  165. package/tests/form.test.ts +27 -0
  166. package/tests/index.test.ts +62 -0
  167. package/tests/responses.test.ts +25 -0
  168. package/tsconfig.cjs.json +8 -0
  169. package/tsconfig.json +36 -0
@@ -0,0 +1,138 @@
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 { Page, PageParams } from '~/pagination';
7
+
8
+ export class LineItems extends APIResource {
9
+ /**
10
+ * Get a single line item
11
+ */
12
+ retrieve(
13
+ itemizableType: string,
14
+ itemizableId: string,
15
+ id: string,
16
+ options?: Core.RequestOptions,
17
+ ): Promise<Core.APIResponse<LineItem>> {
18
+ return this.get(`/api/${itemizableType}/${itemizableId}/line_items/${id}`, options);
19
+ }
20
+
21
+ update(
22
+ itemizableType: string,
23
+ itemizableId: string,
24
+ id: string,
25
+ body?: LineItemUpdateParams,
26
+ options?: Core.RequestOptions,
27
+ ): Promise<Core.APIResponse<LineItem>>;
28
+ update(
29
+ itemizableType: string,
30
+ itemizableId: string,
31
+ id: string,
32
+ options?: Core.RequestOptions,
33
+ ): Promise<Core.APIResponse<LineItem>>;
34
+ update(
35
+ itemizableType: string,
36
+ itemizableId: string,
37
+ id: string,
38
+ body: LineItemUpdateParams | Core.RequestOptions = {},
39
+ options?: Core.RequestOptions,
40
+ ): Promise<Core.APIResponse<LineItem>> {
41
+ if (isRequestOptions(body)) {
42
+ return this.update(itemizableType, itemizableId, id, {}, body);
43
+ }
44
+
45
+ return this.patch(`/api/${itemizableType}/${itemizableId}/line_items/${id}`, { body, ...options });
46
+ }
47
+
48
+ /**
49
+ * Get a list of line items
50
+ */
51
+ list(
52
+ itemizableType: string,
53
+ id: string,
54
+ query?: LineItemListParams,
55
+ options?: Core.RequestOptions,
56
+ ): Core.PagePromise<LineItemsPage>;
57
+ list(itemizableType: string, id: string, options?: Core.RequestOptions): Core.PagePromise<LineItemsPage>;
58
+ list(
59
+ itemizableType: string,
60
+ id: string,
61
+ query: LineItemListParams | Core.RequestOptions = {},
62
+ options?: Core.RequestOptions,
63
+ ): Core.PagePromise<LineItemsPage> {
64
+ if (isRequestOptions(query)) {
65
+ return this.list(itemizableType, id, {}, query);
66
+ }
67
+
68
+ return this.getAPIList(`/api/${itemizableType}/${id}/line_items`, LineItemsPage, { query, ...options });
69
+ }
70
+ }
71
+
72
+ export class LineItemsPage extends Page<LineItem> {}
73
+
74
+ export interface LineItem {
75
+ /**
76
+ * The ID of one of your accounting categories. Note that these will only be
77
+ * accessible if your accounting system has been connected.
78
+ */
79
+ accounting_category_id?: string | null;
80
+
81
+ /**
82
+ * The ID of one of the class objects in your accounting system. Class objects
83
+ * track segments of your business independent of client or project. Note that
84
+ * these will only be accessible if your accounting system has been connected.
85
+ */
86
+ accounting_ledger_class_id?: string | null;
87
+
88
+ /**
89
+ * Value in specified currency's smallest unit. e.g. $10 would be represented
90
+ * as 1000.
91
+ */
92
+ amount?: number;
93
+
94
+ created_at?: string;
95
+
96
+ /**
97
+ * A free-form description of the line item.
98
+ */
99
+ description?: string | null;
100
+
101
+ id?: string;
102
+
103
+ /**
104
+ * The ID of the payment order or expected payment.
105
+ */
106
+ itemizable_id?: string;
107
+
108
+ /**
109
+ * One of `payment_orders` or `expected_payments`.
110
+ */
111
+ itemizable_type?: 'ExpectedPayment' | 'PaymentOrder';
112
+
113
+ /**
114
+ * This field will be true if this object exists in the live environment or false
115
+ * if it exists in the test environment.
116
+ */
117
+ live_mode?: boolean;
118
+
119
+ /**
120
+ * Additional data represented as key-value pairs. Both the key and value must be
121
+ * strings.
122
+ */
123
+ metadata?: Record<string, string>;
124
+
125
+ object?: string;
126
+
127
+ updated_at?: string;
128
+ }
129
+
130
+ export interface LineItemUpdateParams {
131
+ /**
132
+ * Additional data represented as key-value pairs. Both the key and value must be
133
+ * strings.
134
+ */
135
+ metadata?: Record<string, string>;
136
+ }
137
+
138
+ export interface LineItemListParams extends PageParams {}
@@ -0,0 +1,317 @@
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 { Page, PageParams } from '~/pagination';
7
+
8
+ export class PaperItems extends APIResource {
9
+ /**
10
+ * Get details on a single paper item.
11
+ */
12
+ retrieve(id: string, options?: Core.RequestOptions): Promise<Core.APIResponse<PaperItem>> {
13
+ return this.get(`/api/paper_items/${id}`, options);
14
+ }
15
+
16
+ /**
17
+ * Get a list of all paper items.
18
+ */
19
+ list(query?: PaperItemListParams, options?: Core.RequestOptions): Core.PagePromise<PaperItemsPage>;
20
+ list(options?: Core.RequestOptions): Core.PagePromise<PaperItemsPage>;
21
+ list(
22
+ query: PaperItemListParams | Core.RequestOptions = {},
23
+ options?: Core.RequestOptions,
24
+ ): Core.PagePromise<PaperItemsPage> {
25
+ if (isRequestOptions(query)) {
26
+ return this.list({}, query);
27
+ }
28
+
29
+ return this.getAPIList('/api/paper_items', PaperItemsPage, { query, ...options });
30
+ }
31
+ }
32
+
33
+ export class PaperItemsPage extends Page<PaperItem> {}
34
+
35
+ export interface PaperItem {
36
+ /**
37
+ * The account number on the paper item.
38
+ */
39
+ account_number?: string | null;
40
+
41
+ /**
42
+ * The amount of the paper item.
43
+ */
44
+ amount?: number;
45
+
46
+ /**
47
+ * The check number on the paper item.
48
+ */
49
+ check_number?: string | null;
50
+
51
+ created_at?: string;
52
+
53
+ /**
54
+ * The currency of the paper item.
55
+ */
56
+ currency?:
57
+ | 'AED'
58
+ | 'AFN'
59
+ | 'ALL'
60
+ | 'AMD'
61
+ | 'ANG'
62
+ | 'AOA'
63
+ | 'ARS'
64
+ | 'AUD'
65
+ | 'AWG'
66
+ | 'AZN'
67
+ | 'BAM'
68
+ | 'BBD'
69
+ | 'BCH'
70
+ | 'BDT'
71
+ | 'BGN'
72
+ | 'BHD'
73
+ | 'BIF'
74
+ | 'BMD'
75
+ | 'BND'
76
+ | 'BOB'
77
+ | 'BRL'
78
+ | 'BSD'
79
+ | 'BTC'
80
+ | 'BTN'
81
+ | 'BWP'
82
+ | 'BYN'
83
+ | 'BYR'
84
+ | 'BZD'
85
+ | 'CAD'
86
+ | 'CDF'
87
+ | 'CHF'
88
+ | 'CLF'
89
+ | 'CLP'
90
+ | 'CNH'
91
+ | 'CNY'
92
+ | 'COP'
93
+ | 'CRC'
94
+ | 'CUC'
95
+ | 'CUP'
96
+ | 'CVE'
97
+ | 'CZK'
98
+ | 'DJF'
99
+ | 'DKK'
100
+ | 'DOP'
101
+ | 'DZD'
102
+ | 'EEK'
103
+ | 'EGP'
104
+ | 'ERN'
105
+ | 'ETB'
106
+ | 'EUR'
107
+ | 'FJD'
108
+ | 'FKP'
109
+ | 'GBP'
110
+ | 'GBX'
111
+ | 'GEL'
112
+ | 'GGP'
113
+ | 'GHS'
114
+ | 'GIP'
115
+ | 'GMD'
116
+ | 'GNF'
117
+ | 'GTQ'
118
+ | 'GYD'
119
+ | 'HKD'
120
+ | 'HNL'
121
+ | 'HRK'
122
+ | 'HTG'
123
+ | 'HUF'
124
+ | 'IDR'
125
+ | 'ILS'
126
+ | 'IMP'
127
+ | 'INR'
128
+ | 'IQD'
129
+ | 'IRR'
130
+ | 'ISK'
131
+ | 'JEP'
132
+ | 'JMD'
133
+ | 'JOD'
134
+ | 'JPY'
135
+ | 'KES'
136
+ | 'KGS'
137
+ | 'KHR'
138
+ | 'KMF'
139
+ | 'KPW'
140
+ | 'KRW'
141
+ | 'KWD'
142
+ | 'KYD'
143
+ | 'KZT'
144
+ | 'LAK'
145
+ | 'LBP'
146
+ | 'LKR'
147
+ | 'LRD'
148
+ | 'LSL'
149
+ | 'LTL'
150
+ | 'LVL'
151
+ | 'LYD'
152
+ | 'MAD'
153
+ | 'MDL'
154
+ | 'MGA'
155
+ | 'MKD'
156
+ | 'MMK'
157
+ | 'MNT'
158
+ | 'MOP'
159
+ | 'MRO'
160
+ | 'MRU'
161
+ | 'MTL'
162
+ | 'MUR'
163
+ | 'MVR'
164
+ | 'MWK'
165
+ | 'MXN'
166
+ | 'MYR'
167
+ | 'MZN'
168
+ | 'NAD'
169
+ | 'NGN'
170
+ | 'NIO'
171
+ | 'NOK'
172
+ | 'NPR'
173
+ | 'NZD'
174
+ | 'OMR'
175
+ | 'PAB'
176
+ | 'PEN'
177
+ | 'PGK'
178
+ | 'PHP'
179
+ | 'PKR'
180
+ | 'PLN'
181
+ | 'PYG'
182
+ | 'QAR'
183
+ | 'RON'
184
+ | 'RSD'
185
+ | 'RUB'
186
+ | 'RWF'
187
+ | 'SAR'
188
+ | 'SBD'
189
+ | 'SCR'
190
+ | 'SDG'
191
+ | 'SEK'
192
+ | 'SGD'
193
+ | 'SHP'
194
+ | 'SKK'
195
+ | 'SLL'
196
+ | 'SOS'
197
+ | 'SRD'
198
+ | 'SSP'
199
+ | 'STD'
200
+ | 'SVC'
201
+ | 'SYP'
202
+ | 'SZL'
203
+ | 'THB'
204
+ | 'TJS'
205
+ | 'TMM'
206
+ | 'TMT'
207
+ | 'TND'
208
+ | 'TOP'
209
+ | 'TRY'
210
+ | 'TTD'
211
+ | 'TWD'
212
+ | 'TZS'
213
+ | 'UAH'
214
+ | 'UGX'
215
+ | 'USD'
216
+ | 'UYU'
217
+ | 'UZS'
218
+ | 'VEF'
219
+ | 'VES'
220
+ | 'VND'
221
+ | 'VUV'
222
+ | 'WST'
223
+ | 'XAF'
224
+ | 'XAG'
225
+ | 'XAU'
226
+ | 'XBA'
227
+ | 'XBB'
228
+ | 'XBC'
229
+ | 'XBD'
230
+ | 'XCD'
231
+ | 'XDR'
232
+ | 'XFU'
233
+ | 'XOF'
234
+ | 'XPD'
235
+ | 'XPF'
236
+ | 'XPT'
237
+ | 'XTS'
238
+ | 'YER'
239
+ | 'ZAR'
240
+ | 'ZMK'
241
+ | 'ZMW'
242
+ | 'ZWD'
243
+ | 'ZWL'
244
+ | 'ZWN'
245
+ | 'ZWR';
246
+
247
+ /**
248
+ * The date the paper item was deposited into your organization's bank account.
249
+ */
250
+ deposit_date?: string;
251
+
252
+ id?: string;
253
+
254
+ /**
255
+ * This field will be true if this object exists in the live environment or false
256
+ * if it exists in the test environment.
257
+ */
258
+ live_mode?: boolean;
259
+
260
+ /**
261
+ * The identifier for the lockbox assigned by the bank.
262
+ */
263
+ lockbox_number?: string;
264
+
265
+ /**
266
+ * The memo field on the paper item.
267
+ */
268
+ memo_field?: string | null;
269
+
270
+ object?: string;
271
+
272
+ /**
273
+ * The name of the remitter on the paper item.
274
+ */
275
+ remitter_name?: string | null;
276
+
277
+ /**
278
+ * The routing number on the paper item.
279
+ */
280
+ routing_number?: string | null;
281
+
282
+ /**
283
+ * The current status of the paper item. One of `pending`, `completed`, or
284
+ * `returned`.
285
+ */
286
+ status?: 'completed' | 'pending' | 'returned';
287
+
288
+ /**
289
+ * The ID of the reconciled Transaction or `null`.
290
+ */
291
+ transaction_id?: string | null;
292
+
293
+ /**
294
+ * The ID of the reconciled Transaction Line Item or `null`.
295
+ */
296
+ transaction_line_item_id?: string | null;
297
+
298
+ updated_at?: string;
299
+ }
300
+
301
+ export interface PaperItemListParams extends PageParams {
302
+ /**
303
+ * Specify an inclusive end date (YYYY-MM-DD) when filtering by deposit_date
304
+ */
305
+ deposit_date_end?: string;
306
+
307
+ /**
308
+ * Specify an inclusive start date (YYYY-MM-DD) when filtering by deposit_date
309
+ */
310
+ deposit_date_start?: string;
311
+
312
+ /**
313
+ * Specify `lockbox_number` if you wish to see paper items that are associated with
314
+ * a specific lockbox number.
315
+ */
316
+ lockbox_number?: string;
317
+ }
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+ export * from './payment-orders';
3
+ export * from './reversals';